/* ==========================================================================
   home.css — home page only. Builds on base.css tokens; no hard-coded colours.
   ========================================================================== */

section[id], footer[id] { scroll-margin-top: 72px; }

/* segmented control (same definition as case-study.css, which home doesn't load) */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); max-width: 100%; }
.seg button { min-height: 36px; padding: 0 .95rem; border-radius: 999px; font: 500 .82rem/1 var(--font-sans); color: var(--muted); transition: color .3s, background-color .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* dot-grid "notebook" surface used by several figures */
.dotgrid, .board, .fcard__viz {
  background:
    radial-gradient(circle, var(--line-strong) 1px, transparent 1.3px) 0 0 / 18px 18px,
    var(--paper-2);
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero { padding-top: calc(72px + clamp(36px, 7vw, 88px)); padding-bottom: clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); } }

.hero__status {
  height: auto; min-height: 34px; padding: .45rem .9rem; white-space: normal; line-height: 1.35;
  font: 500 .8rem/1.35 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}


.hero__title { margin-top: 1.4rem; font-size: clamp(2.9rem, 12.4vw, 4.6rem); line-height: .98; }
@media (min-width: 1024px) { .hero__title { font-size: clamp(3.8rem, 5.5vw, 5.75rem); } }
.hero__em { position: relative; display: inline-block; padding-right: .06em; }
.scribble {
  position: absolute; left: 0; right: 0; bottom: .02em; width: 100%; height: .2em; overflow: visible;
  fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out) 1.15s; }
.scribble path + path { opacity: .55; transition-delay: 1.5s; }
.is-in .scribble path, html:not(.js) .scribble path { stroke-dashoffset: 0; }

.hero__lead { margin-top: 1.5rem; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__actions .btn { will-change: transform; }
.hero__pdf { font-size: .62rem; color: inherit; opacity: .55; }
.hero__facts {
  display: grid; gap: .6rem; margin-top: clamp(28px, 4vw, 44px); padding-top: 1.25rem;
  border-top: 1px dashed var(--line-strong); max-width: 560px;
}
.hero__facts > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; align-items: baseline; }
.hero__facts dt { font: 500 var(--fs-mono)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero__facts dd { font-size: .92rem; color: var(--ink); line-height: 1.4; }
@media (min-width: 560px) {
  .hero__facts { grid-template-columns: repeat(3, auto); gap: 1.5rem; }
  .hero__facts > div { grid-template-columns: 1fr; gap: .3rem; }
}

/* ---------- impact board ---------- */
.board {
  position: relative; display: grid; gap: 12px; min-width: 0;
  padding: clamp(12px, 1.8vw, 20px); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow);
}
.board__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2px 4px 0; }
.board__bar .mono { font-size: .66rem; }
.board__bar-r { display: none; align-items: center; gap: .5rem; }
@media (min-width: 480px) { .board__bar-r { display: inline-flex; } }

.tile {
  position: relative; display: block; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--ink-2);
  transition: border-color .4s, transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile__label { display: block; font-size: .64rem; font-weight: 700; }
.tile__value, .tile__num {
  color: var(--ink); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tile__before { color: var(--muted); font-size: .62em; letter-spacing: -.01em; }
.tile__to { color: var(--muted); font-size: .5em; margin: 0 .18em; vertical-align: .18em; font-family: var(--font-sans); }

.tile--curve { padding-bottom: 10px; }
.tile__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.tile__value { font-size: clamp(2rem, 5vw, 2.7rem); }
.curve-wrap { position: relative; margin-top: 6px; }
.curve { width: 100%; height: auto; overflow: visible; }
.curve__grid line { stroke: var(--line); stroke-dasharray: 2 5; }
.curve__band { fill: var(--signal-soft); }
.curve__axis, .curve__axis text { font: 500 12px var(--font-mono); fill: var(--muted); letter-spacing: .02em; }
.curve__line {
  fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#pencil);
  transition: stroke-dashoffset 1.9s var(--ease-in-out) .5s;
}
.curve__line--before { stroke: var(--before); stroke-width: 2.2; }
.curve__line--after { stroke: var(--signal); transition-delay: .85s; }
.curve__pt { opacity: 0; transition: opacity .5s var(--ease-out) 2.4s; }
.curve__pt--before { fill: var(--before); }
.curve__pt--after { fill: var(--signal); }
.curve__ring {
  fill: none; stroke: var(--signal); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: url(#pencil); transition: stroke-dashoffset .9s var(--ease-out) 2.7s;
}
.curve__end { font: 400 20px var(--font-serif); fill: var(--ink); opacity: 0; transition: opacity .6s var(--ease-out) 2.6s; }
.curve__end--before { font-size: 15px; fill: var(--muted); }
.is-in .curve__line, .is-in .curve__ring { stroke-dashoffset: 0; }
.is-in .curve__pt, .is-in .curve__end { opacity: 1; }
html:not(.js) .curve__line, html:not(.js) .curve__ring { stroke-dashoffset: 0; }
html:not(.js) .curve__pt, html:not(.js) .curve__end { opacity: 1; }

.tile__note {
  position: absolute; top: 14%; right: 2%;
  padding-left: .6rem; border-left: 1px solid var(--signal);
  font-size: .6rem; line-height: 1.55; letter-spacing: .02em; text-transform: none; color: var(--muted);
  opacity: 0; transform: translateX(6px); transition: opacity .7s var(--ease-out) 3s, transform .7s var(--ease-out) 3s;
}
.is-in .tile__note, html:not(.js) .tile__note { opacity: 1; transform: none; }
@media (min-width: 560px) { .tile__note { font-size: .68rem; top: 16%; right: 4%; } }
.tile__cap { margin-top: 2px; font-size: .58rem; letter-spacing: .06em; }

.board__tiles { display: grid; gap: 10px; }
.tile--sm { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label num" "desc num"; align-items: center; gap: 2px 12px; }
.tile--sm .tile__label { grid-area: label; }
.tile__num { grid-area: num; font-size: 2.3rem; }
.tile__desc { grid-area: desc; font-size: .84rem; line-height: 1.35; color: var(--ink-2); }
.tile__desc .muted { white-space: nowrap; }
.tile__arrow { display: none; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--muted); transition: transform .5s var(--ease-out), color .3s; }
.tile:hover .tile__arrow { color: var(--signal-ink); transform: translate(2px, -2px); }
@media (min-width: 560px) {
  .board__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile--sm { grid-template-columns: 1fr; grid-template-areas: "label" "num" "desc"; align-items: start; gap: 6px; padding: 14px 14px 16px; }
  .tile__num { font-size: clamp(2.2rem, 3.4vw, 2.9rem); margin-top: 4px; }
  .tile__desc .muted { display: block; }
  .tile__arrow { display: block; }
}

.board__foot { display: flex; align-items: center; gap: .6rem; padding: 2px 4px; }
.board__foot .mono { text-transform: none; letter-spacing: .01em; font-size: .68rem; line-height: 1.5; }
.board__squiggle { flex: none; width: 38px; height: 20px; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transform: scaleY(-1); }
.board__squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out) 3.2s; }
.board.is-in .board__squiggle path, html:not(.js) .board__squiggle path { stroke-dashoffset: 0; }

/* ==========================================================================
   2. TICKER
   ========================================================================== */
.ticker { border-block: 1px solid var(--line); padding-block: 16px; --marquee-dur: 55s; }
.ticker .marquee__track { gap: 0; }
.ticker__list { display: flex; align-items: center; gap: 2.25rem; padding: 0 2.25rem 0 0; margin: 0; list-style: none; }
.ticker__list li { display: inline-flex; align-items: center; gap: 2.25rem; white-space: nowrap; font: italic 400 1.35rem/1 var(--font-serif); color: var(--ink); letter-spacing: -.01em; }
.ticker__list li.is-domain { font: 500 .7rem/1 var(--font-mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticker__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* ==========================================================================
   3. WORK
   ========================================================================== */
.work__intro { display: grid; gap: 1.5rem; align-self: end; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2);
  font: 500 .86rem/1 var(--font-sans); letter-spacing: -.005em;
  transition: background-color .35s var(--ease-out), color .35s, border-color .35s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter__n { font: 500 .66rem/1 var(--font-mono); opacity: .6; }

[data-work-list] > [hidden] { display: none !important; }
.is-leaving-item { opacity: 0 !important; transform: scale(.97) !important; transition: opacity .22s ease, transform .22s ease !important; }
.is-entering-item { opacity: 0 !important; transform: translateY(18px) !important; transition: none !important; }

/* featured cards */
.featured { display: grid; gap: clamp(14px, 1.8vw, 22px); }
@media (min-width: 760px) {
  .featured { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .fcard { grid-column: span var(--span, 6); }
  .fcard:nth-child(1), .fcard:nth-child(4) { --span: 7; }
  .fcard:nth-child(2), .fcard:nth-child(3) { --span: 5; }
}
.fcard {
  position: relative; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0;
  padding: clamp(18px, 2.4vw, 30px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2);
  transition: border-color .4s, transform .7s var(--ease-out), box-shadow .7s var(--ease-out), opacity var(--dur) var(--ease-out);
}
@media (min-width: 760px) { .fcard { min-height: 440px; } }
.js .fcard[data-reveal] { transition: border-color .4s, box-shadow .7s var(--ease-out), opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: 0s; }
.fcard:hover, .js .fcard.is-in:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.fcard__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.fcard__idx { font-size: .66rem; }
.fcard__viz {
  flex: 1; display: grid; align-content: center; gap: .9rem; min-height: 150px;
  padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.fcard__viz .compare { gap: .7rem; }
.fcard__viz .compare__row { grid-template-columns: 3.4rem 1fr 4.2rem; }
.fcard__viz .compare__num { font-size: 1.3rem; min-width: 0; }
.fcard__vizcap { font-size: .62rem; }
.fcard__body { display: grid; gap: .9rem; }
.fcard { container-type: inline-size; }
@container (min-width: 560px) { .fcard__body { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1.5rem; } }
.fcard__metric {
  font-size: clamp(3.4rem, 6vw, 5rem); line-height: .85; letter-spacing: -.045em; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fcard__before { font-size: .42em; color: var(--muted); letter-spacing: -.01em; margin-right: .08em; }
.fcard__unit { font-size: .38em; letter-spacing: -.01em; margin-left: .12em; color: var(--ink-2); }
.fcard__title { font: 400 clamp(1.6rem, 2.3vw, 2.05rem)/1.08 var(--font-serif); letter-spacing: -.02em; color: var(--ink); }
.fcard__line { margin-top: .45rem; font-size: .96rem; line-height: 1.5; max-width: 46ch; }
.fcard__cta {
  display: flex; justify-content: space-between; align-items: center; padding-top: 1rem;
  border-top: 1px dashed var(--line-strong); font: 500 .9rem/1 var(--font-sans); color: var(--ink);
  transition: color .3s;
}
.fcard__cta .arrow { transition: transform .5s var(--ease-out); }
.fcard:hover .fcard__cta { color: var(--signal-ink); }
.fcard:hover .fcard__cta .arrow { transform: translateX(6px); }

/* mini mock: streak week */
.streak { display: flex; justify-content: center; gap: clamp(5px, 1vw, 9px); }
.streak__d {
  display: grid; place-items: center; width: clamp(30px, 3.4vw, 38px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-strong); font: 500 .66rem/1 var(--font-mono); color: var(--muted); background: var(--surface);
  transition: transform .5s var(--ease-out);
}
.streak__d.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.streak__d.is-today { border: 1.5px dashed var(--signal); color: var(--signal-ink); }
.fcard:hover .streak__d.is-today { transform: scale(1.08); }
.fcard__viz .streak + .fcard__vizcap { text-align: center; }

/* mini mock: match list */
.matches { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.matches li {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  font-size: .84rem; color: var(--ink-2); transition: transform .5s var(--ease-out);
}
.matches li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matches b { flex: none; font: 500 .66rem/1 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.matches li:first-child { border-color: var(--line-strong); color: var(--ink); }
.matches li:first-child b { padding: 4px 6px; border-radius: 4px; background: var(--signal-soft); color: var(--signal-ink); }
.matches li:nth-child(2) { opacity: .75; }
.matches li:nth-child(3) { opacity: .5; }
.fcard:hover .matches li:first-child { transform: translateX(4px); }

/* rows */
.more { margin-top: clamp(48px, 6vw, 80px); }
.more[hidden] { display: none; }
.more__head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { border-bottom: 1px solid var(--line); }
.row {
  position: relative; isolation: isolate; display: grid; align-items: center;
  grid-template-columns: 2rem minmax(0, 1fr) 24px; gap: .6rem 1rem; padding: 1.35rem .25rem;
  color: var(--ink-2);
}
.row::before {
  content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: var(--radius-sm);
  background: var(--paper-2); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.row:hover::before, .row:focus-visible::before { transform: none; }
.row__idx { align-self: start; padding-top: .45rem; transition: color .3s; }
.row__main { grid-column: 2; display: grid; gap: .35rem; }
.row__title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.08; color: var(--ink); letter-spacing: -.02em; }
.row__line { font-size: .94rem; line-height: 1.5; max-width: 52ch; }
.row__tag { display: none; }
.row__metric {
  grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .1em;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.row__before { color: var(--muted); font-size: .66em; }
.row__to { color: var(--muted); font-size: .5em; margin: 0 .2em; font-family: var(--font-sans); align-self: center; }
.row__sub { flex-basis: 100%; margin-top: .4rem; font-size: .62rem; }
.row__bar { display: none; }
.row__arrow { grid-column: 3; grid-row: 1; align-self: start; margin-top: .45rem; width: 22px; height: 22px; color: var(--muted); transition: transform .5s var(--ease-out), color .3s; }
.row:hover .row__arrow, .row:focus-visible .row__arrow { color: var(--signal-ink); transform: translateX(5px); }
.row:hover .row__idx { color: var(--signal-ink); }
@media (min-width: 900px) {
  .row { grid-template-columns: 2.5rem minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, .95fr) 6.5rem 28px; gap: 1.5rem; padding-block: 1.6rem; }
  .row__idx { align-self: center; padding-top: 0; }
  .row__tag { display: block; }
  .row__metric { grid-column: auto; }
  .row__arrow { grid-column: auto; grid-row: auto; align-self: center; margin-top: 0; }
  .row__bar { display: grid; gap: 5px; }
  .row__bar i { display: block; height: 5px; border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) .3s; }
  .row__bar i:first-child { width: calc(var(--b) / var(--m) * 100%); background: var(--before); }
  .row__bar i:last-child { width: calc(var(--a) / var(--m) * 100%); background: var(--signal); transition-delay: .5s; }
  .is-in .row__bar i, html:not(.js) .row__bar i { transform: none; }
  .row:hover .row__bar i:last-child { filter: saturate(1.2); }
}

/* ==========================================================================
   4. APPROACH
   ========================================================================== */
.approach { background: var(--paper-2); border-block: 1px solid var(--line); }

.ret__frame {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 3vw, 36px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}
.ret__controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: clamp(18px, 2.4vw, 28px); }
.ret__fig { font-size: .66rem; color: var(--signal-ink); }
.ret__seg { width: 100%; }
.ret__seg button { flex: 1; padding: 0 .5rem; }
@media (min-width: 560px) { .ret__seg { width: auto; } .ret__seg button { flex: none; padding: 0 .95rem; } }

.ret__body { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 900px) { .ret__body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; } }
.ret__stage {
  display: grid; padding: clamp(10px, 1.6vw, 18px); border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
}
.ret__stage > svg { grid-area: 1 / 1; width: 100%; height: auto; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), visibility .5s; }
.ret__curve { opacity: 0; visibility: hidden; transform: translateY(8px); align-self: center; }
.ret__stage[data-mode-current="curve"] .ret__matrix { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.ret__stage[data-mode-current="curve"] .ret__curve { opacity: 1; visibility: visible; transform: none; }

/* matrix (built by home.js) */
.mx__axis { font: 500 12px var(--font-mono); fill: var(--muted); }
.mx__axis.is-hit { fill: var(--signal-ink); }
.mx__cell { fill: var(--line-strong); }
.mx__dot { fill: var(--ink-2); transition: fill .4s var(--ease-out), r .4s var(--ease-out); }
.mx__dot.is-hit { fill: var(--signal); }
.mx__band { fill: var(--signal-soft); stroke: var(--signal); stroke-width: 1; stroke-dasharray: 3 3; transition: x .6s var(--ease-out), width .6s var(--ease-out); }
.mx__bandlab { font: 500 12px var(--font-mono); fill: var(--signal-ink); transition: x .6s var(--ease-out); }
.mx__chk { fill: none; stroke: var(--line-strong); stroke-width: 1.2; transition: fill .4s var(--ease-out), stroke .4s; }
.mx__chk.is-yes { fill: var(--signal); stroke: var(--signal); }
.mx__tick { fill: none; stroke: var(--paper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.mx__tick.is-yes { opacity: 1; }
.mx__outline { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0; transition: opacity .4s var(--ease-out); }
.mx__outline.is-on { opacity: .7; }

/* curve-shape chart */
.rc__grid line { stroke: var(--line); stroke-dasharray: 2 5; }
.rc__grid .rc__twenty { stroke: var(--line-strong); stroke-dasharray: 4 4; }
.rc__axis, .rc__axis text { font: 500 12px var(--font-mono); fill: var(--muted); }
.rc__today { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.rc__line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease-in-out) .2s; }
.rc__line--a { stroke: var(--signal); }
.rc__line--b { stroke: var(--muted); }
.rc__proj { fill: none; stroke-width: 2.2; stroke-dasharray: 5 6; stroke-linecap: round; opacity: 0; transition: opacity .7s var(--ease-out) 1.4s; }
.rc__proj--a { stroke: var(--signal); }
.rc__proj--b { stroke: var(--muted); }
.rc__pt { opacity: 0; transition: opacity .5s 1.3s; }
.rc__pt--a { fill: var(--signal); }
.rc__pt--b { fill: var(--muted); }
.rc__lab { font: 500 14px var(--font-sans); opacity: 0; transition: opacity .5s 1.3s; }
.rc__lab--a { fill: var(--signal-ink); }
.rc__lab--b { fill: var(--ink-2); }
.rc__cross { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0; transition: opacity .6s 2s; }
.rc__cross-l { opacity: 0; transition: opacity .6s 2s; }
.ret__stage[data-mode-current="curve"] .rc__line { stroke-dashoffset: 0; }
.ret__stage[data-mode-current="curve"] :is(.rc__proj, .rc__pt, .rc__lab, .rc__cross, .rc__cross-l) { opacity: 1; }

.ret__panel { display: grid; gap: 1.1rem; align-content: center; }
.ret__readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line-strong); }
.ret__num { font-size: clamp(3.6rem, 7vw, 5.6rem); line-height: .85; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ret__of { font-size: .45em; color: var(--muted); letter-spacing: -.01em; }
.ret__title { font: 500 1.12rem/1.3 var(--font-sans); color: var(--ink); letter-spacing: -.015em; }
.ret__text p { margin-top: .55rem; font-size: .98rem; line-height: 1.6; }
.ret__readout, .ret__text { transition: opacity .2s ease, transform .3s var(--ease-out); }
.ret__panel.is-swapping .ret__readout, .ret__panel.is-swapping .ret__text { opacity: 0; transform: translateY(6px); }
.ret__cap { display: flex; gap: .75rem; margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.ret__cap .mono { color: var(--signal-ink); flex: none; padding-top: .15rem; }

/* principles */
.principles { margin-top: clamp(72px, 9vw, 128px); }
.principles__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem 2rem; margin-bottom: clamp(24px, 3vw, 36px); }
.principles__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.pgrid { display: grid; gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: clamp(22px, 2.6vw, 32px); background: var(--surface); }
@media (min-width: 640px) { .pcard { min-height: 280px; } }
.pcard__n { color: var(--signal-ink); }
.pcard__t { font: 400 clamp(1.4rem, 1.9vw, 1.6rem)/1.15 var(--font-serif); letter-spacing: -.015em; color: var(--ink); max-width: 22ch; }
.pcard p { font-size: .95rem; line-height: 1.55; }
.pcard__link { position: relative; z-index: 1; margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; width: fit-content; font-size: .66rem; transition: color .3s; }
.pcard__link span { transition: transform .4s var(--ease-out); }
.pcard__link:hover { color: var(--signal-ink); }
.pcard__link:hover span { transform: translateX(4px); }

/* ==========================================================================
   5. JOURNEY
   ========================================================================== */
.jt { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(16px, 2.6vw, 32px); }
.jt__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.jt__legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .64rem; }
.jt__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: .7rem; }
.jt__key:first-child { margin-left: 0; }
.jt__key--study { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.jt__key--eng { background: var(--before); }
.jt__key--pm { background: var(--ink); }
.jt__nav { display: flex; gap: .25rem; }
.jt__step { border: 1px solid var(--line); }

.jt__scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; margin-inline: -4px; padding: 4px 4px 10px; }
.jt__scroller.is-draggable { cursor: grab; }
.jt__scroller.is-dragging { cursor: grabbing; user-select: none; }
.jt__track { position: relative; min-width: 760px; padding-top: 26px; }
@media (min-width: 900px) { .jt__track { min-width: 0; } }
.jt__years { position: absolute; inset: 0; pointer-events: none; }
.jt__years span {
  position: absolute; top: 0; bottom: 0; left: calc((var(--y) - 2018) / 9 * 100%);
  padding-left: 6px; border-left: 1px solid var(--line);
  font: 500 .64rem/1 var(--font-mono); letter-spacing: .06em; color: var(--muted);
}
.jt__lanes { position: relative; display: grid; gap: 10px; }
.jt__lane { position: relative; height: 44px; }
.jt__bar {
  position: absolute; top: 0; bottom: 0; min-width: 44px;
  left: calc((var(--s) - 2018) / 9 * 100%); width: calc((var(--e) - var(--s)) / 9 * 100%);
  display: flex; align-items: center; padding: 0 10px; border-radius: 10px; overflow: hidden;
  font: 500 .8rem/1 var(--font-sans); letter-spacing: -.01em; white-space: nowrap; text-align: left;
  transition: transform .5s var(--ease-out), box-shadow .35s var(--ease-out), width .8s var(--ease-out);
}
.jt__bar span { overflow: hidden; text-overflow: ellipsis; }
.jt__bar:hover { transform: translateY(-2px); }
.jt__bar--study { background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.jt__bar--eng { background: var(--before); color: var(--ink); }
.jt__bar--pm { background: var(--ink); color: var(--paper); }
.jt__bar[aria-selected="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--signal); }
.jt__bar--study[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 2px var(--surface), 0 0 0 3.5px var(--signal); }
.jt__now { position: absolute; top: 20px; bottom: -6px; left: calc((var(--s) - 2018) / 9 * 100%); border-left: 1.5px solid var(--signal); pointer-events: none; }
.jt__now .mono { position: absolute; top: -18px; left: 0; transform: translateX(-50%); padding: 0 4px; background: var(--surface); color: var(--signal-ink); font-size: .6rem; }
.jt__now::after { content: ""; position: absolute; bottom: -4px; left: -4.75px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.jt__hint { margin-top: .4rem; text-align: center; font-size: .6rem; }
@media (min-width: 900px) { .jt__hint { display: none; } }

.jt__panels { margin-top: 1.25rem; padding-top: 1.5rem; border-top: 1px dashed var(--line-strong); }
.jt__panel { display: grid; gap: .9rem; }
.js .jt__panel + .jt__panel { margin-top: 0; }
html:not(.js) .jt__panel + .jt__panel { margin-top: 2.5rem; }
.jt__panel[hidden] { display: none; }
.jt__panel.is-active { animation: jt-in .6s var(--ease-out) both; }
@keyframes jt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jt__panel:focus-visible { outline-offset: 8px; }
.jt__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.jt__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.jt__title em { color: var(--muted); }
.jt__lede { max-width: 66ch; }
.jt__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; max-width: 72ch; }
.jt__list li { position: relative; padding-left: 1.2rem; font-size: .96rem; line-height: 1.55; }
.jt__list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.jt__list b { color: var(--ink); font-weight: 600; }
.jt__links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding-top: .25rem; }
.jt__links .link { font-size: .95rem; line-height: 2; }

/* ==========================================================================
   6. NOT ON MY RÉSUMÉ
   ========================================================================== */
.traits { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); } }
.trait { display: grid; gap: 1.1rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.trait__n { font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--signal-ink); }
.trait__t { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; letter-spacing: -.02em; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.trait p:not(.note) { max-width: 50ch; }
.trait__domains { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 0; padding: 0; list-style: none; }

.toolkit { margin-top: clamp(64px, 8vw, 104px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.toolkit__head { padding: 1rem clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.toolkit__grid { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 640px) { .toolkit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .toolkit__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tk { padding: clamp(18px, 2.4vw, 28px); background: var(--surface); }
.tk__h { color: var(--ink); }
.tk ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0 0; padding: 0; list-style: none; }
.tk li {
  padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: .85rem; line-height: 1.2; color: var(--ink-2); transition: border-color .3s, color .3s;
}
.tk li:hover { border-color: var(--line-strong); color: var(--ink); }

/* ==========================================================================
   Reduced motion: show final states, kill the marquee
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker .marquee__track { animation: none; }
  .scribble path, .curve__line, .curve__ring, .board__squiggle path { stroke-dashoffset: 0; }
  .curve__pt, .curve__end, .tile__note { opacity: 1; transform: none; }
}

/* about spread — on-site photo (main) + circle face + traits */
.about { display: grid; gap: clamp(36px, 5vw, 56px); grid-template-areas: "head" "photo" "body"; }
.about__head { grid-area: head; margin-bottom: 0; }
.onsite { grid-area: photo; min-width: 0; }
.about__body { grid-area: body; min-width: 0; }
@media (min-width: 1000px) {
  .about {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "photo head" "photo body";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px); row-gap: clamp(40px, 4vw, 56px);
  }
  .onsite { position: sticky; top: 104px; align-self: start; }
  .about__body .traits { grid-template-columns: 1fr; gap: clamp(36px, 4vw, 52px); }
  .about__body .trait__t { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
}

.onsite__frame {
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow);
}
.onsite__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.6s var(--ease-out); }
.onsite:hover .onsite__frame img { transform: scale(1.02); }
.onsite__cap { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; }
.onsite__who { display: grid; gap: .15rem; min-width: 0; }
.onsite__who b { font: 500 1rem/1.2 var(--font-sans); color: var(--ink); letter-spacing: -.01em; }
.onsite__who span { font-size: .88rem; line-height: 1.35; color: var(--muted); }
.onsite__fig { margin-left: auto; white-space: nowrap; }
.onsite__fig .idx { color: var(--signal-ink); margin-right: .4rem; }
@media (max-width: 520px) { .onsite__fig { display: none; } }

/* circle face — shared by caption + hero */
.face {
  width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line-strong);
}
.hero__status { padding-left: .3rem; gap: .6rem; }
.hero__face { position: relative; flex: none; width: 26px; height: 26px; }
.hero__face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero__face .dot { position: absolute; right: -2px; bottom: -1px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--paper); margin: 0; }

:root[data-theme="dark"] .onsite__frame img { filter: brightness(.88); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .onsite__frame img { filter: brightness(.88); } }
@media (prefers-reduced-motion: reduce) { .onsite:hover .onsite__frame img { transform: none; } }

@media (max-width: 480px) { .hide-sm { display: none; } }

/* Separate project cards with the existing orange accent. */
.board__tiles > .tile--sm, .board > .tile--curve {
  border: 2px solid var(--signal);
}
