/* ============================================================
   ADAMJEE AUDITORS — Design System
   "Drama in the dark, rigor in the light."
   Fraunces (display serif) + Inter (text) · Midnight & Champagne
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks → ~0 CLS on swap */
@font-face {
  font-family: 'Fraunces-fallback';
  src: local('Georgia');
  ascent-override: 97%; descent-override: 25%; line-gap-override: 0%; size-adjust: 102%;
}
@font-face {
  font-family: 'Inter-fallback';
  src: local('Arial');
  ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; size-adjust: 107%;
}

/* ---------- Tokens ---------- */
:root {
  /* color */
  --midnight: #0A1220;
  --midnight-2: #111F33;
  --ivory: #F4EFE6;
  --slate-mist: #9AA6B8;
  --paper: #F7F4EE;
  --sand: #EDE7DA;
  --white: #FFFFFF;
  --ink: #101820;
  --ink-muted: #5C6470;
  --gold: #D9B36A;
  --gold-deep: #7E621C;
  --hair-dark: rgba(217, 179, 106, 0.32);
  --hair-light: rgba(126, 98, 28, 0.35);
  --error: #B4232A;

  /* type */
  --serif: 'Fraunces', 'Fraunces-fallback', Georgia, serif;
  --sans: 'Inter', 'Inter-fallback', -apple-system, Arial, sans-serif;
  --fs-display: clamp(2.75rem, 1.43rem + 5.63vw, 6.5rem);
  --fs-h1: clamp(2.5rem, 1.80rem + 3.00vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.39rem + 2.07vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 1.28rem + 0.94vw, 2.125rem);
  --fs-h4: clamp(1.2rem, 1.10rem + 0.38vw, 1.44rem);
  --fs-lede: clamp(1.125rem, 1.06rem + 0.28vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --fs-caption: clamp(0.75rem, 0.73rem + 0.09vw, 0.8125rem);
  --fs-stat: clamp(2.5rem, 1.53rem + 4.13vw, 5.25rem);

  /* layout */
  --container: 1240px;
  --container-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 16px;
  --nav-h: 76px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.8s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: var(--midnight); }

h1, h2, h3 { font-family: var(--serif); font-weight: 420; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 520; letter-spacing: -0.005em; }
h4 { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.25; font-weight: 560; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }
[data-theme="dark"] :focus-visible, .theme-dark :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--midnight); padding: 10px 18px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Scene theming ---------- */
.scene { position: relative; }
.scene-dark { background: var(--midnight); color: var(--ivory); }
.scene-dark .muted { color: var(--slate-mist); }
.scene-light { background: var(--paper); color: var(--ink); }
.scene-light .muted, p.muted { color: var(--ink-muted); }
.scene-sand { background: var(--sand); color: var(--ink); }

/* film grain on dark scenes */
.grain::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- Layout utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-pad); position: relative; }
.section-tight { padding-block: clamp(3rem, 7vw, 5.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: var(--fs-caption); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold-deep); margin-bottom: 1.4rem;
}
.scene-dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: 0.75; flex: none;
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out) 0.1s; }
.eyebrow.in-view::before, .no-js .eyebrow::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .eyebrow::before { transform: scaleX(1); } }

/* head row: title + side link on one baseline */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; max-width: none; }
.sm-hide { display: inline; }
@media (max-width: 680px) { .sm-hide { display: none; } }

.gold-rule { width: 100%; height: 1px; background: var(--hair-light); border: 0; }
.scene-dark .gold-rule { background: var(--hair-dark); }

.lede { font-size: var(--fs-lede); line-height: 1.55; max-width: 46ch; }
.measure { max-width: 66ch; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3-1024 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 16px 30px; border-radius: 999px; transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform 0.3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--midnight); overflow: hidden; }
.btn-gold:hover { background: #E3C282; }
.btn-gold::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg); transition: left 0.7s var(--ease-out); pointer-events: none;
}
.btn-gold:hover::before { left: 130%; }
.btn-ghost { border: 1px solid var(--hair-dark); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.scene-light .btn-ghost, .scene-sand .btn-ghost { border-color: rgba(16, 24, 32, 0.25); color: var(--ink); }
.scene-light .btn-ghost:hover, .scene-sand .btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold-deep);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left calc(100% - 1px);
  transition: background-size 0.4s var(--ease-out);
  padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 1px; }
.scene-dark .text-link { color: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: transform 0.45s var(--ease-out), background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid {
  background: rgba(17, 31, 51, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hair-dark);
}
.nav-inner {
  width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 46px; width: auto; }
.nav-menu { display: none; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 0.92rem; font-weight: 500; color: var(--ivory);
  border-radius: 8px; transition: color 0.25s;
  letter-spacing: 0.01em;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li > a[aria-current="page"] { color: var(--gold); }
.nav-menu .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; }
.nav-item-services[aria-expanded="true"] .caret { transform: rotate(225deg) translateY(-1px); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(720px, 92vw);
  background: var(--midnight-2);
  border: 1px solid var(--hair-dark); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  box-shadow: 0 30px 80px rgba(4, 8, 16, 0.55);
}
.nav-item-services:hover .mega, .nav-item-services:focus-within .mega, .mega.is-open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-list a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 8px;
  color: var(--ivory); font-size: 0.95rem; transition: background 0.2s, color 0.2s;
}
.mega-list a:hover { background: rgba(217, 179, 106, 0.08); color: var(--gold); }
.mega-list .num { font-family: var(--serif); font-size: 0.8rem; color: var(--gold); opacity: 0.85; }
.mega-side { border-left: 1px solid var(--hair-dark); padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.mega-side .eyebrow { margin-bottom: 2px; }
.mega-side p { font-size: 0.9rem; color: var(--slate-mist); line-height: 1.55; }

.nav-cta { display: none; }
.nav-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; align-items: center; border-radius: 10px;
}
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ivory); transition: transform 0.35s var(--ease-out), opacity 0.25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 1100px) {
  .nav-menu { display: flex; }
  .nav-cta { display: inline-flex; padding: 12px 24px; }
  .nav-burger { display: none; }
}

/* mobile overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--midnight);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav a, .mobile-menu nav button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font-family: var(--serif); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 420;
  color: var(--ivory); padding: 12px 0; border-bottom: 1px solid rgba(217, 179, 106, 0.14);
  text-align: left;
}
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-sub { display: none; padding: 6px 0 14px; }
.mobile-sub.is-open { display: block; }
.mobile-sub a { font-family: var(--sans) !important; font-size: 1rem !important; font-weight: 500;
  color: var(--slate-mist) !important; border-bottom: 0 !important; padding: 9px 0 9px 18px !important; }
.mobile-sub a:hover { color: var(--gold) !important; }
.mobile-menu-foot { margin-top: 40px; color: var(--slate-mist); font-size: 0.9rem; line-height: 1.7; }
.mobile-menu-foot a { color: var(--ivory); }

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  min-height: 100vh;  /* fallback for browsers without svh (Chrome <108, Safari <15.4) */
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.15) 40%, rgba(10, 18, 32, 0.88) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(10, 18, 32, 0.65) 0%, transparent 60%);
}
.hero-glow {
  position: absolute; z-index: -1; inset: auto -20% -40% -20%; height: 90%;
  background: radial-gradient(50% 55% at 50% 70%, rgba(217, 179, 106, 0.16) 0%, transparent 70%);
  animation: glowPulse 12s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
#dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.hero .display { font-family: var(--serif); font-size: var(--fs-display); line-height: 1.02; font-weight: 400; max-width: 12ch; }
.hero-sub { margin-top: 1.6rem; font-size: var(--fs-lede); color: var(--slate-mist); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-foot {
  position: relative; z-index: 2; border-top: 1px solid var(--hair-dark);
  padding: 18px 0 22px;
}
.hero-foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero-affil { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; font-size: var(--fs-caption); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-mist); }
.hero-affil span { white-space: nowrap; }
@media (max-width: 680px) {
  .hero-affil { display: none; }
  .hero-foot-inner { justify-content: center; }
}
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-caption); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-mist); }
.scroll-cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: cueDrop 2.2s var(--ease-out) infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 46% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (interior, dark, compact) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + clamp(4rem, 10vh, 7rem)) 0 clamp(3.5rem, 8vh, 5.5rem);
  min-height: 62vh; display: flex; align-items: flex-end;
}
.page-hero .hero-media img { opacity: 0.5; }
.page-hero .breadcrumb { margin-bottom: 1.6rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-caption); letter-spacing: 0.06em; color: var(--slate-mist); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 1.3rem; color: var(--slate-mist); }

/* ---------- Stats (Counting House) ---------- */
.stats { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { position: relative; padding-top: 1.4rem; }
.stat::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--hair-dark); transform-origin: left; }
.scene-light .stat::before, .scene-sand .stat::before { background: var(--hair-light); }
.stat-num {
  font-family: var(--serif); font-weight: 340; font-size: var(--fs-stat); line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums lining-nums;
}
.scene-light .stat-num, .scene-sand .stat-num { color: var(--gold-deep); }
.stat-label { margin-top: 0.6rem; font-size: 0.95rem; color: var(--slate-mist); }
.scene-light .stat-label, .scene-sand .stat-label { color: var(--ink-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--hair-light); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.scene-dark .card { background: var(--midnight-2); border-color: var(--hair-dark); }
.scene-dark .card:hover { border-color: var(--gold); }
.scene-sand .card { background: var(--white); }
.card h3, .card h4 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-muted); font-size: 0.98rem; }
.scene-dark .card p { color: var(--slate-mist); }
.card .num {
  font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--gold-deep);
  display: block; margin-bottom: 1.1rem; letter-spacing: 0.04em;
}
.scene-dark .card .num { color: var(--gold); }

/* service dossier cards */
.dossier-track { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 720px) { .dossier-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .dossier-track { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  background: var(--white); border: 1px solid var(--hair-light); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.45s var(--ease-out), border-color 0.3s;
}
.svc-card:hover { transform: translateY(-5px); border-color: var(--gold-deep); }
.svc-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.svc-card:hover .svc-card-img img { transform: scale(1.06); }
.svc-card-body { padding: clamp(1.4rem, 2.5vw, 1.9rem); display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.svc-card-body .num { font-family: var(--serif); color: var(--gold-deep); font-size: 0.95rem; }
.svc-card-body h3 { font-size: var(--fs-h4); }
.svc-card-body p { color: var(--ink-muted); font-size: 0.95rem; flex: 1; }
.svc-card-body .text-link { font-size: 0.92rem; margin-top: 0.7rem; }

/* insight cards */
.insight-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--hair-light); transition: transform 0.45s var(--ease-out), border-color 0.3s; }
.insight-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.insight-card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.insight-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.insight-card:hover .insight-card-img img { transform: scale(1.05); }
.insight-card-body { padding: clamp(1.3rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.chip {
  display: inline-flex; align-items: center; align-self: flex-start; gap: 6px;
  font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid var(--hair-light); border-radius: 999px; padding: 5px 12px;
}
.scene-dark .chip { color: var(--gold); border-color: var(--hair-dark); }
.insight-card-body h3 { font-size: var(--fs-h4); }
.insight-card-body h3 a:hover { color: var(--gold-deep); }
.insight-meta { font-size: var(--fs-caption); color: var(--ink-muted); letter-spacing: 0.05em; }

/* team cards */
.team-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { text-align: left; }
.team-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--midnight-2); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(0.22) saturate(0.9) brightness(0.94); transition: filter 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.team-card:hover .team-photo img { filter: none; transform: scale(1.03); }
.team-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,32,0.06), rgba(10,18,32,0.28)); mix-blend-mode: multiply; opacity: 1; transition: opacity 0.55s; }
.team-card:hover .team-photo::after { opacity: 0; }
.team-card h3 { font-size: var(--fs-h4); margin-top: 1.1rem; }
.team-role { color: var(--ink-muted); font-size: 0.95rem; }
.team-creds { color: var(--gold-deep); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.08em; margin-top: 4px; }
.team-bio-toggle { margin-top: 0.8rem; }
.team-bio { display: none; margin-top: 0.9rem; color: var(--ink-muted); font-size: 0.95rem; }
.team-bio.is-open { display: block; }
.team-links { margin-top: 0.6rem; }
.team-links a { font-size: 0.9rem; font-weight: 600; color: var(--gold-deep); }
.team-links a:hover { text-decoration: underline; }

/* ---------- Aperture image reveal ---------- */
.aperture { overflow: hidden; border-radius: var(--radius); }
.aperture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split sections ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.split-40-60 { grid-template-columns: 2fr 3fr; } .split-rev > :first-child { order: 2; } }
.sticky-col { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }

/* ---------- Ordinal proof list ---------- */
.proof-list { display: grid; gap: 0; }
.proof-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: clamp(1.4rem, 3vw, 2rem) 0; border-top: 1px solid var(--hair-light); }
.scene-dark .proof-item { border-top-color: var(--hair-dark); }
.proof-item:last-child { border-bottom: 1px solid var(--hair-light); }
.scene-dark .proof-item:last-child { border-bottom-color: var(--hair-dark); }
.proof-num { font-family: var(--serif); font-size: 1.35rem; color: var(--gold-deep); font-weight: 340; }
.scene-dark .proof-num { color: var(--gold); }
.proof-item h3 { font-size: var(--fs-h4); margin-bottom: 0.4rem; }
.proof-item p { color: var(--ink-muted); font-size: 0.98rem; max-width: 60ch; }
.scene-dark .proof-item p { color: var(--slate-mist); }

/* ---------- Sector chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .chip { font-size: 0.85rem; text-transform: none; letter-spacing: 0.02em; font-weight: 500; color: var(--ink); padding: 9px 18px; }
.scene-dark .chips .chip { color: var(--ivory); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; position: relative; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: clamp(3rem, 7vw, 5.5rem); width: max-content; align-items: center; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.marquee-item img { height: 44px; width: auto; opacity: 0.85; }
.marquee-item span { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--hair-light); }
.acc-item { border-bottom: 1px solid var(--hair-light); }
.acc-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  text-align: left; padding: clamp(1.1rem, 2.4vw, 1.5rem) 4px;
  font-family: var(--serif); font-size: var(--fs-h4); font-weight: 520; line-height: 1.3;
}
.acc-q:hover { color: var(--gold-deep); }
.acc-icon { flex: none; width: 30px; height: 30px; border: 1px solid var(--hair-light); border-radius: 50%; position: relative; transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.acc-icon::before, .acc-icon::after { content: ''; position: absolute; inset: 0; margin: auto; background: var(--gold-deep); }
.acc-icon::before { width: 12px; height: 1.5px; }
.acc-icon::after { width: 1.5px; height: 12px; transition: transform 0.35s var(--ease-out); }
.acc-item[data-open="true"] .acc-icon { transform: rotate(45deg); border-color: var(--gold-deep); }
.acc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.acc-item[data-open="true"] .acc-a { grid-template-rows: 1fr; }
.acc-a-inner { overflow: hidden; }
.acc-a-inner > div { padding: 0 4px clamp(1.2rem, 2.4vw, 1.6rem); color: var(--ink-muted); max-width: 72ch; }

/* ---------- Process timeline ---------- */
.process { display: grid; gap: clamp(1.5rem, 3vw, 2rem); counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: 1.5rem; }
.process-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair-light); }
.process-step::after {
  counter-increment: step; content: '0' counter(step);
  position: absolute; top: -0.75rem; left: 0; background: var(--paper); padding-right: 12px;
  font-family: var(--serif); color: var(--gold-deep); font-size: 1.1rem;
}
.scene-sand .process-step::after { background: var(--sand); }
.process-step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Awards timeline (Gold Thread) ---------- */
.timeline { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4rem); padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold-deep), var(--hair-light)); border-radius: 2px; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -31px; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold-deep); }
.tl-year { font-family: var(--serif); font-weight: 340; font-size: var(--fs-h2); color: var(--gold-deep); line-height: 1; }
.tl-item h3 { margin-top: 0.5rem; font-size: var(--fs-h3); }
.tl-who { font-size: var(--fs-caption); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-muted); margin-top: 0.4rem; }
.tl-item p { margin-top: 0.7rem; color: var(--ink-muted); max-width: 62ch; }
@media (min-width: 900px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 50%; transform: translateX(-50%); }
  .tl-item { width: calc(50% - 44px); }
  .tl-item:nth-child(odd) { margin-left: auto; }
  .tl-item:nth-child(odd)::before { left: -56px; }
  .tl-item:nth-child(even) { text-align: right; }
  .tl-item:nth-child(even)::before { left: auto; right: -56px; }
  .tl-item:nth-child(even) p { margin-left: auto; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; letter-spacing: 0.02em; }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--white); border: 1px solid rgba(16, 24, 32, 0.18); border-radius: 10px;
  padding: 13px 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(126, 98, 28, 0.14); }
.scene-dark .field label { color: var(--ivory); }
.scene-dark .field input, .scene-dark .field select, .scene-dark .field textarea {
  background: var(--midnight-2); color: var(--ivory); border-color: var(--hair-dark);
}
.scene-dark .field input:focus, .scene-dark .field select:focus, .scene-dark .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 179, 106, 0.15); }
.form-note { font-size: var(--fs-caption); color: var(--ink-muted); }
.scene-dark .form-note { color: var(--slate-mist); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.form-success { display: none; border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 22px; }
.form-success.is-visible { display: block; }
.form-success strong { font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Newsletter band ---------- */
.newsletter { border-top: 1px solid var(--hair-light); }
.newsletter-inner { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .newsletter-inner { grid-template-columns: 1.2fr 1fr; } }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 220px; font: inherit; font-size: 0.95rem; padding: 13px 16px; border: 1px solid rgba(16,24,32,0.18); border-radius: 999px; background: var(--white); }
.newsletter-form input:focus { outline: none; border-color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band .hero-media img { opacity: 0.42; }
.cta-band-inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.8rem); max-width: 22ch; margin-inline: auto; }
.cta-band .lede { margin: 1.2rem auto 0; color: var(--slate-mist); }
.cta-band .btn { margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: var(--ivory); border-top: 1px solid var(--hair-dark); }
.footer-main { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; } }
.footer-brand p { color: var(--slate-mist); font-size: 0.95rem; max-width: 38ch; margin-top: 1.2rem; }
.footer h4 { font-family: var(--sans); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--slate-mist); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-office p { color: var(--slate-mist); font-size: 0.95rem; line-height: 1.7; }
.footer-office a { color: var(--ivory); }
.footer-office a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 1.4rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--hair-dark); border-radius: 50%; color: var(--slate-mist);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-legal { border-top: 1px solid var(--hair-dark); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-size: var(--fs-caption); color: var(--slate-mist); }
.footer-legal a { color: var(--slate-mist); } .footer-legal a:hover { color: var(--gold); }

/* ---------- Article template ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 110; transform-origin: left; transform: scaleX(0); background: var(--gold); }
.article-body { max-width: 700px; margin-inline: auto; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: var(--fs-h3); margin-top: 2em; }
.article-body h3 { font-size: var(--fs-h4); margin-top: 1.8em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body ul { list-style: disc; } .article-body ol { list-style: decimal; }
.article-body li { margin-top: 0.5em; color: var(--ink); }
.article-body li::marker { color: var(--gold-deep); }
.article-body a { color: var(--gold-deep); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote { border-left: 2px solid var(--gold-deep); padding: 0.4em 0 0.4em 1.4em; font-family: var(--serif); font-style: italic; font-size: var(--fs-lede); color: var(--ink); }
.article-body strong { font-weight: 650; }
.takeaways { background: var(--sand); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.takeaways h3 { margin-top: 0 !important; margin-bottom: 0.8rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair-light); }
.article-body th { font-weight: 600; background: var(--sand); position: sticky; top: var(--nav-h); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-caption); color: var(--ink-muted); letter-spacing: 0.04em; }

/* ---------- Misc utilities ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mb-3 { margin-bottom: 3rem; }
.section-head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; color: var(--ink-muted); }
.scene-dark .section-head p { color: var(--slate-mist); }
.oversize { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.28; font-weight: 400; letter-spacing: -0.01em; max-width: 30ch; }
.review-band { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; justify-content: space-between; }
.stars { color: var(--gold-deep); letter-spacing: 4px; font-size: 1.1rem; }
.scene-dark .stars { color: var(--gold); }

/* far-section rendering hint */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair-dark);
  background: rgba(17, 31, 51, 0.85); color: var(--gold); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s var(--ease-out);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* map facade */
.map-facade { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--midnight-2); }
.map-facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.map-facade .btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Overture curtain — v2 (two panels + monogram sequence) */
.overture { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.overture-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--midnight); }
.overture-panel.top { top: 0; }
.overture-panel.bottom { bottom: 0; }
.overture-core {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px; z-index: 2;
}
.overture-core img { height: clamp(56px, 9vw, 84px); width: auto; }
.overture-word {
  font-family: var(--sans); font-weight: 700; color: var(--ivory);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem); letter-spacing: 0.34em; text-indent: 0.34em;
}
.overture-word span { display: inline-block; }
.overture-rule { width: min(260px, 56vw); height: 1px; background: var(--hair-dark); overflow: hidden; position: relative; }
.overture-rule::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.overture-tag {
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; color: var(--gold);
  letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase;
}
html.no-overture .overture { display: none; }

/* Brand lockup (nav + footer) */
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.12em; color: var(--ivory); }
.brand-sub { font-family: var(--sans); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.445em; color: var(--gold); text-transform: uppercase; }
.brand:hover .brand-sub { color: #E9CB8F; }
.footer .brand-mark { height: 52px; }
.footer .brand-name { font-size: 1.3rem; }
.footer .brand-sub { font-size: 0.74rem; letter-spacing: 0.45em; }

/* ---------- Value rows (Core Values, interactive) ---------- */
.value-row {
  position: relative; display: grid; grid-template-columns: minmax(72px, 120px) 1fr; gap: 18px;
  align-items: baseline; padding: clamp(1.5rem, 3.2vw, 2.2rem) clamp(0.6rem, 1.5vw, 1.2rem);
  border-top: 1px solid var(--hair-light); transition: background 0.4s, padding-left 0.45s var(--ease-out);
}
.value-row:last-child { border-bottom: 1px solid var(--hair-light); }
.value-num {
  font-family: var(--serif); font-weight: 320; font-size: clamp(1.8rem, 3.4vw, 3rem);
  color: rgba(126, 98, 28, 0.34); line-height: 1; transition: color 0.4s;
  font-variant-numeric: tabular-nums;
}
.value-row h3 { transition: transform 0.45s var(--ease-out); }
.value-row p { color: var(--ink-muted); max-width: 58ch; margin-top: 0.45rem; }
.value-row:hover { background: rgba(255, 255, 255, 0.55); padding-left: clamp(1.2rem, 2.5vw, 2rem); }
.value-row:hover .value-num { color: var(--gold-deep); }
.value-row::after {
  content: '→'; position: absolute; right: clamp(0.6rem, 2vw, 1.6rem); top: 50%;
  transform: translate(8px, -50%); opacity: 0; color: var(--gold-deep);
  transition: opacity 0.35s, transform 0.45s var(--ease-out); font-size: 1.2rem;
}
.value-row:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Document / profile cards ---------- */
.doc-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--hair-light); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.6vw, 1.8rem); transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.doc-card:hover { transform: translateY(-4px); border-color: var(--gold-deep); }
.doc-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  background: var(--midnight); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.doc-icon svg { width: 22px; height: 22px; }
.doc-card-body { flex: 1; }
.doc-card-body h3 { font-size: 1.08rem; }
.doc-card-body p { font-size: var(--fs-caption); color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.doc-arrow { flex: none; color: var(--gold-deep); transition: transform 0.35s var(--ease-out); }
.doc-card:hover .doc-arrow { transform: translateX(5px); }

/* ---------- Stats scene texture ---------- */
.stats-tex::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/plate-contour-640.webp') right center / contain no-repeat;
  opacity: 0.14; pointer-events: none; mix-blend-mode: screen;
}
.stats-tex > .container { position: relative; }

/* ---------- Page transitions ---------- */
.page-veil {
  position: fixed; inset: 0; z-index: 250; background: var(--midnight);
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.page-veil.is-active { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) {
  body:not(.no-enter) main { animation: pageEnter 0.7s var(--ease-out) both; }
}
@keyframes pageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Marquee logo treatment ---------- */
.marquee-item img { filter: grayscale(1); opacity: 0.62; transition: filter 0.35s, opacity 0.35s; }
.marquee-item:hover img { filter: none; opacity: 1; }

/* ---------- Mobile menu stagger ---------- */
.mobile-menu nav > a, .mobile-menu nav > button, .mobile-menu .mobile-menu-foot {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out);
}
.mobile-menu.is-open nav > a, .mobile-menu.is-open nav > button, .mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
.mobile-menu.is-open nav > *:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open nav > *:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open nav > *:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open nav > *:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open nav > *:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open nav > *:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.is-open nav > *:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.is-open nav > *:nth-child(8) { transition-delay: 0.4s; }
.mobile-menu.is-open nav > *:nth-child(9) { transition-delay: 0.45s; }
.mobile-menu.is-open nav > *:nth-child(10) { transition-delay: 0.5s; }
.mobile-menu.is-open .mobile-menu-foot { transition-delay: 0.55s; }

/* ---------- Alignment fixes ---------- */
.team-links { min-height: 1.7rem; }
.nav.is-solid { box-shadow: 0 12px 40px rgba(4, 8, 16, 0.35); }
.page-hero .hero-scrim {
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.62) 0%, rgba(10, 18, 32, 0.38) 45%, rgba(10, 18, 32, 0.82) 100%),
    radial-gradient(90% 60% at 18% 82%, rgba(10, 18, 32, 0.55) 0%, transparent 65%);
}
.acc-a-inner > div a { color: var(--gold-deep); font-weight: 600; }
.acc-a-inner > div a:hover { text-decoration: underline; }

/* ---------- Reveal defaults (JS adds motion; without JS everything is visible) ---------- */
.reveal, .masked-lines, [data-counter] { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .scroll-cue::after { animation: none; }
  .overture { display: none !important; }
}

/* ---------- About pillars + SFAI showcase ---------- */
.about-intro .about-photo { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); aspect-ratio: 3 / 2; }
.about-intro .about-photo img { height: 100%; }

.pillar { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: clamp(1.4rem, 2.8vw, 2rem) 0; border-top: 1px solid var(--hair-light); }
.pillar:first-child { padding-top: 0.4rem; border-top: 0; }
.pillar:last-child { border-bottom: 1px solid var(--hair-light); padding-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.pillar-num {
  font-family: var(--serif); font-style: italic; font-weight: 340;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1; color: var(--gold-deep);
  opacity: 0.85; transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.pillar h3 { font-size: var(--fs-h4); margin-bottom: 0.45rem; }
.pillar p { color: var(--ink-muted); font-size: 0.98rem; max-width: 56ch; }
.pillar:hover .pillar-num { opacity: 1; transform: translateX(6px); }
@media (max-width: 479px) { .pillar { grid-template-columns: 52px 1fr; gap: 14px; } }

.sfai-band {
  position: relative; overflow: hidden; margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-radius: var(--radius); background: var(--midnight); color: var(--ivory);
}
.sfai-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.sfai-band::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10, 18, 32, 0.94) 0%, rgba(10, 18, 32, 0.76) 55%, rgba(10, 18, 32, 0.38) 100%);
}
.sfai-band-inner { position: relative; z-index: 2; display: grid; gap: clamp(2rem, 4.5vw, 3.5rem); padding: clamp(2.2rem, 5vw, 4.2rem); align-items: center; }
@media (min-width: 960px) { .sfai-band-inner { grid-template-columns: minmax(260px, 360px) 1fr; } }
.sfai-plaque {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(1.8rem, 3.2vw, 2.6rem) clamp(1.6rem, 3vw, 2.4rem);
  display: grid; justify-items: center; gap: 1.2rem;
  box-shadow: 0 34px 70px rgba(4, 8, 16, 0.5);
}
.sfai-plaque img { width: min(100%, 290px); height: auto; }
.sfai-plaque-tag {
  width: 100%; padding-top: 1rem; border-top: 1px solid var(--hair-light); text-align: center;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}
.sfai-band .eyebrow { color: var(--gold); }
.sfai-band-title { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.7rem); }
.sfai-band-title em { white-space: nowrap; }
.sfai-band-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.sfai-band-copy { margin-top: 1.1rem; max-width: 58ch; color: var(--slate-mist); }
.sfai-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem); padding-top: clamp(1.2rem, 2.4vw, 1.7rem);
  border-top: 1px solid var(--hair-dark);
}
@media (min-width: 720px) { .sfai-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sfai-stat span {
  font-family: var(--serif); font-weight: 340; font-size: clamp(1.55rem, 1.2rem + 0.9vw, 2.2rem);
  line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums lining-nums;
}
.sfai-stat small { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--slate-mist); }
.sfai-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(1.7rem, 3vw, 2.3rem); }
.sfai-band .btn-ghost { border-color: rgba(244, 239, 230, 0.3); color: var(--ivory); }
.sfai-band .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Legacy-browser fallbacks (no aspect-ratio support) ---------- */
@supports not (aspect-ratio: 1 / 1) {
  .svc-card-img, .insight-card-img, .about-intro .about-photo { max-height: 340px; }
  .svc-card-img img, .insight-card-img img, .about-intro .about-photo img { max-height: 340px; width: 100%; object-fit: cover; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer-social, .to-top, .overture, #dust, .cta-band, .newsletter { display: none !important; }
  body { background: #fff; color: #000; }
}
