/* Julien Nigou, portfolio produit. V3.
   Direction: airy white pages, a thin geometric sans for everything, an italic display serif for one accent per title,
   colour used as a soft ultramarine glow rather than as fills, black pills for actions, pale grey cards without borders.
   Palette kept from V2: graphite ink, ultramarine accent, vermilion for "now". Light only, by design: the page never switches to a dark theme. */

:root {
  --bg: #FFFFFF;
  --card: #F5F6F9;
  --card-2: #FFFFFF;
  --line: #E7E9EE;
  --track: #E6E8EE;
  --ink: #0F1115;
  --ink-2: #5E636D;
  --ink-3: #A0A5AE;
  --accent: #2D43C8;
  --accent-2: #6E7FF0;
  --accent-soft: #E7EBFE;
  --on-accent: #FFFFFF;
  --glow: #C3CCFF;
  --glow-2: #E4E8FF;
  --mark: #CF4520;
  --mark-soft: #FCEAE3;
  --on-mark: #FFFFFF;
  --score-3: #2D43C8;
  --score-2: #7B8CE8;
  --score-1: #C9D0F6;
  --score-0: #E3E5EA;
  --on-score-3: #FFFFFF;
  --on-score-2: #0F1115;
  --on-score-1: #0F1115;
  --on-score-0: #5E636D;
  --device: #111318;
  --pill: #0F1115;
  --on-pill: #FFFFFF;
  --topbar: rgb(255 255 255 / 0.78);
  --shadow-sm: 0 1px 2px rgb(15 17 21 / 0.05), 0 4px 14px -6px rgb(15 17 21 / 0.12);
  --shadow: 0 2px 6px rgb(15 17 21 / 0.04), 0 24px 48px -24px rgb(15 17 21 / 0.28);

  --f-sans: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1140px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 1.0625rem; font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.06; text-wrap: balance; letter-spacing: -0.03em; }
b, strong { font-weight: 600; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.dim { color: var(--ink-3); }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.92rem; color: var(--ink-2); }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: transparent; transition: background .25s, box-shadow .25s; }
.topbar.scrolled { background: var(--topbar); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { font-family: var(--f-serif); font-style: italic; font-size: 1.55rem; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.chapter-now { display: none; position: absolute; left: 50%; transform: translateX(-50%); max-width: 46%; font-size: 0.86rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-now b { font-family: var(--f-mono); font-weight: 500; font-size: 0.76rem; color: var(--accent); margin-right: 8px; }
@media (min-width: 960px) { .chapter-now { display: block; } }
.menu-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), background .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
.menu-panel { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: 66px; width: min(290px, calc(100vw - 40px)); display: grid; gap: 2px; padding: 8px; border-radius: 22px; background: var(--card-2); box-shadow: var(--shadow); }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-size: 1rem; }
.menu-panel a span { color: var(--ink-3); }
.menu-panel a:hover { background: var(--card); }
.read-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Type ---------- */
.kicker { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; color: var(--ink-2); letter-spacing: 0; }
.kicker::before { content: "/ "; color: var(--ink-3); }
.kicker.plain::before { content: none; }
.kicker .n { font-family: var(--f-mono); font-style: normal; font-size: 0.74rem; color: var(--accent); margin-right: 6px; letter-spacing: 0.04em; vertical-align: 2px; }
.display { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.display .turn, .h2 .turn { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; }
.h2 .serif { font-size: 1.04em; }
.h3 { font-size: clamp(1.18rem, 1.8vw, 1.42rem); font-weight: 500; letter-spacing: -0.02em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.statement { font-size: clamp(1.6rem, 3.5vw, 2.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.18; text-wrap: balance; }

/* ---------- Pills & buttons ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--card-2); box-shadow: var(--shadow-sm); font-size: 0.9rem; white-space: nowrap; }
.status i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; }
.status i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status.now i { background: var(--mark-soft); }
.status.now i::after { background: var(--mark); }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; font-weight: 500; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s var(--ease), opacity .2s; }
.btn .arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 0.95rem; transition: transform .25s var(--ease); }
.btn-primary { background: var(--pill); color: var(--on-pill); }
.btn-primary .arrow { background: rgb(255 255 255 / 0.14); }
.btn-ghost { background: var(--card-2); color: var(--ink); border-color: var(--line); }
.btn-ghost .arrow { background: var(--card); }
.btn-sm { padding: 6px 18px 6px 6px; font-size: 0.92rem; }
.btn-sm .arrow { width: 28px; height: 28px; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .arrow { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; background: var(--card); color: var(--ink-2); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.mark { background: var(--mark-soft); color: var(--mark); }
.tag.plain { background: transparent; border: 1px solid var(--line); }

/* ---------- Sections ---------- */
.chapter { padding-block: clamp(80px, 11vw, 140px); }
.chapter.tint, .chapter.band { background: transparent; }
.chapter.glow-top { background: radial-gradient(70% 55% at 50% 0%, var(--glow-2), transparent 70%); }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .h2 { max-width: 22ch; }
.sec-head .lede { max-width: 54ch; }
.stack { display: grid; gap: clamp(28px, 4vw, 52px); }
.sub { display: grid; gap: 20px; }
.sub-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.sub-title .small { max-width: 48ch; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .g2, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 30px); min-width: 0; }
.card.pick { background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px); background: linear-gradient(180deg, #FFFFFF 0%, #EEF1FF 14%, #B7C5FF 40%, #C4D0FF 58%, #EDF0FF 80%, #FFFFFF 100%); }
.hero-center { display: grid; justify-items: center; text-align: center; gap: 26px; }
.hero-center .display { max-width: 15ch; }
.hero-center .lede { max-width: 50ch; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.meta span { display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--card-2); box-shadow: var(--shadow-sm); font-size: 0.9rem; }
.meta span b { color: var(--ink-3); font-weight: 400; }
.showcase { display: block; text-decoration: none; position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: 32px; padding: clamp(18px, 3vw, 36px) clamp(14px, 3vw, 36px) 0; background: linear-gradient(160deg, var(--accent-2), var(--accent) 55%, #1E2E9A); overflow: hidden; max-height: clamp(360px, 52vw, 560px); }
.showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 20% 0%, rgb(255 255 255 / 0.28), transparent 60%); pointer-events: none; }
.showcase-row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: start; }
@media (min-width: 760px) { .showcase-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.showcase .phone { border-width: 5px; border-radius: 24px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55); }
.showcase .phone:nth-child(even) { margin-top: clamp(18px, 3vw, 40px); }
.showcase .phone img { aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; background: #FFFFFF; }
.showcase-row .phone:nth-child(n+3) { display: none; }
@media (min-width: 760px) { .showcase-row .phone:nth-child(n+3) { display: block; } }

.phone { display: block; border-radius: 30px; border: 7px solid var(--device); background: var(--device); box-shadow: var(--shadow); overflow: hidden; max-width: 100%; }
.phone img { width: 100%; }
.phone.sm { border-width: 5px; border-radius: 22px; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 820px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 6px; align-content: start; padding-left: 18px; border-left: 1px solid var(--line); }
.kpi b { font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi b small { font-family: var(--f-serif); font-style: italic; font-size: 0.5em; letter-spacing: 0; margin-left: 6px; color: var(--ink-2); }
.kpi > span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.35; }

/* ---------- Stats ---------- */
.stat { display: grid; gap: 6px; align-content: start; }
.stat b { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.38; }
.stat .lab { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--accent); }

/* ---------- Problem ---------- */
.contrast { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .contrast { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.ring-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.ring { width: clamp(112px, 14vw, 150px); aspect-ratio: 1; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track-c { stroke: var(--track); }
.ring .val-c { stroke: var(--accent); stroke-linecap: round; stroke-dashoffset: var(--off, 0); }
.ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-l { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card-2); box-shadow: var(--shadow-sm); font-size: 0.92rem; }
.task-list { display: grid; }
.task { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--mark-soft); color: var(--mark); }
.task .who { font-family: var(--f-serif); font-style: italic; color: var(--mark); white-space: nowrap; }
.constraints { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .constraints { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .constraints { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.constraints > div { background: var(--card); border-radius: var(--r-lg); padding: 24px; }

/* ---------- Flow ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 14px; } }
.flow-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--card); border-radius: var(--r-md); min-width: 0; }
@media (min-width: 900px) {
  .flow-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; right: -15px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); box-shadow: var(--shadow-sm); color: var(--ink-2); font-size: 0.8rem; }
}
.flow-step b { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.flow-step span { color: var(--ink-2); font-size: 0.93rem; line-height: 1.38; }
.flow-step h4 { font-size: 1.04rem; letter-spacing: -0.015em; }
.flow-step .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.flow-step.end { background: var(--accent); }
.flow-step.end b, .flow-step.end span, .flow-step.end h4 { color: var(--on-accent); }
.flow-step.end .ico { background: rgb(255 255 255 / 0.16); color: var(--on-accent); box-shadow: none; }

/* ---------- Bars ---------- */
.bars { display: grid; gap: 20px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.hbar .label { font-size: 1rem; line-height: 1.3; }
.hbar .val { font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.hbar .val b { color: var(--ink); font-weight: 500; font-size: 1.1rem; }
.hbar .track { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; }
.hbar .fill { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 6px; background: var(--score-2); transform-origin: left center; }
.hbar.pick .label { font-weight: 600; }
.hbar.pick .fill { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.hbar.pick .val b { color: var(--accent); }
.hbar .why { grid-column: 1 / -1; font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Personas ---------- */
.persona { display: grid; gap: 14px; align-content: start; }
.persona h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }
.persona .row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 10px; font-size: 0.95rem; line-height: 1.38; padding-top: 10px; border-top: 1px solid var(--line); }
.persona .row dt { font-family: var(--f-serif); font-style: italic; color: var(--ink-3); }
.persona .tag { justify-self: start; }

/* ---------- North star ---------- */
.ns-statement { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; max-width: 26ch; text-wrap: balance; }
.ns-statement em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.ns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) { .ns { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.chart-card { padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); min-width: 0; display: grid; gap: 16px; }
.chart-card h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
.legend-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.86rem; color: var(--ink-2); }
.legend-line i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
svg.chart { width: 100%; height: auto; overflow: visible; font-family: var(--f-sans); }
svg.chart .grid-l { stroke: var(--line); stroke-width: 1; }
svg.chart .axis-t { fill: var(--ink-3); font-size: 12.5px; }
svg.chart .area { fill: var(--accent); opacity: 0.1; }
svg.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
svg.chart .pt { fill: var(--card); stroke: var(--accent); stroke-width: 3; }
svg.chart .pt.now { fill: var(--mark); stroke: var(--mark); }
svg.chart .pt-l { fill: var(--ink); font-weight: 600; font-size: 18px; }
svg.chart .pt-s { fill: var(--ink-2); font-size: 12px; }
.targets { display: grid; gap: 12px; align-content: start; }
.target { background: var(--card); border-radius: var(--r-md); padding: 18px 20px; display: grid; gap: 6px; }
.target .t-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; color: var(--ink-2); }
.target .t-head .mono { font-family: var(--f-serif); font-style: italic; font-size: 0.95rem; color: var(--ink-3); }
.target .t-vals { display: flex; align-items: baseline; gap: 10px; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.target .t-vals .from { color: var(--ink-3); font-size: 1.15rem; }
.target .t-vals .to { color: var(--accent); }
.target .t-vals .arrow { color: var(--ink-3); font-size: 1rem; }

/* ---------- Callout ---------- */
.callout { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: radial-gradient(80% 100% at 50% 0%, var(--mark-soft), var(--card) 75%); }
.callout .kicker { color: var(--mark); }
.callout h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; max-width: 28ch; }
.callout .chips { justify-content: center; }
.callout .chip-l::before { content: "×"; color: var(--mark); font-weight: 600; }
.rule-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-size: 1.1rem; }
.rule-line .q { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; }

/* ---------- Scope swap ---------- */
.swap { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--card); padding: 8px clamp(12px, 2vw, 20px); }
.swap-head, .swap-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 8px; align-items: center; padding: 14px 6px; }
.swap-head { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--ink-3); }
.swap-row { border-top: 1px solid var(--line); }
.swap-row .was { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; font-size: 0.98rem; line-height: 1.35; }
.swap-row .to { color: var(--accent); text-align: center; }
.swap-row .now { font-weight: 500; line-height: 1.35; }
.swap-row .now .tag { margin-left: 6px; }
@media (max-width: 640px) {
  .swap-head { display: none; }
  .swap-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .swap-row .to { display: none; }
  .swap-row .now::before { content: "→ "; color: var(--accent); }
}

/* ---------- System ---------- */
.system { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 960px) { .system { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); } }
.nest { padding: 18px; border-radius: var(--r-lg); background: var(--card); display: grid; gap: 12px; min-width: 0; }
.nest .nest { background: var(--card-2); box-shadow: var(--shadow-sm); border-radius: var(--r-md); }
.nest .nest .nest { background: var(--card); box-shadow: none; }
.nest-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.nest-label b { font-weight: 600; }
.nest-label span { font-family: var(--f-serif); font-style: italic; font-size: 1rem; color: var(--ink-2); }
.learners { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.learner { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.learner code { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); }
.learner span { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em; }
.roles { display: grid; gap: 12px; align-content: start; }
.role { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--card); }
.role .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--card-2); color: var(--accent); box-shadow: var(--shadow-sm); }
.role h4 { font-size: 1.04rem; letter-spacing: -0.015em; margin-bottom: 2px; }
.role p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.38; }

/* ---------- Help ladder ---------- */
.ladder { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.ladder > figure { scroll-snap-align: start; }
@media (min-width: 900px) { .ladder { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.rung { display: grid; gap: 16px; padding: 18px 18px 0; border-radius: var(--r-lg); background: var(--card); overflow: hidden; align-content: start; }
.rung .phone { width: 100%; max-width: 210px; justify-self: center; margin-bottom: 18px; }
.rung-head { display: flex; align-items: center; gap: 12px; }
.score-chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-weight: 600; font-size: 1rem; font-style: normal; flex: none; font-variant-numeric: tabular-nums; }
.s3 { background: var(--score-3); color: var(--on-score-3); }
.s2 { background: var(--score-2); color: var(--on-score-2); }
.s1 { background: var(--score-1); color: var(--on-score-1); }
.s0 { background: var(--score-0); color: var(--on-score-0); }
.rung-head b { display: block; font-weight: 600; line-height: 1.2; }
.rung-head span { display: block; font-family: var(--f-serif); font-style: italic; color: var(--ink-2); }

/* ---------- Diagnostic ---------- */
.diag { display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); }
.domains { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .domains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .domains { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.domain { display: grid; gap: 8px; align-content: start; min-width: 0; }
.domain h4 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.05rem; letter-spacing: 0; color: var(--ink-2); }
.missions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .missions { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1000px) { .domain.wide .missions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mission { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px; border-radius: 14px; background: var(--card-2); font-size: 0.92rem; line-height: 1.22; min-height: 54px; }
.mission .n { font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-3); display: block; }
.diag-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.9rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .score-chip { width: 26px; height: 26px; border-radius: 8px; font-size: 0.8rem; }
.level { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; }
.level .pill { font-family: var(--f-sans); font-style: normal; font-weight: 600; font-size: 1rem; padding: 6px 14px; border-radius: 999px; background: var(--pill); color: var(--on-pill); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.lang { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--card); font-size: 0.97rem; }
.lang code { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); }
.lang.out { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); text-decoration: line-through; }
.lang.out code { color: var(--ink-3); }

/* ---------- Galleries ---------- */
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail-scroll > figure { scroll-snap-align: start; }
.rail-scroll .phone img { aspect-ratio: 600 / 1298; object-fit: contain; object-position: top; background: #FFFFFF; }
@media (min-width: 900px) { .rail-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
figure { display: grid; gap: 12px; align-content: start; min-width: 0; }
figcaption { font-size: 0.93rem; line-height: 1.4; color: var(--ink-2); }
figcaption b { color: var(--ink); font-weight: 600; }
.desk { display: block; border-radius: var(--r-md); overflow: hidden; background: var(--card-2); box-shadow: var(--shadow); }
.desk-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--card); }
.desk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }

/* ---------- Stories ---------- */
.story { display: grid; gap: 14px; align-content: start; }
.story .id { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.story .as { font-weight: 500; font-size: 1.08rem; line-height: 1.32; letter-spacing: -0.015em; }
.story ul { display: grid; gap: 8px; }
.story li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 0.94rem; line-height: 1.4; color: var(--ink-2); }
.story li::before { content: "✓"; color: var(--accent); font-weight: 600; }

/* ---------- Vertical bars ---------- */
.vbars { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); align-items: end; height: 230px; padding-top: 28px; border-bottom: 1px solid var(--line); }
.vbar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.vbar i { display: block; width: 100%; height: calc(var(--v) * 100%); border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); transform-origin: bottom center; }
.vbar.soft i { background: var(--score-1); }
.vbar b { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100% + 6px); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.vlabels { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); font-size: 0.82rem; color: var(--ink-3); text-align: center; padding-top: 8px; }

.fixes { display: grid; }
.fix { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fix:first-child { padding-top: 0; }
@media (min-width: 760px) { .fix { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 14px; align-items: start; } }
.fix .was { color: var(--ink-2); font-size: 0.97rem; line-height: 1.4; }
.fix .to { color: var(--accent); }
.fix .now { font-weight: 500; line-height: 1.4; }
@media (max-width: 759px) { .fix .to { display: none; } .fix .now::before { content: "→ "; color: var(--accent); } }

/* ---------- AI ring ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) { .ai { grid-template-columns: auto minmax(0, 1fr); gap: 44px; } }
.ai .ring { width: clamp(150px, 18vw, 200px); }
.ai .ring b { font-size: clamp(2.3rem, 4vw, 3.1rem); }
.ai .ring small { position: absolute; left: 0; right: 0; bottom: 25%; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 0.95rem; color: var(--ink-3); }
.workflows { display: grid; gap: 10px; }
.wf { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--r-md); background: var(--card-2); font-size: 0.96rem; line-height: 1.3; }
.wf code { font-family: var(--f-mono); font-size: 0.72rem; color: var(--accent); display: block; margin-bottom: 2px; }
.wf .to { color: var(--ink-3); text-align: center; }
.wf .out { font-weight: 500; }

/* ---------- Phases ---------- */
.phases { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.phase { position: relative; padding: 26px 18px 22px 30px; border-left: 2px solid var(--line); display: grid; gap: 8px; align-content: start; }
@media (min-width: 960px) { .phase { padding: 32px 24px 0 0; border-left: 0; border-top: 2px solid var(--line); } }
.phase::before { content: ""; position: absolute; left: -7px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
@media (min-width: 960px) { .phase::before { left: 0; top: -7px; } }
.phase.done { border-color: var(--accent); }
.phase.done::before { background: var(--accent); border-color: var(--accent); }
.phase.now::before { background: var(--mark); border-color: var(--mark); box-shadow: 0 0 0 6px var(--mark-soft); }
.phase .when { font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; color: var(--ink-2); }
.phase h3 { font-size: 1.18rem; letter-spacing: -0.02em; }
.phase p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.42; }
.phase .gate { font-size: 0.88rem; color: var(--ink); padding-top: 8px; border-top: 1px dashed var(--line); }
.phase .gate::before { content: "Passage · "; color: var(--accent); }

/* ---------- Wave & stacks ---------- */
.timebar { display: flex; height: 58px; border-radius: 14px; overflow: hidden; }
.timebar span { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.88rem; line-height: 1.15; }
.timebar span small { font-size: 0.74rem; opacity: 0.75; }
.timebar span + span { border-left: 2px solid var(--card); }
.timebar em { font-style: normal; font-weight: 600; }
.tb-1 { background: var(--accent-soft); color: var(--ink); }
.tb-2 { background: var(--score-2); color: var(--on-score-2); }
.tb-3 { background: var(--accent); color: var(--on-accent); }
.tb-4 { background: var(--mark-soft); color: var(--ink); }
.tb-5 { background: var(--score-0); color: var(--on-score-0); }
@media (max-width: 640px) { .timebar span { padding: 0 4px; } .timebar span em { display: none; } }
.ticks { position: relative; height: 18px; font-size: 0.76rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.wave-key { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 18px; font-size: 0.9rem; color: var(--ink-2); }
.wave-key b { color: var(--ink); font-weight: 600; }
.stack-bar { display: flex; height: 46px; border-radius: 14px; overflow: hidden; }
.stack-bar span { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; overflow: hidden; font-size: 0.88rem; font-weight: 500; }
.stack-bar span + span { border-left: 2px solid var(--card); }
.stack-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; color: var(--ink-2); }
.stack-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.etp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; height: 190px; padding-top: 28px; border-bottom: 1px solid var(--line); }
.etp div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.etp i { display: block; width: 100%; height: calc(var(--v) * 100%); border-radius: 12px 12px 4px 4px; background: var(--score-1); transform-origin: bottom center; }
.etp div:last-child i { background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.etp b { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100% + 6px); text-align: center; font-weight: 600; }
.etp-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: center; font-size: 0.82rem; color: var(--ink-3); padding-top: 8px; }

/* ---------- Results ---------- */
.result-tile { display: grid; gap: 8px; align-content: start; }
.result-tile b { font-size: clamp(2.2rem, 4.2vw, 3.1rem); font-weight: 400; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-tile > span { color: var(--ink-2); font-size: 0.95rem; line-height: 1.4; }
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px 24px; border-radius: var(--r-lg); background: var(--mark-soft); }
.next .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mark); margin-top: 7px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--mark) 20%, transparent); }
.next p { line-height: 1.5; }
.lesson { display: grid; gap: 10px; align-content: start; }
.lesson .k { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.lesson b { font-size: 1.2rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
.lesson p { color: var(--ink-2); font-size: 0.96rem; line-height: 1.45; }

/* ---------- Home: hero ---------- */
.hero-home { margin-top: -72px; padding-top: calc(72px + clamp(40px, 5vw, 76px)); background: radial-gradient(ellipse 96% 58% at 50% 46%, #9EB1FF 0%, #A9BAFF 30%, #C4CFFF 54%, #E8ECFF 77%, #FFFFFF 100%); }
.hh { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 22px; }
.hh-title { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.hh .display { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: none; }
.hh .display .turn { font-size: 1.14em; line-height: 0.95; }
.hh-portrait { position: relative; z-index: 1; width: min(100%, 340px); }
.hh-portrait img { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.hh-left, .hh-right { display: grid; gap: 16px; justify-items: center; }
.hh-right { order: 3; }
.hh-left { order: 4; }
.hh-text { font-size: 1.05rem; line-height: 1.45; max-width: 30ch; }
.proof { display: flex; align-items: center; gap: 12px; text-align: left; }
.avatars { display: flex; }
.avatars i { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -9px; border-radius: 50%; border: 2px solid #FFFFFF; background: var(--ink); color: #FFFFFF; font-style: normal; font-size: 0.72rem; font-weight: 600; }
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2) { background: var(--accent); }
.avatars i:nth-child(3) { background: #5E636D; }
.proof p { font-size: 0.84rem; line-height: 1.35; color: var(--ink-2); max-width: 24ch; }
.proof p b { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .hh { grid-template-columns: minmax(0, 1fr) minmax(0, 470px) minmax(0, 1fr); gap: 0 28px; align-items: stretch; }
  .hh-title { grid-column: 1 / -1; grid-row: 1; }
  .hh-portrait { grid-column: 2; grid-row: 2; width: 100%; margin-top: clamp(-74px, -4.6vw, -40px); }
  .hh-left { grid-column: 1; grid-row: 2; justify-items: start; align-self: end; padding-bottom: 64px; }
  .hh-right { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 22px; text-align: left; padding: 0 0 64px 6%; }
  .hh-text { font-size: 1rem; max-width: 30ch; }
}

/* ---------- Home: logos ---------- */
.logos { padding-block: 26px 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; gap: 56px; width: max-content; animation: marquee 45s linear infinite; }
.logos-track span { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: #A9AEB8; white-space: nowrap; }
.logos-track i { display: inline-block; width: 20px; height: 20px; background: currentColor; }
.lg-a { border-radius: 50%; }
.lg-b { border-radius: 5px; transform: rotate(45deg) scale(.82); }
.lg-c { border-radius: 50% 50% 50% 0; }
.lg-d { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: collage ---------- */
.collage-wrap { padding-top: clamp(28px, 4vw, 48px); }
.collage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); height: clamp(380px, 48vw, 600px); padding: clamp(12px, 1.8vw, 20px); border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, #A3B5FF, #8EA4FF); }
.collage::before, .collage::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; height: 24%; pointer-events: none; }
.collage::before { top: 0; background: linear-gradient(180deg, #A3B5FF, rgb(163 181 255 / 0)); }
.collage::after { bottom: 0; background: linear-gradient(0deg, #8EA4FF, rgb(142 164 255 / 0)); }
.collage-col { display: grid; gap: clamp(10px, 1.6vw, 18px); align-content: start; }
.collage-col.down { margin-top: clamp(-90px, -7vw, -40px); }
.shot { display: block; border-radius: 18px; overflow: hidden; background: #FFFFFF; box-shadow: 0 20px 40px -24px rgb(15 17 21 / 0.4); }
.shot img { width: 100%; }
.shot.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; background: rgb(255 255 255 / 0.6); }
.shot.phones img { border-radius: 14px; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; background: #FFFFFF; }
.collage-badge { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; transition: transform .25s var(--ease); }
.collage-badge:hover { transform: translate(-50%, -50%) scale(1.04); }
.collage-badge .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pill); color: var(--on-pill); }

/* ---------- Home: statement ---------- */
.statement-sec { padding-block: clamp(64px, 8vw, 112px); overflow-x: clip; }
.orbit { position: relative; display: grid; justify-items: center; gap: 18px; max-width: 1080px; margin-inline: auto; padding-block: 28px; text-align: center; }
.orbit .kicker.plain { font-size: 1.4rem; color: var(--ink-2); }
.orbit .statement { position: relative; z-index: 1; max-width: 16ch; font-size: clamp(1.5rem, 3.3vw, 2.65rem); line-height: 1.2; letter-spacing: -0.035em; }
.orbit .statement .dim { color: #B4B9C3; }
.orbit-chips { position: absolute; inset: 0; pointer-events: none; }
.orbit-chips .chip-l { position: absolute; }
.chip-l.pop { --c: #2D43C8; display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; border-radius: 999px; white-space: nowrap; font-size: 0.9rem; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--c) 7%, #FFFFFF) 100%);
  border: 1px solid color-mix(in srgb, var(--c) 16%, #FFFFFF);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgb(15 17 21 / 0.06), 0 12px 26px -12px color-mix(in srgb, var(--c) 55%, transparent), 0 24px 44px -28px color-mix(in srgb, var(--c) 40%, transparent); }
.chip-l.pop .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #FFFFFF;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c) 55%, #FFFFFF) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000000) 100%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.55), 0 4px 10px -3px color-mix(in srgb, var(--c) 70%, transparent); }
.chip-l.pop.c1 { --c: #2D43C8; } .chip-l.pop.c2 { --c: #E2553A; } .chip-l.pop.c3 { --c: #1B1E26; }
.chip-l.pop.c4 { --c: #E9A23B; } .chip-l.pop.c5 { --c: #6E7FF0; } .chip-l.pop.c6 { --c: #23A26D; }
.motion .orbit[data-reveal] .orbit-chips .chip-l { transition: transform 1s cubic-bezier(.34, 1.56, .64, 1), opacity .5s ease; transition-delay: calc(var(--i, 0) * 110ms + 120ms); }
.motion .orbit[data-reveal]:not(.is-in) .orbit-chips .chip-l { opacity: 0; }
.motion .orbit[data-reveal]:not(.is-in) .orbit-chips .chip-l:nth-child(-n+3) { transform: translateX(-180px) scale(.6) rotate(-18deg); }
.motion .orbit[data-reveal]:not(.is-in) .orbit-chips .chip-l:nth-child(n+4) { transform: translateX(180px) scale(.6) rotate(18deg); }
/* Phones: chips hug the edges and may be cut by them. */
.orbit-chips .chip-l:nth-child(1) { left: -62px; top: 12%; rotate: -7deg; }
.orbit-chips .chip-l:nth-child(2) { left: -64px; top: 47%; rotate: 5deg; }
.orbit-chips .chip-l:nth-child(3) { left: -66px; top: 80%; rotate: -4deg; }
.orbit-chips .chip-l:nth-child(4) { right: -58px; top: 14%; rotate: 6deg; }
.orbit-chips .chip-l:nth-child(5) { right: -66px; top: 48%; rotate: -5deg; }
.orbit-chips .chip-l:nth-child(6) { right: -64px; top: 81%; rotate: 4deg; }
@media (min-width: 640px) {
  .orbit .statement { max-width: 19ch; }
  .orbit-chips .chip-l:nth-child(1) { left: -10px; } .orbit-chips .chip-l:nth-child(2) { left: 2%; } .orbit-chips .chip-l:nth-child(3) { left: -14px; }
  .orbit-chips .chip-l:nth-child(4) { right: -8px; } .orbit-chips .chip-l:nth-child(5) { right: 2%; } .orbit-chips .chip-l:nth-child(6) { right: -12px; }
}
@media (min-width: 1000px) {
  .orbit { padding-block: 12px; }
  .orbit .statement { max-width: 21ch; }
  .orbit-chips .chip-l:nth-child(1) { left: 1%; top: 20%; }
  .orbit-chips .chip-l:nth-child(2) { left: 7%; top: 49%; }
  .orbit-chips .chip-l:nth-child(3) { left: 2%; top: 77%; }
  .orbit-chips .chip-l:nth-child(4) { right: 1%; top: 18%; }
  .orbit-chips .chip-l:nth-child(5) { right: 6%; top: 48%; }
  .orbit-chips .chip-l:nth-child(6) { right: 2%; top: 78%; }
}
.chip-l .dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #FFFFFF; font-size: 0.66rem; }
.dot.c1 { background: var(--accent); } .dot.c2 { background: var(--mark); } .dot.c3 { background: var(--ink); }
.dot.c4 { background: #E8A33D; } .dot.c5 { background: #7B8CE8; } .dot.c6 { background: #2FA36B; }

/* ---------- Home: process ---------- */
.process { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 10px; }
.process::before { content: ""; position: absolute; z-index: -1; inset: 6% 18%; border-radius: 50%; background: radial-gradient(closest-side, rgb(140 162 255 / 0.55), rgb(140 162 255 / 0)); filter: blur(28px); }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-block: 44px 24px; } }
.pcard { --c: #2D43C8; position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 22px; min-height: 310px; padding: 24px 24px 26px; border-radius: 26px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FC 100%); border: 1px solid #ECEEF4;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgb(15 17 21 / 0.05), 0 26px 50px -30px color-mix(in srgb, var(--c) 55%, transparent), 0 10px 22px -16px rgb(15 17 21 / 0.18); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pcard .pn { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 300; letter-spacing: -0.06em; line-height: 0.9; background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--c) 70%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #FFFFFF;
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--c) 55%, #FFFFFF) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000000) 100%);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.55), 0 8px 18px -6px color-mix(in srgb, var(--c) 70%, transparent); }
.pcard-txt { display: grid; gap: 8px; }
.pcard h3 { font-size: 1.55rem; letter-spacing: -0.03em; }
.pcard p { font-size: 0.93rem; line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.pv-tags { display: flex; flex-wrap: wrap; align-content: center; gap: 7px; }
.pv-tags span { padding: 5px 11px; border-radius: 999px; font-size: 0.8rem; color: color-mix(in srgb, var(--c) 85%, var(--ink)); background: color-mix(in srgb, var(--c) 9%, #FFFFFF); border: 1px solid color-mix(in srgb, var(--c) 14%, #FFFFFF); }
.pv-bars { display: grid; align-content: center; gap: 9px; }
.pv-bar { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: center; gap: 10px; font-size: 0.8rem; color: var(--ink-2); }
.pv-bar .fill { display: block; height: 8px; width: calc(var(--v) * 100%); border-radius: 6px; background: color-mix(in srgb, var(--c) 28%, #FFFFFF); transform-origin: left center; }
.pv-bar.pick { color: var(--ink); font-weight: 600; }
.pv-bar.pick .fill { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #FFFFFF), var(--c)); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--c) 70%, transparent); }
.pv-steps { position: relative; display: flex; align-items: center; justify-content: space-between; align-self: center; padding: 0 2px; }
.pv-steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 9px; height: 2px; background: linear-gradient(90deg, var(--c) 50%, #E3E6EE 50%); border-radius: 2px; }
.pv-steps span { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-2); }
.pv-steps span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; border: 2px solid #D6DAE4; box-sizing: border-box; }
.pv-steps .done::before { background: var(--c); border-color: var(--c); }
.pv-steps .now { color: var(--ink); font-weight: 600; }
.pv-steps .now::before { background: #FFFFFF; border: 6px solid var(--mark); box-shadow: 0 0 0 5px color-mix(in srgb, var(--mark) 18%, transparent); }
@media (min-width: 900px) {
  .pcard.p1 { transform: rotate(-2.5deg); }
  .pcard.p2 { transform: rotate(1.8deg) translateY(-26px); }
  .pcard.p3 { transform: rotate(-1.5deg) translateY(12px); }
}
.process .link { display: none; }
@media (min-width: 900px) {
  .process .link { display: block; position: absolute; z-index: 2; width: 130px; height: auto; overflow: visible; pointer-events: none; }
  .process .link-1 { left: calc(33.333% - 40px); top: 8px; }
  .process .link-2 { left: calc(66.666% - 52px); top: 2px; }
}
.link path, .vlink path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.link circle, .vlink circle { fill: #FFFFFF; stroke: var(--accent); stroke-width: 2; }
/* Phones: a curled connector between stacked cards. */
.process .vlink { position: relative; z-index: 2; display: block; justify-self: end; width: 130px; height: auto; margin: -26px 28px; overflow: visible; pointer-events: none; }
@media (min-width: 640px) { .process .vlink { margin-right: 64px; } }
@media (min-width: 900px) { .process .vlink { display: none; } }
/* Scroll-driven drawing: JS sets the dash offset from the scroll position. */
.motion [data-scroll-draw] circle { opacity: 0; transition: opacity .25s ease; }
.motion [data-scroll-draw].started circle:first-of-type, .motion [data-scroll-draw].drawn circle:last-of-type { opacity: 1; }
.motion .process[data-reveal] .pv-steps::before { transition: background-size 1s var(--ease) .6s; }

/* ---------- Home: quotes ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: clamp(56px, 8vw, 104px); }
@media (min-width: 860px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .quote:first-child { padding-right: 48px; }
  .quote + .quote { margin-top: 64px; padding-left: 48px; border-left: 1px solid var(--line); }
}
.quote { position: relative; display: grid; gap: 18px; align-content: start; }
.quote::before { content: "\201D"; position: absolute; right: 0; top: -18px; font-family: var(--f-serif); font-size: 3.6rem; line-height: 1; }
.quote blockquote { margin: 0; max-width: 40ch; padding-right: 44px; font-size: 1.02rem; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.q-av { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #FFFFFF, 0 8px 18px -8px rgb(15 17 21 / 0.45); }
.q-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.76rem; }
.quote figcaption b { display: block; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.quote figcaption small { font-size: 0.85rem; color: var(--ink-2); }

/* ---------- Home: works ---------- */
.works-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 24px; }
@media (min-width: 760px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wcard { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.wcard-img { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 14px; height: clamp(240px, 26vw, 320px); padding: 28px 24px 0; border-radius: 24px; overflow: hidden; background: radial-gradient(80% 90% at 50% 0%, #DCE3FF, #F4F5F7 72%); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
a.wcard:hover .wcard-img { box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.wcard-img.heezi img { width: min(38%, 170px); border: 4px solid var(--device); border-radius: 20px; box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.45); }
.wcard-img.heezi img + img { margin-top: 30px; }
.wcard-img.viz { align-items: center; padding: 12px; }
.wcard-img.viz svg { width: 100%; max-width: 420px; height: auto; }
@media (min-width: 760px) {
  .wcard.featured { grid-column: 1 / -1; }
  .wcard.featured .wcard-img { height: clamp(320px, 34vw, 430px); gap: 28px; }
  .wcard.featured .wcard-img.heezi img { width: min(24%, 200px); }
}
.wcard-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.wcard-meta b { font-size: 1.05rem; font-weight: 500; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Rhetos AI card: a mock call between a rep and a virtual AI prospect. */
.wcard-img.rh { align-items: center; padding: 18px; background: radial-gradient(90% 90% at 70% 0%, #FFE3DA, #F4F5F7 70%); }
.rh-app { position: relative; display: grid; gap: 12px; width: min(100%, 360px); padding: 12px 14px 14px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 1px 2px rgb(15 17 21 / 0.05), 0 24px 44px -24px rgb(15 17 21 / 0.35); }
.rh-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.72rem; color: var(--ink-2); }
.rh-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.rh-live i { width: 8px; height: 8px; border-radius: 50%; background: #E2553A; box-shadow: 0 0 0 4px rgb(226 85 58 / 0.18); animation: rh-blink 1.6s ease-in-out infinite; }
.rh-mode { padding: 3px 9px; border-radius: 999px; background: #F2F3F7; }
.rh-people { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.rh-p { display: grid; justify-items: center; gap: 4px; text-align: center; }
.rh-p img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #FFFFFF, 0 8px 16px -8px rgb(15 17 21 / 0.4); }
.rh-p b { font-size: 0.78rem; font-weight: 600; line-height: 1.1; }
.rh-p small { font-size: 0.66rem; color: var(--ink-3); }
.rh-ring { position: relative; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #6E7FF0, #2D43C8, #9C6CFF, #6E7FF0); box-shadow: 0 0 22px -4px rgb(110 127 240 / 0.7); }
.rh-ring img { box-shadow: 0 0 0 2px #FFFFFF; }
.rh-ring em { position: absolute; right: -6px; bottom: -2px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: 0.6rem; font-weight: 700; color: #FFFFFF; background: linear-gradient(135deg, #6E7FF0, #2D43C8); box-shadow: 0 0 0 2px #FFFFFF; }
.rh-vs { color: var(--ink-3); font-size: 0.9rem; }
.rh-wave { display: flex; align-items: center; gap: 2px; height: 14px; }
.rh-wave i { width: 3px; height: 40%; border-radius: 2px; background: #E2553A; animation: rh-wave 1s ease-in-out infinite; }
.rh-wave i:nth-child(2) { animation-delay: -.8s; } .rh-wave i:nth-child(3) { animation-delay: -.5s; } .rh-wave i:nth-child(4) { animation-delay: -.3s; } .rh-wave i:nth-child(5) { animation-delay: -.65s; }
.rh-chat { display: grid; gap: 6px; }
.rh-msg { max-width: 88%; padding: 7px 11px; border-radius: 14px; font-size: 0.74rem; line-height: 1.3; }
.rh-msg.bot { justify-self: end; color: #FFFFFF; background: linear-gradient(135deg, #6E7FF0, #2D43C8); border-bottom-right-radius: 4px; }
.rh-msg.you { justify-self: start; background: #F2F3F7; color: var(--ink); border-bottom-left-radius: 4px; }
.rh-score { position: absolute; right: clamp(10px, 4%, 26px); bottom: clamp(10px, 7%, 22px); display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 2px; row-gap: 5px; padding: 9px 12px 10px; border-radius: 16px; background: rgb(255 255 255 / 0.92); box-shadow: 0 14px 28px -16px rgb(15 17 21 / 0.4); rotate: 4deg; }
.rh-score b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.rh-score small { font-size: 0.72rem; color: var(--ink-3); }
.rh-meter { grid-column: 1 / -1; display: block; width: 74px; height: 5px; border-radius: 3px; background: #ECEEF3; overflow: hidden; }
.rh-meter i { display: block; width: 82%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #F2A33A, #23A26D); }
.rh-label { grid-column: 1 / -1; font-size: 0.62rem; color: var(--ink-2); }
@keyframes rh-wave { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes rh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 420px) { .rh-mode { visibility: hidden; } .rh-label, .rh-meter { display: none; } .rh-score { top: 6px; bottom: auto; right: 6px; padding: 5px 9px 6px; rotate: 3deg; } .rh-score b { font-size: 1rem; } .rh-msg { font-size: 0.7rem; } }

/* MyTracks card: a simple search form, a matching step, a vehicle sheet. */
.wcard-img.mt { align-items: center; justify-content: center; gap: 0; padding: 14px; background: radial-gradient(90% 90% at 30% 0%, #DCE3FF, #F4F5F7 70%); }
.mt-form, .mt-car { position: relative; display: grid; border-radius: 18px; background: #FFFFFF; box-shadow: 0 1px 2px rgb(15 17 21 / 0.05), 0 22px 40px -22px rgb(15 17 21 / 0.38); }
.mt-form { z-index: 1; width: 178px; gap: 7px; padding: 12px; rotate: -3deg; margin-right: -14px; }
.mt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mt-head img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px #FFFFFF, 0 4px 10px -4px rgb(15 17 21 / 0.4); }
.mt-head b { font-size: 0.78rem; font-weight: 600; }
.mt-field { display: grid; gap: 2px; padding: 6px 9px; border-radius: 10px; background: #F4F5F8; border: 1px solid #ECEEF3; }
.mt-field small { font-size: 0.6rem; color: var(--ink-3); }
.mt-field span { font-size: 0.74rem; font-weight: 500; }
.mt-btn { margin-top: 2px; padding: 7px 10px; border-radius: 999px; text-align: center; font-size: 0.7rem; font-weight: 600; color: #FFFFFF; background: var(--pill); }
.mt-algo { position: absolute; z-index: 3; left: 50%; top: 12px; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 5px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; background: #FFFFFF; box-shadow: 0 10px 24px -10px rgb(45 67 200 / 0.6); }
.mt-algo i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 0.6rem; color: #FFFFFF; background: radial-gradient(120% 120% at 30% 20%, #A9B6FF, #2D43C8 60%); }
.mt-car { z-index: 2; width: 214px; overflow: hidden; rotate: 2.5deg; }
.mt-photo { position: relative; display: grid; place-items: end center; height: 104px; padding: 18px 8px 4px; overflow: hidden; background: radial-gradient(90% 80% at 50% 100%, #8EA0FF, #4A5FE0 55%, #2D43C8); }
.mt-carimg { width: 92%; height: auto; margin-bottom: -6px; filter: drop-shadow(0 10px 10px rgb(0 0 0 / 0.28)); }
.mt-photo em { position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 999px; font-style: normal; font-size: 0.62rem; font-weight: 700; color: #FFFFFF; background: #23A26D; box-shadow: 0 4px 10px -4px rgb(35 162 109 / 0.8); }
.mt-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.mt-body > b { font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; }
.mt-body > small { font-size: 0.66rem; color: var(--ink-3); }
.mt-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
.mt-specs span { display: grid; padding: 5px 7px; border-radius: 9px; background: #F4F5F8; font-size: 0.7rem; font-weight: 600; }
.mt-specs small { font-size: 0.56rem; font-weight: 400; color: var(--ink-3); }
.mt-deal { margin-top: 3px; padding: 4px 8px; border-radius: 999px; justify-self: start; font-size: 0.62rem; font-weight: 600; color: #1C7F56; background: #E2F5EC; }
@media (max-width: 420px) {
  .mt-form { width: 150px; padding: 10px; gap: 6px; }
  .mt-form .mt-field:nth-of-type(3) { display: none; }
  .mt-car { width: 176px; }
  .mt-photo { height: 84px; }
  .mt-specs span:nth-child(n+3), .mt-deal { display: none; }
  .mt-head b { display: none; }
  .mt-btn { padding: 7px 8px; font-size: 0.62rem; white-space: nowrap; }
}

/* ---------- Home: who am I ---------- */
.whoami { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
@media (min-width: 900px) { .whoami { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; } }
.photo-card { display: grid; gap: 14px; }
.photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: radial-gradient(70% 80% at 50% 30%, #2A2D36, #0F1115 70%); box-shadow: var(--shadow); transform: rotate(-2deg); }
.photo img { width: 100%; height: 100%; padding-top: 18px; object-fit: contain; object-position: 50% 100%; }
.photo-meta { display: flex; justify-content: space-between; align-items: center; padding-inline: 6px; }
.social { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #F4F5F7; color: var(--ink); }
.photo-meta > span { text-align: right; }
.photo-meta b { display: block; font-size: 0.95rem; font-weight: 600; }
.photo-meta small { font-size: 0.85rem; color: var(--ink-2); }
.who-right { display: grid; gap: 32px; }
.who-bio { max-width: 52ch; font-size: 1.02rem; line-height: 1.55; }
.xp { display: grid; }
.who-right .xp { padding-left: 24px; border-left: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.xp-row:last-child { border-bottom: 0; }
@media (min-width: 640px) { .xp-row { grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.9fr) 7.4em; } }
.xp-row b { font-weight: 500; }
.xp-row .org { font-size: 0.94rem; color: var(--ink-2); }
.xp-row .yrs { display: grid; grid-template-columns: 2.6em 1.6em 2.6em; justify-content: end; font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xp-row .yrs span:first-child { text-align: left; }
.xp-row .yrs span:last-child { text-align: right; }
.xp-row .yrs i { font-style: normal; text-align: center; color: var(--ink-3); }
@media (max-width: 639px) { .xp-row .org { grid-column: 1 / -1; order: 3; } }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(80px, 10vw, 128px); text-align: center; background: linear-gradient(180deg, #A2B4FF 0%, #C2CEFF 30%, #E9EDFF 65%, #FFFFFF 100%); }
.cta-band .inner { display: grid; justify-items: center; gap: 20px; }
.cta-title { font-size: clamp(2.6rem, 6.6vw, 5.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.cta-sub { max-width: 46ch; font-size: 1rem; line-height: 1.5; }
.cta-band .h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 36px; overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { color: var(--ink-3); font-size: 0.88rem; }
.giant { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(4.2rem, 17.5vw, 15.5rem); line-height: 0.82; letter-spacing: -0.035em; white-space: nowrap; margin-top: clamp(28px, 4vw, 48px); margin-bottom: -0.12em; text-align: center; }

/* ---------- Motion (only when JS runs and the reader allows motion) ---------- */
.motion [data-reveal] .fill { transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.motion [data-reveal]:not(.is-in) .fill { transform: scaleX(0); }
.motion [data-reveal] .vbar i, .motion [data-reveal] .etp i { transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.motion [data-reveal]:not(.is-in) .vbar i, .motion [data-reveal]:not(.is-in) .etp i { transform: scaleY(0); }
.motion [data-reveal] .vbar b, .motion [data-reveal] .etp b { transition: opacity .4s; transition-delay: calc(var(--i, 0) * 120ms + 600ms); }
.motion [data-reveal]:not(.is-in) .vbar b, .motion [data-reveal]:not(.is-in) .etp b { opacity: 0; }
.motion [data-reveal] .draw { transition: stroke-dashoffset 1.8s var(--ease); }
.motion [data-reveal]:not(.is-in) .draw { stroke-dashoffset: 1; }
.motion [data-reveal] .area { transition: opacity 1s ease .9s; }
.motion [data-reveal]:not(.is-in) .area { opacity: 0; }
.motion [data-reveal] .pt, .motion [data-reveal] .pt-l, .motion [data-reveal] .pt-s { transition: opacity .4s; transition-delay: calc(var(--d, 0) * 1ms); }
.motion [data-reveal]:not(.is-in) .pt, .motion [data-reveal]:not(.is-in) .pt-l, .motion [data-reveal]:not(.is-in) .pt-s { opacity: 0; }
.motion [data-reveal] .val-c { transition: stroke-dashoffset 1.6s var(--ease); }
.motion [data-reveal]:not(.is-in) .val-c { stroke-dashoffset: 100; }
.motion [data-reveal] .timebar, .motion [data-reveal] .stack-bar { transition: clip-path 1.5s var(--ease); clip-path: inset(0 0 0 0 round 14px); }
.motion [data-reveal]:not(.is-in) .timebar, .motion [data-reveal]:not(.is-in) .stack-bar { clip-path: inset(0 100% 0 0 round 14px); }
.motion .diag[data-reveal] .mission .score-chip { transition: background-color .35s, color .35s; transition-delay: calc(var(--i, 0) * 120ms); }
.motion .diag[data-reveal]:not(.is-in) .mission .score-chip { background: var(--score-0); color: transparent; }
.motion .diag[data-reveal] .level { transition: opacity .5s, transform .5s var(--ease); transition-delay: 1.6s; }
.motion .diag[data-reveal]:not(.is-in) .level { opacity: 0; transform: translateY(6px); }
.motion [data-reveal] .flow-step { transition: opacity .5s, transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
.motion [data-reveal]:not(.is-in) .flow-step { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
