/* ============================================================================
   PATHWAYS INTELLIGENCE — "The Meridian" · cinematic register (v4)
   A private AI advisory. Dark-first luxury: deep ink space, warm alabaster
   light, one claret jewel. A real-time WebGL pathway (assets/scene.js) is the
   stage; content lives on frosted-ink glass so every word stays WCAG-AA.
   Old-style serif display (engraved) · refined humanist sans · roman-numeral
   chapters · hairline rules. Prestige + spectacle, never neon.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* The void & its surfaces */
  --void:        #0a0c10; /* deepest ink — the space the pathway travels */
  --void-2:      #0e1116; /* raised ink */
  --glass:       rgba(15, 18, 24, 0.55);  /* frosted content panel */
  --glass-solid: rgba(13, 16, 21, 0.82);  /* denser panel where text is dense */
  --glass-line:  rgba(244, 239, 228, 0.12);
  --glass-line-2:rgba(244, 239, 228, 0.22);

  /* Light — warm alabaster */
  --ivory:       #f4efe4;
  --body:        rgba(244, 239, 228, 0.82); /* body copy on the void (AA) */
  --muted:       rgba(244, 239, 228, 0.60); /* captions / labels (AA) */
  --faint:       rgba(244, 239, 228, 0.40);

  /* Accent — a single claret jewel, tuned for a dark ground */
  --accent-line: #7a1e2a;  /* borders / fills / markers (not text) */
  --accent-glow: #b8394b;  /* luminous claret (matches the 3D leading edge) */
  --accent-text: #db938c;  /* claret lifted to warm-rose so small text stays AA */
  --accent-rich: #cf7970;  /* large decorative claret (fee figures, ≥3:1) */

  /* Lines on dark */
  --line:        rgba(244, 239, 228, 0.11);
  --line-strong: rgba(244, 239, 228, 0.20);

  /* Type — deliberately old-style, engraved; not a system-sans default */
  --serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans:  "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Rhythm */
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --frame-inset: 15px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--body);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.66;
  font-weight: 400;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* The base ink void — always present, so the transparent WebGL canvas has a
     warm, deep ground beneath it (and it carries the atmosphere entirely if the
     canvas never paints). */
  background-color: var(--void);
  background-image:
    radial-gradient(120% 90% at 78% -8%, rgba(184, 57, 75, 0.14), transparent 46%),
    radial-gradient(90% 80% at 8% 4%, rgba(244, 239, 228, 0.07), transparent 52%),
    radial-gradient(140% 120% at 50% 118%, rgba(122, 30, 42, 0.14), transparent 60%),
    linear-gradient(180deg, #0b0d12 0%, #090a0e 55%, #0b0d12 100%);
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--ivory); color: var(--void);
  padding: 0.65rem 1rem; border-radius: 2px;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.04em;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================================
   CINEMATIC STAGE — canvas, fallback, vignette, grain
   ========================================================================== */
#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.scene-ready #scene { opacity: 1; }

/* CSS fallback: shown until the WebGL scene is ready; carries the whole
   atmosphere when WebGL is unavailable or JS is off. An ember-lit void with a
   drawn "meridian" arc — the pathway, in still form. */
.stage-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.4s var(--ease);
  background:
    radial-gradient(closest-side at 72% 30%, rgba(184, 57, 75, 0.18), transparent 70%),
    radial-gradient(closest-side at 22% 68%, rgba(244, 239, 228, 0.06), transparent 70%);
}
.stage-fallback::before {
  /* a luminous meridian sweep, drawn as a soft blurred diagonal light-ribbon */
  content: "";
  position: absolute;
  left: -10%; right: -10%; top: 20%;
  height: 60%;
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(244, 239, 228, 0.10), transparent 70%);
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 30%, #000 62%, transparent 88%);
          mask-image: linear-gradient(115deg, transparent 8%, #000 30%, #000 62%, transparent 88%);
  transform: rotate(-9deg);
  filter: blur(6px);
}
.scene-ready .stage-fallback { opacity: 0; }

/* Cinema vignette — pulls focus to centre, deepens the corners */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 42%, transparent 52%, rgba(4, 5, 7, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.42) 0%, transparent 22%, transparent 78%, rgba(6, 7, 10, 0.5) 100%);
}
/* Fine film grain — atmosphere, kept restrained */
.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Engraved page frame ---------- */
.page-frame {
  position: fixed;
  inset: var(--frame-inset);
  z-index: 5;
  pointer-events: none;
  border: 1px solid var(--line-strong);
}
@media (max-width: 600px) { :root { --frame-inset: 9px; } }
@media (prefers-reduced-motion: no-preference) {
  .page-frame { opacity: 0; animation: frameIn 1.4s var(--ease) 0.3s forwards; }
}
@keyframes frameIn { to { opacity: 1; } }

/* ---------- Eyebrow / chapter markers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7ch;
  margin: 0 0 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow .numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--accent-text);
  padding-right: 0.6ch;
  border-right: 1px solid var(--line-strong);
  margin-right: 0.2ch;
  line-height: 1;
  text-transform: none;
}
.eyebrow--onDark { color: var(--accent-text); }
.eyebrow-sep { padding: 0 0.7ch; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ivory);
  --btn-line: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5ch;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--btn-line);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.34s var(--ease), color 0.34s var(--ease),
              border-color 0.34s var(--ease), transform 0.34s var(--ease),
              box-shadow 0.34s var(--ease);
}
.btn-lg { padding: 1.05rem 2rem; }
.btn-solid { --btn-bg: var(--ivory); --btn-fg: #14161b; --btn-line: var(--ivory); }
.btn-solid:hover {
  --btn-bg: var(--accent-glow); --btn-fg: var(--ivory); --btn-line: var(--accent-glow);
  box-shadow: 0 0 34px -6px rgba(184, 57, 75, 0.6);
}
.btn-line { --btn-bg: rgba(244,239,228,0.02); --btn-fg: var(--ivory); --btn-line: var(--line-strong); }
.btn-line:hover { --btn-line: var(--ivory); background: rgba(244, 239, 228, 0.06); }
.btn:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; }
/* magnetic sheen sweep on the solid button */
.btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-solid:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .btn-solid::after { display: none; } }

/* ---------- Frosted-ink glass (legibility over the moving field) ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
          backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--glass-line);
  border-radius: 4px;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(244, 239, 228, 0.05);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 12, 16, 0.62);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-block: 0.6rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ivory); }
.brand-mark { color: var(--ivory); flex: none; filter: drop-shadow(0 0 10px rgba(184,57,75,0.25)); }
.brand-word { display: flex; flex-direction: column; line-height: 1; color: var(--ivory); }
.brand-word-primary {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  font-weight: 400;
}
.brand-word-secondary {
  margin-top: 0.36em;
  font-family: var(--serif);
  font-size: 0.54rem;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
  font-weight: 400;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.site-nav ul {
  display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem);
  list-style: none; margin: 0; padding: 0;
}
.site-nav ul a {
  position: relative;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--body);
  text-decoration: none;
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.site-nav ul a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a:focus-visible { color: var(--ivory); }
.site-nav ul a:hover::after, .site-nav ul a:focus-visible::after { transform: scaleX(1); }
.site-nav ul a:focus-visible { outline: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 5px; width: 20px; }
.nav-toggle-bars span {
  display: block; height: 1.5px; width: 100%; background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(4rem, 12vh, 8rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.hero-inner { max-width: 64rem; }
.hero-eyebrow { margin-bottom: 2rem; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.016em;
  color: var(--ivory);
  max-width: 17ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.hero-lede {
  margin-top: 1.9rem;
  max-width: 46ch;
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem);
  line-height: 1.62;
  color: var(--body);
  font-weight: 400;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.5);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.6rem; }
.hero-colophon {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.9rem 1.4rem;
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.hero-colophon span { position: relative; padding-left: 1.5rem; }
.hero-colophon span::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  border: 1px solid var(--accent-glow);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(184, 57, 75, 0.5);
}
/* scroll cue anchored bottom-left */
.scroll-cue {
  position: absolute;
  left: var(--gutter); bottom: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted);
  z-index: 2;
}
.scroll-cue-line {
  display: block; width: 54px; height: 1px;
  background: linear-gradient(90deg, var(--accent-glow), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 18px;
  background: var(--ivory);
  animation: cueRun 2.6s var(--ease) infinite;
}
@keyframes cueRun { 0% { transform: translateX(-20px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(60px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-line::after { display: none; } }

/* ============================================================================
   Shared section scaffolding
   ========================================================================== */
section { position: relative; }
.position, .engagements, .sectors, .founder, .faq {
  padding-block: clamp(5rem, 13vh, 9.5rem);
}
.section-head { max-width: 48rem; margin-bottom: clamp(3rem, 6vh, 4.5rem); }
.section-head h2,
.position-lead h2,
.founder-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ivory);
  text-wrap: balance;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.lede {
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.62;
  color: var(--body);
  max-width: 46ch;
}

/* ============================================================================
   POSITION — statement + luminous statistic
   ========================================================================== */
.position-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.position-lead h2 { margin-bottom: 1.6rem; max-width: 22ch; }
.stat {
  margin: 0;
  padding: 2.6rem 2.4rem;
  position: relative;
}
.stat::before, .stat::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent-glow);
}
.stat::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.stat::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.stat-figure {
  font-family: var(--serif);
  font-size: clamp(5rem, 3rem + 9vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--ivory);
  font-weight: 400;
  text-shadow: 0 0 60px rgba(244, 239, 228, 0.18);
}
.stat-pct {
  font-size: 0.42em; vertical-align: super;
  color: var(--accent-rich); letter-spacing: 0; margin-left: 0.08em;
  text-shadow: 0 0 24px rgba(184, 57, 75, 0.5);
}
.stat-caption {
  margin-top: 1.8rem; padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.98rem; line-height: 1.55; color: var(--body);
}
.stat-caption cite {
  display: block; margin-top: 0.8rem;
  font-style: normal; font-size: 0.76rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted);
}

/* ============================================================================
   ENGAGEMENTS — fee schedule as lit "leaves"
   ========================================================================== */
.schedule {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}
.engagement {
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.engagement:hover {
  transform: translateY(-6px);
  border-color: var(--glass-line-2);
  box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.8), 0 0 40px -18px rgba(184, 57, 75, 0.4);
}
.engagement-mark { margin-bottom: 1.4rem; }
.engagement-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--accent-text);
  letter-spacing: 0.14em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.engagement-body { display: flex; flex-direction: column; flex: 1; }
.engagement-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2rem);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 0.7rem;
}
.engagement-fee {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 0.2rem 0.7rem; margin-bottom: 1.2rem;
}
.fee-figure {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent-rich);
  letter-spacing: 0.01em;
}
.fee-unit {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.engagement-desc { color: var(--body); font-size: 0.98rem; }
.engagement-note {
  margin-top: 1.2rem; padding-left: 1.1rem;
  border-left: 2px solid var(--accent-glow);
  font-size: 0.92rem; line-height: 1.55; color: var(--body);
}
.engagement-note--muted { border-left-color: var(--line-strong); color: var(--muted); margin-top: auto; padding-top: 1.2rem; }
.engagements-cta { margin-top: clamp(2.6rem, 5vw, 4rem); }

/* ============================================================================
   THE PATHWAYS PRINCIPLES
   ========================================================================== */
.principles { overflow: hidden; }
.principles-watermark {
  position: absolute;
  right: -0.04em; bottom: -0.26em;
  font-family: var(--serif);
  font-size: clamp(20rem, 42vw, 40rem);
  line-height: 0.7;
  color: var(--ivory);
  opacity: 0.03;
  pointer-events: none; user-select: none;
  z-index: 1;
}
.code { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); position: relative; z-index: 2; }
.code-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.7rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), border-color 0.4s var(--ease);
}
.code-item:hover { padding-left: 0.5rem; border-bottom-color: var(--glass-line-2); }
.code-num {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem;
  color: var(--accent-text); letter-spacing: 0.02em;
}
.code-line {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
  line-height: 1.2; color: var(--ivory);
  letter-spacing: -0.005em; max-width: 26ch;
}
.code-gloss {
  margin-top: 0.75rem; font-family: var(--sans);
  font-size: 0.98rem; line-height: 1.6; color: var(--muted); max-width: 52ch;
}

/* ============================================================================
   SECTORS
   ========================================================================== */
.sector-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.sector {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: baseline;
  padding-block: clamp(1.7rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), border-color 0.4s var(--ease);
}
.sector:hover { padding-left: 0.6rem; border-bottom-color: var(--glass-line-2); }
.sector-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.15; color: var(--ivory);
  position: relative; padding-left: 1.5rem;
}
.sector-name::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border: 1px solid var(--accent-glow);
  transform: rotate(45deg);
}
.sector-eg { font-size: 1.02rem; line-height: 1.58; color: var(--body); max-width: 52ch; }

/* ============================================================================
   THE PRINCIPAL
   ========================================================================== */
.founder-inner {
  display: grid;
  grid-template-columns: minmax(0, 20rem) 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(244,239,228,0.02) 11px 12px),
    linear-gradient(160deg, var(--void-2), #0b0e13);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), inset 0 0 60px rgba(0,0,0,0.5);
}
.portrait-frame::after { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); }
.portrait-frame span {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: 0.08em; color: var(--muted); position: relative;
  text-shadow: 0 0 40px rgba(244, 239, 228, 0.12);
}
.founder-copy .eyebrow { margin-bottom: 1.3rem; }
.founder-copy h2 { margin-bottom: 1.4rem; }
.founder-copy p { max-width: 48ch; color: var(--body); }
.founder-copy p + p { margin-top: 1.1rem; }

/* ============================================================================
   QUESTIONS
   ========================================================================== */
.faq-list { max-width: 56rem; padding: 0.5rem clamp(1.4rem, 3vw, 2.6rem); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem);
  line-height: 1.3; color: var(--ivory);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 13px; height: 13px; position: relative;
  background:
    linear-gradient(var(--accent-glow), var(--accent-glow)) center/13px 1.5px no-repeat,
    linear-gradient(var(--accent-glow), var(--accent-glow)) center/1.5px 13px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 4px; }
.faq-answer { overflow: hidden; padding: 0 2.5rem 1.7rem 0; }
.faq-answer p { max-width: 60ch; color: var(--body); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-answer { animation: faqOpen 0.4s var(--ease); }
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.4), rgba(6, 7, 10, 0.75));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding-block: clamp(3.5rem, 8vh, 6rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.footer-lockup { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-mark--footer { color: var(--ivory); }
.brand-word--footer { color: var(--ivory); }
.footer-lockup .brand-word-primary { font-size: 1.4rem; letter-spacing: 0.34em; padding-left: 0.34em; }
.footer-lockup .brand-word-secondary { font-size: 0.62rem; letter-spacing: 0.42em; padding-left: 0.42em; color: var(--muted); }
.footer-strap {
  margin-top: 1.3rem; font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; color: var(--muted);
}
.footer-meta { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.footer-meta li {
  padding-block: 0.55rem; border-bottom: 1px solid var(--line);
  font-size: 0.92rem; letter-spacing: 0.02em; color: var(--body);
}
.footer-meta li:first-child { padding-top: 0; }
.footer-meta a {
  color: var(--ivory); text-decoration: none;
  border-bottom: 1px solid var(--accent-text); padding-bottom: 1px;
  transition: color 0.25s var(--ease);
}
.footer-meta a:hover { color: var(--accent-text); }
.footer-privacy { font-size: 0.88rem; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.footer-copy {
  margin-top: 1.6rem; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}

/* ============================================================================
   Reveal animation
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .schedule { grid-template-columns: 1fr; }
  .engagement { flex-direction: row; gap: 1.5rem; }
  .engagement-mark { margin-bottom: 0; }
  .engagement-num { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 900px) {
  .position-inner { grid-template-columns: 1fr; }
  .stat { max-width: 28rem; }
  .founder-inner { grid-template-columns: minmax(0, 15rem) 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 16, 0.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem var(--gutter) 1.5rem;
    box-shadow: 0 24px 40px -28px rgba(0,0,0,0.8);
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path 0.35s var(--ease), opacity 0.25s var(--ease);
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding-block: 1rem; font-size: 1rem; }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 1.4rem; width: 100%; }

  .engagement { flex-direction: column; }
  .sector { grid-template-columns: 1fr; gap: 0.6rem; }
  .sector:hover { padding-left: 0; }
  .founder-inner { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 15rem; }
  .faq-answer { padding-right: 1.2rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 420px) {
  .hero-colophon span { padding-left: 1.25rem; }
  .brand-word-primary { font-size: 0.94rem; letter-spacing: 0.2em; padding-left: 0.2em; }
  .brand-word-secondary { font-size: 0.42rem; letter-spacing: 0.24em; padding-left: 0.24em; margin-top: 0.3em; }
}

/* Print — a firm's prospectus should print cleanly, on white. */
@media print {
  #scene, .stage-fallback, .vignette, .grain, .page-frame,
  .site-header, .nav-toggle, .scroll-cue { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  :root {
    --ivory: #101216; --body: #1a1c22; --muted: #4a4d55;
    --line: rgba(0,0,0,0.15); --line-strong: rgba(0,0,0,0.3);
  }
  body { background: #fff !important; color: #1a1c22; }
  .glass { background: #fff !important; border: 1px solid rgba(0,0,0,0.18); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-footer { background: #fff !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-title, .section-head h2, .stat-figure, .code-line, .founder-copy h2 { text-shadow: none; }
}
