/* Bohan Xu · direction: the pinned poster (seed 73892985) · palette: bottle green, gold · type: Switzer */

:root {
  --bg: #ffffff;
  --surface: #f1f7f3;
  --surface-2: #e2efe6;
  --ink: #0d120f;
  --muted: #5b6a60;
  --accent: #5df27d;
  --accent-ink: #0d120f;
  --green-ink: #136b31;
  --photo-ink: #ffffff;
  --grid: #d3e2d8;
  --scrim: rgba(6, 10, 7, 0.62);

  --font: "Switzer", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(72px, 9vw, 140px);

  --margin: 28px;
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 12vw, 13rem);
  --radius: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; letter-spacing: -0.005em; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; text-wrap: balance; hyphens: none; }
.head { font-size: var(--step-head); }
.head--display { font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.045em; }
.head-sm { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
strong { font-weight: 500; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; font-weight: 500; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: #8cf7a3; }
html { color-scheme: light; }
.button:active { transform: scale(0.97); }
.button--wide { width: 100%; min-height: 3.25rem; }
.button--big { min-height: 4rem; font-size: var(--step-lead); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { color: var(--green-ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--gutter); padding: 14px var(--margin); background: var(--bg); }
.bar__mark { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.bar__nav { display: flex; gap: 0.5rem; margin-right: auto; flex-wrap: wrap; }
.bar__nav a { text-decoration: none; background: var(--accent); color: var(--accent-ink); padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.bar__nav a:hover { background: #8cf7a3; }
.bar__action { min-height: 2.5rem; padding: 0 1rem; }
@media (max-width: 800px) { .bar { flex-wrap: wrap; row-gap: 6px; } .bar__nav { gap: 0.4rem; } .bar__nav a { font-size: 14px; padding: 0.4rem 0.75rem; } }

/* ---------- hero: pinned halves, panels pass between ---------- */
.pinrun { position: relative; }
.panel { position: relative; z-index: 1; min-height: 100svh; }

.panel--first { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); overflow: hidden; }
.panel--first > .hero__field { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.panel--first > * { position: relative; }
.panel__paper { grid-column: 1 / 8; background: transparent; min-height: calc(100svh - 68px); position: relative; padding: 40px var(--margin) 48px var(--margin); display: flex; flex-direction: column; justify-content: flex-start; gap: 3rem; }
.panel__name { font-size: var(--step-display); color: var(--green-ink); line-height: 0.9; letter-spacing: -0.045em; }
.panel__keys { font-size: var(--step-lead); font-weight: 500; color: var(--green-ink); letter-spacing: -0.01em; margin-top: -1.6rem; }
.panel__intro { display: grid; gap: 1.6rem; justify-items: start; padding-left: calc(100% / 8); margin-block: auto; }
.panel__paper .lead { max-width: 36ch; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.35; }
.panel__links { position: absolute; right: var(--margin); top: 50%; transform: translateY(-50%); display: grid; gap: 0.4rem; font-size: 16px; }
.panel__photo { grid-column: 8 / 13; min-height: calc(100svh - 68px); padding: 24px var(--margin) 24px 0; }
.panel__photo img { width: 100%; height: calc(100svh - 68px - 48px); object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }

.panel--about { display: grid; align-items: center; background: var(--bg); min-height: 0; }
.about { padding: 14vh calc(100% / 12) 14vh calc(2 * (100% / 12)); display: grid; grid-template-columns: 4fr 8fr; column-gap: var(--gutter); align-items: start; }
.about__text { max-width: 58ch; }
.about__text p + p { margin-top: 1.1em; }

.panel--video { display: grid; align-items: center; background: var(--surface); min-height: 0; }
.video { padding: 12vh calc(2 * (100% / 12)) 14vh; display: grid; gap: 1.2rem; }
.video__frame { aspect-ratio: 16 / 9; width: 100%; max-width: 880px; background: var(--bg); }
.video__frame iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 800px) {
  :root { --margin: 16px; --step-display: 15vw; }
  .panel--first { display: block; }
  .panel__paper { padding: 24px var(--margin) 2rem; min-height: 0; gap: 2rem; }
  .panel__intro { padding-left: 0; }
  .panel__links { position: static; transform: none; display: flex; gap: 1rem; margin-top: 1.4rem; }
  .panel__photo { margin: 0; min-height: 0; padding: 0 var(--margin) 24px; }
  .panel__photo img { height: 56svh; }
  .about { grid-template-columns: 1fr; padding: 16vh var(--margin); gap: 1rem; }
  .video { padding: 14vh var(--margin); }
}

/* ---------- cast: the title at the top, portraits alternate beneath it ---------- */
.cast { position: relative; padding: var(--section) var(--margin) 0; }
.cast__pin { display: grid; justify-items: start; }
.cast__title { font-size: clamp(88px, 12vw, 180px); line-height: 0.85; letter-spacing: -0.04em; }
.cast__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 4rem; row-gap: 6rem; }
.cast__item { display: grid; gap: 0.35rem; }
.cast__item--left { grid-column: 1 / 6; }
.cast__item--right { grid-column: 7 / 12; margin-top: 14rem; }
.cast__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 0.8rem; border-radius: var(--radius); }
.cast__item--right img { object-position: 50% 30%; }
.cast__name { font-size: var(--step-body); font-weight: 500; }
.cast__role { font-size: 16px; }
.cast__note { max-width: 34ch; font-size: 16px; line-height: 1.45; }
@media (max-width: 800px) {
  .cast { padding-inline: 24px; }
  .cast__title { font-size: 17vw; }
  .cast__list { display: grid; grid-template-columns: 1fr; padding-top: 2.5rem; row-gap: 48px; }
  .cast__item { width: 80%; }
  .cast__item--right { justify-self: end; margin-top: 0; }
  .cast__note { max-width: 100%; }
}

/* ---------- band: names off the edges ---------- */
.band { background: var(--surface); padding: 0; margin-top: var(--section); }
.band__track { height: 34vh; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 8vw; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.band__track span { display: inline-flex; align-items: center; padding-right: 0; }
.band__track i { display: inline-block; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--ink); margin: 0 0.45em; }
@media (prefers-reduced-motion: no-preference) { .band__track span { animation: band 40s linear infinite; } }
@keyframes band { to { transform: translateX(-100%); } }
.band__note { padding: 1.2rem var(--margin) 0; font-size: var(--step-body); background: var(--bg); }
@media (max-width: 800px) { .band__track { height: 22vh; font-size: 15vw; } .band__note { font-size: 16px; padding: 1rem 20px 0; } }

/* ---------- scale: figure on the photograph ---------- */
.scale { margin-top: var(--section); }
.scale__photo { position: relative; height: 88svh; overflow: hidden; }
.scale__photo img { width: 100%; height: 100%; object-fit: cover; }
.scale__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: var(--scrim); }
.scale__head { position: absolute; top: 24px; left: 24px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; z-index: 1; background: var(--bg); padding: 0.2em 0.4em; }
.scale__figure { position: absolute; left: 24px; bottom: 10px; z-index: 1; color: var(--photo-ink); font-size: clamp(120px, 17vw, 280px); font-weight: 600; line-height: 0.8; letter-spacing: -0.05em; }
.scale__sentence { position: absolute; right: 24px; bottom: 24px; z-index: 1; max-width: 26ch; text-align: right; color: var(--photo-ink); font-size: var(--step-body); }
.scale__more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 40px var(--margin) 0; }
.scale__more p { font-size: var(--step-body); max-width: 30ch; }
.scale__more p:first-child { grid-column: 1 / 6; }
.scale__more p:last-child { grid-column: 7 / 12; }
.scale__num { display: block; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.3rem; }
@media (max-width: 800px) {
  .scale__photo { height: 80svh; }
  .scale__figure { font-size: 30vw; bottom: 16px; left: 16px; }
  .scale__sentence { right: auto; left: 16px; bottom: calc(30vw + 24px); text-align: left; font-size: 16px; }
  .scale__more { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding-top: 24px; }
  .scale__more p:first-child, .scale__more p:last-child { grid-column: auto; }
}

/* ---------- evolution: sticky figure, claims ---------- */
.evo { padding: var(--section) var(--margin) 0; }
.evo__intro { display: grid; grid-template-columns: 1fr; column-gap: calc(var(--gutter) * 2); align-items: start; }
.evo__intro-text { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem calc(var(--gutter) * 2); align-items: start; }
.evo__intro-text .lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; letter-spacing: -0.01em; max-width: 24em; }
.evo__big { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.2rem; background: var(--surface); padding: 1.6rem; border-radius: var(--radius); }
.evo__big { align-items: start; }
.evo__big p { display: grid; gap: 0.3rem; max-width: 100%; align-content: start; margin: 0; }
.evo__big strong { font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.evo__big span { color: var(--muted); font-size: 16px; line-height: 1.35; }
.claim .dim, .evo__takes .dim { color: var(--ink); }
@media (max-width: 800px) { .evo__intro { grid-template-columns: 1fr; gap: 1.6rem; } .evo__intro-text { grid-template-columns: 1fr; } .evo__intro-text .lead { font-size: var(--step-lead); } .evo__big strong { font-size: 44px; } }

.evo__split { display: grid; grid-template-columns: 5fr 7fr; column-gap: calc(var(--gutter) * 2); margin-top: 5rem; align-items: start; }
.evo__figures { position: sticky; top: 12vh; display: grid; }
.evo__fig { grid-area: 1 / 1; opacity: 0; transition: opacity 300ms ease; }
.evo__fig svg { border-radius: var(--radius); }
.evo__fig.is-on { opacity: 1; }
.evo__fig figcaption { margin-top: 0.6rem; }
.evo__claims { display: grid; gap: 5rem; }
.claim { display: grid; gap: 0.9rem; max-width: 60ch; }
.claim__title { font-size: var(--step-lead); letter-spacing: -0.03em; line-height: 1.1; }
.claim__kicker { font-weight: 500; }
.evo__book { margin-top: var(--section); }
.tablewrap { overflow-x: auto; margin-top: 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 0.7rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grid); }
th { font-weight: 500; color: var(--muted); }
th:not(:first-child), td:not(:first-child) { white-space: nowrap; }
@media (max-width: 800px) { th, td { white-space: normal !important; font-size: 14px; padding: 0.5rem 0.4rem; } }
.evo__close { margin-top: var(--section); background: var(--surface); padding: 3rem; display: grid; gap: 1.4rem; border-radius: var(--radius); }
.evo__takes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 800px) {
  .evo__split { grid-template-columns: 1fr; }
  .evo__figures { position: static; margin-bottom: 3rem; }
  .evo__fig:not(.is-on) { display: none; }
  .evo__takes { grid-template-columns: 1fr; }
  .evo__close { padding: 1.6rem; }
}

/* ---------- trading: index and large picture ---------- */
.work { margin-top: var(--section); }
.work__stage { position: relative; display: grid; grid-template-columns: 38fr 62fr; min-height: 100svh; }
.work__left { position: sticky; top: 0; height: 72svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(60px + 40px) var(--gutter) 32px var(--margin); }
.work__head { font-size: clamp(56px, 6vw, 96px); line-height: 0.95; letter-spacing: -0.045em; }
.work__index { display: grid; gap: 0; }
.work__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; height: 56px; color: var(--muted); transition: color 240ms ease; cursor: pointer; }
.work__row.is-on { color: var(--ink); }
.work__name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.work__meta { font-size: 16px; text-align: right; }
.work__right { position: relative; }
.work__shot { position: sticky; top: 0; height: 72svh; display: grid; place-items: center; padding: 6vh 8%; background: var(--surface); opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s 500ms; }
.work__shot.is-on { opacity: 1; visibility: visible; transition: opacity 500ms ease, visibility 0s; }
.work__shot + .work__shot { margin-top: 0; }


.ui { width: 100%; max-width: 620px; background: var(--bg); color: var(--ink); padding: 1.4rem 1.6rem; display: grid; gap: 0.9rem; border-radius: var(--radius); }
.ui__title { font-weight: 500; color: var(--muted); }
.ui__table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ui__table th, .ui__table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--grid); text-align: left; }
.ui__table th { color: var(--muted); font-weight: 500; }
.ui__foot { color: var(--muted); font-size: 16px; }
.ui__big { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.ui__line { max-width: 48ch; }
@media (max-width: 800px) {
  .work__stage { display: block; min-height: 0; }
  .work__left { position: static; height: auto; padding: 0 var(--margin) 2rem; gap: 2rem; }
  .work__head { font-size: 14vw; }
  .work__row { height: auto; padding: 0.5rem 0; color: var(--ink); }
  .work__shot { position: static; height: auto; padding: 1.2rem var(--margin); opacity: 1; visibility: visible; }
}

/* ---------- the live thing ---------- */
.game { padding: var(--section) var(--margin) 0; display: grid; gap: 1.2rem; }
.game__stage { display: grid; grid-template-columns: 1fr 280px; gap: var(--gutter); align-items: start; }
#gamecv { width: 100%; height: auto; background: var(--surface); touch-action: manipulation; border-radius: var(--radius); }
.game__side { display: grid; gap: 0.9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.seg__btn { padding: 0.7rem; background: var(--surface); color: var(--muted); font-weight: 500; }
.seg__btn.is-on { background: var(--surface-2); color: var(--ink); }
.game__read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.game__read div { display: grid; }
.game__read dt { color: var(--muted); font-size: 16px; }
.game__read dd { font-size: var(--step-lead); font-weight: 500; }
@media (max-width: 800px) { .game__stage { grid-template-columns: 1fr; } }

/* ---------- research ---------- */
.research { padding: var(--section) var(--margin) 0; display: grid; gap: 1.4rem; }
.research__threads { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 2rem; }
.thread { text-decoration: none; display: grid; gap: 0.9rem; transition: transform var(--t-hover) var(--ease-out); }
.thread:hover { transform: translateY(-4px); }
.ui--post { background: var(--surface); border: 0; max-width: none; }
.ui__who { font-weight: 500; }
.ui__post { max-width: 100%; font-size: var(--step-body); line-height: 1.4; }
.ui__stat { color: var(--muted); }
.thread__why { font-size: 16px; }
.thread__ccr { display: grid; gap: 0.45rem; font-size: 16px; }
.thread__ccr p { margin: 0; max-width: none; }
.thread__ccr strong { font-weight: 600; }
.channels { display: grid; margin-top: 2.5rem; }
.channels li { display: grid; grid-template-columns: 160px 1fr auto; gap: var(--gutter); padding: 1.1rem 1.2rem; align-items: baseline; }
.channels__fig { font-weight: 500; text-align: right; white-space: nowrap; }
.channels li:nth-child(odd) { background: var(--surface); border-radius: var(--radius); }
.channels a { text-decoration: none; display: contents; }
.channels__name { font-weight: 500; }
.channels__num { max-width: 62ch; }
@media (max-width: 800px) { .research__threads { grid-template-columns: 1fr; } .thread > .ui { margin-inline: calc(-1 * var(--margin)); border-radius: 0; padding-inline: var(--margin); } .thread .ui p, .thread__why, .thread__ccr p { max-width: none; } .channels li { grid-template-columns: 1fr auto; gap: 0.2rem var(--gutter); } .channels__name { grid-column: 1; } .channels__fig { grid-column: 2; grid-row: 1; } .channels__num { grid-column: 1 / -1; } .channels li { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); border-radius: 0; } }

/* ---------- cat: full-bleed frames ---------- */
.cat { margin-top: var(--section); }
.cat__lead { padding: 0 var(--margin) 3rem; display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.cat__lead p { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; }
@media (max-width: 800px) { .cat__lead { grid-template-columns: 1fr; gap: 1rem; } }
.cat__frame { position: relative; height: 100svh; overflow: hidden; }
.cat__frame img, .cat__frame video { width: 100%; height: 100%; object-fit: cover; }
.cat__frame--half { height: 70svh; }
.cat__frame figcaption { position: absolute; left: var(--margin); bottom: var(--margin); font-size: 16px; background: var(--bg); padding: 0.3em 0.6em; border-radius: 8px; }
@media (max-width: 800px) { .cat__frame { height: 88svh; } }

/* ---------- résumé ---------- */
.cv { padding: var(--section) var(--margin) 0; display: grid; gap: 2rem; }
.cv__grid { display: grid; grid-template-columns: 8fr 4fr; column-gap: calc(var(--gutter) * 2); align-items: start; }
.cv__main { display: grid; gap: 2rem; }
.cv__entry { display: grid; gap: 0.6rem; }
.cv__role { max-width: 100%; }
.cv__role .muted { display: block; font-size: 16px; }
.cv__entry ul { padding-left: 1.1rem; max-width: 70ch; }
.cv__entry li + li { margin-top: 0.3rem; }
.cv__side { display: grid; gap: 1rem; position: sticky; top: 12vh; background: var(--surface); padding: 1.6rem; border-radius: var(--radius); }
@media (max-width: 800px) { .cv__grid { grid-template-columns: 1fr; gap: 2.5rem; } .cv__side { position: static; } }

/* ---------- contact: card on the desert ---------- */
.contact { position: relative; margin-top: var(--section); height: 100svh; overflow: hidden; }
.contact__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.card { position: absolute; top: 60px; right: var(--margin); width: 400px; background: var(--bg); padding: 32px; display: grid; gap: 1.2rem; border-radius: var(--radius); }
.card__title { font-size: clamp(32px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.card__rows { display: grid; gap: 0.55rem; }
.card__rows div { display: grid; grid-template-columns: 84px 1fr; gap: 0.6rem; font-size: 16px; }
.card__rows dt { color: var(--muted); }
.card__rows dd { overflow-wrap: anywhere; }
@media (max-width: 800px) {
  .contact { height: auto; }
  .contact__photo { height: 70svh; }
  .card { position: relative; top: auto; right: auto; width: auto; margin: -80px 0 0; padding: 24px var(--margin); border-radius: 0; }
}

/* ---------- footer: invitation over the cropped name ---------- */
.foot { position: relative; min-height: 70svh; margin-top: var(--section); background: var(--accent); color: var(--accent-ink); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 3rem; padding: 12vh var(--margin) 0; }
.foot__top { display: grid; grid-template-columns: 7fr 2fr 3fr; column-gap: var(--gutter); align-items: start; }
.foot__invite { grid-column: 1 / 2; font-size: var(--step-head); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; max-width: 14ch; }
.foot__top .button { grid-column: 1 / 2; justify-self: start; margin-top: 1.6rem; background: var(--ink); color: var(--bg); }
.foot__links { grid-column: 3 / 4; grid-row: 1 / 3; display: grid; gap: 0.3rem; font-size: 16px; }
.foot__credits { align-self: end; max-width: 70ch; padding-bottom: 0.5rem; }
.foot__mark { align-self: end; font-size: clamp(56px, 12vw, 170px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; white-space: nowrap; min-width: 0; max-width: 100%; overflow: hidden; padding-bottom: 0.2em; }
@media (max-width: 800px) {
  .foot__top { display: grid; grid-template-columns: 1fr; }
  .foot__invite { font-size: 11vw; max-width: 100%; }
  .foot__top .button { width: 100%; }
  .foot__links { grid-column: auto; grid-row: auto; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
  .foot__mark { font-size: 16vw; }
}

/* ---------- motion helpers (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .cat__frame img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
  .js .cat__frame.is-in img { transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- feedback under the hand ---------- */
@media (hover: hover) and (pointer: fine) {
  .cast__item img { transition: transform 600ms var(--ease-soft); }
  .cast__item:hover img { transform: scale(1.02); }
  .work__row:hover { color: var(--ink); }
  .channels a:hover .channels__name { text-decoration: underline; text-underline-offset: 0.2em; }
  .seg__btn:hover { color: var(--ink); }
  .bar__mark:hover { text-decoration: underline; text-underline-offset: 0.2em; }
}
.seg__btn:active, .work__row:active { transform: scale(0.98); }
.seg__btn, .work__row { transition: transform var(--t-press) var(--ease-out), color 240ms ease, background-color var(--t-hover) ease; }
@media (prefers-reduced-motion: no-preference) {
  .js .scale__figure { transition: transform 900ms var(--ease-out), opacity 700ms var(--ease-out); }
  .js .scale__photo img { transform: scale(1.04); transition: transform 1800ms var(--ease-soft); }
  .js .scale__photo.is-in img { transform: none; }
}

/* ---------- pages: each section is its own page ---------- */
main > :first-child { margin-top: 0 !important; }
.evo:first-child, .research:first-child, .cv:first-child { padding-top: 4rem; }
.contact:first-child { margin-top: 0; }
.pagehead { padding: 4rem var(--margin) 0; display: grid; grid-template-columns: 7fr 5fr; column-gap: calc(var(--gutter) * 2); row-gap: 1.2rem; align-items: start; }
.pagehead h1 { grid-column: 1 / -1; }
@media (max-width: 800px) { .pagehead { grid-template-columns: 1fr; } }
.pagehead + .band { margin-top: 5rem; }
.bar__nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.foot { min-height: 70svh; }

.scale__credit { position: absolute; right: 24px; top: 24px; z-index: 1; font-size: 13px; color: var(--photo-ink); opacity: 0.85; }

@media (prefers-reduced-motion: reduce) { .evo__figures { position: static; gap: 1.2rem; } .evo__fig { grid-area: auto; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .js .contact__photo { transform: scale(1.05); transition: transform 1800ms var(--ease-soft); }
  .js .contact.is-in .contact__photo { transform: none; }
}

.game__how p { max-width: 62ch; }
.game__label { font-weight: 500; }
.seg__btn { line-height: 1.25; }
.seg__btn .muted { font-size: 13px; font-weight: 400; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.button--big.is-live { background: #2fe06b; }
.game__score { color: var(--muted); font-size: 16px; }

/* ---------- evolution, lighter structure ---------- */
.evo__h2 { margin-top: var(--section); }
.evo__intro + .evo__h2 { margin-top: 2.5rem; }
.evo__h2 {  margin-bottom: 1.6rem; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1.05; }
.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.finding { background: var(--surface); padding: 1.6rem; border-radius: var(--radius); display: grid; gap: 0.8rem; align-content: start; }
.finding h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.finding p { max-width: 100%; }
.evo__split--flat { grid-template-columns: 5fr 7fr; margin-top: 0; }
.evo__split--flat .evo__fig { position: static; opacity: 1; grid-area: auto; }
.evo__text { display: grid; gap: 1rem; align-content: start; }
.evo__text p { max-width: 62ch; }
.evo__text--wide { margin-top: 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 100%; }
.chips span { background: var(--surface-2); padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 15px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.twocol ul { padding-left: 1.1rem; margin-top: 0.3rem; }
.charisma { display: grid; gap: 1.2rem; align-content: start; background: var(--surface); padding: 1.6rem; border-radius: var(--radius); }
.charisma p { display: grid; gap: 0.2rem; max-width: 100%; }
.charisma strong { font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.charisma span { color: var(--muted); font-size: 16px; }
.quote { background: var(--surface); padding: 1.4rem 1.6rem; border-radius: var(--radius); display: grid; gap: 0.6rem; align-self: start; }
.quote p { font-size: var(--step-lead); line-height: 1.35; max-width: 100%; }
.quote footer { font-size: 15px; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: 2rem; }
@media (max-width: 800px) { .findings, .evo__split--flat, .twocol, .quotes { grid-template-columns: 1fr; } }

.pagehead__text { display: grid; gap: 1.4rem; }
.pagehead__list { display: grid; gap: 0.7rem; max-width: 60ch; padding-left: 1.1rem; }
.pagehead__ccr { display: grid; gap: 0.6rem; max-width: 60ch; }
.pagehead__ccr p { margin: 0; }
.pagehead__ccr strong { font-weight: 600; }

/* the calm particle field behind a page head (Evolution, Trading): same canvas as the landing hero, started flat */
.fieldstage { position: relative; overflow: hidden; }
.fieldstage > .hero__field { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.fieldstage > * { position: relative; }
.evo__intro.fieldstage { margin: calc(-1 * var(--section)) calc(-1 * var(--margin)) 0; padding: var(--section) var(--margin) 2rem; }
.pagehead.fieldstage { padding-bottom: 3.5rem; }
.pagehead-lite { display: grid; gap: 1.4rem; }
.pagehead-lite.fieldstage { margin: calc(-1 * var(--section)) calc(-1 * var(--margin)) 0; padding: var(--section) var(--margin) 2rem; }
.pagehead.fieldstage + .band { margin-top: 3rem; }

/* the close: takeaways as three lines, next steps as a numbered list at lead size */
.evo__takes { list-style: none; padding: 0; font-size: var(--step-body); }
.evo__steps { display: grid; gap: 1.2rem; padding-left: 1.3rem; font-size: var(--step-lead); line-height: 1.3; max-width: 30em; }
.evo__steps strong { font-weight: 600; display: block; }
.evo__steps span { display: block; margin-top: 0.3rem; font-size: var(--step-body); line-height: 1.45; max-width: 36em; }

.evo__side { display: grid; gap: 1.2rem; align-content: start; }
.evo__side .chips { margin: 0; }
.evo__side .small { margin: 0.4rem 0 -0.6rem; }

.card__lead { max-width: none; }
@media (max-width: 800px) { .card__rows { gap: 0.4rem; } .card__rows div { background: var(--surface); padding: 0.6rem 0.8rem; border-radius: 10px; } }
