/* Wen-Chi Huang · version B · dark (copied from site-v1-dark on 2026-12-07; hero and project view rebuilt)
   Container is quiet (grid, mono labels, one accent). The work carries the colour. */

:root{
  --bg:#0b0a0d;
  --bg-2:#121115;
  --bg-3:#1a181e;
  --line:#25232a;
  --line-2:#3a3741;
  --ink:#eeecf2;
  --ink-2:#a6a2ae;
  --ink-3:#6f6b78;
  --accent:#7c5cff;      /* Needles blue-violet, tuned for dark */
  --accent-ink:#a893ff;  /* accent for small text on dark (AA) */

  --f-sans:"Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-mono:"Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad:28px;
  --hdr:64px;
  --r-card:12px;
  --r-media:16px;
  --ease:cubic-bezier(.2,.8,.2,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}
@media (max-width:760px){ :root{ --pad:18px; --hdr:56px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
/* cursor (2026-12-07): a blue-violet arrow with a white outline everywhere: links, buttons, and the hero stage too. */
html, a, button, [role="button"], summary, label{ cursor:url("../assets/cursor.svg") 5 4, auto; }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:400 16px/1.5 var(--f-sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
body.pv-open{ overflow:hidden; }
img,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; }
:focus-visible{ outline:1.5px solid var(--accent-ink); outline-offset:3px; border-radius:4px; }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.mono{ font-family:var(--f-mono); font-size:11px; line-height:1.45; letter-spacing:.04em; text-transform:uppercase; }
.dim{ color:var(--ink-3); }
.kicker{ color:var(--ink-2); margin:0; }

.pill{
  display:inline-flex; align-items:center; gap:6px;
  height:30px; padding:0 12px; border:1px solid var(--line-2); border-radius:999px;
  font-family:var(--f-mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase;
  transition:border-color .25s, background .25s, color .25s;
}
.pill:hover{ border-color:var(--accent); color:#fff; background:color-mix(in srgb, var(--accent) 18%, transparent); }

/* ============ HEADER ============ */
.hdr{
  position:fixed; inset:0 0 auto 0; z-index:40; height:var(--hdr);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px;
  padding:0 var(--pad);
  transition:background .3s, border-color .3s;
  border-bottom:1px solid transparent;
}
.hdr.is-scrolled{ background:color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-color:var(--line); }
.wordmark{ font-family:var(--f-sans); font-weight:600; font-size:17px; letter-spacing:-.015em; justify-self:start; white-space:nowrap; }
.hdr-nav{ display:flex; gap:32px; color:#fff; font-size:13px; }   /* 2026-12-07: 11 → 13 px, pure white */
.hdr-nav a{ position:relative; transition:color .2s; }
.hdr-nav a:hover{ color:var(--accent-ink); }
.hdr-right{ justify-self:end; display:flex; align-items:center; gap:18px; color:var(--ink-2); }
.hdr .wordmark{ font-size:20px; }                                                  /* 2026-12-07: 17 → 20 px */
.hdr-right .pill{ height:34px; padding:0 14px; font-size:13px; color:#fff; }      /* 2026-12-07: 11 → 13 px, pure white */
@media (max-width:760px){
  .hdr{ grid-template-columns:1fr auto; }
  .hdr-nav{ display:none; }
}

/* ============ TYPE · display width ============
   The English face is chosen in index.html (?font=…). Variable-width faces (Hubot / Mona Sans) run display text
   slightly expanded — set by --disp-wdth; other faces keep 100%. Body text stays at normal width. */
.wordmark, .hb-head, .statement, .feature-title, .card-title, .foot-mail, .foot-bio, .pv-title, .pv-next .t{ font-stretch:var(--disp-wdth, 100%); }   /* .foot-bio added 2026-12-07: About now matches the work titles */
/* the tracking above each rule was set for Host Grotesk; the wide faces need it about .014em looser */
.font-hubot .wordmark, .font-mona .wordmark{ letter-spacing:-.005em; }
.font-hubot .statement, .font-mona .statement{ letter-spacing:-.012em; }
.font-hubot .hb-head, .font-mona .hb-head{ letter-spacing:-.018em; }
.font-hubot .feature-title, .font-mona .feature-title,
.font-hubot .foot-mail, .font-mona .foot-mail{ letter-spacing:-.016em; }
.font-hubot .card-title, .font-mona .card-title{ letter-spacing:-.005em; }
.font-hubot .pv-title, .font-mona .pv-title{ letter-spacing:-.02em; }
.font-hubot .pv-next .t, .font-mona .pv-next .t{ letter-spacing:-.024em; }

/* ============ HERO · version B (2026-12-07) ============
   One object at a time in a framed stage on the right; the copy on the left, the object index under it.
   Phones and portrait tablets stack it: copy → stage → index. Version A (centred still life, title bottom-left) is
   site-v1-dark; nothing here is shared with it. */
.hero{
  position:relative; height:100svh; min-height:640px; overflow:hidden;
  padding:var(--hdr) var(--pad) 0; background:var(--bg);
  display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); grid-template-rows:1fr auto; column-gap:20px;
}
.hb-copy{ grid-column:1 / span 5; grid-row:1; align-self:start; padding-top:clamp(36px, 9vh, 104px); position:relative; z-index:2; }
.hb-kicker{ margin:0 0 24px; color:var(--ink-2); }
.hb-head{ margin:0; font-weight:450; font-size:clamp(40px, 4.5vw, 76px); line-height:1; letter-spacing:-.032em; text-wrap:balance; }
.hb-sub{ margin:22px 0 0; color:var(--ink-2); font-size:16px; }
.hb-foot{ grid-column:1 / span 4; grid-row:2; align-self:end; padding-bottom:clamp(28px, 5vh, 56px); display:flex; flex-direction:column; gap:26px; position:relative; z-index:2; }

/* the object index: three rows, the current one lit with a violet dot */
.hb-index{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
.hb-index li{ border-bottom:1px solid var(--line); }
.hb-index button{
  display:grid; grid-template-columns:42px 1fr 12px; align-items:center; width:100%; padding:11px 0; text-align:left;
  font:inherit; letter-spacing:inherit; text-transform:inherit; color:var(--ink-3); transition:color .3s;
}
.hb-index button:hover{ color:var(--ink-2); }
.hb-index button[aria-current="true"]{ color:var(--ink); }
.hb-index button[aria-current="true"] .n{ color:var(--accent-ink); }
.hb-index .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); justify-self:end; opacity:0; transform:scale(.4); transition:opacity .3s, transform .5s var(--ease); }
.hb-index button[aria-current="true"] .dot{ opacity:1; transform:none; }
.hero-cue{ color:var(--ink-2); transition:color .2s; align-self:flex-start; }
.hero-cue:hover{ color:var(--ink); }

/* the stage: the canvas fills it; corner marks, the readouts and the hint sit on top */
.hb-stage{ grid-column:6 / -1; grid-row:1 / -1; position:relative; margin:0 calc(-1 * var(--pad)) 0 0; touch-action:pan-y; -webkit-tap-highlight-color:transparent; }
.hb-canvas{ position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; }
.hb-c{ position:absolute; width:14px; height:14px; border:0 solid var(--line-2); pointer-events:none; }
.hb-c--tl{ left:0; top:18px; border-left-width:1px; border-top-width:1px; }
.hb-c--tr{ right:var(--pad); top:18px; border-right-width:1px; border-top-width:1px; }
.hb-c--bl{ left:0; bottom:28px; border-left-width:1px; border-bottom-width:1px; }
.hb-c--br{ right:var(--pad); bottom:28px; border-right-width:1px; border-bottom-width:1px; }
.hb-read{ position:absolute; margin:0; top:40px; color:var(--ink-2); pointer-events:none; font-variant-numeric:tabular-nums; }
.hb-read--no{ left:24px; }
.hb-read--rot{ right:calc(var(--pad) + 24px); }
.hb-hint{
  position:absolute; left:24px; bottom:48px; margin:0; display:flex; align-items:center; gap:8px; color:var(--ink-2); pointer-events:none;
  opacity:0; transition:opacity .6s;
}
.hb-stage.is-live .hb-hint{ opacity:1; }
.hb-stage.is-used .hb-hint{ opacity:0; }
.hb-hint-i{ width:14px; height:14px; flex:none; fill:none; stroke:currentColor; stroke-width:1.2; stroke-linejoin:round; }
.hb-hint-i--mouse{ fill:var(--accent); stroke:#fff; }
.hb-hint-i--touch, .hb-hint-t--touch{ display:none; }
@media (hover:none){
  .hb-hint-i--mouse, .hb-hint-t--mouse{ display:none; }
  .hb-hint-i--touch, .hb-hint-t--touch{ display:inline; }
}

/* boot cloud (app.js): dim characters flicker where the object will form, until the 3D is in; opacity only */
.hb-boot{ position:absolute; inset:0; pointer-events:none; transition:opacity .9s var(--ease); }
.hb-boot-l{
  position:absolute; left:50%; top:50%; margin:0; transform:translate(-50%, -50%);
  font-family:var(--f-mono); letter-spacing:0; color:var(--ink-3); white-space:pre;
  opacity:0; will-change:opacity; animation:hb-flick 1.5s var(--ease-io) infinite; animation-delay:calc(var(--k) * -.5s);
}
.hb-boot-l:nth-child(3){ color:var(--accent-ink); }
@keyframes hb-flick{ 0%{ opacity:0; } 35%{ opacity:.55; } 70%{ opacity:0; } 100%{ opacity:0; } }
.hb-stage.is-ready .hb-boot{ opacity:0; }
@media (prefers-reduced-motion: reduce){ .hb-boot-l{ animation:none; opacity:.35; } }

/* no WebGL2: still images, one at a time */
.hb-fb > *{ position:absolute; left:50%; top:50%; max-width:52%; max-height:58%; transform:translate(-50%, -50%); opacity:0; transition:opacity .5s; }
.hb-fb > svg{ width:34%; fill:none; stroke:var(--ink-2); stroke-width:1.4; stroke-linejoin:round; stroke-linecap:round; }
.hb-fb > .is-on{ opacity:1; }
.hb-stage.is-fallback .hb-boot, .hb-stage.is-fallback .hb-read--rot, .hb-stage.is-fallback .hb-hint{ display:none; }

/* stacked: phones, and tablets held upright */
@media (max-width:900px), (max-aspect-ratio:4/5){
  .hero{ display:flex; flex-direction:column; min-height:600px; padding-bottom:0; }
  .hb-copy, .hb-foot{ align-self:stretch; }
  .hb-copy{ padding-top:clamp(18px, 3.6vh, 48px); }
  .hb-kicker{ margin-bottom:14px; }
  .hb-head{ font-size:clamp(30px, 7.2vw, 64px); line-height:1.02; }
  .hb-sub{ margin-top:12px; font-size:15px; }
  .hb-stage{ flex:1 1 auto; min-height:300px; margin:10px calc(-1 * var(--pad)) 0; }
  .hb-c--tl, .hb-c--bl{ left:var(--pad); }
  .hb-read--no{ left:calc(var(--pad) + 22px); }
  .hb-hint{ left:calc(var(--pad) + 22px); bottom:40px; }
  .hb-c--tl, .hb-c--tr{ top:6px; }
  .hb-read{ top:26px; }
  .hb-foot{ padding:0 0 clamp(16px, 3vh, 32px); gap:14px; }
  .hb-index{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); column-gap:12px; border-top:0; }
  .hb-index li{ border-bottom:0; border-top:1px solid var(--line); }
  .hb-index button{ grid-template-columns:auto 1fr auto; column-gap:8px; padding:10px 0 0; }
  .hb-index .nm-x{ display:none; }
}
@media (max-width:760px){
  .hb-c--bl, .hb-c--br{ bottom:12px; }
  .hb-hint{ bottom:26px; }
}

/* ============ WORK ============ */
.work{ padding:clamp(80px, 12vh, 140px) var(--pad) 40px; border-top:1px solid var(--line); }
.work-head{ display:grid; grid-template-columns:repeat(12, 1fr); gap:20px; margin-bottom:clamp(40px, 6vh, 72px); }
.work-head .kicker{ grid-column:1 / span 3; padding-top:.6em; }
.statement{
  grid-column:4 / span 9; margin:0;
  font-size:clamp(26px, 3.05vw, 46px); line-height:1.08; letter-spacing:-.026em; font-weight:400;
  text-wrap:balance;
}
@media (max-width:900px){
  .work-head{ grid-template-columns:1fr; gap:14px; }
  .work-head .kicker,.statement{ grid-column:1; }
}

/* feature: showreel */
.feature{
  display:grid; grid-template-columns:repeat(12, 1fr); gap:20px; align-items:end;
  padding-bottom:clamp(48px, 7vh, 80px); margin-bottom:clamp(40px, 6vh, 64px); border-bottom:1px solid var(--line);
}
.feature-media{ grid-column:1 / span 8; }
.feature-aside{ grid-column:9 / span 4; display:flex; flex-direction:column; gap:22px; padding-bottom:4px; }
.feature-title{ margin:0; font-size:clamp(30px, 3vw, 44px); line-height:1; letter-spacing:-.03em; font-weight:500; }
.feature-play{
  display:inline-flex; align-items:center; gap:14px; align-self:flex-start;
  font-family:var(--f-mono); font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink);
}
.feature-play .pb{ width:52px; height:52px; border-radius:50%; background:var(--accent); display:grid; place-items:center; transition:transform .4s var(--ease), background .3s; }
.feature-play .pb svg{ width:14px; height:14px; fill:#fff; margin-left:2px; }
.feature-play:hover .pb{ transform:scale(1.08); background:#8d70ff; }
.feature-clients{ list-style:none; margin:0; padding:14px 0 0; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; color:var(--ink-2); }
.feature-clients li:first-child{ grid-column:1 / -1; color:var(--ink-3); margin-bottom:6px; }
@media (max-width:900px){
  .feature{ grid-template-columns:1fr; }
  .feature-media,.feature-aside{ grid-column:1; }
}

/* grid of cards */
/* 8 cards: first row 2 wide (LG, Samsung), then 3 + 3 */
.grid{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:44px 20px; }
.grid > .card{ grid-column:span 2; }
.grid > .card:nth-child(-n+2){ grid-column:span 3; }
@media (max-width:1100px){ .grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } .grid > .card,.grid > .card:nth-child(-n+2){ grid-column:auto; } }
@media (max-width:640px){ .grid{ grid-template-columns:1fr; gap:36px; } }
/* version B (2026-12-07, IRON): two per row, every card the same size; the photos in the work section lose their rounded
   corners (Showreel included). Phones stay one per row. ?grid=a (html.grid-a) brings back the layout above, rounded. */
html:not(.grid-a) .grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:56px 20px; }
html:not(.grid-a) .grid > .card, html:not(.grid-a) .grid > .card:nth-child(-n+2){ grid-column:auto; }
html:not(.grid-a) .work .media{ border-radius:0; }
@media (max-width:640px){ html:not(.grid-a) .grid{ grid-template-columns:1fr; gap:36px; } }

.card-link{ display:block; }
.media{
  position:relative; aspect-ratio:16/9; overflow:hidden; border-radius:var(--r-card);
  background:var(--bg-3); isolation:isolate;
}
.media img,.media video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 1.1s var(--ease), opacity .4s; }
.media video{ opacity:0; }
.media.is-playing video{ opacity:1; }
.card-link:hover .media img,.card-link:hover .media video{ transform:scale(1.035); }
.media::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); pointer-events:none; }

.card-meta{ display:grid; grid-template-columns:1fr; align-items:baseline; row-gap:4px; margin-top:14px; }   /* 2026-12-07: the 01/02/03 column is gone */
.card-title{ font-size:19px; letter-spacing:-.015em; font-weight:500; line-height:1.2; display:inline-flex; align-items:baseline; gap:8px; }
.card-title .arr{ color:var(--accent-ink); opacity:0; transform:translate(-6px, 4px); transition:opacity .3s, transform .5s var(--ease); font-size:15px; }
.card-link:hover .card-title .arr{ opacity:1; transform:none; }
.card-type{ color:var(--ink-3); }

.is-pending .media,.media.is-pending{
  background:repeating-linear-gradient(135deg, var(--bg-2) 0 12px, var(--bg-3) 12px 13px);
  display:grid; place-items:center; border:1px dashed var(--line-2);
}
.pending-t{ position:relative; text-align:center; color:var(--ink-2); }
.pending-t b{ display:block; color:var(--accent-ink); font-weight:500; margin-bottom:4px; }

/* cursor follower */
.cursor-tag{
  position:fixed; left:0; top:0; z-index:60; pointer-events:none;
  padding:7px 11px; border-radius:999px; background:var(--ink); color:var(--bg);
  transform:translate3d(-200px,-200px,0); scale:.6; opacity:0; transition:opacity .25s, scale .35s var(--ease);
}
.cursor-tag::before{ content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:7px; vertical-align:1px; }
.cursor-tag.is-on{ opacity:1; scale:1; }
@media (hover:none){ .cursor-tag{ display:none; } }

/* ============ FOOT ============ */
.foot{
  margin-top:clamp(80px, 12vh, 140px); padding:clamp(48px, 7vh, 80px) var(--pad) 28px; border-top:1px solid var(--line);
  display:grid; grid-template-columns:repeat(12, 1fr); gap:20px;
}
.foot-about{ grid-column:1 / span 5; display:flex; flex-direction:column; gap:14px; }
.foot-bio{ margin:0; color:var(--ink-2); font-size:17px; line-height:1.68; letter-spacing:.015em; max-width:46ch; }   /* 2026-12-07: tracking 0 → .015em, leading 1.55 → 1.68 */
.foot-contact{ grid-column:7 / span 6; display:flex; flex-direction:column; gap:14px; }
.foot-mail{ font-size:clamp(26px, 3.2vw, 48px); letter-spacing:-.03em; line-height:1; font-weight:500; transition:color .25s; word-break:break-all; }
.foot-mail:hover{ color:var(--accent-ink); }
.foot-links{ list-style:none; margin:6px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 22px; color:var(--ink-2); }
.foot-links a:hover{ color:var(--ink); }
.foot-bar{ grid-column:1 / -1; display:flex; justify-content:space-between; gap:16px; margin-top:clamp(48px, 8vh, 96px); padding-top:16px; border-top:1px solid var(--line); color:var(--ink-2); }
@media (max-width:900px){
  .foot{ grid-template-columns:1fr; }
  .foot-about,.foot-contact,.foot-bar{ grid-column:1; }
  .foot-bar{ flex-direction:column; }
}

/* ============ PROJECT VIEW ============ */
.pv{
  position:fixed; inset:0; z-index:80; background:var(--bg);
  overflow-y:auto; overscroll-behavior:contain;
  opacity:0; transition:opacity .35s;
}
.pv.is-open{ opacity:1; }
.pv-bar{
  position:sticky; top:0; z-index:5; height:76px;
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; padding:0 var(--pad);
  background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.pv-close{ justify-self:end; }
.pv-strip{ display:flex; gap:6px; align-items:center; overflow-x:auto; scrollbar-width:none; padding:6px 4px; max-width:min(780px, 62vw); }
.pv-strip::-webkit-scrollbar{ display:none; }
.pv-thumb{
  position:relative; flex:0 0 auto; width:68px; aspect-ratio:16/9; border-radius:6px; overflow:hidden; background:var(--bg-3);
  opacity:.42; transform:translateY(-6px); transition:opacity .3s, transform .5s var(--ease), box-shadow .3s;
}
.pv.is-open .pv-thumb{ transform:none; transition-delay:calc(var(--k) * 28ms), calc(var(--k) * 28ms), 0s; }
.pv-thumb img{ width:100%; height:100%; object-fit:cover; }
.pv-thumb:hover{ opacity:.9; }
.pv-thumb.is-on{ opacity:1; box-shadow:0 0 0 1.5px var(--bg), 0 0 0 3px var(--accent); }
.pv-thumb.is-pending{ background:repeating-linear-gradient(135deg, var(--bg-2) 0 5px, var(--line-2) 5px 6px); }
.pv-tip{
  position:fixed; z-index:90; pointer-events:none; padding:4px 8px; border-radius:6px; background:var(--ink); color:var(--bg);
  opacity:0; transform:translate(-50%, 4px); transition:opacity .2s, transform .3s var(--ease); white-space:nowrap;
}
.pv-tip.is-on{ opacity:1; transform:translate(-50%, 0); }

.pv-body{ transition:opacity .25s; }
.pv-body.is-swapping{ opacity:0; }
/* version B: two columns. Copy on the left (sticks under the bar while the work scrolls, when it fits: app.js stickText),
   the preview and the process media on the right. Under 901 px it stacks: title → preview → text → process media. */
.pv-split{
  display:grid; grid-template-columns:minmax(300px, 4fr) minmax(0, 8fr); column-gap:clamp(32px, 4.2vw, 80px); align-items:start;
  max-width:1680px; margin:0 auto; padding:clamp(28px, 5vh, 48px) var(--pad) 0;
}
.pv-text{ position:relative; }
.pv-text.is-sticky{ position:sticky; top:calc(76px + clamp(28px, 5vh, 48px)); }
.pv-media{ min-width:0; display:flex; flex-direction:column; gap:clamp(56px, 8vh, 96px); }
.pv-stage{ display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.pv-player{
  position:relative; width:100%; aspect-ratio:16/9; border-radius:var(--r-media); overflow:hidden; background:#000;
  transform-origin:0 0; will-change:transform;
}
.pv-player > img,.pv-player > video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pv-player iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.pv-player::after{ content:""; position:absolute; inset:0; border-radius:inherit; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); pointer-events:none; }
.pv-playbtn{
  position:absolute; inset:0; display:grid; place-items:center;
  background:linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 45%);
}
.pv-playbtn .pb{ width:84px; height:84px; border-radius:50%; background:var(--accent); display:grid; place-items:center; transition:transform .5s var(--ease); box-shadow:0 10px 40px rgba(0,0,0,.4); }
.pv-playbtn .pb svg{ width:20px; height:20px; fill:#fff; margin-left:3px; }
.pv-playbtn:hover .pb{ transform:scale(1.08); }
.pv-playbtn .pl{ position:absolute; left:20px; bottom:18px; color:#fff; }
.pv-films{ display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px; }
.pv-films:empty{ display:none; }
.pv-films button{ text-transform:inherit; letter-spacing:inherit; height:28px; padding:0 11px; border-radius:999px; border:1px solid var(--line-2); color:var(--ink-2); transition:all .25s; }
.pv-films button:hover{ color:var(--ink); border-color:var(--ink-3); }
.pv-films button.is-on{ color:#fff; border-color:var(--accent); background:color-mix(in srgb, var(--accent) 22%, transparent); }

/* the copy column */
.pv-kicker{ color:var(--ink-2); margin:0 0 18px; }
.pv-kicker .n{ color:var(--accent-ink); }
.pv-title{ margin:0; font-size:clamp(34px, 3.3vw, 56px); letter-spacing:-.035em; line-height:.98; font-weight:500; text-wrap:balance; overflow-wrap:anywhere; }
.pv-tagline{ margin:14px 0 0; font-size:clamp(17px, 1.35vw, 20px); color:var(--ink-2); letter-spacing:-.01em; text-wrap:pretty; }
.pv-detail[hidden]{ display:none; }
.pv-overview{ margin:28px 0 0; max-width:60ch; color:var(--ink); font-size:16px; line-height:1.62; }
.pv-overview p{ margin:0; }
.pv-overview p + p{ margin-top:1em; }
/* Client / Role / Tools / Deliverables: a spec list, label left, value right */
.pv-meta{ margin:32px 0 0; padding:0; border-top:1px solid var(--line); }
.pv-meta > div{ display:grid; grid-template-columns:minmax(96px, 30%) 1fr; gap:16px; padding:11px 0; border-bottom:1px solid var(--line); }
.pv-meta dt{ color:var(--ink-3); padding-top:2px; }
.pv-meta dd{ margin:0; font-size:14px; color:var(--ink); line-height:1.45; }
.pv-credits-btn{ margin-top:24px; }
.pv-credits{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .5s var(--ease); }
.pv-credits.is-open{ grid-template-rows:1fr; }
.pv-credits > div{ overflow:hidden; }
.pv-credits dl{ margin:16px 0 0; display:grid; grid-template-columns:1fr; gap:10px; padding:16px; border:1px solid var(--line); border-radius:var(--r-card); background:var(--bg-2); }
.pv-credits dl > div{ display:grid; grid-template-columns:minmax(96px, 30%) 1fr; gap:16px; }
.pv-credits dt{ color:var(--ink-3); padding-top:2px; }
.pv-credits dd{ margin:0; font-size:14px; }
.pv-pending-note{ margin:28px 0 0; max-width:52ch; color:var(--ink-2); font-size:15px; }

.pv-stage[hidden],.pv-gallery[hidden]{ display:none; }
.pv-gallery{ display:flex; flex-direction:column; gap:clamp(48px, 7vh, 80px); container-type:inline-size; }
.pv-sec-h{ display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; margin-bottom:16px; border-bottom:1px solid var(--line); color:var(--ink-2); }
/* justified rows: one height per row, each item keeps its own ratio (no crop), row spans the width.
   --hcap caps a row that can't fill the width (single portrait, single square...) and centres it. */
.pv-sec-g{ --gg:16px; --hcap:58cqi; display:flex; flex-direction:column; gap:var(--gg); }
.pv-row{ display:flex; align-items:flex-start; gap:var(--gg); width:100%; max-width:calc(var(--sum) * var(--hcap) + (var(--n) - 1) * var(--gg)); margin-inline:auto; }
.pv-row > figure{ flex:calc(var(--ar) * 100) 1 0%; min-width:0; aspect-ratio:var(--ar); margin:0; position:relative; border-radius:var(--r-card); overflow:hidden; background:var(--bg-3); }
.pv-row > figure img,.pv-row > figure video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pv-row > figure video{ opacity:0; transition:opacity .4s; }
.pv-row > figure.is-playing video{ opacity:1; }
@container (max-width:999px){ .pv-sec-g{ --hcap:75cqi; } }
@container (max-width:599px){ .pv-sec-g{ --gg:10px; --hcap:125cqi; } }

.pv-next{
  display:grid; grid-template-columns:1fr auto; align-items:end; gap:24px;
  max-width:1680px; margin:clamp(80px, 12vh, 140px) auto 0; padding:28px var(--pad) 48px; border-top:1px solid var(--line);
}
.pv-next .l{ display:flex; flex-direction:column; gap:10px; }
.pv-next .t{ font-size:clamp(34px, 5vw, 76px); letter-spacing:-.04em; line-height:.95; font-weight:500; transition:color .3s; }
.pv-next:hover .t{ color:var(--accent-ink); }
.pv-next .m{ width:min(320px, 32vw); }
.pv-next .m .media{ display:block; }
@media (max-width:900px){
  .pv-split{ display:flex; flex-direction:column; align-items:stretch; gap:0; padding-top:24px; }
  .pv-text, .pv-media{ display:contents; }
  .pv-head{ order:1; }
  .pv-stage{ order:2; margin-top:24px; }
  .pv-detail{ order:3; }
  .pv-gallery{ order:4; margin-top:clamp(56px, 8vh, 80px); }
  .pv-overview{ max-width:none; }
}
@media (max-width:760px){
  .pv-bar{ grid-template-columns:1fr auto; height:auto; padding-top:10px; padding-bottom:10px; row-gap:8px; }
  .pv-strip{ grid-column:1 / -1; grid-row:2; max-width:100%; }
  .pv-next{ grid-template-columns:1fr; }
  .pv-next .m{ width:100%; }
  .pv-playbtn .pb{ width:56px; height:56px; }
  .pv-playbtn .pb svg{ width:15px; height:15px; }
  .pv-playbtn .pl{ left:14px; bottom:12px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
}
