/* ==========================================================================
   Mamma Mia Advisory Solutions — "True North"
   Built from the approved 25/09/26 desktop comps.
   Edit tokens in :root; everything else reads from them.
   ========================================================================== */

:root {
  /* Colour — sampled from the approved comps */
  --navy:        #061628;  /* page background */
  --navy-deep:   #051626;
  --navy-panel:  #0b2238;  /* founder panel */
  --navy-band:   #132e4a;  /* "Get in touch" band */
  --navy-foot:   #030f1b;  /* footer */
  --line:        #22405f;  /* hairlines on navy */
  --gold:        #ca993c;
  --gold-light:  #dac181;  /* links / card fill */
  --gold-card:   #dac182;
  --gold-dark:   #7a5a1e;  /* eyebrows on cream (AA contrast) */
  --cream:       #f7ecd6;  /* headings on navy + cream sections */
  --muted:       #b8c2cd;  /* body text on navy */
  --ink:         #061628;  /* headings on cream */
  --ink-body:    #3a4a5c;  /* body text on cream */
  --line-cream:  #d9ccae;
  --error:       #ff8a80;
  --error-cream: #a4161a;

  /* Type — the approved comps are set in Helvetica.
     To switch to a web font, change --font only. */
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 7.5px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--navy); color: var(--muted);
  font-family: var(--font); font-size: 18px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
.cream :focus-visible, .on-cream :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); line-height: 1.4;
}
.h1 {
  font-size: clamp(44px, 6.2vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.005em;
  color: var(--cream); text-transform: uppercase;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.13; font-weight: 700;
  color: var(--cream); text-transform: uppercase;
}
.h2--sm { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--cream); text-transform: uppercase; }
.lc { text-transform: none; }
.gold { color: var(--gold); }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); }
.prose p + p { margin-top: 12px; }

/* ---------- Links & buttons (hover states) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 44px; padding: 8px 14px 8px 16px; border-radius: 4px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(202,153,60,.7); }
.btn-gold:active { transform: translateY(0); }
.btn-icon svg { width: 38px; height: 32px; flex: none; transition: transform .3s var(--ease); }
.btn-icon:hover svg { transform: rotate(-6deg) scale(1.06); }
.btn-block { width: 100%; }
.btn-plain { padding: 13px 20px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px;
  color: var(--gold-light); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color .25s var(--ease), background-size .35s var(--ease);
}
.text-link svg { transition: transform .3s var(--ease); }
.text-link:hover { color: var(--cream); background-size: 100% 2px; }
.text-link:hover svg { transform: translateX(5px); }
.cream .text-link { color: var(--gold-dark); }
.cream .text-link:hover { color: var(--ink); }

/* inline body links */
.prose a, .legal a, .form-note a, .menu-search-empty a {
  color: var(--gold-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color .2s, text-decoration-thickness .2s;
}
.prose a:hover, .legal a:hover, .form-note a:hover { color: var(--cream); text-decoration-thickness: 2px; }
.cream .prose a, .cream .legal a, .cream .form-note a { color: var(--gold-dark); }
.cream .prose a:hover, .cream .legal a:hover, .cream .form-note a:hover { color: var(--ink); }

/* ---------- Header (sticky) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.header-inner { display: flex; align-items: flex-start; gap: 32px; padding-top: 20px; padding-bottom: 12px; }
.brand { display: block; flex: none; text-decoration: none; margin-left: 30px; }
.brand-stacked { width: 138px; height: auto; transition: opacity .3s, transform .35s var(--ease); transform-origin: left top; }
.brand-lockup { display: none; align-items: center; gap: 10px; }
.brand-lockup img:first-child { width: 44px; height: 44px; }
.brand-lockup img:last-child { width: 148px; height: auto; }
.brand:hover .brand-stacked, .brand:hover .brand-lockup { opacity: .85; }

.primary-nav { margin-left: auto; padding-top: 14px; }
.primary-nav ul { display: flex; gap: 36px; }
.primary-nav a {
  display: inline-block; padding: 6px 0; color: var(--cream); text-decoration: none; font-size: 15px; line-height: 1.3; white-space: nowrap;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat;
  transition: color .25s var(--ease), background-size .3s var(--ease);
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--gold); background-size: 100% 2px; }
.header-cta { margin-top: 6px; white-space: nowrap; }

.site-header.is-stuck { background: rgba(5, 22, 38, .94); box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(0,0,0,.6); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-stuck { background: rgba(5, 22, 38, .82); backdrop-filter: blur(12px); } }
.site-header.is-stuck .header-inner { align-items: center; padding-top: 12px; padding-bottom: 12px; }
.site-header.is-stuck .brand { margin-left: 0; }
.site-header.is-stuck .brand-stacked { display: none; }
.site-header.is-stuck .brand-lockup { display: flex; }
.site-header.is-stuck .primary-nav { padding-top: 0; }
.site-header.is-stuck .header-cta { margin-top: 0; }

/* ---------- Mobile menu (full-screen overlay grouped by bearing) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--navy-deep); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { padding-top: 14px; padding-bottom: 40px; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 20px; }
.brand-lockup-link { display: flex; align-items: center; gap: 10px; }
.menu-close, .menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.menu-close:hover, .menu-toggle:hover { color: var(--cream); }
.menu-toggle { display: none; }
.menu-search { position: relative; margin-bottom: 8px; }
.menu-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.menu-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; background: var(--navy-panel); border: 1px solid var(--line); border-radius: 4px; color: var(--cream);
}
.menu-search input::placeholder { color: #8795a5; }
.menu-search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(202,153,60,.35); }
.menu-search-empty { margin: 16px 0; color: var(--muted); }
.menu-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.menu-group-title { display: block; color: var(--cream); text-decoration: none; font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.menu-group-title .eyebrow { display: block; margin-bottom: 4px; }
.menu-group-title:hover { color: var(--gold); }
.menu-group ul { margin-top: 10px; }
.menu-group li a, .menu-secondary a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 16px; line-height: 1.4; }
.menu-group li a:hover, .menu-secondary a:hover { color: var(--gold-light); padding-left: 6px; transition: padding .2s, color .2s; }
.menu-secondary { padding: 16px 0 24px; }
.menu-secondary a { color: var(--cream); font-size: 17px; }
.mobile-menu .btn-block { margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 8vw, 120px) 0; position: relative; }
.navy { background: var(--navy-deep); }
.cream { background: var(--cream); color: var(--ink-body); }
.cream .eyebrow { color: var(--gold-dark); }
.cream .h1, .cream .h2, .cream .h3 { color: var(--ink); }
.cream .lede { color: var(--ink-body); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > :last-child { max-width: 590px; justify-self: end; }
.split .eyebrow + .h2 { margin-top: 20px; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Home hero slider ---------- */
.hero { position: relative; min-height: 900px; overflow: hidden; background: var(--navy); }
.hero-compass { position: absolute; right: calc(50% - 720px + 44px); top: 140px; width: 660px; aspect-ratio: 1; pointer-events: none; }
.compass { width: 100%; height: 100%; overflow: visible; }
.compass .c-star { transform-box: view-box; transform-origin: 1070px 470px; transform: rotate(var(--bearing, 0deg)); transition: transform 1.4s cubic-bezier(.65,.05,.25,1); }
.hero-slides { position: relative; padding-top: 368px; padding-bottom: 72px; }
.hero-slide { max-width: 600px; }
.hero-stack { display: grid; }
.hero-slide { grid-area: 1 / 1; }
.hero-slide[hidden] { display: block; visibility: hidden; }
.hero-slide .h1 { margin: 26px 0 30px; }
.hero-slide .h1 .gold { display: block; }
.hero-slide .lede { max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 44px; }
.hero-actions .btn-icon svg { width: 36px; height: 30px; }

.js .hero-slide.is-entering > * { animation: slideIn .8s var(--ease) both; }
.js .hero-slide.is-entering > :nth-child(2) { animation-delay: .08s; }
.js .hero-slide.is-entering > :nth-child(3) { animation-delay: .16s; }
.js .hero-slide.is-entering > :nth-child(4) { animation-delay: .24s; }
@keyframes slideIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-controls { display: flex; align-items: center; gap: 18px; margin-top: 56px; }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  position: relative; width: 56px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-align: left;
}
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; bottom: 6px; height: 2px; width: 100%; background: var(--line); }
.hero-dot::after { background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero-dot[aria-current="true"] { color: var(--gold); }
.hero-dot[aria-current="true"]::after { transform: scaleX(1); }
.hero.is-playing .hero-dot[aria-current="true"]::after { animation: dotfill var(--slide-ms, 7000ms) linear both; }
.hero-dot:hover { color: var(--cream); }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-pause {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--gold); cursor: pointer; transition: border-color .2s, color .2s;
}
.hero-pause:hover { border-color: var(--gold); color: var(--cream); }

/* skyline band + audience routes */
.skyline-band { position: relative; background: var(--navy-deep); }
.skyline-band::before, .skyline-band::after { content: ""; position: absolute; top: 0; width: 26px; height: 26px; border-top: 2px solid var(--gold); }
.skyline-band::before { left: 0; border-left: 2px solid var(--gold); }
.skyline-band::after { right: 0; border-right: 2px solid var(--gold); }
.skyline { color: var(--gold-light); opacity: .55; padding-top: 30px; overflow: hidden; }
.skyline svg { width: 100%; height: auto; }
.audience { border-top: 1px solid var(--line); }
.audience ul { display: grid; grid-template-columns: 400px 400px 1fr; }
.audience li + li { border-left: 1px solid var(--line); }
.audience a {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; height: 100%;
  padding: 38px 32px 56px; text-decoration: none; transition: background-color .3s var(--ease);
}
.audience li:first-child a { padding-left: 0; }
.audience strong { display: block; color: var(--cream); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; transition: color .25s; }
.audience span { font-size: 15px; line-height: 1.5; }
.audience svg { flex: none; color: var(--gold); width: 34px; height: 34px; transition: transform .35s var(--ease); }
.audience a:hover strong { color: var(--gold); }
.audience a:hover svg { transform: translateY(-4px); }
.audience a:hover { background: rgba(19,46,74,.45); }
.audience-wrap { position: relative; }
.audience-wrap::before { content: ""; position: absolute; inset: 0 auto 0 -100vw; width: 100vw; }

/* About + line drawing */
.about { padding-bottom: 0; overflow: hidden; }
.about .split { align-items: start; }
.about .prose { padding-top: 40px; }
.about .text-link { margin-top: 28px; }
.about-drawing { color: var(--gold-light); margin-top: -40px; }
.about-drawing svg { width: 100%; height: auto; overflow: visible; }
.draw-path { fill: currentColor; }
.js .about-drawing .draw-path { fill: transparent; stroke: currentColor; stroke-width: .7; }
.js .about-drawing.is-drawn .draw-path { transition: stroke-dashoffset 3.2s cubic-bezier(.45,.05,.3,1), fill .9s ease 2.6s, stroke-opacity .6s ease 3.1s; stroke-dashoffset: 0 !important; fill: currentColor; stroke-opacity: 0; }

/* Bearing cards */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.services-head p:last-child { max-width: 384px; justify-self: end; font-size: 17px; }
.bearing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.bearing-card {
  position: relative; display: flex; flex-direction: column; min-height: 470px; padding: 28px 28px 30px; border-radius: var(--radius);
  background: var(--gold-card); color: var(--ink);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.bearing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(0,0,0,.7); background: #e2cb90; }
.bearing-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .22em; }
.bearing-icon { color: var(--ink); transition: transform .6s var(--ease); }
.bearing-card:hover .bearing-icon { transform: rotate(360deg); }
.bearing-card h3 { margin-top: 48px; min-height: 52px; font-size: 21px; line-height: 1.2; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.bearing-card h3 a { text-decoration: none; }
.bearing-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* whole card clickable */
.bearing-card ul { margin-top: 24px; padding-top: 16px; border-top: 2px solid var(--gold); position: relative; z-index: 1; }
.bearing-card li a { display: inline-block; padding: 2px 0; font-size: 15px; line-height: 1.5; text-decoration: none; background: linear-gradient(currentColor,currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s; }
.bearing-card li a:hover { background-size: 100% 1px; }
.bearing-card .explore { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.bearing-card .explore svg { transition: transform .3s var(--ease); }
.bearing-card:hover .explore svg { transform: translateX(6px); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 120px; padding-top: 88px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(52px, 5vw, 72px); line-height: 1; color: var(--gold); font-weight: 700; }
.stat span { display: block; margin-top: 20px; font-size: 15px; line-height: 1.4; }

/* AI trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 80px; }
.trio > div { border-top: 1px solid var(--line); padding-top: 32px; }
.trio .h3 a { text-decoration: none; transition: color .2s; }
.trio .h3 a:hover { color: var(--gold); }
.trio p { font-size: 16px; line-height: 1.6; margin-top: 6px; }
.slash-list { margin-top: 24px; }
.slash-list li { display: flex; gap: 12px; align-items: baseline; color: var(--cream); font-size: 15.5px; line-height: 1.5; padding: 5px 0; }
.slash-list .slash { color: var(--gold); flex: none; transform: translateY(1px); }
.ai .text-link { margin-top: 48px; }

/* Founder */
.founder { display: grid; grid-template-columns: 630px 1fr; background: var(--navy-panel); }
.founder-body { padding: 110px var(--gutter) 110px 100px; max-width: 700px; }
.founder-body .h2 { margin: 18px 0 16px; }
.creds { color: var(--gold-light); font-weight: 700; font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.founder-body .eyebrow.loc { margin: 20px 0 30px; }
.founder .ph { min-height: 640px; }

/* Network */
.network-top { display: grid; grid-template-columns: 1fr 588px; gap: 48px; }
.network-top .ph { min-height: 196px; }
.regions { display: grid; grid-template-columns: 180px 384px 384px 180px; justify-content: space-between; gap: 24px; margin-top: 64px; }
.region { border-top: 1px solid var(--ink); padding-top: 22px; }
.region ul { columns: 2; column-gap: 24px; margin-top: 18px; }
.region.single ul { columns: 1; }
.region li { color: var(--ink); font-size: 17px; line-height: 1.88; break-inside: avoid; }

.on-navy .region { border-top-color: var(--line); }
.on-navy .region li { color: var(--cream); }
.founder-body.prose p + p { margin-top: 14px; }
.founder-body.prose .creds + p { margin-top: 8px; }

/* Contact band */
.cta-band { background: var(--navy-band); padding: 110px 0 145px; }
.cta-grid { display: grid; grid-template-columns: 1fr 384px; gap: 48px; align-items: center; }
.cta-band .h2 { margin: 20px 0 22px; }
.cta-band .lede { max-width: 580px; margin-bottom: 36px; }
.contact-list div { padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.contact-list dd a { color: var(--cream); font-size: 20px; text-decoration: none; background: linear-gradient(var(--gold),var(--gold)) left bottom / 0 1px no-repeat; transition: color .2s, background-size .3s var(--ease); overflow-wrap: anywhere; }
.contact-list dd a:hover { color: var(--gold-light); background-size: 100% 1px; }

/* Footer */
.site-footer { background: var(--navy-foot); padding: 60px 0 40px; font-size: 15px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand img:first-child { width: 46px; height: 46px; }
.footer-brand:hover { opacity: .85; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 20px; }
.footer-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.footer-head-link { color: var(--gold); text-decoration: none; padding: 6px 0; }
.footer-head-link:hover { color: var(--gold-light); }
.footer-toggle { display: none; }
.footer-col ul { margin-top: 12px; }
.footer-col li a { display: inline-block; padding: 3px 0; color: var(--muted); text-decoration: none; line-height: 1.6; transition: color .2s, transform .2s; }
.footer-col li a:hover { color: var(--gold-light); transform: translateX(3px); }
.footer-base { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-base a { color: var(--muted); text-decoration: none; }
.footer-base a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 4px; }
.social a { color: var(--gold-light); }

/* ---------- Photography placeholders ---------- */
.ph {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; overflow: hidden;
  background: #0b2238 repeating-linear-gradient(-45deg, transparent 0 14px, rgba(34,64,95,.55) 14px 15.5px);
  color: rgba(218,193,129,.6);
}
.ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(3,15,27,.9)); }
.ph-corners::before, .ph-corners::after { content: ""; position: absolute; top: 0; width: 26px; height: 26px; border-top: 2px solid var(--gold); z-index: 1; }
.ph-corners::before { left: 0; border-left: 2px solid var(--gold); }
.ph-corners::after { right: 0; border-right: 2px solid var(--gold); }
.ph figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-size: 12.5px; line-height: 1.5; color: var(--cream); }
.ph figcaption .eyebrow { display: block; font-size: 10.5px; letter-spacing: .17em; margin-bottom: 4px; }
.media { position: relative; margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page hero (service template, animated) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); padding: 275px 0 36px; }
.page-hero-compass { position: absolute; top: 40px; right: calc(50% - 720px - 170px); width: 640px; aspect-ratio: 1; pointer-events: none; }
.page-hero-compass .compass { opacity: .95; }
.page-hero-inner { position: relative; }
.page-hero .h1 { margin: 12px 0 22px; max-width: 760px; }
.page-hero .lede { max-width: 700px; font-size: 20px; }
.page-hero .btn { margin-top: 40px; }
.breadcrumb { margin-top: 44px; font-size: 14px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }
.breadcrumb a, .breadcrumb span { color: var(--cream); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* hero animation (pure CSS, runs on load): compass swings to the page's bearing, arcs draw, copy rises */
.page-hero .c-star { animation: starIn 1.8s cubic-bezier(.2,.8,.2,1) .15s both; }
.page-hero .c-arcs path { stroke-dasharray: 1; animation: arcDraw 1.4s var(--ease) .55s both; }
.page-hero .c-ring { animation: fadeIn 1.2s ease .3s both; }
.page-hero .hero-anim { animation: riseIn .9s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 250ms); }
.page-hero .page-title.hero-anim { animation: none; }
.page-hero .page-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero .page-title .line > span { display: inline-block; animation: lineUp 1s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes starIn { from { transform: rotate(calc(var(--bearing) - 120deg)) scale(.82); opacity: 0; } to { transform: rotate(var(--bearing)) scale(1); opacity: 1; } }
@keyframes arcDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Service body ---------- */
.svc-body { padding: 96px 0 120px; }
.svc-grid { display: grid; grid-template-columns: 258px 1fr; gap: 150px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc-desktop .eyebrow { padding-bottom: 16px; border-bottom: 1px solid var(--line-cream); }
.toc ul { margin-top: 12px; }
.toc a { display: block; position: relative; padding: 9px 0 9px 18px; font-size: 16px; line-height: 1.4; color: var(--ink-body); text-decoration: none; transition: color .2s, padding .2s; }
.toc a::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .25s var(--ease); }
.toc a:hover { color: var(--ink); padding-left: 22px; }
.toc a.is-active, .toc a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.toc a.is-active::before, .toc a[aria-current="true"]::before { transform: scaleY(1); }
.toc-mobile { display: none; }

.svc-content > section + section { margin-top: 96px; }
.svc-content .h2 { margin-top: 20px; max-width: 560px; font-size: clamp(26px, 2.5vw, 34px); }
.svc-content .intro { margin-top: 24px; max-width: 720px; font-size: 18px; }
.point-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 48px; }
.point { display: flex; gap: 14px; padding: 34px 0 44px; border-top: 1px solid var(--line-cream); }
.point .slash { flex: none; margin-top: 8px; color: var(--gold-dark); }
.point-title { font-size: 19px; line-height: 1.35; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.point p { font-size: 16px; line-height: 1.72; }
.mini-list { margin-top: 12px; padding: 0; list-style: none; }
.mini-list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.6; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--gold-dark); }
.value-list { margin-top: 48px; border-bottom: 1px solid var(--line-cream); }
.value-list li { display: flex; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line-cream); font-size: 17px; line-height: 1.5; color: var(--ink-body); }
.value-list .slash { flex: none; color: var(--gold-dark); transform: translateY(1px); }
.value-list strong { color: var(--ink); }
.value-list--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-bottom: 0; }
.value-list--cols li { border-bottom: 0; }
.callout { margin-top: 40px; padding: 28px 32px; border-left: 3px solid var(--gold); background: rgba(218,193,130,.25); }
.callout h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }

.ph-band { min-height: 380px; }

/* Related / service cards */
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.related-head .h2 { margin-top: 18px; }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 200px; padding: 36px 28px 30px; border-radius: var(--radius);
  background: var(--gold-card); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.svc-card-title { font-size: 15px; letter-spacing: .02em; line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.svc-card p { font-size: 15px; line-height: 1.5; margin-top: 6px; }
.svc-card-rule { display: block; height: 1px; margin-top: auto; background: var(--gold); transform-origin: left; transition: transform .4s var(--ease); }
.svc-card-arrow { position: absolute; right: 26px; bottom: 26px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease); }
.svc-card:hover { transform: translateY(-6px); background: #e2cb90; box-shadow: 0 24px 40px -22px rgba(0,0,0,.7); }
.svc-card:hover .svc-card-rule { transform: scaleX(.8); }
.svc-card:hover .svc-card-arrow { opacity: 1; transform: none; }

/* Category page intro */
.cat-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--gold-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: #fffaf0; border: 1px solid #b9a984; border-radius: 4px; color: var(--ink); font-size: 17px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold-dark); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(202,153,60,.45); }
.field [aria-invalid="true"] { border-color: var(--error-cream); box-shadow: 0 0 0 1px var(--error-cream); }
.field-error { color: var(--error-cream); font-size: 15px; font-weight: 700; line-height: 1.4; }
.field-error:empty { display: none; }
.field-hint { font-size: 14px; color: var(--ink-body); line-height: 1.4; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink-body); }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--ink); flex: none; }
.captcha { padding: 20px; background: rgba(218,193,130,.3); border-radius: 4px; }
.captcha input { max-width: 160px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.error-summary { padding: 20px 24px; margin-bottom: 32px; border: 2px solid var(--error-cream); border-radius: 4px; background: #fff3ef; color: var(--ink); }
.error-summary h2 { font-size: 18px; margin-bottom: 8px; }
.error-summary a { color: var(--error-cream); font-weight: 700; }
.success { padding: 28px 32px; border-left: 3px solid var(--gold); background: rgba(218,193,130,.3); color: var(--ink); }
.success h2 { font-size: 22px; margin-bottom: 8px; }
.form-note { font-size: 14px; margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: 1fr 384px; gap: 96px; align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); background: var(--navy-band); color: var(--muted); padding: 36px 32px; border-radius: var(--radius); }
.contact-aside .eyebrow { color: var(--gold); }
.contact-aside p { font-size: 16px; margin-top: 12px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; font-size: 17px; }
.legal h2 { font-size: 22px; color: var(--ink); text-transform: uppercase; line-height: 1.3; margin: 48px 0 12px; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 18px; color: var(--ink); margin: 24px 0 8px; }
.legal p, .legal ul, .legal table { margin-bottom: 14px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 14px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-cream); vertical-align: top; }
.legal th { color: var(--ink); }
.legal .updated { font-size: 14px; color: var(--ink-body); }
.todo { background: #ffe8a3; color: #3a2a00; padding: 0 4px; border-radius: 2px; }

/* 404 */
.not-found { min-height: 70vh; }

/* ---------- Scroll reveal (subtle, used sparingly) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1320px) {
  .hero-compass { right: -40px; width: 560px; top: 180px; }
  .founder { grid-template-columns: 45% 1fr; }
  .founder-body { padding-left: 64px; }
  .regions { grid-template-columns: 1fr 2fr 2fr 1fr; }
  .svc-grid { gap: 80px; }
}

@media (max-width: 1120px) {
  :root { --header-h: 68px; }
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-inner { align-items: center; padding-top: 12px; padding-bottom: 12px; }
  .brand { margin-left: 0; }
  .brand-stacked { display: none; }
  .brand-lockup { display: flex; }
  .site-header { background: rgba(5,22,38,.0); }
  .site-header.is-stuck { background: rgba(5,22,38,.94); }

  .hero { min-height: 0; }
  .hero-compass { top: 90px; right: -140px; width: 520px; opacity: .55; }
  .hero-slides { padding-top: 240px; }
  .page-hero { padding-top: 160px; }
  .page-hero-compass { right: -200px; top: 60px; width: 520px; opacity: .45; }

  .bearing-cards, .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .bearing-card { min-height: 0; }
  .bearing-card h3 { margin-top: 36px; min-height: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 56px; margin-top: 80px; padding-top: 64px; }
  .trio { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .founder { grid-template-columns: 1fr; }
  .founder .ph { min-height: 420px; }
  .founder-body { padding: 72px var(--gutter); max-width: none; }
  .network-top { grid-template-columns: 1fr; }
  .regions { grid-template-columns: 1fr 1fr; }
  .cta-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-aside { position: static; }
  .svc-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; margin-bottom: 48px; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; background: var(--cream); border: 1px solid var(--ink); border-radius: 4px; }
  .toc-mobile summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile[open] summary svg { transform: rotate(180deg); }
  .toc-mobile ul { margin: 0; padding: 0 18px 12px; border-top: 1px solid var(--line-cream); }
  .audience ul { grid-template-columns: 1fr; }
  .audience li + li { border-left: 0; border-top: 1px solid var(--line); }
  .audience a, .audience li:first-child a { padding: 24px 0; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .split, .services-head, .cat-intro { grid-template-columns: 1fr; gap: 20px; }
  .split > :last-child, .services-head p:last-child { justify-self: start; }
  .about .prose { padding-top: 8px; }
  .about-drawing { margin: 32px 0 0; width: 240%; max-width: none; }
  .hero-compass { top: 64px; right: -170px; width: 440px; opacity: .5; }
  .hero-slides { padding-top: 330px; padding-bottom: 48px; }
  .hero-slide .h1 { margin: 16px 0 20px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .btn { width: 100%; }
  .hero-controls { margin-top: 40px; }
  .hero-dot { width: 44px; }
  .skyline { padding-top: 12px; }
  .skyline svg { width: 130%; max-width: none; margin-left: -15%; }
  .text-link { font-size: 13px; letter-spacing: .1em; }
  .br-d { display: none; }
  .svc-card { min-height: 0; padding: 26px 24px 24px; }
  .svc-card-rule { margin-top: 24px; }
  .svc-card-arrow { opacity: 1; transform: none; bottom: 18px; }
  .contact-form .btn { width: 100%; }
  .how-prose { padding-top: 0 !important; }
  .bearing-cards, .svc-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .bearing-card h3 { margin-top: 24px; }
  .stats { gap: 40px 20px; }
  .regions { grid-template-columns: 1fr; gap: 28px; }
  .region.single ul, .region ul { columns: 2; }
  .page-hero { padding-top: 120px; }
  .page-hero-compass { top: 40px; right: -230px; width: 440px; opacity: .22; }
  .page-hero .lede { font-size: 18px; }
  .page-hero .btn { width: 100%; }
  .breadcrumb { margin-top: 28px; }
  .point-grid, .value-list--cols, .form-grid { grid-template-columns: 1fr; }
  .point { padding: 28px 0 32px; }
  .svc-body { padding: 56px 0 80px; }
  .svc-content > section + section { margin-top: 72px; }
  .ph-band { min-height: 280px; }
  .founder .ph { min-height: 340px; }
  .cta-band { padding: 80px 0 96px; }
  .cta-band .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .footer-col { border-top: 1px solid var(--line); }
  .footer-head { min-height: 52px; }
  .footer-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; color: var(--gold); cursor: pointer; }
  .footer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .js .footer-col ul { display: none; margin: 0 0 16px; }
  .js .footer-col.is-open ul { display: block; }
  .footer-base { flex-direction: column-reverse; }
  .contact-list dd a { font-size: 18px; }
}

@media (max-width: 400px) {
  .brand-lockup img:last-child { width: 124px; }
  .menu-toggle-label { font-size: 12px; }
}

/* Reduced motion: keep everything visible, no movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* Print */
@media print {
  .site-header, .mobile-menu, .hero-controls, .cta-band .btn, .toc, .ph, .skyline-band { display: none !important; }
  body { background: #fff; color: #000; }
  .navy, .cream, .founder, .cta-band, .site-footer, .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .h1, .h2, .h3 { color: #000 !important; }
}
.svc-grid > *, .contact-grid > *, .split > *, .cta-grid > * { min-width: 0; }
