/* ===========================================================
   The Docherty Partnership — modernised site stylesheet
   Aesthetic: refined enterprise. Deep navy + warm amber accent,
   editorial serif display (Fraunces) over clean grotesque body
   (Hanken Grotesk). Generous space, structured, trustworthy.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --navy:        #0e2233;
  --navy-700:    #16324a;
  --navy-600:    #1f4060;
  --ink:         #14222e;
  --slate:       #4a5b69;
  --mist:        #6f8294;
  --paper:       #f6f3ed;
  --paper-2:     #efe9df;
  --line:        #d9d0c2;
  --white:       #ffffff;
  --amber:       #c8842a;
  --amber-soft:  #e4a34a;
  --teal:        #2f7d77;
  --brand-teal:  #04b6bd;

  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(14,34,51,.06), 0 2px 8px rgba(14,34,51,.05);
  --shadow-md: 0 10px 30px rgba(14,34,51,.10), 0 2px 8px rgba(14,34,51,.06);
  --shadow-lg: 0 24px 60px rgba(14,34,51,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin-bottom: 1.05rem; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: var(--slate); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: .72rem; color: var(--amber);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amber); display: inline-block; }

/* Highlights the X, A, L letters that form the "XAL" acronym */
.xal-mark {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,237,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 76px;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--brand-teal);
}
.brand-mark svg { width: 30px; height: auto; display: block; }
.footer-brand .brand-mark { background: rgba(246,243,237,.06); border-color: rgba(246,243,237,.14); color: var(--brand-teal); }
.brand-text { line-height: 1.1; display: flex; flex-direction: column; }
.brand-name, .brand-tag { display: block; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; color: var(--navy); font-weight: 600; }
.brand-tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); font-weight: 600; }

.menu { display: flex; align-items: center; gap: .35rem; list-style: none; }
.menu > li { position: relative; }
.menu > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .8rem; border-radius: 8px; font-size: .94rem; font-weight: 500;
  color: var(--slate); transition: color .2s, background .2s;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--navy); background: var(--paper-2); }
.menu > li.has-sub > a::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: .5rem; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .55rem .75rem; border-radius: 8px; font-size: .92rem; color: var(--slate); }
.submenu a:hover { background: var(--paper); color: var(--navy); }

.nav-cta {
  background: var(--navy); color: var(--paper); padding: .6rem 1.15rem; border-radius: 9px;
  font-weight: 600; font-size: .9rem; transition: transform .15s, background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-700); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 10px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: #2b1a06; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--amber-soft); }
.btn-ghost { background: transparent; border-color: rgba(246,243,237,.35); color: var(--paper); }
.btn-ghost:hover { background: rgba(246,243,237,.1); }
.btn-dark { background: var(--navy); color: var(--paper); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: var(--paper); overflow: hidden;
  padding: 0; /* hero supplies its own padding via .hero-inner; cancel the base section padding */
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(200,132,42,.28), transparent 55%),
    radial-gradient(90% 90% at -10% 110%, rgba(47,125,119,.22), transparent 50%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .4; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero h1 { color: var(--paper); max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--amber-soft); }
.hero .lede { color: rgba(246,243,237,.82); max-width: 52ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(246,243,237,.16); }
.hero-meta .stat { line-height: 1.1; }
.hero-meta .num { font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem); color: var(--paper); display: block; }
.hero-meta .lbl { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(246,243,237,.6); margin-top: .35rem; }

/* page hero (interior) */
.page-hero { background: var(--navy); color: var(--paper); position: relative; overflow: hidden; padding: 0; /* cancel base section padding; .page-hero-inner supplies spacing */ }
.page-hero::before { content:""; position:absolute; inset:0;
  background: radial-gradient(100% 140% at 100% 0%, rgba(200,132,42,.25), transparent 55%); }
.page-hero-inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.25rem, 4.5vw, 3.25rem); }
.page-hero h1 { color: var(--paper); }
.page-hero .lede { color: rgba(246,243,237,.8); max-width: 72ch; margin-top: 1rem; }
.crumb { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,243,237,.55); margin-bottom: 1.2rem; }
.crumb a:hover { color: var(--amber-soft); }

/* ---------- Sections ---------- */
section { padding: clamp(2.75rem, 5.5vw, 5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--slate); font-size: 1.1rem; }

.bg-paper2 { background: var(--paper-2); }
.bg-navy { background: var(--navy); color: var(--paper); }
.bg-navy h2, .bg-navy h3 { color: var(--paper); }
.bg-navy p { color: rgba(246,243,237,.78); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber); }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--paper-2); color: var(--navy);
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 1rem; }
.card .more { margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--amber); font-size: .92rem; }
.card .more .arrow { transition: transform .2s; }
.card:hover .more .arrow { transform: translateX(4px); }

/* feature list */
.feat-list { list-style: none; display: grid; gap: 1rem; }
.feat-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feat-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; margin-top: .15rem;
}
.feat-list .tick svg { width: 14px; height: 14px; }

/* ---------- Quote ---------- */
.quote { max-width: 50ch; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem,3vw,2.2rem); line-height: 1.35; font-style: italic; color: var(--paper); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--sans); font-weight: 600; color: var(--amber-soft); }
.quote cite span { display: block; color: rgba(246,243,237,.6); font-weight: 400; font-size: .9rem; margin-top: .2rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.rev { grid-template-columns: .9fr 1.1fr; }
.media-panel {
  background: linear-gradient(155deg, var(--navy), var(--navy-600));
  border-radius: 20px; padding: 2.5rem; color: var(--paper); position: relative; overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.media-panel::before { content:""; position:absolute; inset:0;
  background: radial-gradient(80% 80% at 100% 0%, rgba(200,132,42,.3), transparent 60%); }

/* ---------- Logos / certs ---------- */
.certs { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.cert-chip {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-size: .85rem; font-weight: 600; color: var(--slate);
}
.cert-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }

/* ---------- Timeline (History) ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--amber), var(--line)); 
}
.tl-item { position: relative; padding-left: 168px; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year {
  position: absolute; left: 0; top: 0; width: 96px; text-align: right;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy);
}
.tl-dot {
  position: absolute; left: 113px; top: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--amber); z-index: 1;
}
.tl-item.tdp .tl-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(200,132,42,.18); }
.tl-body p { margin-bottom: .6rem; color: var(--slate); }
.tl-body p:last-child { margin-bottom: 0; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.tl-tag {
  font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
  background: var(--paper-2); color: var(--slate); border: 1px solid var(--line);
}
.tl-item.tdp .tl-tag { background: rgba(200,132,42,.12); color: #8a5615; border-color: rgba(200,132,42,.35); }
/* A product/industry-milestone chip inside a Docherty (amber) entry keeps the neutral milestone colour */
.tl-tag.tl-tag--milestone, .tl-item.tdp .tl-tag.tl-tag--milestone { background: var(--paper-2); color: var(--slate); border-color: var(--line); }
.tl-item.tdp .tl-byline { font-weight: 600; color: var(--amber); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; display:block; }

.tl-legend { display:flex; gap:1.5rem; flex-wrap:wrap; justify-content:center; margin-bottom:2.5rem; }
.tl-legend span { display:inline-flex; align-items:center; gap:.5rem; font-size:.88rem; color:var(--slate); font-weight:500; }
.tl-legend .k { width:14px; height:14px; border-radius:50%; border:3px solid var(--amber); background:var(--paper); }
.tl-legend .k.fill { background:var(--amber); }

/* ---------- Table ---------- */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card td { padding: 1.4rem 1.5rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-card tr:last-child td { border-bottom: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; text-align: center; }
.contact-card .icon { margin: 0 auto 1.1rem; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--paper); display: grid; place-items: center; }
.contact-card .icon svg { width: 26px; height: 26px; }
.contact-card a { color: var(--navy); font-weight: 600; }
.contact-card a:hover { color: var(--amber); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: var(--paper); border-radius: 24px; padding: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 50% -20%, rgba(200,132,42,.3), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--paper); max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { color: rgba(246,243,237,.8); max-width: 50ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,243,237,.7); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(246,243,237,.12); }
.footer-top h4 { color: var(--paper); font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-top ul { list-style: none; display: grid; gap: .6rem; }
.footer-top a { color: rgba(246,243,237,.7); font-size: .94rem; }
.footer-top a:hover { color: var(--amber-soft); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { font-size: .94rem; margin-top: 1rem; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.8rem; font-size: .85rem; color: rgba(246,243,237,.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gut) 1.5rem;
    gap: .2rem; transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow-md);
  }
  .menu.open { transform: translateY(0); }
  .menu > li > a { padding: .75rem .5rem; font-size: 1rem; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--paper-2); margin: .2rem 0 .4rem .5rem; }
  .nav-cta { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .timeline::before { left: 18px; }
  .tl-item { padding-left: 56px; }
  .tl-year { position: static; width: auto; text-align: left; margin-bottom: .3rem; }
  .tl-dot { left: 11px; top: 30px; }
}

/* ---------- Existing-users reassurance band ---------- */
.existing-band {
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(47,125,119,.10), transparent 55%),
    var(--paper-2);
  border-top: 1px solid var(--line);
}
.existing-band .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.existing-band .eyebrow { color: var(--teal); }
.existing-band .eyebrow::before { background: var(--teal); }
.existing-band h2 { margin: .9rem 0 1rem; max-width: 20ch; }
.existing-band p { color: var(--slate); margin-bottom: 1rem; }
.existing-band .note {
  border-left: 3px solid var(--teal); padding: .25rem 0 .25rem 1.1rem; margin: 1.4rem 0 0;
  color: var(--ink); font-size: 1.02rem;
}
.existing-band .actions { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.existing-band .actions .btn { width: 100%; justify-content: center; }
.existing-band .actions .small { font-size: .9rem; color: var(--mist); }
.existing-band .actions .small a { color: var(--navy); font-weight: 600; }
.existing-band .actions .small a:hover { color: var(--amber); }
@media (max-width: 760px) {
  .existing-band .wrap { grid-template-columns: 1fr; }
}

/* ---------- Client logo grid ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.logo-cell { background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-cell {
  background: var(--white);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  transition: background .25s, transform .25s;
}
.logo-cell:hover { background: var(--paper); }
.logo-cell img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s;
}
.logo-cell:hover img { transform: scale(1.05); }
/* Placeholder appearance until real logos are dropped in */
.logo-cell.placeholder {
  background: var(--paper);
  color: var(--mist);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}
.logo-cell.placeholder span {
  display: grid; gap: .5rem; place-items: center;
}
.logo-cell.placeholder svg { width: 30px; height: 30px; opacity: .5; }
.logo-note {
  margin-top: 1.2rem; font-size: .9rem; color: var(--mist); text-align: center;
}

/* Cells for logos designed on a dark background */
.logo-cell.on-dark { background: var(--navy); }
.logo-cell.on-dark:hover { background: var(--navy-700); }

/* ---------- Client logo marquee ---------- */
.logo-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  display: grid;
  gap: 1.1rem;
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.1rem;
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
.marquee-row.reverse .marquee-track { animation-direction: reverse; }
.logo-marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-slide {
  flex: none;
  width: 180px;
  height: 110px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.logo-slide:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-slide img {
  max-width: 100%;
  max-height: 64px;
  width: auto; height: auto;
  object-fit: contain;
}
.logo-slide.on-dark { background: var(--navy); border-color: var(--navy-600); }
.logo-slide.full-bleed { padding: 0; overflow: hidden; }
.logo-slide.full-bleed img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

@media (max-width: 760px) {
  .logo-slide { width: 144px; height: 92px; padding: 1rem; }
  .logo-slide img { max-height: 52px; }
}

/* Accessibility: no motion -> static wrapped grid */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  /* show only first track's logos (the duplicate is aria-hidden) */
  .marquee-track[data-clone="true"] { display: none; }
}

/* ---------- Brand gradient wash (prototype: applies only to pages with body.wash) ----------
   Soft, low-opacity radial gradients in the brand palette (teal / amber / navy)
   over the paper base, fixed to the viewport so it reads as one continuous wash.
   Shows through the transparent default sections; the alternating .bg-paper2 band
   becomes a light translucent veil so the wash still glows behind it. */
body.wash {
  background:
    radial-gradient(1200px 800px at 4% -8%, rgba(47,125,119,.30), transparent 66%),
    radial-gradient(1050px 760px at 106% 2%, rgba(200,132,42,.24), transparent 62%),
    radial-gradient(1300px 1000px at 50% 120%, rgba(14,34,51,.20), transparent 66%),
    var(--paper);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.wash .bg-paper2 {
  background: linear-gradient(rgba(239,233,223,.35), rgba(239,233,223,.35));
}

/* ---------- Photography (real images in context) ---------- */
/* Hero with a side photograph */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero-figure { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(246,243,237,.14); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure { aspect-ratio: 16 / 9; } }

/* Full-width photographic band that interrupts the section rhythm */
.photo-band { position: relative; margin: 0; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); aspect-ratio: 21 / 9; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; inset: auto 0 0 0;
  padding: 2.4rem clamp(1.25rem,3vw,2.2rem) 1.25rem;
  background: linear-gradient(transparent, rgba(14,34,51,.82)); color: var(--paper); font-size: .95rem; }
.photo-band figcaption em { color: var(--amber-soft); font-style: normal; opacity: .85; }
@media (max-width: 760px) { .photo-band { aspect-ratio: 16 / 9; } }
/* A photo band lives in its own <section>; take spacing from neighbouring sections
   instead of adding a full section's padding on top (which doubled the gap). Applies
   site-wide to every photo band automatically. */
section:has(.photo-band) { padding-top: 0; padding-bottom: 0; }

/* Partner affiliate logos - normalised to a consistent height so neither is emphasised */
.partner-logo { height: 52px; margin-bottom: 1.25rem; display: flex; align-items: center; }
.partner-logo img { max-height: 52px; max-width: 200px; width: auto; height: auto; object-fit: contain; }

/* Portrait / headshot treatment (square framed image, caption beneath) - for people, not wide scenes */
.portrait-figure { max-width: 280px; margin-inline: auto; text-align: center; }
.portrait-figure img { width: 280px; height: 280px; max-width: 100%; object-fit: cover; object-position: center top;
  border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.portrait-figure figcaption { margin-top: .95rem; color: var(--slate); font-size: .95rem; }

/* Image that sits inside a .split column (replaces a media-panel) */
.split-figure { margin: 0; }
.split-figure img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-md); border: 1px solid var(--line); display: block; }
.split-figure figcaption { margin-top: .85rem; color: var(--slate); font-size: .92rem; text-align: center; }
