/* Ocidente — styles
   Brand: Kings Caslon (editorial), Effra (interface). Palette from ocidente_marca_guia.pdf. */

@font-face { font-family: "Kings Caslon"; src: url(assets/fonts/caslon-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Kings Caslon"; src: url(assets/fonts/caslon-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Effra"; src: url(assets/fonts/effra-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Effra"; src: url(assets/fonts/effra-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
/* Metric-matched fallbacks so the font swap does not shift layout */
@font-face { font-family: "Caslon Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 96.8%; ascent-override: 96.1%; descent-override: 27.9%; line-gap-override: 0%; }
@font-face { font-family: "Effra Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 95.1%; ascent-override: 99.9%; descent-override: 26.3%; line-gap-override: 2.8%; }

:root {
  --ivory: #f6f0e3;
  --paper: #fbf8f1;
  --ink: #161514;
  --ink-2: #222120;
  --graphite: #58595b;
  --stone: #a7a9ac;
  --amber: #fbb040;
  --amber-ink: #8a5400;          /* amber for small text on ivory (AA) */
  --line: rgb(22 21 20 / .16);
  --line-strong: rgb(22 21 20 / .4);

  --serif: "Kings Caslon", "Caslon Fallback", Georgia, serif;
  --sans: "Effra", "Effra Fallback", Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1520px;

  /* One motion language: quick for controls, medium for components, slow for editorial moments */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);
  --t-fast: 180ms;
  --t-med: 520ms;
  --t-slow: 1200ms;

  --bg: var(--ivory);
  --fg: var(--ink);
  --muted: var(--graphite);
  --rule: var(--line);
  --accent-text: var(--amber-ink);
}

[data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--ivory);
  --muted: #b4b2ac;
  --rule: rgb(246 240 227 / .16);
  --line-strong: rgb(246 240 227 / .45);
  --accent-text: var(--amber);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 10px, 19px)/1.55 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
svg { display: block; }
::selection { background: var(--amber); color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 1px; }
[data-theme="dark"] :focus-visible { outline-color: var(--amber); }
:where(.section, .hero) :focus-visible { outline-color: var(--ink); }
[data-theme="dark"] :where(.section) :focus-visible { outline-color: var(--amber); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 12px 18px; transition: top var(--t-fast) var(--ease-out); }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section[data-theme], article[data-theme] { background: var(--bg); color: var(--fg); }

.section { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.num { font-feature-settings: "tnum", "lnum"; }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.section-label { display: flex; gap: 14px; align-items: baseline; margin-bottom: clamp(28px, 4vw, 56px); }
.section-label .num { color: var(--accent-text); letter-spacing: .1em; }
.display-1, .display-2, .hero-title, .pov-statement, .exp-title, .stage-title, .entry-title, .menu-list a, .exp-pull {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.012em;
}
.display-1 { font-size: clamp(56px, 9vw, 150px); line-height: .92; letter-spacing: -.02em; }
.display-2 { font-size: clamp(38px, 5.4vw, 88px); line-height: 1; letter-spacing: -.018em; }
.display-1 em, .display-2 em { color: var(--muted); }
[data-theme="dark"] .display-1 em, [data-theme="dark"] .display-2 em { color: var(--amber); }

/* ---------- Links & buttons ---------- */
.link-line { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.link-line span {
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 0 1px;
  padding-bottom: 3px;
  transition: background-size var(--t-med) var(--ease-out);
}
.link-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 13px; height: 1px; background: currentColor; opacity: .25; }
.link-line:hover span, .link-line:focus-visible span { background-position: left bottom; background-size: 100% 1px; }

.btn {
  --b-bg: var(--ink); --b-fg: var(--ivory);
  display: inline-flex; align-items: center; gap: 18px; min-height: 56px; padding: 0 26px 0 28px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bg); border-radius: 0; cursor: pointer;
  font-weight: 500; letter-spacing: .01em; position: relative; overflow: hidden;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn-light { --b-bg: var(--ivory); --b-fg: var(--ink); }
.btn .arrow { width: 24px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; overflow: visible; transition: transform var(--t-med) var(--ease-spring); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(6px); }
.btn:active { transform: scale(.985); }
.btn:hover { background: transparent; color: var(--b-bg); }
.btn[disabled] { cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: 76px;
  display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter);
  color: var(--ink); transition: transform var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: var(--ivory); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out); z-index: -1; }
.site-header.is-solid::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.on-dark { color: var(--ivory); }
.site-header.on-dark::before { background: var(--ink); border-color: rgb(246 240 227 / .1); }
.brand { display: block; padding: 10px 0; }
.logo { width: clamp(132px, 12vw, 172px); height: auto; overflow: visible; }
.logo .l { transform-box: fill-box; }
.logo-sun { mix-blend-mode: multiply; }
.on-dark .logo-sun, [data-theme="dark"] .logo-sun { mix-blend-mode: normal; opacity: .78; }

.header-actions { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.header-cta { font-size: 15px; }
.menu-btn, .menu-close {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px;
  background: none; border: 0; cursor: pointer; font-size: 15px; font-weight: 500;
}
.menu-btn-icon { position: relative; width: 28px; height: 10px; }
.menu-btn-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform var(--t-med) var(--ease-out); }
.menu-btn-icon i:first-child { top: 0; }
.menu-btn-icon i:last-child { bottom: 0; transform-origin: right; transform: scaleX(.6); }
.menu-btn:hover .menu-btn-icon i:last-child { transform: scaleX(1); }
.menu-btn-icon.is-x i { top: 4px; bottom: auto; transform-origin: center; }
.menu-btn-icon.is-x i:first-child { transform: rotate(32deg); }
.menu-btn-icon.is-x i:last-child { transform: rotate(-32deg); }
@media (max-width: 640px) { .header-cta { display: none; } }

/* ---------- Menu (native <dialog>: focus trap, Esc, inert page) ---------- */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--ivory); overflow: auto;
  clip-path: circle(0% at calc(100% - var(--gutter) - 20px) 38px);
}
.menu::backdrop { background: transparent; }
.menu[open] { animation: menu-in 760ms var(--ease-io) forwards; }
.menu.is-closing { animation: menu-out 520ms var(--ease-io) forwards; }
@keyframes menu-in { to { clip-path: circle(150% at calc(100% - var(--gutter) - 20px) 38px); } }
@keyframes menu-out { from { clip-path: circle(150% at calc(100% - var(--gutter) - 20px) 38px); } to { clip-path: circle(0% at calc(100% - var(--gutter) - 20px) 38px); } }
.menu-inner { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--gutter) clamp(24px, 4vw, 48px); }
.menu-top { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.menu-top .eyebrow { color: var(--stone); }
.menu-list { align-self: center; padding: 4vh 0; }
.menu-list li { border-top: 1px solid rgb(246 240 227 / .12); }
.menu-list li:last-child { border-bottom: 1px solid rgb(246 240 227 / .12); }
.menu-list a { display: flex; align-items: baseline; gap: clamp(16px, 3vw, 40px); padding: clamp(10px, 1.6vh, 18px) 0; font-size: clamp(36px, 6.4vw, 92px); line-height: 1; transition: color var(--t-fast); }
.menu-list .num { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--amber); width: 2.5em; }
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transform: translateY(105%); }
.menu[open] .mask > span { animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(240ms + var(--i, 0) * 60ms); }
.menu-list a > span:last-child > span { transition: transform var(--t-med) var(--ease-out); }
.menu-list a:hover > .mask > span, .menu-list a:focus-visible > .mask > span { font-style: italic; }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--amber); }
.menu-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; font-size: 15px; flex-wrap: wrap; }
.menu-foot .muted { color: var(--stone); }
.menu-foot, .menu-list .num { opacity: 0; }
.menu[open] .menu-foot, .menu[open] .menu-list .num { animation: fade-in 700ms var(--ease-out) 520ms forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding: 120px var(--gutter) 0; overflow: hidden; max-width: none;
}
.hero-figure {
  position: absolute; z-index: 0; width: min(78vw, 120vh); right: -8vw; top: 50%; translate: 0 -52%;
  fill: none; stroke: var(--ink); overflow: visible; pointer-events: none;
}
.hf-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hf-grid * { vector-effect: non-scaling-stroke; }
.hf-orbit circle { stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; }
.hf-orbit { transition: transform 1.4s var(--ease-out); }
.hf-lens path { fill: var(--amber); opacity: .16; stroke: none; }
.hf-sun { fill: var(--amber); stroke: none; }
.hf-dot { fill: var(--ink); stroke: none; }

.hero-inner {
  position: relative; z-index: 1; max-width: var(--max); width: 100%; margin-inline: auto; align-self: center;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: clamp(28px, 4vw, 48px); padding-block: 4vh 6vh;
}
.hero-eyebrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-eyebrow .sep { width: 40px; height: 1px; background: currentColor; opacity: .5; }
.hero-title { grid-column: 1 / -1; font-size: clamp(68px, 15.2vw, 252px); line-height: .86; letter-spacing: -.035em; }
.hero-title .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .line > span { display: block; }
.hero-title .line:nth-child(2) { padding-left: .62em; }
.hero-title em { color: var(--graphite); }
.hero-aside { grid-column: 7 / span 5; display: grid; gap: 32px; }
.lede { font-size: clamp(18px, 1.35vw + 6px, 24px); line-height: 1.42; max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

.tenets {
  position: relative; z-index: 1; max-width: var(--max); width: 100%; margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
}
.tenets li { padding: 22px 0 28px; font: 400 clamp(17px, 1.4vw, 22px)/1.2 var(--serif); display: flex; gap: 14px; align-items: baseline; }
.tenets li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.tenets .num { font: 500 12px var(--sans); color: var(--amber-ink); letter-spacing: .1em; }

@media (max-width: 1023px) {
  .hero-aside { grid-column: 3 / -1; }
}
@media (max-width: 720px) {
  .hero { padding-top: 96px; }
  .hero-figure { width: 120vw; right: -46vw; top: 30%; opacity: .9; }
  .hero-title { font-size: min(18vw, 120px); }
  .hero-title .line:nth-child(2) { padding-left: .22em; }
  .hero-eyebrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero-eyebrow .sep { display: none; }
  .hero-aside { grid-column: 1 / -1; }
  .tenets { grid-template-columns: 1fr; }
  .tenets li { padding: 14px 0; }
  .tenets li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Opening sequence — CSS only, runs without JS; content is never gated behind it */
@media (prefers-reduced-motion: no-preference) {
  .site-header .logo .l { animation: letter 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); }
  .site-header .logo-sun { animation: converge 1300ms var(--ease-out) 320ms both; }
  .site-header .logo-sphere { animation: fade 900ms var(--ease-out) 420ms both; }
  .hero-title .line > span { animation: rise-from 1200ms var(--ease-out) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 180ms; }
  .hero-title .line:nth-child(2) > span { animation-delay: 300ms; }
  .hero-eyebrow, .hero-aside, .tenets li, .header-actions { animation: lift 1000ms var(--ease-out) both; }
  .hero-eyebrow { animation-delay: 120ms; }
  .hero-aside { animation-delay: 620ms; }
  .header-actions { animation-delay: 500ms; }
  .tenets li:nth-child(1) { animation-delay: 760ms; }
  .tenets li:nth-child(2) { animation-delay: 840ms; }
  .tenets li:nth-child(3) { animation-delay: 920ms; }
  .tenets { animation: rule-in 1400ms var(--ease-out) 600ms both; }
  .hf-orbit circle { animation: draw 2200ms var(--ease-io) both; }
  .hf-a circle { animation-delay: 200ms; }
  .hf-b circle { animation-delay: 380ms; }
  .hf-a { animation: drift-a 2400ms var(--ease-out) 200ms both; }
  .hf-b { animation: drift-b 2400ms var(--ease-out) 200ms both; }
  .hf-lens { animation: fade 1600ms var(--ease-out) 1500ms both; }
  .hf-points circle { transform-box: fill-box; transform-origin: center; animation: pop 900ms var(--ease-spring) both; }
  .hf-sun { animation-delay: 1700ms !important; }
  .hf-dot { animation-delay: 1850ms !important; }
  .hf-grid { animation: fade 2000ms var(--ease-out) 100ms both; }
}
@keyframes letter { from { opacity: 0; transform: translateY(40%); } }
@keyframes converge { from { opacity: 0; transform: translate(-18px, 10px); } }
@keyframes rise-from { from { transform: translateY(104%); } }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } }
@keyframes rule-in { from { border-top-color: transparent; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drift-a { from { transform: translate(-70px, 40px); } }
@keyframes drift-b { from { transform: translate(70px, -40px); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Scroll reveals (hidden state only exists once JS has armed them) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Point of view ---------- */
.pov { padding-block: clamp(120px, 18vw, 260px) clamp(100px, 14vw, 200px); }
.pov-statement { font-size: clamp(34px, 4.9vw, 82px); line-height: 1.06; letter-spacing: -.018em; max-width: 19ch; }
.pov-statement .w { transition: color 500ms var(--ease-out); }
.motion .pov-statement .w { color: rgb(22 21 20 / .2); }
.motion .pov-statement .w.on { color: var(--ink); }
.pov-cols { margin-top: clamp(56px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 28px; }
.pov-cols p { color: var(--graphite); max-width: 38ch; }
.pov-cols p:nth-child(1) { grid-column: 5 / span 4; }
.pov-cols p:nth-child(2) { grid-column: 9 / span 4; }
@media (max-width: 900px) {
  .pov-cols p:nth-child(1), .pov-cols p:nth-child(2) { grid-column: 1 / -1; }
  .pov-cols p:nth-child(1) { padding-left: 18%; }
}

/* ---------- Expertise ---------- */
.exp-head { padding-bottom: clamp(60px, 9vw, 140px); border-top: 1px solid var(--line); padding-top: clamp(80px, 10vw, 140px); }
.exp { position: relative; }
.exp-index { font: 400 italic clamp(22px, 2vw, 30px) var(--serif); color: var(--accent-text); }
.exp-title { font-size: clamp(48px, 7.4vw, 124px); line-height: .94; letter-spacing: -.025em; }
.exp-value { font-size: clamp(18px, 1.2vw + 6px, 22px); line-height: 1.5; max-width: 36ch; }

.exp-intel { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; padding-bottom: clamp(100px, 13vw, 200px); }
.exp-intel .exp-index { grid-column: 1 / span 1; }
.exp-intel .exp-title { grid-column: 2 / span 6; }
.exp-intel .exp-value { grid-column: 9 / span 4; align-self: end; }
.exp-questions { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(24px, 4vw, 64px); }
.exp-questions li { border-top: 1px solid var(--line-strong); padding: 20px 24px 0 0; font: 400 clamp(19px, 1.5vw, 24px)/1.3 var(--serif); display: grid; gap: 14px; }
.exp-questions .num { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--amber-ink); }

.exp-access { padding-block: clamp(100px, 14vw, 220px); overflow: hidden; }
.exp-access-inner { display: grid; justify-items: center; text-align: center; gap: 32px; position: relative; }
.exp-access .exp-value { color: var(--muted); max-width: 44ch; }
.exp-access .exp-title em { color: var(--amber); }
/* access scene */
.audiences { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 22px; }
.audiences li { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding: 4px 22px; }
.audiences li + li { border-left: 1px solid var(--rule); }

.exp-advisory { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; padding-block: clamp(100px, 14vw, 220px); }
.exp-pull { grid-column: 1 / span 5; align-self: start; font-size: clamp(28px, 3vw, 46px); line-height: 1.12; font-style: italic; color: var(--graphite); border-left: 2px solid var(--amber); padding-left: clamp(18px, 2vw, 32px); position: sticky; top: 120px; }
.exp-body { grid-column: 7 / -1; display: grid; gap: 32px; }
.exp-list { display: grid; margin-top: 16px; }
.exp-list > div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line-strong); }
.exp-list > div:last-child { border-bottom: 1px solid var(--line-strong); }
.exp-list dt { font-weight: 500; }
.exp-list dd { color: var(--graphite); }

@media (max-width: 900px) {
  .exp-intel .exp-index, .exp-intel .exp-title, .exp-intel .exp-value, .exp-questions { grid-column: 1 / -1; }
  .exp-questions { grid-template-columns: 1fr; }
  .exp-questions li { padding: 18px 0 22px; grid-template-columns: 32px 1fr; }
  .exp-pull, .exp-body { grid-column: 1 / -1; position: static; }
  .exp-body { order: -1; }
  .exp-list > div { grid-template-columns: 1fr; gap: 6px; }
  .audiences li { padding: 6px 14px; }
}

/* ---------- Approach ---------- */
.approach { border-top: 1px solid var(--line); background: var(--paper); }
.approach-stick { padding-block: clamp(100px, 12vw, 180px); }
.approach-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.approach-head { grid-column: 1 / -1; }
.approach-intro { margin-top: 28px; max-width: 42ch; color: var(--graphite); }
.approach-figure, .stage-index { display: none; }

/* Stacked version (mobile, tablet, reduced motion, no JS) */
.stages { grid-column: 1 / -1; counter-reset: s; }
.stage { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0 0 48px; }
.stage::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); transform-origin: top; }
.stage:last-child::before { display: none; }
.stage::after { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); }
.stage:last-child::after { background: var(--amber); border-color: var(--amber); }
.stage-num { grid-column: 2; font: 500 12px var(--sans); letter-spacing: .14em; color: var(--amber-ink); padding-top: 4px; }
.stage-title { grid-column: 2; font-size: clamp(30px, 4vw, 48px); line-height: 1.02; margin: 12px 0 14px; }
.stage p { grid-column: 2; color: var(--graphite); max-width: 44ch; }
.motion .stage::before { transform: scaleY(0); transition: transform 1200ms var(--ease-out) 200ms; }
.motion .stage.is-in::before { transform: none; }
@media (min-width: 640px) { .stage { grid-template-columns: 1fr 2fr; } .stage::before, .stage::after { left: calc(33.3% - 40px); } }

/* Scroll-driven sequence — desktop with motion allowed. One pinned section, native scroll. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .approach.is-seq { height: calc(100vh + 5 * 72vh); }
  .js .is-seq .approach-stick { position: sticky; top: 0; height: 100vh; padding-block: 0; display: flex; align-items: center; overflow: hidden; }
  .js .is-seq .approach-grid { grid-template-rows: auto 1fr auto; height: 100%; padding-block: 112px 56px; row-gap: 0; }
  .js .is-seq .stage-num { display: none; }
  .js .is-seq .approach-head { grid-column: 1 / span 5; }
  .js .is-seq .approach-figure { display: block; grid-column: 6 / span 5; grid-row: 1 / span 3; align-self: center; width: 100%; max-height: 74vh; overflow: visible; }
  .js .is-seq .stages { grid-column: 1 / span 4; grid-row: 3; position: relative; align-self: end; min-height: 210px; }
  .js .is-seq .stage { position: absolute; inset: auto 0 0 0; display: block; padding: 0; opacity: 0; visibility: hidden; transform: translateY(24px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med); }
  .js .is-seq .stage::before, .js .is-seq .stage::after { display: none; }
  .js .is-seq .stage.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 120ms, 120ms, 0s; }
  .js .is-seq .stage.is-past { transform: translateY(-24px); }
  .js .is-seq .stage-title { font-size: clamp(38px, 3.4vw, 54px); }
  .js .is-seq .stage-index { display: flex; flex-direction: column; grid-column: 12; grid-row: 1 / span 3; align-self: center; gap: 2px; }
  .stage-index button { display: flex; gap: 10px; align-items: baseline; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; text-align: left; font-size: 14px; color: var(--graphite); opacity: .55; transition: opacity var(--t-fast), color var(--t-fast); white-space: nowrap; }
  .stage-index button span { font-size: 11px; letter-spacing: .12em; color: var(--amber-ink); }
  .stage-index button:hover, .stage-index button[aria-current="step"] { opacity: 1; color: var(--ink); }
}

.approach-figure { fill: none; stroke: var(--ink); }
.approach-figure * { vector-effect: non-scaling-stroke; }
.af-guide { stroke: var(--line); stroke-dasharray: 2 6; }
.af-net line { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity 700ms var(--ease-out); }
.af-net circle { fill: var(--ink); stroke: none; opacity: .25; transform-box: fill-box; transform-origin: center; transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-spring), fill 400ms; }
.af-client, .af-us { transform-box: fill-box; transform-origin: center; stroke-width: 1.2; transition: transform 1100ms var(--ease-out), opacity 600ms; }
.af-us { stroke: var(--amber); stroke-width: 2; }
.af-link { stroke: var(--amber); stroke-width: 1.5; opacity: 0; transition: opacity 600ms var(--ease-out); }
.af-ring { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 300px 300px; transition: stroke-dashoffset 1400ms var(--ease-io); }
.af-progress { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); transform: rotate(-90deg); transform-origin: 300px 300px; }

/* stage choreography */
[data-stage="0"] .af-client { transform: translateX(-34px); }
[data-stage="0"] .af-us { transform: translateX(34px); }
[data-stage="0"] .af-net circle { opacity: .12; transform: scale(.6); }
[data-stage="1"] .af-net circle { opacity: .55; }
[data-stage="1"] .af-net line { opacity: .14; }
[data-stage="1"] .af-client, [data-stage="2"] .af-client { transform: scale(.7); }
[data-stage="1"] .af-us, [data-stage="2"] .af-us { transform: scale(.7); }
[data-stage="2"] .af-net circle { opacity: .1; }
[data-stage="2"] .af-net circle.pick { opacity: 1; fill: var(--amber); transform: scale(1.8); }
[data-stage="2"] .af-net line.pick { opacity: .5; }
[data-stage="3"] .af-net circle { opacity: .08; }
[data-stage="3"] .af-net circle.chosen { opacity: 1; fill: var(--amber); transform: scale(2.2); }
[data-stage="3"] .af-link { opacity: 1; }
[data-stage="3"] .af-client { transform: translateX(-20px) scale(.85); }
[data-stage="3"] .af-us { transform: translateX(20px) scale(.85); }
[data-stage="4"] .af-net circle { opacity: .3; }
[data-stage="4"] .af-net circle.chosen { opacity: 1; fill: var(--amber); transform: scale(1.6); }
[data-stage="4"] .af-net line.chosen { opacity: .45; }
[data-stage="4"] .af-ring { stroke-dashoffset: 0; }
[data-stage="4"] .af-client { transform: translateX(-26px); }
[data-stage="4"] .af-us { transform: translateX(26px); }

/* ---------- Markets ---------- */
.markets { padding-block: clamp(100px, 13vw, 200px); overflow: hidden; }
.mk-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.mk-copy { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: 28px; align-content: start; }
.mk-copy > p:last-child { color: var(--muted); max-width: 40ch; }
.mk-figure { grid-column: 6 / -1; grid-row: 1 / span 2; margin: 0 calc(var(--gutter) * -1) 0 0; align-self: center; }
.mk-brazil { grid-column: 1 / span 5; grid-row: 2; align-self: end; }
.mk-kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.figures { display: grid; }
.figures > div { border-top: 1px solid var(--rule); padding: 18px 0 20px; display: grid; gap: 6px; }
.figures dt { white-space: nowrap; font: 400 clamp(30px, 3.6vw, 58px)/1 var(--serif); letter-spacing: -.02em; font-feature-settings: "lnum", "tnum"; }
.figures dd { margin: 0; font-size: 15px; color: var(--muted); max-width: 30ch; }
.figures-brazil { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.figures-brazil dt { color: var(--amber); }
.mk-region { margin-top: clamp(64px, 9vw, 130px); }
.figures-region { grid-template-columns: repeat(4, 1fr); column-gap: 24px; border-bottom: 1px solid var(--rule); }
.figures-region > div { padding-right: 12px; }
.figures-region > div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.figures-region sup, .mk-sources sup { font-size: .7em; color: var(--amber); }
.mk-wired { margin-top: 48px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; }
.mk-wired .mk-kicker { grid-column: 1 / span 3; margin: 0; }
.mk-wired ul { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mk-wired li { font-size: 16px; color: var(--muted); line-height: 1.45; }
.mk-wired strong { color: var(--ivory); font-weight: 500; }
.mk-sources { margin-top: 40px; font-size: 13px; color: rgb(246 240 227 / .55); }
@media (max-width: 1023px) {
  .mk-copy, .mk-brazil { grid-column: 1 / -1; grid-row: auto; }
  .mk-figure { grid-column: 1 / -1; grid-row: auto; margin-inline: calc(var(--gutter) * -1); }
  .figures-region { grid-template-columns: 1fr 1fr; }
  .figures-region > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .mk-wired .mk-kicker, .mk-wired ul { grid-column: 1 / -1; }
  .mk-wired ul { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
}
@media (max-width: 560px) {
  .figures-region { grid-template-columns: 1fr; }
  .figures-region > div + div { border-left: 0; padding-left: 0; }
}

/* ---------- Perspectives ---------- */
.perspectives { padding-block: clamp(100px, 13vw, 200px); }
.per-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 100px); }
.per-note { font-size: 14px; color: var(--graphite); max-width: 60ch; }
.tag { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 6px 8px; border: 1px solid var(--line-strong); margin-right: 8px; vertical-align: 1px; }
.per-layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.entries { grid-column: 1 / span 8; border-top: 1px solid var(--line-strong); }
.entry {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; column-gap: 24px; row-gap: 8px; align-items: baseline;
  padding: 30px 0 28px; border-bottom: 1px solid var(--line-strong); cursor: default; outline: none;
}
.entry::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.entry-num { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--amber-ink); }
.entry-title { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.08; transition: transform var(--t-med) var(--ease-out), color var(--t-med); }
.entry-meta { grid-column: 2; font-size: 14px; color: var(--graphite); transition: transform var(--t-med) var(--ease-out); }
.entry-status { grid-column: 3; grid-row: 1; font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); white-space: nowrap; border: 1px solid var(--line-strong); padding: 6px 8px; }
.entries:hover .entry:not(:hover) .entry-title, .entries:has(.entry:focus-visible) .entry:not(:focus-visible) .entry-title { color: rgb(22 21 20 / .4); }
.entry:hover::before, .entry:focus-visible::before { transform: scaleX(1); }
.entry:hover .entry-title, .entry:focus-visible .entry-title { transform: translateX(14px); font-style: italic; }
.entry:hover .entry-meta, .entry:focus-visible .entry-meta { transform: translateX(14px); }
.entry:focus-visible { box-shadow: inset 3px 0 0 var(--amber); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a::after { content: ""; position: absolute; inset: 0; }
.entry:has(a) { cursor: pointer; }
.entry:focus-within::before { transform: scaleX(1); }
.entry:focus-within .entry-title { transform: translateX(14px); font-style: italic; }
.entry:has(a:focus-visible) { box-shadow: inset 3px 0 0 var(--amber); }

.plates { grid-column: 10 / -1; position: sticky; top: 120px; align-self: start; aspect-ratio: 4 / 5; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-io); }
.plate.is-on { clip-path: inset(0 0 0 0); }
.plate rect { fill: var(--ink); }
.plate g { fill: none; stroke: var(--ivory); stroke-width: 1; transform-origin: 200px 250px; transition: transform 1600ms var(--ease-out); transform: scale(1.08); }
.plate.is-on g { transform: none; }
.plate .fill { fill: var(--amber); stroke: none; }
@media (max-width: 900px) {
  .entries { grid-column: 1 / -1; }
  .plates { display: none; }
  .entry { grid-template-columns: 40px 1fr; }
  .entry-status { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---------- Conversation & footer ---------- */
.conversation { padding-top: clamp(100px, 13vw, 200px); }
.conv-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 56px; padding-bottom: clamp(100px, 12vw, 180px); }
.conv-copy { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; }
.conv-copy > p:not(.eyebrow) { color: var(--muted); max-width: 36ch; }
.form { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 30px; align-self: end; }
.field { display: grid; gap: 6px; position: relative; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast); }
.field .opt { text-transform: none; letter-spacing: 0; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 12px; font-size: 18px; color: var(--ivory); outline: none; min-height: 48px;
  background-image: linear-gradient(var(--amber), var(--amber)); background-repeat: no-repeat; background-position: left bottom; background-size: 0 2px;
  transition: background-size var(--t-med) var(--ease-out), border-color var(--t-fast);
}
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(var(--amber), var(--amber)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f6f0e3' stroke-width='1.3'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-position: left bottom, right 4px center; background-size: 0 2px, 12px 8px; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { background-size: 100% 2px; }
.field select:focus { background-size: 100% 2px, 12px 8px; }
.field:focus-within label { color: var(--amber); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field-check { grid-template-columns: 28px 1fr; align-items: start; column-gap: 12px; }
.field-check label { text-transform: none; letter-spacing: 0; font-size: 15px; line-height: 1.45; color: var(--muted); padding-top: 2px; cursor: pointer; }
.field-check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--line-strong); display: grid; place-content: center; cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast); }
.field-check input::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease-spring); margin-top: -3px; }
.field-check input:checked { background: var(--amber); border-color: var(--amber); }
.field-check input:checked::after { transform: rotate(-45deg) scale(1); }
.field-check input:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.field-check .field-error { grid-column: 2; }
.field-error { font-size: 14px; color: #ffb4a0; min-height: 0; overflow: hidden; }
.field-error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ffb4a0; }
.field.is-invalid input[type="checkbox"] { border-color: #ffb4a0; }
.field.is-invalid { animation: nudge 360ms var(--ease-out); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 8px; }
.form-status { font-size: 15px; max-width: 46ch; color: var(--muted); }
.form-status.is-error { color: #ffb4a0; }
.form-status.is-success { color: var(--amber); }
.form.is-sending .btn .arrow { animation: sending 900ms var(--ease-io) infinite; }
@keyframes sending { 50% { transform: translateX(8px); opacity: .3; } }
.form.is-sent .field, .form.is-sent .form-foot .btn { opacity: .35; pointer-events: none; transition: opacity var(--t-med); }
@media (max-width: 1023px) {
  .conv-copy, .form { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.footer { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; padding-block: 48px 40px; border-top: 1px solid var(--rule); font-size: 15px; align-items: end; }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand .logo { width: 180px; }
.footer-line { grid-column: 1 / span 8; font-family: var(--serif); font-size: 19px; }
.footer > .muted { grid-column: 10 / -1; text-align: right; }
.footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; color: var(--muted); padding-top: 24px; margin-top: 16px; border-top: 1px solid var(--rule); }
.footer-meta .link-line { color: var(--ivory); }
@media (max-width: 900px) {
  .footer-line, .footer > .muted { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Review mode (?review): marks copy pending confirmation ---------- */
.review [data-draft] { outline: 1px dashed var(--amber); outline-offset: 6px; position: relative; }
.review [data-draft]::after { content: "Pending confirmation"; position: absolute; top: 8px; right: 8px; z-index: 5; font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--amber); color: var(--ink); padding: 5px 7px; }

/* ---------- Reduced motion: complete, still alternative ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .menu[open] { clip-path: none; animation: fade 1ms forwards; }
  .menu .mask > span { transform: none; }
  .menu-foot, .menu-list .num { opacity: 1; }
  .motion [data-reveal] { opacity: 1; transform: none; }
  .motion .pov-statement .w { color: inherit; }
  .motion .pov-statement mark { background-size: 100% .32em; }
}

/* ---------- Patterns ported from Spell UI / Watermelon UI (vanilla, brand-tuned) ---------- */
/* Watermelon "scroll island" → hairline reading progress */
.read-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--read, 0)); opacity: 0; transition: opacity var(--t-med); }
.is-solid .read-progress { opacity: 1; }

/* Spell "Highlighted Text" → emphasis band slides in when the phrase is lit */
.pov-statement mark { background: none; color: inherit; position: relative; white-space: normal; }
.pov-statement mark { background-image: linear-gradient(rgb(251 176 64 / .38), rgb(251 176 64 / .38)); background-repeat: no-repeat; background-position: left 0 bottom .08em; background-size: 100% .32em; }
.motion .pov-statement mark { background-size: 0 .32em; transition: background-size 900ms var(--ease-spring); }
.motion .pov-statement mark.is-lit { background-size: 100% .32em; }

/* Watermelon "Stepper" → rolling stage counter */
.stage-counter { display: none; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .is-seq .stage-counter { display: flex; align-items: baseline; gap: 10px; grid-column: 1 / span 4; grid-row: 2; align-self: end; margin-bottom: 20px; font-family: var(--serif); }
}
.stage-counter .roll { position: relative; display: inline-block; height: 1em; overflow: hidden; font-size: clamp(64px, 6vw, 104px); line-height: 1; width: 1.1em; color: var(--ink); font-feature-settings: "lnum"; }
.stage-counter .roll span { position: absolute; left: 0; top: 0; }
.stage-counter .of { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--graphite); }
.roll .out-up { animation: roll-out-up 520ms var(--ease-out) forwards; }
.roll .in-up { animation: roll-in-up 520ms var(--ease-out) both; }
.roll .out-down { animation: roll-out-down 520ms var(--ease-out) forwards; }
.roll .in-down { animation: roll-in-down 520ms var(--ease-out) both; }
@keyframes roll-in-up { from { transform: translateY(70%) scale(.6); opacity: 0; filter: blur(3px); } }
@keyframes roll-out-up { to { transform: translateY(-70%) scale(.6); opacity: 0; filter: blur(3px); } }
@keyframes roll-in-down { from { transform: translateY(-70%) scale(.6); opacity: 0; filter: blur(3px); } }
@keyframes roll-out-down { to { transform: translateY(70%) scale(.6); opacity: 0; filter: blur(3px); } }

/* Spell "Words Stagger" → stage description words */
.stage p .w { display: inline-block; }
.is-seq .stage.is-active p .w { animation: word-in 560ms ease-out both; animation-delay: calc(160ms + var(--wi) * 28ms); }
@keyframes word-in { from { opacity: 0; transform: translateY(10px); filter: blur(8px); } }

/* Watermelon "Run Action Button" → morphing submit label */
.btn-text { display: inline-block; transition: opacity 200ms, transform 300ms var(--ease-out), filter 300ms; }
.btn-text.is-swapping { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.form.is-sent .btn .arrow { transform: none; }

/* Spell "Special Text" → scramble uses tabular figures so width never shifts */

/* ---------- 3D & scroll choreography ---------- */
/* Convergence scene (orbit.js). The SVG figure remains as the no-JS fallback. */
.orbit-canvas { display: block; pointer-events: none; }
.hero-canvas { position: absolute; z-index: 0; width: min(84vw, 128vh); aspect-ratio: 1; right: -24vw; top: 50%; translate: 0 -48%; opacity: 0; transition: opacity 1600ms var(--ease-out) 200ms; }
.has-3d .hero-figure { display: none; }
.has-3d .hero-canvas { opacity: 1; }
@media (max-width: 720px) { .hero-canvas { width: 130vw; right: -44vw; top: 30%; } }
.conv-copy { position: relative; }
.conv-canvas { width: min(100%, 420px); aspect-ratio: 1; margin-top: 8px; margin-left: -6%; }
@media (max-width: 1023px) { .conv-canvas { width: min(80vw, 360px); margin-inline: auto; } }

/* Dark sections open from an inset as they arrive (scroll-linked --clip 0→1) */
.motion [data-clip] { clip-path: inset(0 calc(var(--clip, 0) * 5vw) 0 calc(var(--clip, 0) * 5vw)); }

/* Headings swing up in perspective */
.motion [data-swing] { transform: perspective(900px) rotateX(-38deg) translateY(36px); transform-origin: 50% 0; }
.motion [data-swing].is-in { transform: none; }

/* Scroll-driven type band */
.band { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 34px); background: var(--ivory); }
.band-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; font: 400 clamp(40px, 6.4vw, 108px)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; transform: translate3d(var(--band, 0px), 0, 0) skewX(var(--skew, 0deg)); will-change: transform; }
.band-track em { color: var(--graphite); }
.band-track i { width: .32em; height: .32em; border-radius: 50%; background: var(--amber); flex: none; }
.band-track i:nth-of-type(3n+2) { background: radial-gradient(circle at 68% 30%, #fff, #cfcdcc 55%, #46464a); }
.band-track i:nth-of-type(3n) { width: .16em; height: .16em; background: var(--graphite); }

/* Approach diagram: a plane that lifts and turns as the method progresses */
.js .is-seq .approach-figure { transform: perspective(1400px) rotateX(calc((1 - var(--p, 0)) * 52deg)) rotateZ(calc(var(--p, 0) * 40deg - 20deg)); transform-origin: 50% 60%; transition: transform 200ms linear; }

/* Perspectives plates tilt toward the pointer */
.plates { perspective: 1000px; }
.plate { transform: rotateY(calc(var(--px, 0) * 9deg)) rotateX(calc(var(--py, 0) * -7deg)); transition: clip-path 900ms var(--ease-io), transform 600ms var(--ease-out); }
.plate .fill { transform: translate(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px)); transition: transform 600ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .motion [data-clip] { clip-path: none; }
  .motion [data-swing] { transform: none; }
  .band-track { transform: none; }
  .plate, .js .is-seq .approach-figure { transform: none; }
}
.has-3d .lede { text-shadow: 0 0 14px var(--ivory), 0 0 4px var(--ivory); }

/* ---------- Round 3 ---------- */
/* Paper grain — static texture, rasterised once */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero exit parallax */
.hero-title .line:nth-child(1) { translate: calc(var(--hp, 0) * -7vw) 0; }
.hero-title .line:nth-child(2) { translate: calc(var(--hp, 0) * 5vw) 0; }
.hero-canvas { scale: calc(1 + var(--hp, 0) * .18); }
.tenets li { cursor: default; transition: color var(--t-fast); }
@media (hover: hover) { .tenets li:hover { color: var(--amber-ink); } }

/* Section rail (desktop) */
.rail { position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 30; display: none; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--ink); opacity: 0; transition: opacity var(--t-med) var(--ease-out), color var(--t-med); pointer-events: none; }
@media (min-width: 1180px) { .rail { display: flex; } }
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail.on-dark { color: var(--ivory); }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.rail a::after { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .35; transition: width var(--t-med) var(--ease-out), opacity var(--t-fast), background-color var(--t-fast); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity var(--t-fast), transform var(--t-med) var(--ease-out); white-space: nowrap; }
.rail a.is-current::after { width: 30px; opacity: 1; background: var(--amber); }
.rail:hover a span { opacity: .75; transform: none; }
.rail a:hover span, .rail:hover a.is-current span { opacity: 1; }

/* Approach: the introduction line flows */
@media (prefers-reduced-motion: no-preference) {
  .af-link { stroke-dasharray: 5 7; animation: flow 1.1s linear infinite; }
  [data-stage="4"] .af-net line.chosen { stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -24; } }

/* Footer sign-off */
.footer-mark { grid-column: 1 / -1; margin-top: clamp(32px, 6vw, 80px); color: rgb(246 240 227 / .95); }
.footer-mark .logo { width: 100%; height: auto; overflow: hidden; }
.motion .footer-mark .l { transform: translateY(105%); transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .footer-mark .logo-mark { opacity: 0; transform: translate(-30px, 20px); transition: opacity 900ms var(--ease-out) 700ms, transform 1400ms var(--ease-out) 700ms; }
.motion .footer-mark.is-in .l, .motion .footer-mark.is-in .logo-mark { transform: none; opacity: 1; }
.footer-mark .logo { animation: none; }
.footer-mark .logo * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hero-title .line { translate: none; }
  .hero-canvas { scale: none; }
  .motion .footer-mark .l, .motion .footer-mark .logo-mark { transform: none; opacity: 1; }
}

/* ---------- Section scenes ---------- */
.scene { display: block; width: 100%; pointer-events: none; }
.scene-scan { grid-column: 8 / -1; grid-row: 1 / span 2; aspect-ratio: 1; align-self: center; max-width: 520px; justify-self: end; }
.exp-intel .exp-title { grid-row: 1; }
.exp-intel .exp-value { grid-column: 2 / span 5; grid-row: 2; align-self: start; }
.exp-intel .exp-questions { grid-row: 3; }
.scene-bridge { width: min(760px, 100%); aspect-ratio: 2.1; margin-bottom: -8px; }
.exp-aside { grid-column: 1 / span 5; align-self: start; position: sticky; top: 110px; display: grid; gap: 24px; }
.exp-aside .exp-pull { position: static; grid-column: auto; }
.scene-armillary { aspect-ratio: 1; max-width: 480px; margin-left: -4%; }
.scene-latam { aspect-ratio: 1; max-height: 92vh; }
@media (max-width: 900px) {
  .scene-scan { grid-column: 1 / -1; grid-row: auto; max-width: 420px; justify-self: center; }
  .exp-intel .exp-value { grid-column: 1 / -1; grid-row: auto; }
  .exp-intel .exp-questions { grid-row: auto; }
  .exp-aside { grid-column: 1 / -1; position: static; }
  .scene-armillary { max-width: 360px; justify-self: center; margin: 0; }
  .scene-latam { aspect-ratio: .95; }
}

/* ---------- Who we are ---------- */
.team { padding-block: clamp(100px, 13vw, 200px); border-top: 1px solid var(--line); }
.team-head { display: grid; gap: 28px; margin-bottom: clamp(56px, 8vw, 110px); }
.team-intro { max-width: 52ch; color: var(--graphite); }
.people { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 80px; }
.person { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: start; }
.person + .person { border-top: 1px solid var(--line); padding-top: 80px; }
.portrait { grid-column: 1 / span 5; aspect-ratio: 1; margin: 0; overflow: hidden; background: #2b2b2c; perspective: 900px; transform: perspective(900px) rotateY(calc(var(--tx, 0) * 8deg)) rotateX(calc(var(--ty, 0) * -6deg)); transition: transform 700ms var(--ease-out), clip-path 1400ms var(--ease-io); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04) translate(calc(var(--tx, 0) * -8px), calc(var(--ty, 0) * -8px)); transition: transform 900ms var(--ease-out); }
.motion .portrait { clip-path: inset(100% 0 0 0); }
.motion .portrait.is-in { clip-path: inset(0 0 0 0); }
.person-body { grid-column: 7 / -1; display: grid; gap: 22px; align-content: start; }
.person-role { font: 500 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-ink); }
.person-name { font: 400 clamp(44px, 5.6vw, 92px)/.95 var(--serif); letter-spacing: -.02em; }
.person-bio { font-size: clamp(17px, 1.1vw + 6px, 21px); max-width: 44ch; }
.person-quote { font: italic 400 clamp(22px, 2vw, 30px)/1.25 var(--serif); color: var(--graphite); border-left: 2px solid var(--amber); padding-left: 20px; max-width: 30ch; }
.person-career > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.person-career > div:last-child { border-bottom: 1px solid var(--line-strong); }
.person-career dt { font-weight: 500; }
.person-career dd { margin: 0; color: var(--graphite); }
.person-bio-2 { font-size: 17px; color: var(--graphite); }
.person:nth-child(even) .portrait { grid-column: 8 / -1; grid-row: 1; }
.person:nth-child(even) .person-body { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 900px) {
  .person, .person:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .portrait, .person-body, .person:nth-child(even) .portrait, .person:nth-child(even) .person-body { grid-column: 1 / -1; grid-row: auto; }
  .portrait { max-width: 420px; }
  .person-career > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .motion .portrait { clip-path: none; } .portrait, .portrait img { transform: none; } }

/* ---------- Questions (native <details>: keyboard and screen-reader ready) ---------- */
.faq { padding-block: clamp(90px, 11vw, 170px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; }
.faq-head { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font: 400 clamp(21px, 1.7vw, 27px)/1.25 var(--serif); transition: color var(--t-fast), transform var(--t-med) var(--ease-out); }
.qa summary:hover h3, .qa summary:focus-visible h3 { transform: translateX(8px); }
.qa-icon { position: relative; flex: none; width: 14px; height: 14px; }
.qa-icon::before, .qa-icon::after { content: ""; position: absolute; inset: 6px 0 auto; height: 1.5px; background: var(--ink); transition: transform var(--t-med) var(--ease-out); }
.qa-icon::after { transform: rotate(90deg); }
.qa[open] .qa-icon::after { transform: rotate(0); }
.qa[open] h3 { color: var(--amber-ink); }
.qa p { max-width: 60ch; padding: 0 0 26px; color: var(--graphite); animation: qa-in 500ms var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px) { .faq-head, .faq-list { grid-column: 1 / -1; } }

/* ---------- Language switch ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; font: 500 12px/1 var(--sans); letter-spacing: .14em; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 44px; opacity: .5; transition: opacity var(--t-fast), color var(--t-fast); }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; color: var(--amber-ink); }
.on-dark .lang-switch a[aria-current], .menu .lang-switch a[aria-current] { color: var(--amber); }
.menu-foot .lang-switch { font-size: 13px; }
@media (max-width: 640px) { .header-actions { gap: 10px; } .lang-switch a { min-width: 26px; } }
