/* ==========================================================================
   Aeverion — website styles
   Built on the Aeverion Brand & Design System v1.0 (Nov 2026)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --brand-ink: #0A1A1A;
  --brand-gold: #C4923A;
  --brand-gold-soft: #B18C54;
  --brand-ivory: #F6F3EC;
  --brand-gold-bright: #DDAE5B; /* hover only: lifted Gold for dark bands */

  /* Interface tokens — light */
  --surface: #FFFFFF;
  --surface-alt: #F6F3EC;
  --surface-inverse: #0A1A1A;
  --text: #0A1A1A;
  --text-muted: #4A5757;
  --text-inverse: #F5F2EB;
  --accent-text: #86621F;
  --line: #E3DED3;
  --line-strong: #7A8585;
  --focus-ring: #86621F;
  --danger: #A3322A;
  --success: #2E6A50;

  /* Spacing — 4px base */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Grid */
  --max: 1200px;
  --gutter: 32px;
  --side: 64px;

  /* Shape */
  --r-sm: 2px;
  --r-md: 4px;

  /* Motion */
  --t-hover: 150ms;
  --t-menu: 300ms;
  --t-reveal: 600ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 76px;
  --shadow-header: 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(10,26,26,.18);
}

/* Reverse (Ink) theme — applied to Ink bands */
.ink {
  --surface: #0A1A1A;
  --surface-alt: #102222;
  --surface-raised: #132B2B;
  --text: #F5F2EB;
  --text-muted: #A3B0AE;
  --accent-text: #C4923A;
  --line: #233838;
  --line-strong: #5F7676;
  --focus-ring: #C4923A;
  --danger: #F2998E;
  --success: #86C9A6;
  background: var(--surface);
  color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.skip {
  position: absolute; left: var(--s4); top: -60px; z-index: 100;
  background: var(--brand-ink); color: var(--text-inverse);
  padding: var(--s3) var(--s4); border-radius: var(--r-sm);
}
.skip:focus { top: var(--s4); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--side) * 2); margin: 0 auto; padding: 0 var(--side); }

/* ---------- Type scale ---------- */
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1.09; font-weight: 500; letter-spacing: -0.02em; }
.h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.17; font-weight: 500; letter-spacing: -0.015em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.h3 { font-size: 24px; line-height: 32px; font-weight: 600; }
.h4 { font-size: 18px; line-height: 26px; font-weight: 600; }
.numeral { font-size: 56px; line-height: 56px; font-weight: 300; color: var(--accent-text); }
.lead { font-size: 20px; line-height: 32px; color: var(--text-muted); }
.small { font-size: 14px; line-height: 22px; }
.caption { font-size: 12px; line-height: 18px; }
.muted { color: var(--text-muted); }
.gold { color: var(--accent-text); }
.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent-text);
}
.label { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; }
.signature { font-size: 14px; line-height: 20px; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: var(--s10) 0; position: relative; }
.section.alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: var(--s8); }
.section-head .eyebrow { margin-bottom: var(--s5); }
.section-head .lead { margin-top: var(--s5); }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--brand-ink); --fg: #F5F2EB; --bd: var(--brand-ink);
  display: inline-flex; align-items: center; gap: var(--s3);
  height: 52px; padding: 0 var(--s6);
  font-size: 14px; line-height: 16px; font-weight: 600; letter-spacing: .06em;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  border-radius: var(--r-sm);
  transition: background var(--t-hover), color var(--t-hover), border-color var(--t-hover);
  white-space: nowrap;
}
.btn:hover { --bg: #132B2B; --bd: #132B2B; }
.btn .arr { transition: transform var(--t-menu) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.secondary { --bg: transparent; --fg: var(--text); --bd: var(--line-strong); }
.btn.secondary:hover { --bd: var(--text); --bg: transparent; }
.ink .btn.gold-btn { --bg: var(--brand-gold); --fg: var(--brand-ink); --bd: var(--brand-gold); }
.ink .btn.gold-btn:hover { --bg: #D2A24E; --bd: #D2A24E; }
.ink .btn.secondary { --fg: #F5F2EB; --bd: var(--line-strong); }
.ink .btn.secondary:hover { --bd: #F5F2EB; }

.link {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em;
  color: var(--text);
}
.link span { padding-bottom: 6px; border-bottom: 1px solid var(--brand-gold); transition: border-color var(--t-hover); }
.link .arr { padding-bottom: 6px; transition: transform var(--t-menu) var(--ease); }
.link:hover .arr, a:hover > .link .arr, .card-link:hover .link .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: transparent; color: #F5F2EB;
  transition: background var(--t-menu), box-shadow var(--t-menu);
}
.site-header.scrolled { background: var(--brand-ink); box-shadow: var(--shadow-header); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s6); }
.brand img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--s6); }
.nav a.nl {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: #A3B0AE; padding: var(--s2) 0; transition: color var(--t-hover);
}
.nav a.nl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--brand-gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-menu) var(--ease);
}
.nav a.nl:hover, .nav a.nl.active { color: #F5F2EB; }
.nav a.nl.active::after { transform: scaleX(1); }
.nav .btn { height: 44px; padding: 0 var(--s5); --bg: var(--brand-ivory); --fg: var(--brand-ink); --bd: var(--brand-ivory); }
.nav .btn:hover { --bg: #FFFFFF; --bd: #FFFFFF; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 22px; height: 1.5px; background: #F5F2EB; position: relative;
  transition: transform var(--t-menu) var(--ease), background var(--t-hover);
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + var(--s9)) 0 0;
}
.hero canvas.dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero .arc { position: absolute; right: -4%; bottom: 40px; width: min(62vw, 900px); z-index: -1; pointer-events: none; }
.hero .arc path { clip-path: inset(0 100% 0 0); animation: arcIn 1.8s var(--ease) .5s forwards; }
@keyframes arcIn { to { clip-path: inset(0 0 0 0); } }
.hero-copy { max-width: 880px; }
.hero .eyebrow { margin-bottom: var(--s6); }
.hero h1 { color: #F5F2EB; }
.hero .lead { max-width: 520px; margin-top: var(--s6); color: #A3B0AE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s7); }
.hero-foot {
  margin-top: auto; border-top: 1px solid #233838;
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; z-index: 1; background: var(--brand-ink);
}
.hero-foot a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding: var(--s6) var(--side); transition: background var(--t-menu) var(--ease);
}
.hero-foot a::before { /* gold rule that sweeps in along the top on hover */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brand-gold-bright);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-reveal) var(--ease);
}
.hero-foot a + a { border-left: 1px solid #233838; }
.hero-foot a:hover, .hero-foot a:focus-visible { background: rgba(221,174,91,.07); }
.hero-foot a:hover::before, .hero-foot a:focus-visible::before { transform: scaleX(1); }
.hero-foot small { display: block; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: var(--s2); transition: color var(--t-menu); }
.hero-foot b { font-weight: 500; font-size: 18px; color: #F5F2EB; transition: color var(--t-menu); }
.hero-foot .arr { color: var(--brand-gold); font-size: 20px; transition: transform var(--t-menu) var(--ease), color var(--t-menu); }
.hero-foot a:hover small, .hero-foot a:focus-visible small,
.hero-foot a:hover b, .hero-foot a:focus-visible b,
.hero-foot a:hover .arr, .hero-foot a:focus-visible .arr { color: var(--brand-gold-bright); }
.hero-foot a:hover .arr, .hero-foot a:focus-visible .arr { transform: translateX(6px); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%);
  width: 1px; height: 48px; background: #233838; overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--brand-gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Split text (word reveal) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); opacity: 0; filter: blur(6px); transition: transform 900ms var(--ease), opacity 900ms var(--ease), filter 900ms var(--ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.split.on .w > span { transform: none; opacity: 1; filter: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 02 Opportunity ---------- */
.opp { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
.opp-intro { position: sticky; top: calc(var(--header-h) + var(--s9)); }
.opp-intro .lead { margin-top: var(--s5); max-width: 420px; }
.opp-list li {
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
  padding: var(--s6) 0; border-top: 1px solid var(--line);
}
.opp-list li:last-child { border-bottom: 1px solid var(--line); }
.opp-list .n { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--line-strong); transition: color var(--t-reveal); }
.opp-list .t { font-size: clamp(22px, 2.5vw, 32px); line-height: 1.25; font-weight: 500; color: #CFCABF; transition: color var(--t-reveal) var(--ease); }
.opp-list li.lit .t { color: var(--text); }
.opp-list li.lit .n { color: var(--accent-text); }
.opp-list li.last .t { font-weight: 400; font-style: normal; }
.opp-list li.last.lit .t { color: var(--accent-text); }

/* ---------- 03 Where we participate ---------- */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.vcard {
  position: relative; background: var(--surface); padding: var(--s8) var(--s7) var(--s7);
  border-top: 2px solid var(--brand-gold-soft); display: flex; flex-direction: column; min-height: 420px;
  overflow: hidden;
}
.vcard::before { /* spotlight — follows cursor, ivory tone only */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(196,146,58,.07), transparent 60%);
  transition: opacity var(--t-menu);
}
.vcard:hover::before { opacity: 1; }
.vcard .idx { position: absolute; top: var(--s6); right: var(--s7); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--line-strong); }
.vcard .eyebrow { margin-bottom: var(--s5); }
.vcard p { margin-top: var(--s5); color: var(--text-muted); max-width: 440px; }
.vcard .link { margin-top: auto; padding-top: var(--s7); }

/* ---------- 04 Connected (Ink) ---------- */
.connected-grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; }
.connected-grid .lead { margin-top: var(--s5); }
.connected-grid .closing { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--text-muted); font-size: 14px; line-height: 22px; max-width: 400px; }
.orbit { position: relative; aspect-ratio: 1 / 1; max-width: 620px; margin-left: auto; width: 100%; }
.orbit svg { width: 100%; height: 100%; overflow: visible; }
.orbit .node-label { font: 600 11px/1 Montserrat, sans-serif; letter-spacing: .24em; fill: #A3B0AE; text-transform: uppercase; }
.orbit .ring { fill: none; stroke: #233838; }
.orbit .spoke { stroke: #233838; stroke-width: 1; }
.orbit .pulse { fill: var(--brand-gold); }
.orbit .core-text { font: 500 18px/1 Montserrat, sans-serif; fill: var(--brand-gold); }
.orbit .node rect { fill: #0A1A1A; stroke: #233838; }
.orbit .node.on rect { stroke: #5F7676; }
.orbit .node.on .node-label { fill: #F5F2EB; }

/* ---------- 05 Design to Delivery ---------- */
.d2d-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s6); margin-bottom: var(--s8); }
.d2d-head .section-head { margin-bottom: 0; }
.d2d { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); }
.d2d-rail { position: sticky; top: calc(var(--header-h) + var(--s8)); align-self: start; }
.d2d-big { font-size: clamp(120px, 14vw, 200px); line-height: .9; font-weight: 300; color: var(--accent-text); letter-spacing: -0.04em; height: 1em; overflow: hidden; position: relative; }
.d2d-big span { display: block; transition: transform 700ms var(--ease); }
.d2d-steps { margin-top: var(--s7); border-left: 1px solid var(--line); }
.d2d-steps button {
  display: flex; gap: var(--s4); width: 100%; text-align: left;
  padding: var(--s3) var(--s5); margin-left: -1px; border-left: 2px solid transparent;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--line-strong);
  transition: color var(--t-hover), border-color var(--t-menu);
}
.d2d-steps button:hover { color: var(--text); }
.d2d-steps button.on { color: var(--text); border-left-color: var(--brand-gold); }
.stage { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: var(--s8) 0; border-top: 1px solid var(--line); }
.stage:first-child { border-top: 0; padding-top: 0; min-height: 60vh; justify-content: flex-start; }
.stage .eyebrow { margin-bottom: var(--s4); }
.stage p.body { margin-top: var(--s5); color: var(--text-muted); max-width: 560px; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); max-width: 620px; }
.tags li { font-size: 13px; line-height: 16px; padding: var(--s2) var(--s3); background: var(--surface-alt); color: var(--text); border-radius: var(--r-sm); }
.objective { margin-top: var(--s7); padding: var(--s5) var(--s6); border-left: 2px solid var(--brand-gold); background: var(--surface-alt); max-width: 560px; }
.objective .eyebrow { margin-bottom: var(--s2); font-size: 11px; }
.objective b { font-weight: 600; font-size: 18px; line-height: 26px; }
.mids { margin-top: var(--s8); display: flex; justify-content: space-between; align-items: center; gap: var(--s5); flex-wrap: wrap; padding: var(--s6) var(--s7); background: var(--surface-alt); border-top: 2px solid var(--brand-gold-soft); }
.mids .eyebrow { margin-bottom: var(--s1); }

/* ---------- 06 Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); }
.cap { position: relative; padding: var(--s6) 0 var(--s7); border-top: 1px solid var(--brand-ink); }
.cap::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--brand-gold); transition: width var(--t-reveal) var(--ease); }
.cap:hover::after, .cap:focus-within::after { width: 100%; }
.cap .n { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent-text); }
.cap h3 { margin-top: var(--s4); }
.cap p { margin-top: var(--s2); color: var(--text-muted); font-size: 15px; line-height: 24px; max-width: 320px; }
.cap ul { margin-top: var(--s5); display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-reveal) var(--ease), opacity var(--t-reveal); opacity: 0; }
.cap ul > div { overflow: hidden; }
.cap li { font-size: 14px; line-height: 22px; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.cap:hover ul, .cap:focus-within ul { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .cap ul { grid-template-rows: 1fr; opacity: 1; } }
.caps-note { margin-top: var(--s7); max-width: 640px; color: var(--text-muted); }

/* ---------- 07 Engagement ---------- */
.spectrum { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-top: var(--s7); }
.spectrum::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.spectrum .bar { position: absolute; left: 0; top: 7px; height: 1px; width: 100%; background: var(--brand-gold); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.spectrum.in .bar { transform: scaleX(1); }
.model { position: relative; }
.model::before { content: ""; position: absolute; top: calc(-1 * var(--s7) + 2px); left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); transition: background var(--t-menu), border-color var(--t-menu); transition-delay: var(--d); }
.spectrum.in .model::before { background: var(--brand-gold); border-color: var(--brand-gold); }
.model .n { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--accent-text); }
.model h3 { margin-top: var(--s4); }
.model .when { margin-top: var(--s2); font-weight: 500; }
.model p.body { margin-top: var(--s4); color: var(--text-muted); font-size: 15px; line-height: 24px; }
.axis { margin-top: var(--s8); display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--line-strong); }

/* ---------- About / How we think ---------- */
.statement { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; max-width: 15em; }
.statement em { font-style: normal; color: var(--accent-text); }
.about-top { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; margin-bottom: var(--s9); }
.about-top .lead { font-size: 18px; line-height: 30px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s8) var(--gutter); }
.principle .numeral { font-size: 44px; line-height: 44px; }
.principle .rule { width: 32px; height: 2px; background: var(--brand-gold); margin: var(--s4) 0 var(--s5); transition: width var(--t-reveal) var(--ease); }
.principle:hover .rule { width: 64px; }
.principle h3 { font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.principle p { margin-top: var(--s3); color: var(--text-muted); font-size: 15px; line-height: 24px; max-width: 320px; }

/* ---------- Perspectives ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s7); }
.chip {
  height: 36px; padding: 0 var(--s4); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-muted);
  transition: border-color var(--t-hover), color var(--t-hover), background var(--t-hover);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: #F5F2EB; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); }
.post { display: flex; flex-direction: column; padding: var(--s6) 0 var(--s7); border-top: 1px solid var(--line); min-height: 240px; transition: border-color var(--t-hover); }
.post:hover { border-top-color: var(--brand-ink); }
.post .eyebrow { font-size: 11px; }
.post h3 { margin-top: var(--s4); font-size: 20px; line-height: 28px; font-weight: 600; }
.post p { margin-top: var(--s3); color: var(--text-muted); font-size: 15px; line-height: 24px; }
.post .arr { margin-top: auto; padding-top: var(--s5); color: var(--accent-text); transition: transform var(--t-menu) var(--ease); }
.post:hover .arr { transform: translateX(4px); }
.post[hidden] { display: none; }
.post.fade { animation: fadeUp var(--t-reveal) var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.more-wrap { margin-top: var(--s7); display: flex; justify-content: center; }

/* ---------- Connect (Ink) ---------- */
.connect { overflow: hidden; isolation: isolate; }
.connect-grid { display: grid; grid-template-columns: 6fr 5fr; gap: var(--s9); align-items: start; }
.connect .lead { margin-top: var(--s5); }
.paths { margin-top: var(--s7); border-top: 1px solid var(--line); }
.paths button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s5) 0; border-bottom: 1px solid var(--line); text-align: left;
  font-size: 18px; line-height: 26px; font-weight: 500; color: var(--text-muted);
  transition: color var(--t-hover), padding var(--t-menu) var(--ease);
}
.paths button small { display: block; font-size: 13px; line-height: 20px; font-weight: 400; color: var(--text-muted); margin-top: 2px; opacity: .8; }
.paths button .arr { color: var(--brand-gold); transition: transform var(--t-menu) var(--ease); }
.paths button:hover, .paths button.on { color: var(--text); padding-left: var(--s3); }
.paths button:hover .arr, .paths button.on .arr { transform: translateX(4px); }
.form { background: var(--surface-raised); padding: var(--s7); border-top: 2px solid var(--brand-gold); }
.form h3 { font-size: 22px; line-height: 30px; font-weight: 500; margin-bottom: var(--s6); }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .06em; margin-bottom: var(--s2); }
.field label i { font-style: normal; color: var(--brand-gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 13px var(--s4); transition: border-color var(--t-hover);
}
.field textarea { resize: vertical; min-height: 112px; line-height: 24px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23C4923A' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input::placeholder, .field textarea::placeholder { color: #6E7F7D; }
.field .err { display: none; color: var(--danger); font-size: 13px; line-height: 20px; margin-top: var(--s2); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.form .btn { width: 100%; justify-content: center; margin-top: var(--s2); }
.form-status { margin-top: var(--s4); font-size: 14px; line-height: 22px; min-height: 22px; }
.form-status.ok { color: var(--success); }
.form-status.bad { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--s9) 0 var(--s7); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr; gap: var(--gutter); }
.foot-grid img { width: 180px; }
.foot-grid .tag { margin-top: var(--s5); color: var(--text-muted); font-size: 14px; line-height: 22px; max-width: 260px; }
.foot-grid h4 { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s5); }
.foot-grid a { display: block; font-size: 14px; line-height: 22px; padding: var(--s1) 0; color: #D9D5CC; transition: color var(--t-hover); }
.foot-grid a:hover { color: var(--brand-gold); }
.foot-bottom { margin-top: var(--s9); padding-top: var(--s5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.foot-bottom .signature { color: var(--brand-gold); }
.foot-bottom .caption { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --side: 40px; }
  .nav { gap: var(--s5); }
  .caps, .posts, .principles { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { gap: var(--s8); }
}

@media (max-width: 900px) {
  :root { --side: 24px; --header-h: 64px; }
  .section { padding: var(--s8) 0; }
  .section-head { margin-bottom: var(--s7); }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-ink); padding: var(--s4) var(--side) var(--s6); border-top: 1px solid #233838;
    box-shadow: var(--shadow-header);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-menu), transform var(--t-menu) var(--ease), visibility var(--t-menu);
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--brand-ink); }
  .nav a.nl { padding: var(--s4) 0; font-size: 16px; border-bottom: 1px solid #233838; }
  .nav a.nl::after { display: none; }
  .nav .btn { margin-top: var(--s5); justify-content: center; height: 52px; }
  .brand img { width: 124px; }

  .hero { padding-top: calc(var(--header-h) + var(--s8)); }
  .hero .arc { width: 140vw; right: -70%; bottom: 0; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-foot a + a { border-left: 0; border-top: 1px solid #233838; }
  .hero-foot a { padding: var(--s5) var(--side); }
  .scroll-cue { display: none; }

  .opp, .connected-grid, .d2d, .about-top, .connect-grid { grid-template-columns: 1fr; }
  .opp-intro, .d2d-rail { position: static; }
  .opp { gap: var(--s7); }
  .verticals { grid-template-columns: 1fr; }
  .vcard { min-height: 0; padding: var(--s7) var(--s5) var(--s6); }
  .vcard .idx { right: var(--s5); }
  .orbit { margin: var(--s6) auto 0; }
  .d2d-head { flex-direction: column; align-items: start; }
  .d2d-rail { display: none; }
  .stage, .stage:first-child { min-height: 0; padding: var(--s7) 0; }
  .stage:first-child { border-top: 1px solid var(--line); }
  .stage .stage-num { display: block !important; }
  .mids { padding: var(--s5); }
  .spectrum { grid-template-columns: 1fr; gap: var(--s7); padding-top: 0; padding-left: var(--s6); }
  .spectrum::before { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .spectrum .bar { left: 5px; top: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: top; }
  .spectrum.in .bar { transform: scaleY(1); }
  .model::before { top: 4px; left: calc(-1 * var(--s6)); }
  .axis { display: none; }
  .about-top { margin-bottom: var(--s8); }
  .form { padding: var(--s6) var(--s5); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; margin-bottom: var(--s5); }
}

@media (max-width: 600px) {
  .caps, .posts, .principles { grid-template-columns: 1fr; }
  .principles { gap: var(--s7); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--side)); margin-right: calc(-1 * var(--side)); padding: 0 var(--side); scrollbar-width: none; }
  .chip { flex: none; }
}

.stage-num { display: none; font-size: 44px; line-height: 44px; font-weight: 300; color: var(--accent-text); margin-bottom: var(--s4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; opacity: 1; filter: none; }
  .hero .arc path { clip-path: none; }
}

/* ---------- Perspectives — infographics ---------- */
.chip .ct { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .ct { color: var(--brand-gold); }
.post { position: relative; }
.post::before { /* spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t-menu);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(196,146,58,.06), transparent 60%);
}
.post:hover::before { opacity: 1; }
.viz { background: var(--surface-alt); margin-bottom: var(--s5); aspect-ratio: 2 / 1; border: 1px solid transparent; transition: border-color var(--t-hover); }
.post:hover .viz, .post:focus-visible .viz { border-color: var(--line); }
.viz svg { display: block; width: 100%; height: 100%; overflow: visible; }
.viz * { fill: none; stroke: var(--line-strong); stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: all var(--t-reveal) var(--ease); transform-box: fill-box; }
.viz text { stroke: none; fill: var(--text-muted); font: 500 9px/1 Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.viz .g { stroke: var(--brand-gold); }
.viz .gf { fill: var(--brand-gold); stroke: none; }
.viz .bar { fill: rgba(10,26,26,.08); stroke: none; }
.viz .dot { fill: var(--line-strong); stroke: none; }
.viz .node { fill: var(--surface-alt); }
.viz .node.gf { fill: var(--brand-gold); stroke: var(--brand-gold); }

/* Draw-in when the card first scrolls into view */
.viz .draw, .viz .shot, .viz .link, .viz .spoke, .viz .prog, .viz .orbit { stroke-dasharray: 1; stroke-dashoffset: 1; }
.post.drawn .viz .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.post.drawn .viz .spoke { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) calc(var(--i) * 80ms), stroke var(--t-menu); }
.viz .cell, .viz .step, .viz .node, .viz .fn, .viz .ring, .viz .odd, .viz .dot, .viz .gf, .viz text { opacity: 0; }
.post.drawn .viz .cell, .post.drawn .viz .step, .post.drawn .viz .node, .post.drawn .viz .fn, .post.drawn .viz .ring,
.post.drawn .viz .odd, .post.drawn .viz .dot, .post.drawn .viz .gf, .post.drawn .viz text { opacity: 1; transition-delay: calc(var(--i, 2) * 70ms); }

/* Hover — each drawing shows its idea */
.post:hover .viz .cell:not(.gf), .post:focus-visible .viz .cell:not(.gf) { stroke: var(--brand-gold); transition-delay: calc(var(--i) * 90ms); }
.viz .mv-r, .viz .mv-l { transition: transform var(--t-reveal) var(--ease); }
.post:hover .viz .mv-r { transform: translateX(18px); }
.post:hover .viz .mv-l { transform: translateX(-18px); }
.post:hover .viz .mv-l circle { fill: rgba(196,146,58,.10); }
.post:hover .viz .mv-q { transform: translate(110px, 50px); }
.post:hover .viz .fn:not(.gf) { opacity: .35; }
.post:hover .viz .fn.gf { transform: scaleX(1.5); }
.post:hover .viz .prog { stroke: var(--brand-gold); stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
.post:hover .viz .node { fill: var(--brand-gold); stroke: var(--brand-gold); transition-delay: calc(var(--i, 0) * 200ms); }
.post:hover .viz .ring { stroke: var(--brand-gold); animation: vizPulse 2.4s var(--ease) infinite calc(var(--i) * 400ms); transform-origin: center; }
.post:hover .viz .link { stroke: var(--brand-gold); stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease) .3s; }
.viz .grow { transform-origin: bottom; }
.post:hover .viz .grow { transform: scaleY(2.1); }
.post:hover .viz .step { stroke: var(--brand-gold); transition-delay: calc(var(--i) * 120ms); }
.post:hover .viz .shot { stroke: var(--brand-gold); stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease); }
.viz .bull { transform-origin: center; }
.post:hover .viz .bull { transform: scale(1.6); transition-delay: .6s; }
.viz .odd { stroke: var(--line-strong); }
.post:hover .viz .odd { fill: var(--brand-gold); stroke: var(--brand-gold); transform: translateY(-12px); }
.post:hover .viz .spoke { stroke: var(--brand-gold); }
.viz .rider { offset-distance: 12%; transition: offset-distance 1.2s var(--ease); }
.post:hover .viz .rider { offset-distance: 42%; }
.post:hover .viz .sig { animation: vizBlink 1.2s var(--ease) infinite calc(var(--i) * 300ms); }
.viz .orbit { stroke: var(--brand-gold); stroke-width: 2; stroke-dasharray: .18 .82; stroke-dashoffset: 0; opacity: 0; transform-origin: center; }
.post:hover .viz .orbit { opacity: 1; animation: vizSpin 3s linear infinite; }
.post:hover .viz .home { stroke: var(--brand-gold); fill: rgba(196,146,58,.12); transition-delay: .9s; }

@keyframes vizPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.08); } }
@keyframes vizBlink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes vizSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .viz *, .post::before { transition: none !important; animation: none !important; }
}
