/* ---------- Fonts (trial/personal licences — buy web licences before launch) ---------- */
@font-face { font-family: 'Season Mix'; src: url('../fonts/SeasonMix-TRIAL-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Season Mix'; src: url('../fonts/SeasonMix-TRIAL-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('../fonts/PPNeueMontreal-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('../fonts/PPNeueMontreal-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PP Neue Montreal'; src: url('../fonts/PPNeueMontreal-Italic.otf') format('opentype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Awesome Serif'; src: url('../fonts/AwesomeSerifItalic-LightTall.otf') format('opentype'); font-weight: 300; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #828282;
  --line: #8e8e8e;
  --soft: #efefef;
  --soft-line: #c0c0c0;
  --btn: #3a3a3a;
  --btn-ink: #f2f2f2;
  --canvas: #f5f5f3;
  --dot: #d6d6d2;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.08);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.08), 0 24px 56px rgba(0,0,0,.16);
  --ui: rgba(255,255,255,.86);
  --face: #000000;
  --face-eye: #ffffff;

  --serif: 'Season Mix', 'Times New Roman', serif;
  --sans: 'PP Neue Montreal', 'Helvetica Neue', Arial, sans-serif;
  --kaam: 'Awesome Serif', 'Season Mix', serif;

  /* 1 design pixel of the 1440px Figma frame */
  --u: calc(min(100vw, 1440px) / 1440);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --ink: #f1f1ee; --muted: #8d8d88; --line: #3d3d3a; --soft: #1c1c1b; --soft-line: #3d3d3a;
    --btn: #f1f1ee; --btn-ink: #0d0d0d; --canvas: #141413; --dot: #2a2a28; --card: #1b1b1a;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45); --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.6);
    --ui: rgba(27,27,26,.86); --face: #f1f1ee; --face-eye: #0d0d0d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --ink: #f1f1ee; --muted: #8d8d88; --line: #3d3d3a; --soft: #1c1c1b; --soft-line: #3d3d3a;
  --btn: #f1f1ee; --btn-ink: #0d0d0d; --canvas: #141413; --dot: #2a2a28; --card: #1b1b1a;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45); --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.6);
  --ui: rgba(27,27,26,.86); --face: #f1f1ee; --face-eye: #0d0d0d; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 16px; }
.trim { text-box-trim: trim-both; text-box-edge: cap alphabetic; }

/* ---------- Nav ---------- */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; max-width: 1440px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(22 * var(--u)) calc(60 * var(--u)) 0 calc(61 * var(--u));
  font-family: var(--serif); font-size: 20px; letter-spacing: -0.055em; line-height: .97; }
.nav-links { display: flex; align-items: center; gap: calc(44 * var(--u)); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.theme-toggle { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; overflow: hidden; margin-left: -8px; }
.theme-toggle span { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 0 50%); }

/* ---------- Hero (mirrors the 1440 × 833 Figma frame) ---------- */
.hero { position: relative; max-width: 1440px; height: calc(800 * var(--u)); margin: 0 auto; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(92.9 * var(--u));
  line-height: .97; letter-spacing: -0.055em; white-space: nowrap; }
.hero-title > span, .hero-title .w-i, .hero-title .w-do { position: absolute; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.hero-title .l1 { position: static; }
.hero-title .w-i  { left: calc(172 * var(--u)); top: calc(178 * var(--u)); }
.hero-title .w-do { left: calc(292 * var(--u)); top: calc(178 * var(--u)); }
.hero-title .l2   { left: calc(230 * var(--u)); top: calc(276 * var(--u)); }
.hero-title .l3   { left: calc(442 * var(--u)); top: calc(376 * var(--u)); }
.face-hero { position: absolute; left: calc(210 * var(--u)); top: calc(179 * var(--u)); width: calc(66 * var(--u)); height: calc(66 * var(--u)); }

.hero-cta { position: absolute; left: calc(710 * var(--u)); top: calc(203 * var(--u)); display: flex; gap: calc(19 * var(--u)); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: calc(40 * var(--u)); min-height: 36px;
  padding: 0 calc(26 * var(--u)); border-radius: 6.35px; font-size: max(12.7px, calc(14 * var(--u))); letter-spacing: -0.04em;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .25s, color .25s; }
.btn-dark { width: calc(188 * var(--u)); background: var(--btn); color: var(--btn-ink); border: 0; }
.btn-light { width: calc(148 * var(--u)); background: var(--soft); color: var(--ink); border: .635px dashed var(--soft-line); }
.btn:hover { transform: translateY(-2px); }
.btn-light:hover { background: var(--ink); color: var(--bg); border-style: solid; }

.tools { position: absolute; margin: 0; left: calc(172 * var(--u)); top: calc(395 * var(--u)); font-size: max(13px, calc(18 * var(--u)));
  line-height: 1.29; letter-spacing: -0.04em; }
.intro { position: absolute; margin: 0; left: calc(800 * var(--u)); top: calc(542 * var(--u)); width: calc(500 * var(--u));
  font-size: calc(32 * var(--u)); line-height: 1.17; letter-spacing: -0.04em; }
.intro strong { font-weight: 400; }

/* ---------- Caricature / face ---------- */
.face { display: block; border-radius: 50%; background: var(--face); position: relative; overflow: hidden; flex: none;
  transition: transform .4s cubic-bezier(.2,.8,.2,1); }
button.face:hover { transform: scale(1.08) rotate(-4deg); }
.face svg, .face img { position: absolute; inset: 0; width: 100%; height: 100%; }
.face img { object-fit: cover; }
.face .eye { fill: var(--face-eye); transition: transform .12s; transform-box: fill-box; transform-origin: center; }
.face .pupil { fill: var(--face); transition: transform .08s linear; }
.face .smile { fill: none; stroke: var(--face-eye); stroke-width: 3; stroke-linecap: round; opacity: 0; transition: opacity .2s; }
.face .mouth-o { fill: var(--face-eye); opacity: 0; transition: opacity .2s; }
.face.blink .eye { transform: scaleY(.1); }
.face[data-mood="happy"] .eye { transform: scaleY(.35) translateY(-6%); }
.face[data-mood="happy"] .smile { opacity: 1; }
.face[data-mood="wow"] .eye { transform: scale(1.18); }
.face[data-mood="wow"] .mouth-o { opacity: 1; }
.face[data-mood="focus"] .eye { transform: scaleY(.6); }

/* ---------- Work (Kaam) ---------- */
.work { max-width: 1440px; margin: 0 auto; padding: calc(72 * var(--u)) calc(60 * var(--u)) calc(100 * var(--u)); }
.work-title { margin: 0 0 calc(56 * var(--u)); text-align: center; font-family: var(--serif); font-weight: 400;
  font-size: calc(92.9 * var(--u)); line-height: .97; letter-spacing: -0.055em; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.work-title em { font-family: var(--kaam); font-weight: 300; font-style: italic; letter-spacing: -0.03em; }

.stage { position: relative; height: min(82vh, 860px); min-height: 520px; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; background: var(--canvas); isolation: isolate; }
.stage.is-full { position: fixed; inset: 0; height: auto; min-height: 0; z-index: 60; border: 0; border-radius: 0; }
.stage .when-full { display: none; }
.stage.is-full .when-full { display: inline; }
.stage.is-full .when-window { display: none; }

.viewport { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); outline: none; }
.stage.is-full .viewport { touch-action: none; }
.viewport.dragging { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.strings { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.strings path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 8; opacity: .55; }

.stage-bar, .stage-foot { position: absolute; left: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.stage-bar { top: 14px; justify-content: space-between; }
.stage-foot { bottom: 14px; justify-content: space-between; }
.stage-bar > *, .stage-foot > * { pointer-events: auto; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip, .pill, .seg, .zoom { background: var(--ui); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; letter-spacing: -0.02em; white-space: nowrap; }
.chip { padding: 8px 14px; transition: background-color .2s, color .2s; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage-actions { display: flex; gap: 8px; flex: none; }
.pill { padding: 8px 14px; }
.pill:hover { background: var(--ink); color: var(--bg); }
.seg { display: flex; padding: 3px; }
.seg button { padding: 5px 12px; border-radius: 99px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.zoom { display: flex; align-items: center; padding: 3px; }
.zoom button { width: 32px; height: 30px; border-radius: 99px; font-size: 16px; }
.zoom button:hover { background: var(--soft); }
.zoom-pct { min-width: 46px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 13px; color: var(--muted); background: var(--ui); padding: 7px 14px; border-radius: 99px; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); transition: opacity .5s; }
.hint.gone { opacity: 0; }
.minimap { width: 180px; height: 120px; border-radius: 12px; border: 1px solid var(--line); background: var(--ui); cursor: pointer; visibility: hidden; }
.stage.is-full .minimap { visibility: visible; }
.face-home { position: absolute; z-index: 3; right: 18px; bottom: 150px; width: 52px; height: 52px; display: none; box-shadow: var(--shadow); }
.stage.is-full .face-home { display: block; }

/* list view */
.list { position: absolute; inset: 0; overflow-y: auto; padding: 76px 0 70px; display: none; overscroll-behavior: contain; }
.stage[data-view="list"] .list { display: block; }
.stage[data-view="list"] .viewport, .stage[data-view="list"] .zoom, .stage[data-view="list"] .hint, .stage[data-view="list"] .minimap { display: none; }
.list-group { margin-bottom: 36px; }
.list-group h3 { margin: 0 24px 4px; font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.055em; }
.list-group p { margin: 0 24px 14px; font-size: 13px; color: var(--muted); }
.list-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 24px 12px; scroll-snap-type: x mandatory; scroll-padding: 24px; scrollbar-width: thin; }
.list-row .card { position: relative; flex: none; width: 220px; scroll-snap-align: start; }

/* ---------- Canvas items ---------- */
.card { position: absolute; display: block; text-align: left; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card-img { position: relative; border-radius: 10px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); transition: box-shadow .4s; }
.card-img img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.card:hover, .card:focus-visible { transform: translateY(-8px); }
.card:hover .card-img, .card:focus-visible .card-img { box-shadow: var(--shadow-lift); }
.card-meta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 0; font-size: 15px; letter-spacing: -0.03em; line-height: 1.2; }
.card-title { font-weight: 400; }
.card-kind { color: var(--muted); white-space: nowrap; font-size: 13px; padding-top: 1px; }
.card-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.66); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 99px; }
.card-video .card-img { background: #111; color: #fff; aspect-ratio: 9 / 14; display: grid; place-items: center; }
.card-video .play { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; font-size: 18px; padding-left: 4px; }
.card-video .vname { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.05em; }
.card-video .vnote { position: absolute; left: 14px; top: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

.group-label { position: absolute; pointer-events: none; white-space: nowrap; }
.group-label h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: .97; letter-spacing: -0.055em; }
.group-label p { margin: 10px 0 0; font-size: 16px; letter-spacing: -0.04em; color: var(--muted); }

.about-card { position: absolute; width: 640px; padding: 40px 44px 36px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lift); cursor: default; box-sizing: border-box; display: flex; flex-direction: column; }
.about-card .ac-row { margin-top: auto !important; padding-top: 22px; }
.about-card .ac-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: .97; letter-spacing: -0.055em; }
.about-card .ac-title .face { display: inline-block; width: 44px; height: 44px; vertical-align: -4px; margin: 0 6px; }
.about-card p { margin: 18px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.03em; }
.about-card .ac-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.about-card .ac-row a, .about-card .ac-row span { font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); }
.about-card .ac-row a:hover { background: var(--ink); color: var(--bg); }
.note { position: absolute; width: 230px; padding: 18px 18px 22px; background: #fff27a; color: #2a2510; font-family: var(--kaam); font-style: italic;
  font-size: 26px; line-height: 1.05; border-radius: 3px; box-shadow: var(--shadow); transform: rotate(var(--r, -3deg)); }

/* ---------- Experience ---------- */
.exp { position: relative; max-width: 1440px; margin: 0 auto; min-height: calc(700 * var(--u)); padding: calc(75 * var(--u)) calc(60 * var(--u)) calc(120 * var(--u)); }
.exp-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(92.9 * var(--u)); line-height: .97; letter-spacing: -0.055em; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.exp-side { position: absolute; left: calc(60 * var(--u)); top: calc(250 * var(--u)); width: calc(420 * var(--u)); }
.exp-list { list-style: none; margin: calc(80 * var(--u)) 0 0 calc(558 * var(--u)); padding: 0; width: calc(685 * var(--u)); font-family: var(--serif); }
.exp-row { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 25px 0; border-bottom: 1px solid var(--line); text-align: left; position: relative; }
.exp-row .co { font-size: 26px; line-height: .97; letter-spacing: -0.055em; display: flex; justify-content: space-between; align-items: baseline; }
.exp-row .rd { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; letter-spacing: -0.055em; line-height: .97; }
.exp-row::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
/* experience rows are plain text now (no hover line) */

.peek { position: fixed; z-index: 40; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.peek.on { opacity: 1; }
.peek img { position: absolute; width: 150px; border-radius: 8px; box-shadow: var(--shadow-lift); transition: transform .35s cubic-bezier(.2,.8,.2,1); }

/* ---------- Contact / footer ---------- */
.contact { max-width: 1440px; margin: 0 auto; padding: calc(60 * var(--u)) calc(60 * var(--u)) calc(48 * var(--u)); border-top: 1px solid var(--line); }
.closing { margin: calc(40 * var(--u)) 0 calc(110 * var(--u)); font-family: var(--serif); font-size: calc(92.9 * var(--u)); line-height: .97; letter-spacing: -0.055em; }
.closing em { font-family: var(--kaam); font-weight: 300; letter-spacing: -0.03em; }
.foot { display: flex; justify-content: space-between; gap: 32px; font-family: var(--serif); font-size: 24px; line-height: .97; letter-spacing: -0.055em; }
.foot-col { display: flex; flex-direction: column; gap: 60px; }
.foot-right { width: 126px; }
.foot-group { display: flex; flex-direction: column; gap: 31px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.muted { color: var(--muted); }
a[data-link].todo { opacity: .45; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.35); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1);
  animation: fade .3s ease both; }
.modal-panel { position: relative; width: min(1240px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; animation: pop .45s cubic-bezier(.2,.8,.2,1) both; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 16px; }
.m-meta { margin: 0 0 8px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.m-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: .97; letter-spacing: -0.055em; }
.m-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.m-close:hover { background: var(--ink); color: var(--bg); }
.m-media { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.m-media.row { display: flex; gap: 14px; padding: 0 24px 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 24px; }
.m-media.row img { height: min(62vh, 640px); width: auto; max-width: none; border-radius: 10px; scroll-snap-align: start; background: var(--soft); flex: none; }
.m-media.col { padding: 0 24px; }
.m-media.col img { width: 100%; max-width: 1000px; height: auto; margin: 0 auto 14px; border-radius: 10px; background: var(--soft); }
.m-media .video { margin: 0 24px; aspect-ratio: 16 / 9; max-height: 62vh; border-radius: 12px; background: #111; color: #fff; display: grid; place-items: center; text-align: center; }
.m-media .video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
.m-media .video p { margin: 8px 0 0; color: rgba(255,255,255,.6); font-size: 14px; }
.modal-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 16px 24px 22px; border-top: 1px solid var(--soft); }
.m-summary { margin: 0; max-width: 680px; font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; }
.m-nav { display: flex; gap: 8px; flex: none; }
.m-nav button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; }
.m-nav button:hover { background: var(--ink); color: var(--bg); }
.m-arrow { position: absolute; top: 50%; width: 44px; height: 44px; border-radius: 50%; background: var(--ui); border: 1px solid var(--line);
  font-size: 26px; line-height: 1; backdrop-filter: blur(10px); display: none; }
.modal-panel.has-row .m-arrow { display: block; }
.m-left { left: 12px; } .m-right { right: 12px; }

.portal { position: fixed; z-index: 70; border-radius: 50%; background: var(--canvas); pointer-events: none; opacity: 0; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --u: calc(100vw / 390); }
  .nav { padding: 18px 16px 0; font-size: 18px; }
  .nav-links { gap: 18px; }
  .nav-name { max-width: 40vw; }
  .hero { height: auto; padding: 110px 16px 64px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 64px); white-space: normal; }
  .hero-title > span, .hero-title .w-i, .hero-title .w-do { position: static; display: block; }
  .hero-title .l1 { display: flex; align-items: center; gap: .16em; }
  .hero-title .l1 .w-i, .hero-title .l1 .w-do { display: inline; }
  .hero-title .l2 { margin: .14em 0 0 .3em; }
  .hero-title .l3 { margin: .14em 0 0 1.2em; }
  .face-hero { position: relative; left: auto; top: auto; width: .72em; height: .72em; }
  .hero-cta { position: static; margin-top: 32px; gap: 10px; }
  .btn { height: 44px; padding: 0 20px; width: auto; font-size: 14px; }
  .tools { position: static; margin-top: 40px; font-size: 15px; }
  .intro { position: static; width: auto; margin-top: 32px; font-size: 22px; }
  .work { padding: 48px 16px 64px; }
  .work-title, .exp-title { font-size: clamp(44px, 13vw, 70px); }
  .work-title { margin-bottom: 28px; }
  .stage { height: 78vh; min-height: 480px; border-radius: 16px; }
  .stage-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .stage-actions { justify-content: space-between; }
  .hint { display: none; }
  .face-home { bottom: 70px; }
  .list { padding-top: 116px; }
  .stage.is-full .minimap { display: none; }
  .list-group h3 { margin-left: 16px; } .list-group p { margin-left: 16px; }
  .list-row { padding-left: 16px; scroll-padding: 16px; }
  .exp { padding: 56px 16px 72px; min-height: 0; }
  .exp-side { position: static; width: auto; display: flex; align-items: center; gap: 18px; margin-top: 32px; }
  .exp-list { margin: 28px 0 0; width: auto; }
  .exp-row .rd { flex-direction: column; gap: 8px; }
  .contact { padding: 48px 16px 36px; }
  .closing { font-size: clamp(40px, 11.5vw, 64px); margin: 8px 0 56px; }
  .foot { font-size: 20px; }
  .foot-col { gap: 40px; }
  .foot-group { gap: 22px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 20px 20px 0 0; max-height: 94dvh; }
  .m-media.row img { height: 56vh; }
  .modal-foot { flex-direction: column; align-items: stretch; }
  .m-arrow { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- type filter + mixed list ---- */
.card { transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s, filter .3s; }
.card.is-off { opacity: .12; filter: grayscale(1); pointer-events: none; }
.list .card.is-off { display: none; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; padding: 4px 24px 24px; }
.list-grid .card { position: relative; width: auto; }
@media (max-width: 820px) { .list-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 4px 16px 24px; } }
@media (max-width: 820px) { .list-grid .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* ================= Work: selected + index + hidden canvas ================= */
.stage:not(.is-full) { display: none; }
.stage.is-full .stage-bar { justify-content: space-between; }

.selected { list-style: none; max-width: calc(1080 * var(--u)); margin: calc(40 * var(--u)) auto 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(80 * var(--u)); row-gap: calc(110 * var(--u)); }
.sel:nth-child(even) { margin-top: calc(180 * var(--u)); }
.sel-btn { display: block; width: 100%; text-align: left; }
.sel-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--canvas); }
.sel-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sel-btn:hover .sel-img img { transform: scale(1.035); }
.sel-meta { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; letter-spacing: -0.02em; color: var(--muted); }
.sel-title { display: block; margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: max(28px, calc(44 * var(--u))); line-height: .97; letter-spacing: -0.055em; }
.sel-sum { display: block; margin-top: 12px; max-width: 480px; font-size: 16px; line-height: 1.35; letter-spacing: -0.02em; color: var(--muted); }

.index { margin-top: calc(170 * var(--u)); }
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.index-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: max(40px, calc(64 * var(--u))); line-height: .97; letter-spacing: -0.055em; }
.index-count { font-family: var(--sans); font-size: 16px; letter-spacing: 0; color: var(--muted); vertical-align: top; }
.index-filters { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; letter-spacing: -0.02em; }
.index-filters button { color: var(--muted); padding: 4px 0; transition: color .2s; }
.index-filters button:hover, .index-filters button[aria-pressed="true"] { color: var(--ink); }
.index-filters button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }
.index-list { list-style: none; margin: 0; padding: 0; }
.ix-row { position: relative; display: grid; grid-template-columns: 60px 1fr 180px 60px; align-items: baseline; gap: 16px; width: 100%; padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; }
.ix-thumb { display: none; }
.ix-no, .ix-kind, .ix-year { font-size: 14px; letter-spacing: -0.02em; color: var(--muted); }
.ix-year { text-align: right; }
.ix-title { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.055em; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.ix-row::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ix-row:hover::before, .ix-row:focus-visible::before { transform: scaleX(1); }
.ix-row:hover .ix-title, .ix-row:focus-visible .ix-title { transform: translateX(10px); }

.index-peek { position: fixed; z-index: 40; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.index-peek.on { opacity: 1; }
.index-peek img { display: block; width: 220px; border-radius: 8px; box-shadow: var(--shadow-lift); }
.peek-reel { display: grid; place-items: center; width: 170px; height: 260px; border-radius: 8px; background: #111; color: #fff; font-family: var(--serif); font-size: 22px; letter-spacing: -0.04em; text-align: center; padding: 16px; box-sizing: border-box; box-shadow: var(--shadow-lift); }


@media (max-width: 820px) {
  .selected { grid-template-columns: 1fr; row-gap: 56px; margin-top: 8px; }
  .sel:nth-child(even) { margin-top: 0; }
  .sel-title { font-size: 30px; }
  .sel-sum { font-size: 15px; }
  .index { margin-top: 80px; }
  .ix-row { grid-template-columns: 56px 1fr; grid-template-areas: "thumb title" "thumb meta"; row-gap: 6px; column-gap: 14px; align-items: center; padding: 14px 0; }
  .ix-no { display: none; }
  .ix-thumb { grid-area: thumb; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: #111; color: #fff; font-size: 14px; }
  .ix-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .ix-title { grid-area: title; font-size: 21px; align-self: end; }
  .ix-kind { grid-area: meta; align-self: start; }
  .ix-year { display: none; }
}

/* ================= Shelves: sideways rows ================= */
.shelves { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(90 * var(--u)); margin-top: calc(30 * var(--u)); }
.shelf { min-width: 0; }
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ink); }
.shelf-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: max(32px, calc(52 * var(--u))); line-height: .97; letter-spacing: -0.055em; }
.shelf-head h3 span { font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); vertical-align: top; }
.shelf-arrows { display: flex; gap: 8px; }
.shelf-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: background-color .2s, color .2s; }
.shelf-arrows button:hover { background: var(--ink); color: var(--bg); }
.shelf-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; cursor: grab; overscroll-behavior-x: contain; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.shelf-track.dragging .sh-item { pointer-events: none; }
.sh-item { flex: none; width: 280px; text-align: left; scroll-snap-align: start; }
.sh-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--canvas); }
.sh-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-drag: none; }
.sh-item:hover .sh-img img { transform: scale(1.04); }
.sh-title { display: block; margin-top: 12px; font-size: 15px; line-height: 1.25; letter-spacing: -0.02em; }
.shelf-thumbnails .sh-item { width: 440px; }
.shelf-thumbnails .sh-img { aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.shelf-video .sh-item { width: 230px; }
.shelf-video .sh-img { aspect-ratio: 9 / 16; }
.sh-reel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; background: #111; color: #fff; font-family: var(--serif); font-size: 24px; letter-spacing: -0.04em; }
.sh-reel .play { align-self: center; margin-top: auto; margin-bottom: auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); font-size: 16px; font-family: var(--sans); transition: transform .3s; }
.sh-item:hover .sh-reel .play { transform: scale(1.12); }

.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: calc(130 * var(--u)); padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.projects-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: max(32px, calc(52 * var(--u))); line-height: .97; letter-spacing: -0.055em; }
.projects-head p { margin: 0; font-size: 15px; color: var(--muted); letter-spacing: -0.02em; }
.projects-head + .selected { margin-top: calc(60 * var(--u)); }

@media (max-width: 820px) {
  .shelves { gap: 56px; margin-top: 36px; }
  .shelf-arrows { display: none; }
  .shelf-track { gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 16px; }
  .sh-item { width: 64vw; }
  .shelf-thumbnails .sh-item { width: 82vw; }
  .shelf-video .sh-item { width: 46vw; }
  .projects-head { margin-top: 72px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ================= Work layout: projects grid first, then sideways rows ================= */
.work .projects-head { margin-top: calc(40 * var(--u)); }
.work .selected { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(40 * var(--u)); row-gap: calc(80 * var(--u)); }
.work .sel:nth-child(even) { margin-top: 0; }
.work .sel-title { font-size: max(24px, calc(32 * var(--u))); }
.work .sel-sum { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work .sel-meta { margin-top: 14px; }
.work .shelves { margin-top: calc(120 * var(--u)); }
.work .ev-head { margin-top: calc(120 * var(--u)); }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .work .selected { grid-template-columns: 1fr; row-gap: 48px; }
  .work .sel-meta { font-size: 12px; }
}

/* every row is a grid now — no sideways scrolling */
.shelf-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(48 * var(--u)) calc(28 * var(--u)); overflow: visible; scroll-snap-type: none; cursor: auto; padding: 0; margin: 0; }
.sh-item, .shelf-thumbnails .sh-item, .shelf-video .sh-item { width: auto; }
.shelf-thumbnails .shelf-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(48 * var(--u)) calc(28 * var(--u)); }
.shelf-thumbnails .sh-title, .shelf-carousel .sh-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* hidden, still read by screen readers */
.shelf-video .shelf-track { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.shelves { gap: calc(120 * var(--u)); }
@media (max-width: 820px) {
  .shelf-track, .shelf-video .shelf-track { grid-template-columns: 1fr 1fr; gap: 28px 12px; margin: 0; padding: 0; }
  .shelf-thumbnails .shelf-track { grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; }
  .sh-item, .shelf-thumbnails .sh-item, .shelf-video .sh-item { width: auto; }
  .sh-title { font-size: 13px; }
  .sh-reel { font-size: 18px; padding: 12px; }
  .shelves { gap: 64px; }
}

/* canvas cards keep a fixed shape; tall images are cropped from the top */
.card-img[style*="aspect-ratio"] img { height: 100%; object-fit: cover; object-position: top; display: block; }

/* ================= Event Design: wide case-study card ================= */
.ev-list { list-style: none; margin: calc(60 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(110 * var(--u)); }
.ev-collage { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; aspect-ratio: 2.25 / 1; }
.ev-tile { position: relative; overflow: hidden; border: 0; padding: 0; border-radius: 6px; background: var(--canvas); cursor: pointer; min-width: 0; min-height: 0; }
.ev-tile:first-child { grid-row: span 2; }
.ev-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ev-tile:hover img { transform: scale(1.035); }
.ev-tag { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 99px; background: var(--ui); color: var(--ink);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.08); }
/* fewer pieces → simpler collage */
.ev-n1 .ev-collage { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.ev-n1 .ev-tile:first-child { grid-row: auto; }
.ev-n2 .ev-collage { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.ev-n2 .ev-tile:first-child { grid-row: auto; }
.ev-n3 .ev-collage { grid-template-columns: 2fr 1fr; }
.ev-n4 .ev-tile:last-child { grid-column: span 2; }

.ev-info { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: calc(80 * var(--u)); margin-top: 6px; }
.ev-info .sel-meta { justify-content: flex-start; gap: 18px; }
.ev-title { margin: 12px 0 10px; font-family: var(--serif); font-weight: 400; font-size: max(28px, calc(44 * var(--u))); line-height: 1; letter-spacing: -0.055em; }
.ev-sum { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.45; color: var(--muted); letter-spacing: -0.01em; }
.ev-cta { margin-top: 20px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ev-deliv { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ink); align-self: start; }
.ev-deliv button { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--soft);
  background: none; color: var(--ink); font: inherit; font-size: 17px; letter-spacing: -0.02em; text-align: left; cursor: pointer; transition: padding .3s ease; }
.ev-deliv button:hover { padding-left: 8px; }
.ev-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* popup: one block per deliverable */
.m-media.groups { position: relative; overflow-y: auto; padding: 0 24px 8px; }
.m-group + .m-group { margin-top: 30px; }
.m-group h4 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.05em; }
.m-group h4 span { font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--muted); }
.m-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.m-grid img { height: clamp(220px, 40vh, 400px); width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; background: var(--soft); }
.m-grid img.wide { width: 100%; height: auto; }

@media (max-width: 820px) {
  .ev-list { gap: 64px; margin-top: 8px; }
  .ev-collage, .ev-n3 .ev-collage { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 34vw; aspect-ratio: auto; gap: 6px; }
  .ev-tile:first-child { grid-row: auto; grid-column: span 2; height: 62vw; }
  .ev-n1 .ev-tile:first-child, .ev-n2 .ev-tile:first-child { grid-column: span 2; }
  .ev-n2 .ev-tile:last-child, .ev-n4 .ev-tile:last-child { grid-column: span 2; }
  .ev-info { grid-template-columns: 1fr; gap: 6px; }
  .ev-info .sel-meta { font-size: 12px; }
  .m-media.groups { padding: 0 16px 8px; }
  .m-grid img:not(.wide) { height: auto; width: calc(50% - 6px); }
}

/* popup: grid of videos; the player loads on click */
.m-media.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 0 24px 8px; overflow-y: auto; align-items: start; }
.vid { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; border-radius: 10px; background: #151515; color: #fff; cursor: pointer; }
.vid.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.vid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.vid:hover img { transform: scale(1.04); }
.vid-play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; padding-left: 3px;
  border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.6); font-size: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vid-t { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 13px; text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vid.is-playing { cursor: auto; }
.vid iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 820px) {
  .m-media.vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 16px 8px; }
}
.shelf-video .shelf-head h3 span { white-space: nowrap; }

/* popup showing one design only (Static designs / Thumbnails) */
.m-media.single { display: grid; place-items: center; padding: 0 24px 8px; overflow: auto; }
.m-media.single img { display: block; width: auto; height: auto; max-width: 100%; max-height: 68vh; border-radius: 10px; background: var(--soft); }
.modal-panel.is-single [data-step] { display: none; }
@media (max-width: 820px) { .m-media.single { padding: 0 16px 8px; } }

/* ================= Brands I've worked with: logo wall in moving rows ================= */
.exp { min-height: calc(700 * var(--u)); }
.brands { margin-top: 0; width: calc(490 * var(--u)); }
.brands-label { margin: 0 0 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brands-wall { display: grid; gap: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq { overflow: hidden; }
.mq-track { display: flex; width: max-content; animation: mq var(--dur, 30s) linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-group { display: flex; gap: 10px; padding-right: 10px; }
@keyframes mq { to { transform: translateX(-50%); } }
.brand { flex: none; display: grid; place-items: center; width: 150px; height: 68px; padding: 12px 16px; border: 1px solid var(--soft); border-radius: 10px; background: var(--bg);
  transition: border-color .3s, background .3s; }
.brand span { font-family: var(--serif); font-size: 21px; line-height: 1; letter-spacing: -0.05em; text-align: center; color: var(--muted); transition: color .3s; }
.brand img { max-width: 100%; max-height: 40px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.brand:hover { border-color: var(--line); }
.brand:hover span { color: var(--ink); }
.brand:hover img { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { filter: grayscale(1) invert(1); } :root:not([data-theme="light"]) .brand:hover img { filter: none; } }
:root[data-theme="dark"] .brand img { filter: grayscale(1) invert(1); }
:root[data-theme="dark"] .brand:hover img { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; width: auto; }
  .mq-group { flex-wrap: wrap; }
  .mq-group[aria-hidden] { display: none; }
  .brands-wall { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 820px) {
  .exp { min-height: 0; }
  .exp-side { flex-wrap: wrap; }
  .brands { flex-basis: 100%; width: auto; margin-top: 18px; min-width: 0; }
  .brand { width: 128px; height: 58px; }
  .brand span { font-size: 18px; }
}
.brand em { display: none; }
.brand.is-mark { display: flex; align-items: center; justify-content: center; gap: 9px; width: auto; min-width: 150px; }
.brand.is-mark img { max-height: 32px; }
.brand.is-mark em { display: block; font-style: normal; font-family: var(--serif); font-size: 19px; letter-spacing: -0.05em; white-space: nowrap; color: var(--muted); transition: color .3s; }
.brand.is-mark:hover em { color: var(--ink); }
/* taller wall: 4 rows sized to sit beside the job list */
.brands-wall { gap: 12px; }
.mq-group { gap: 12px; padding-right: 12px; }
.brand { width: 168px; height: 84px; border-radius: 12px; }
.brand img { max-height: 46px; }
.brand span { font-size: 23px; }
.brand.is-mark { min-width: 168px; padding: 12px 18px; }
.brand.is-mark img { max-height: 40px; }
@media (prefers-reduced-motion: reduce) { .mq[aria-hidden] { display: none; } }
@media (max-width: 820px) {
  .mq:nth-child(n+3) { display: none; }
  .brand { width: 132px; height: 64px; }
  .brand.is-mark { min-width: 132px; }
  .brand img { max-height: 36px; }
  .brand.is-mark img { max-height: 30px; }
  .brand span, .brand.is-mark em { font-size: 17px; }
}

/* brands whose reels aren't uploaded yet: one compact line */
.vs { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: calc(40 * var(--u)) 0 0; }
.vs.is-only { padding-top: 28px; }
.vs-label { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: -0.02em; }
.vs-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.vs-chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--soft); border-radius: 99px;
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.05em; color: var(--muted); }
.vs-chip img { height: 22px; max-width: 70px; object-fit: contain; filter: grayscale(1); opacity: .7; }
@media (max-width: 820px) { .vs { flex-direction: column; align-items: flex-start; gap: 12px; } .vs-chip { height: 36px; font-size: 16px; } }

/* ================= Hero image trail (behind the headline) ================= */
.hero { isolation: isolate; }
/* edges fade out instead of cutting hard (bottom fades well before the Work section) */
.trail { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 62%, transparent 92%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 62%, transparent 92%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect; }
/* softer than the originals so the headline stays the hero */
.trail-item { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: 6px; background: var(--soft);
  box-shadow: 0 10px 26px rgba(0,0,0,.09); will-change: transform, opacity, clip-path; }
.trail-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: 50% 50%;
  filter: saturate(.75) contrast(.92); will-change: transform, filter; }
.trail-item::after { content: ''; position: absolute; inset: 0; background: var(--bg); opacity: .14; pointer-events: none; }  /* gentle wash so it never shouts */

/* ================= Work subsections: A24-style stacking (JS adds html.stacking + .wk-panel) ================= */
html.stacking main { overflow-x: clip; }                       /* full-width cards can't cause sideways scroll */
html.stacking .work .shelves { display: contents; }            /* cards become siblings, so each can pin within Work */
.wk-panel { position: sticky; top: var(--pin, 0px); will-change: transform, opacity; }
.wk-panel::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--bg); }
/* every card after the first slides in with a soft rounded top edge and a faint shadow so the stack reads */
/* no shadow, no stroke: the incoming card has a soft feathered top edge that melts into the card below */
.shelves > .wk-panel::after { content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
  top: calc(-90 * var(--u)); height: calc(90 * var(--u)); background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg)); pointer-events: none; }
html.stacking .wk-id { padding-bottom: calc(110 * var(--u)); }
html.stacking .shelves > .shelf { padding: calc(64 * var(--u)) 0 calc(110 * var(--u)); }
@media (max-width: 820px) {
  .shelves > .wk-panel::after { top: -48px; height: 48px; }
  html.stacking .wk-id { padding-bottom: 64px; }
  html.stacking .shelves > .shelf { padding: 40px 0 64px; }
}


/* ================= Video Editing: just the reels, one continuous grid like Carousels ================= */
.vw-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: calc(48 * var(--u)) calc(28 * var(--u)); }
/* reel cards: vertical at their real shape, same rounding as the other cards */
.vw-card { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; background: var(--soft); }
.vw-card.is-wide { aspect-ratio: 16 / 9; align-self: center; }
.vw-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.vw-card:hover > img { transform: scale(1.035); }
.vw-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vw-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.vw-play span { display: grid; place-items: center; width: 52px; height: 52px; padding-left: 3px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
  background: rgba(0,0,0,.28); color: #fff; font-size: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s; }
.vw-card:hover .vw-play span { transform: scale(1.1); background: rgba(0,0,0,.45); }
/* last card when a brand has more than 4 reels */
.vw-more { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255,255,255,.72); color: var(--ink); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background .3s; }
.vw-more span { font-family: var(--serif); font-size: max(30px, calc(44 * var(--u))); line-height: 1; letter-spacing: -0.05em; }
.vw-more small { font-size: 13px; color: var(--muted); }
.vw-more:hover { background: rgba(255,255,255,.55); }
@media (max-width: 820px) {
  .vw-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .vw-play span { width: 44px; height: 44px; }
}



/* ================= Reel popup: player left, info right ================= */
.m-text { display: grid; gap: 14px; justify-items: start; }
.m-live { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink, #fff);
  font-size: 14px; letter-spacing: -0.01em; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.m-live:hover { transform: translateY(-2px); }
.m-live[hidden] { display: none; }
.modal-panel.is-reel { width: min(940px, 100%); display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "media head" "media foot"; }
.modal-panel.is-reel .modal-head { grid-area: head; padding-top: 28px; }
.modal-panel.is-reel .m-media { grid-area: media; padding: 24px 0 24px 24px; overflow: visible; }
.modal-panel.is-reel .modal-foot { grid-area: foot; flex-direction: column; align-items: stretch; justify-content: space-between; border-top: 0; padding-top: 4px; }
.modal-panel.is-reel .m-arrow { display: none; }
.m-media.reel iframe { display: block; height: min(76vh, 720px); aspect-ratio: 9 / 16; width: auto; border: 0; border-radius: 12px; background: #000; }
.m-media.reel.is-wide iframe { height: auto; width: min(560px, 60vw); aspect-ratio: 16 / 9; }
.modal-panel.is-reel .m-summary { display: grid; gap: 8px; font-size: 16px; color: var(--muted); }
.modal-panel.is-reel .m-summary strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
@media (max-width: 820px) {
  .modal-panel.is-reel { display: flex; flex-direction: column; overflow-y: auto; }
  .modal-panel.is-reel .modal-head { padding-top: 18px; }
  .modal-panel.is-reel .m-media { flex: none; padding: 0 16px; display: grid; justify-items: center; }
  .modal-panel.is-reel .modal-foot { flex: none; }
  .m-media.reel iframe { height: min(62vh, 560px); }
  .m-media.reel.is-wide iframe { width: 100%; }
}


/* ================= Thumbnails: justified rows — every card in a row shares one height, rows run edge to edge.
   Card width grows with its shape (--r = width/height), so vertical Shorts covers sit beside wide thumbnails. */
.shelf-thumbnails .shelf-track { display: flex; flex-wrap: wrap; gap: calc(28 * var(--u)); }
.shelf-thumbnails .sh-item { --h: calc(255 * var(--u)); flex: var(--r, 1.7778) 1 calc(var(--r, 1.7778) * var(--h)); width: auto; min-width: 0; grid-column: auto; }
.shelf-thumbnails .sh-img, .shelf-thumbnails .sh-item.is-tall .sh-img { aspect-ratio: var(--r, 1.7778); }
@media (max-width: 820px) {
  .shelf-thumbnails .shelf-track { gap: 12px; }
  .shelf-thumbnails .sh-item { --h: 150px; }
}

/* ================= Static designs: bigger posts (3 per row) ================= */
.shelf-posts .shelf-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(56 * var(--u)) calc(32 * var(--u)); }
@media (max-width: 820px) { .shelf-posts .shelf-track { grid-template-columns: 1fr 1fr; gap: 24px 12px; } }

/* ================= Hairline on white / light slides (JS adds .is-light) ================= */
.sh-img.is-light { box-shadow: 0 0 0 1px rgba(0, 0, 0, .09); }
.m-media img.is-light { box-shadow: 0 0 0 1px rgba(0, 0, 0, .09); }
:root[data-theme="dark"] .sh-img.is-light, :root[data-theme="dark"] .m-media img.is-light { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-img.is-light, :root:not([data-theme="light"]) .m-media img.is-light { box-shadow: none; } }
