/* Bruno Lanzarotti, portfolio v2.
   Direction: each project is a world. The art leads, clean and unveiled; type is large and condensed;
   data lives in mono. Motion follows Emil Kowalski's rules: few moments, each with a purpose,
   transform/opacity only, strong ease-out for entrances, ease-in-out for on-screen movement. */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0B0A09;
  --fg: #EFEAE2;
  --muted: #A8A196;
  --dim: #857E74;
  --line: rgba(239, 234, 226, .13);
  --line-2: rgba(239, 234, 226, .24);
  --accent: #FF6A2B;
  --accent-ink: #0E0D0C;
  --gold: #E9BC55;
  --silver: #BFC6CE;
  --w: var(--accent); --w-soft: #FF8F5E; --w-ink: var(--accent-ink); --w-bg: var(--bg);

  --f-display: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* motion tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 160ms;
  --t-hover: 200ms;
  --t-state: 260ms;

  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--fg);
  background: var(--page, var(--bg));
  transition: background-color 700ms ease;
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.case-page { background: var(--w-bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1; text-wrap: balance; }
::selection { background: var(--w); color: var(--w-ink); }
:focus-visible { outline: 2px solid var(--w-soft); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }

/* light film grain over the whole screen: texture, not effect */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- type primitives ---------- */
.label, .kicker, .idx, .tag, .n, .kind, .st, .po, .py, .tier, .lv span, .k, .now-k, .chip, .crumb, .ch-meta, figcaption, .facts dt, dt {
  font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4;
}
.label { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--w); flex: none; }

.sec-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.sec-intro .label { grid-column: 1 / -1; }
.sec-intro h2 { grid-column: 1 / span 7; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7.4vw, 120px); letter-spacing: -.01em; line-height: .9; text-transform: uppercase; }
.sec-intro .sec-p { grid-column: 9 / -1; color: var(--muted); max-width: 40ch; }
.sec-intro.compact h2 { font-size: clamp(36px, 4.4vw, 64px); }
@media (max-width: 859px) { .sec-intro h2, .sec-intro .sec-p { grid-column: 1 / -1; } }

/* ---------- buttons ---------- */
.btn, .pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn.primary { background: var(--w); border-color: var(--w); color: var(--w-ink); }
.btn svg, .pill svg { transition: transform var(--t-hover) var(--ease-out); }
.pill { min-height: 40px; padding: 0 16px; font-size: 12px; white-space: nowrap; }
.cv-s { display: none; }
@media (max-width: 479px) { .cv-l { display: none; } .cv-s { display: inline; } .brand b { font-size: 19px; white-space: nowrap; } }
.btn:active, .pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .pill:hover { border-color: var(--fg); }
  .btn.primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
  .btn:hover svg, .pill:hover svg { transform: translateX(3px); }
}
.chip { display: inline-flex; align-items: center; padding: 4px 10px; background: var(--w); color: var(--w-ink); border-radius: 999px; font-size: 11.5px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -24px 0; background: linear-gradient(rgba(11,10,9,.82), rgba(11,10,9,0)); pointer-events: none; }
.bar { position: relative; display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px)); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; }
.brand span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 10px 0; transition: color var(--t-hover) ease; }
.tools { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 2px; font-family: var(--f-mono); font-size: 12.5px; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 40px; }
.lang a { color: var(--dim); text-decoration: none; }
.lang span { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .lang a:hover { color: var(--fg); } }
@media (max-width: 1023px) { .nav { display: none; } .tools { margin-left: auto; } }
@media (max-width: 479px) { .brand span { display: none; } .tools { gap: 6px; } }

/* ---------- hero: three worlds ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; background: #000; }
.hw { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity 1000ms ease, transform 1600ms var(--ease-out); }
.hw.is-on { opacity: 1; transform: scale(1); }
/* readability: a gradient from the bottom-left only, the art stays unveiled above */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,7,6,.92) 0%, rgba(8,7,6,.55) 32%, rgba(8,7,6,0) 62%),
              linear-gradient(to right, rgba(8,7,6,.55) 0%, rgba(8,7,6,0) 55%); }
.hero-inner { padding-top: 112px; padding-bottom: clamp(20px, 4svh, 40px); }
.kicker { color: var(--fg); opacity: .8; margin-bottom: 22px; }
.hero-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(50px, min(6.6vw, 11.5svh), 120px); line-height: .88; letter-spacing: -.012em; max-width: 15ch; text-transform: uppercase; }
.lede { margin-top: clamp(16px, 3svh, 28px); max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); color: rgba(239,234,226,.86); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4svh, 32px); }
.hero-foot { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
.wtabs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line-2); }
.wtab { width: 100%; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; text-align: left; padding: 16px 0 0; background: none; border: 0; color: var(--muted); cursor: pointer; position: relative;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; transition: color var(--t-hover) ease; min-height: 48px; }
.wtab .wn { color: var(--dim); }
.wtab.is-on { color: var(--fg); }
.wtab.is-on .wn { color: var(--w); }
.wtab .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; padding: 0; }
.wtab .bar i { position: absolute; inset: 0; background: var(--w); transform: scaleX(0); transform-origin: left; }
.is-timing .wtab.is-on .bar i { animation: fill var(--dur, 7000ms) linear both; }
@keyframes fill { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .wtab:hover { color: var(--fg); } }
@media (max-width: 639px) { .wtabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .wtab { grid-template-columns: 1fr; font-size: 11px; } .wtab .wl { display: none; } .cta .btn { flex: 1 1 auto; justify-content: center; } }

/* hero entrance: once per load. Lead (title) travels furthest; support follows; decoration only fades. */
.js .hero [data-in] { animation: rise 700ms var(--ease-out) both; }
.js .hero [data-in="0"] { animation-name: fadein; animation-duration: 500ms; }
.js .hero [data-in="1"] { --rise: 18px; }
.js .hero [data-in="2"] { --rise: 10px; animation-delay: 90ms; }
.js .hero [data-in="3"] { --rise: 8px; animation-delay: 150ms; }
.js .hero [data-in="4"] { animation-name: fadein; animation-duration: 500ms; animation-delay: 260ms; }
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 12px)); } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- numbers ---------- */
.numbers { border-bottom: 1px solid var(--line); }
.numbers dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.numbers dl > div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 36px 24px 36px 0; border-right: 1px solid var(--line); }
.numbers dl > div + div { padding-left: 24px; }
.numbers dl > div:last-child { border-right: 0; }
.numbers dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 72px); line-height: .9; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.numbers dt { color: var(--muted); max-width: 22ch; }
@media (max-width: 859px) { .numbers dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .numbers dl > div:nth-child(2) { border-right: 0; } .numbers dl > div:nth-child(3) { padding-left: 0; } .numbers dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- worlds (flagship chapters) ---------- */
.worlds { padding-top: clamp(96px, 12vw, 180px); }
.world { position: relative; margin-bottom: clamp(88px, 11vw, 168px); }
.world-art { display: block; position: relative; height: min(86svh, 54vw); min-height: 300px; overflow: hidden; background: var(--w-bg); }
.world-art img { width: 100%; height: 100%; object-fit: cover; }
.can-reveal [data-reveal] { clip-path: inset(9% 7% 9% 7%); transition: clip-path 1100ms var(--ease-out); }
.can-reveal [data-reveal] img { transform: scale(1.08); transition: transform 1400ms var(--ease-out); }
.can-reveal [data-reveal].is-in { clip-path: inset(0 0 0 0); }
.can-reveal [data-reveal].is-in img { transform: none; }
.world-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; padding-top: 32px; align-items: start; }
.wb-name { grid-column: 1 / span 5; }
.idx { display: flex; gap: 16px; color: var(--w-soft); margin-bottom: 16px; }
.idx span { color: var(--muted); }
.world h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 6.2vw, 104px); line-height: .86; text-transform: uppercase; letter-spacing: -.005em; }
.world .tag { color: var(--muted); margin-top: 16px; }
.wb-short { grid-column: 6 / span 4; font-size: clamp(17px, 1.35vw, 20px); color: rgba(239,234,226,.88); padding-top: 34px; }
.wb-side { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-top: 34px; }
.wstats { margin: 0; display: grid; gap: 14px; }
.wstats div { display: flex; align-items: baseline; gap: 12px; }
.wstats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; min-width: 4.2ch; color: var(--w-soft); }
.wstats dt { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .world-art img { transition: transform 600ms var(--ease-out); } .world-art:hover img { transform: scale(1.02); } }
@media (max-width: 1023px) {
  .wb-name { grid-column: 1 / -1; } .wb-short { grid-column: 1 / span 7; padding-top: 0; } .wb-side { grid-column: 8 / -1; padding-top: 0; }
}
@media (max-width: 639px) { .wb-short, .wb-side { grid-column: 1 / -1; } .world-art { height: 62vw; min-height: 240px; } }

/* ---------- index lists (more games, apps, sub-games) ---------- */
.index { padding: clamp(72px, 9vw, 140px) 0; }
.index.apps { border-top: 1px solid var(--line); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 48px 112px minmax(0, 1fr) minmax(0, .9fr) 180px 28px; column-gap: 24px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; isolation: isolate;
  transition: transform var(--t-press) var(--ease-out); }
.row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter) / 2); z-index: -1; background: var(--w); opacity: 0; transition: opacity var(--t-hover) ease; }
.row .n, .row .kind, .row .st { color: var(--muted); }
.row .thumb { display: block; width: 112px; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.04); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb.is-empty { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px); }
.row .name { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.3vw, 36px); line-height: 1; text-transform: uppercase; }
.row .go { color: var(--muted); transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
a.row:active { transform: scale(.995); }
@media (hover: hover) and (pointer: fine) {
  a.row:hover::before { opacity: .09; }
  a.row:hover .go { transform: translateX(4px); color: var(--w-soft); }
  a.row:hover .n { color: var(--w-soft); }
}
.row-group { padding: 36px 0 12px; border-bottom: 1px solid var(--line); }
.row-group span { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg); }
.rows > .row-group:first-child { padding-top: 16px; }
.row.has-desc { grid-template-columns: 48px 112px minmax(0, .8fr) minmax(0, 1.2fr) 28px; grid-template-areas: "n t name desc go" "n t kind desc go"; row-gap: 6px; }
.row.has-desc .n { grid-area: n; } .row.has-desc .thumb { grid-area: t; } .row.has-desc .name { grid-area: name; align-self: end; }
.row.has-desc .kind { grid-area: kind; align-self: start; } .row.has-desc .desc { grid-area: desc; color: var(--muted); font-size: 15.5px; } .row.has-desc .go { grid-area: go; }
@media (max-width: 859px) {
  .row { grid-template-columns: 88px minmax(0, 1fr) 24px; grid-template-areas: "t name go" "t st go"; row-gap: 4px; column-gap: 16px; }
  .row .n, .row .kind { display: none; }
  .row .thumb { grid-area: t; width: 88px; } .row .name { grid-area: name; align-self: end; font-size: 24px; } .row .st { grid-area: st; font-size: 11px; } .row .go { grid-area: go; }
  .row.has-desc { grid-template-columns: 88px minmax(0, 1fr) 24px; grid-template-areas: "t name go" "t kind go" "desc desc desc"; }
  .row.has-desc .kind { display: block; font-size: 11px; } .row.has-desc .desc { padding-top: 8px; }
}

/* ---------- achievements ---------- */
.ach { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.ach-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ach-side { grid-column: 1 / span 4; position: sticky; top: 100px; align-self: start; }
.ach-side h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 80px); text-transform: uppercase; line-height: .9; margin-top: 20px; }
.big-n { font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 15vw, 240px); line-height: .8; color: var(--gold); margin-top: 32px; }
.tally { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.tally b { color: var(--gold); font-weight: 500; } .tally i { color: var(--silver); font-style: normal; }
.ach-list { grid-column: 6 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ach-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; row-gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ach-list .tier { grid-row: span 2; color: var(--silver); display: flex; gap: 10px; align-items: baseline; }
.ach-list .tier::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.ach-list .gold .tier { color: var(--gold); }
.ach-list strong { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.02; text-transform: uppercase; }
.ach-list .det { color: var(--muted); }
@media (max-width: 859px) { .ach-side, .ach-list { grid-column: 1 / -1; } .ach-side { position: static; } .ach-list li { grid-template-columns: 1fr; } .ach-list .tier { grid-row: auto; } }

/* ---------- how I work ---------- */
.how { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.statement { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7vw, 120px); line-height: .9; text-transform: uppercase; margin-top: 24px; max-width: 16ch; }
.how-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(48px, 6vw, 88px); }
.me { grid-column: 1 / span 3; margin: 0; display: flex; gap: 16px; align-items: center; }
.me img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; filter: grayscale(.2); }
.me figcaption { text-transform: none; font-family: var(--f-body); font-size: 14.5px; letter-spacing: 0; color: var(--muted); display: flex; flex-direction: column; }
.me strong { color: var(--fg); font-size: 16px; }
.how-copy { grid-column: 6 / span 6; display: grid; gap: 18px; font-size: clamp(17px, 1.35vw, 20px); color: rgba(239,234,226,.88); }
.sub { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: clamp(64px, 8vw, 112px) 0 20px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.services li { border-top: 1px solid var(--line-2); padding-top: 20px; display: grid; gap: 12px; align-content: start; }
.services .n { color: var(--accent); }
.services h4 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: .95; text-transform: uppercase; }
.services p { color: var(--muted); max-width: 34ch; }
.now { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: center; margin-top: 48px; padding: 24px; border: 1px solid var(--line-2); border-radius: 4px; }
.now-tag { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; }
.now-k { color: var(--muted); }
.now h4 { font-family: var(--f-display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; margin-top: 4px; }
.now > p { color: var(--muted); }
@media (max-width: 859px) { .me, .how-copy { grid-column: 1 / -1; } .services { grid-template-columns: 1fr; } .now { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- path ---------- */
.path { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.row-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.row-intro h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 7.4vw, 120px); line-height: .9; text-transform: uppercase; margin-top: 20px; }
.lv { display: flex; align-items: baseline; gap: 14px; }
.lv b { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 7vw, 112px); line-height: .8; color: var(--accent); }
.lv span { color: var(--muted); max-width: 16ch; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.track li { padding: 22px 16px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.track li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--line-2); transform: rotate(45deg); }
.track li.is-now::before { background: var(--accent); border-color: var(--accent); }
.track .yr { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 3vw, 46px); line-height: 1; }
.track li.is-now .yr { color: var(--accent); }
.track strong { font-size: 15.5px; line-height: 1.3; }
.track span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.archive > div { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.archive .k { color: var(--muted); }
.archive strong { font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; line-height: 1; }
.archive p:not(.k) { color: var(--muted); }
.archive a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 1023px) { .track { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); padding-left: 24px; } .track li { padding: 0 0 28px; } .track li::before { top: 10px; left: -29px; } .archive { grid-template-columns: 1fr; } }

/* ---------- press ---------- */
.press { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pr { display: grid; grid-template-columns: 160px minmax(0, 1.6fr) minmax(0, 1fr) 64px 24px; column-gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; isolation: isolate;
  transition: transform var(--t-press) var(--ease-out); }
.pr::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter) / 2); z-index: -1; background: var(--fg); opacity: 0; transition: opacity var(--t-hover) ease; }
.pr .pt { display: none; }
.pr .po, .pr .py { color: var(--muted); }
.pr .ptitle { font-weight: 560; font-size: clamp(19px, 1.55vw, 23px); line-height: 1.25; letter-spacing: -.005em; text-wrap: pretty; }
.pr .q { display: inline-block; vertical-align: middle; margin-left: 12px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.pr .pn { color: var(--muted); font-size: 15px; }
.pr .go { color: var(--muted); transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
.pr:active { transform: scale(.995); }
@media (hover: hover) and (pointer: fine) { .pr:hover::before { opacity: .05; } .pr:hover .go { transform: translate(2px, -2px); color: var(--fg); } }
.peek { position: fixed; left: 0; top: 0; z-index: 45; width: 280px; aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; scale: .96; transition: opacity var(--t-hover) var(--ease-out), scale var(--t-hover) var(--ease-out); }
.peek.is-on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 859px) {
  .pr { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "t po" "t ti" "t py"; row-gap: 6px; column-gap: 16px; align-items: start; }
  .pr .pt { display: block; grid-area: t; aspect-ratio: 4 / 3; overflow: hidden; } .pr .pt img { width: 100%; height: 100%; object-fit: cover; }
  .pr .po { grid-area: po; } .pr .ptitle { grid-area: ti; font-size: 17px; } .pr .py { grid-area: py; } .pr .pn, .pr .go { display: none; }
}

/* ---------- contact + footer ---------- */
.contact { padding: clamp(96px, 12vw, 180px) 0 clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.contact-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6.2vw, 104px); line-height: .9; text-transform: uppercase; max-width: 18ch; margin-top: 24px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 48px; }
.email { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--accent); overflow-wrap: anywhere; }
.pill.is-done { border-color: var(--accent); color: var(--accent); }
.where { color: var(--muted); margin-top: 28px; font-size: 15px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.site-footer a { color: var(--fg); text-underline-offset: 3px; }
.totop { text-decoration: none; }

/* ---------- case page ---------- */
.ch-hero { position: relative; }
.ch-art { height: min(88svh, 58vw); min-height: 320px; overflow: hidden; background: #000; }
.ch-art img { width: 100%; height: 100%; object-fit: cover; }
.ch-screens { padding: 120px var(--gutter) 0; display: flex; justify-content: center; background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--w) 22%, transparent), transparent 70%); }
.ch-screens img { max-height: 62svh; width: auto; max-width: min(1100px, 100%); object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.ch-screens.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1480px; margin: 0 auto; }
.ch-screens.mosaic img { width: 100%; height: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.ch-head { padding-top: 40px; display: grid; gap: 18px; }
.is-art .ch-head { padding-top: 32px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; min-height: 40px; width: max-content; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .crumb:hover { color: var(--fg); } }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: var(--muted); }
.ch-hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 10.5vw, 184px); line-height: .84; text-transform: uppercase; letter-spacing: -.01em; }
.tagline { font-size: clamp(19px, 1.8vw, 26px); max-width: 38ch; color: rgba(239,234,226,.9); line-height: 1.35; }
.ch-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.prose { grid-column: 1 / span 7; display: grid; gap: 56px; }
.prose section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.prose h2 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--w-soft); }
.prose p, .prose li { font-size: clamp(17px, 1.3vw, 19.5px); color: rgba(239,234,226,.9); max-width: 62ch; }
.prose p + p { margin-top: 4px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sheet { grid-column: 9 / -1; position: sticky; top: 92px; align-self: start; display: grid; gap: 16px; }
.facts { margin: 0 0 16px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-size: 15.5px; }
.sheet-stats { margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sheet-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.sheet-stats dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--w-soft); }
.sheet-stats dt { color: var(--muted); }
.award-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.award-list li { display: flex; gap: 10px; }
.award-list li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.sheet-links { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1023px) { .prose, .sheet { grid-column: 1 / -1; } .sheet { position: static; } }
@media (max-width: 639px) { .ch-art { height: auto; min-height: 0; aspect-ratio: 16 / 10; margin-top: 68px; } }

.gallery { padding-bottom: clamp(72px, 9vw, 128px); }
.gallery .label { margin-bottom: 20px; }
.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)); padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px)) 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.strip figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 10px; }
.strip img { height: min(62svh, 560px); width: auto; max-width: 86vw; object-fit: cover; border-radius: 4px; background: rgba(255,255,255,.04); }
.strip figcaption { color: var(--muted); }

.quotes { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.lead-q { margin: 28px 0 0; }
.lead-q blockquote { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 92px); line-height: .95; text-transform: uppercase; max-width: 18ch; }
.lead-q figcaption, .q-grid figcaption { color: var(--w-soft); margin-top: 18px; }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: clamp(56px, 7vw, 96px); }
.q-grid figure { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.q-grid blockquote { margin: 0; font-size: 18px; line-height: 1.45; color: rgba(239,234,226,.9); }
@media (max-width: 859px) { .q-grid { grid-template-columns: 1fr; } }

.sub-index { border-top: 1px solid var(--line); padding-top: clamp(72px, 9vw, 128px); }
.sub-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 80px); text-transform: uppercase; line-height: .9; margin: 20px 0 40px; }

.next { display: block; text-decoration: none; border-top: 1px solid var(--line); background: var(--w-bg); position: relative; isolation: isolate; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--w); opacity: 0; transition: opacity 300ms ease; }
.next-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.next-t { display: grid; gap: 14px; }
.next b { font-family: var(--f-display); font-weight: 900; font-size: clamp(52px, 8vw, 140px); line-height: .85; text-transform: uppercase; }
.next .tag { color: var(--muted); }
.next-img { width: min(36vw, 480px); aspect-ratio: 16 / 9; overflow: hidden; flex: none; border-radius: 4px; }
.next-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next:hover::before { opacity: .08; } .next:hover .next-img img { transform: scale(1.03); } }
@media (max-width: 639px) { .next-in { flex-direction: column-reverse; align-items: flex-start; } .next-img { width: 100%; } }

/* ---------- page-to-page: the picture you clicked becomes the next page's hero ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 480ms; animation-timing-function: var(--ease-in-out); }
::view-transition-old(root) { animation: 180ms ease both vt-out; }
::view-transition-new(root) { animation: 260ms ease 60ms both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-old(*):not(::view-transition-old(root)), ::view-transition-new(*):not(::view-transition-new(root)) { height: 100%; object-fit: cover; overflow: clip; }

/* ---------- reduced motion: fewer and gentler, not none ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero [data-in] { animation: fadein 400ms ease both !important; animation-delay: 0ms !important; }
  .hw { transform: none !important; transition: opacity 600ms ease; }
  .is-timing .wtab.is-on .bar i { animation: none; transform: scaleX(1); }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 1ms !important; }
  body { transition: none; }
}
