/* Zack portfolio v1. Neutral greys only (r = g = b). Green is used once, for the status dot. */

@font-face { font-family: "Gantari"; src: url("../fonts/Gantari-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gantari"; src: url("../fonts/Gantari-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gantari"; src: url("../fonts/Gantari-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
/* Dev switch ?font=gotham: uses the copy installed on Zack's PC, nothing is shipped. */
@font-face { font-family: "Gotham Local"; src: local("Gotham Book"), local("Gotham-Book"); font-weight: 400; }
@font-face { font-family: "Gotham Local"; src: local("Gotham Bold"), local("Gotham-Bold"); font-weight: 700; }
@font-face { font-family: "Gotham Local"; src: local("Gotham Black"), local("Gotham-Black"); font-weight: 900; }

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --panel: #171717;
  --line: #2b2b2b;
  --text: #ededed;
  --dim: #a0a0a0;
  --dimmer: #707070;
  --white: #ffffff;
  --green: #36c86c;
  --bar: 48px;
  --hh: calc(var(--bar) + env(safe-area-inset-top, 0px));
  --pad: clamp(16px, 3.4vw, 44px);
  /* one column for everything: header, intro, take-apart, blocks and footer share the same left and right edge */
  --maxw: 1560px;
  --gut: max(var(--pad), calc((100vw - var(--maxw)) / 2));
  --pl: max(var(--gut), env(safe-area-inset-left, 0px));
  --pr: max(var(--gut), env(safe-area-inset-right, 0px));
  --font: "Gantari", "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}
.font-gotham { --font: "Gotham Local", "Gantari", "Segoe UI", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* the site's own scrollbar: thin, grey, rounded, no arrows.
   Chrome/Edge/Safari use the ::-webkit-scrollbar rules (setting the standard properties there would bring the arrows back);
   Firefox only understands the standard ones, so they go behind a Firefox-only check. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports (-moz-appearance: none) { html { scrollbar-width: thin; scrollbar-color: #3a3a3a var(--bg); } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
/* no drag, no selection, no iOS "save image" callout on the artwork */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-fixed { position: fixed; left: 0; top: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: var(--hh); }
.skip { position: fixed; left: 8px; top: 8px; z-index: 40; padding: 10px 14px; background: var(--white); color: #000000; font-weight: 700; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- header: where you are ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  height: var(--hh); padding: env(safe-area-inset-top, 0px) var(--pr) 0 var(--pl);
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; font-size: 18px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.mark svg { display: block; height: 30px; width: auto; }
.foot-mark svg { height: 24px; }
@media (max-width: 400px) { .mark svg { height: 26px; } }
.mark-sub { font-size: 13px; color: var(--dimmer); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--line); line-height: 18px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 34px); margin-left: auto; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--dim); text-decoration: none; transition: color .15s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"] { color: var(--white); }
.nav a[aria-current="true"]::after { transform: none; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; padding-left: clamp(14px, 2.6vw, 34px); border-left: 1px solid var(--line); line-height: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
@media (max-width: 1099px) { .mark-sub { display: none; } }
@media (max-width: 899px) { .status { display: none; } }
@media (max-width: 400px) { .nav { gap: 12px; } .nav a { font-size: 13px; } .mark { font-size: 16px; } }

/* ---------- intro: who, what, and if I'm free ---------- */
/* one column, everything on the same left edge as the logo */
.intro { padding: clamp(48px, 9vw, 128px) var(--pr) clamp(36px, 5vw, 72px) var(--pl); }
.intro h1 { font-weight: 700; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.015em; max-width: 15ch; }
.intro-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px clamp(24px, 4vw, 64px); margin-top: clamp(22px, 2.6vw, 36px); }
.intro-text { font-size: 18px; line-height: 1.55; color: var(--dim); max-width: 48ch; }
.intro-status { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text); white-space: nowrap; }
.intro a { text-decoration: underline; text-decoration-color: var(--dimmer); text-underline-offset: 4px; transition: text-decoration-color .15s; }
.intro a:hover { text-decoration-color: var(--white); }
@media (max-width: 799px) { .intro-text { font-size: 16px; } .intro-status { white-space: normal; } }

.copy { display: inline-grid; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.copy > span { grid-area: 1 / 1; border-bottom: 1px solid var(--dimmer); padding: 2px 0; transition: border-color .15s; }
.copy:hover > span { border-bottom-color: var(--white); }
.copy-b { visibility: hidden; }
.copy.is-copied .copy-a { visibility: hidden; }
.copy.is-copied .copy-b { visibility: visible; }

/* ---------- take-apart ---------- */
.apart { height: 340vh; position: relative; }
.pin {
  position: sticky; top: var(--hh);
  height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh));
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding: 0 var(--pr) 0 var(--pl);
  overflow: hidden; overflow: clip;
}
.pin-head { position: relative; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(16px, 2.4vw, 30px); padding: 6px 0 4px; }
.pin-title { font-weight: 900; font-size: clamp(15px, 1.5vw, 19px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pieces { display: flex; align-items: center; gap: 0 22px; flex-wrap: wrap; min-height: 44px; }
.pin-skip { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--dim); text-decoration: underline; text-decoration-color: var(--dimmer); text-underline-offset: 4px; }
.pin-skip:hover { color: var(--white); }
/* how far through the sequence you are */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); overflow: hidden; }
.progress-fill { position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }
.apart.is-static .progress, .apart.is-static .pin-skip { display: none; }
.piece { min-height: 44px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); transition: color .15s; }
.piece:hover { color: var(--text); }
.piece[aria-pressed="true"] { color: var(--text); }
.piece[aria-pressed="true"]::before { content: ""; display: inline-block; width: 14px; height: 2px; background: var(--white); vertical-align: middle; margin-right: 8px; }
.apart-toggle { margin-left: auto; color: var(--text); border-bottom: 1px solid var(--dimmer); min-height: 0; padding: 6px 0; }

.stage {
  grid-area: 2 / 1; position: relative; min-height: 0; min-width: 0;
  container-type: size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  perspective: 2400px; perspective-origin: 50% 50%;
}
.board {
  position: relative; flex: none;
  width: min(100cqw, calc((100cqh - 64px) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
}
.flat, .slab { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.slab { transition: opacity .2s; pointer-events: none; }
.slab::before {
  content: ""; position: absolute; inset: 0;
  border: 2px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .035);
  opacity: 0; transition: opacity .2s;
}
.slab:first-child::before { background: none; }
.board.is-open .slab::before { opacity: 1; }
.slab img { position: absolute; max-width: none; }
.slab.dim { opacity: .15; }
.slab-diagram img { opacity: .8; }
/* once decoded the stack sits ready under the opaque flat image, so nothing has to raster mid-scroll */
.board:not(.is-ready) .slab { visibility: hidden; }
.apart.in-view .board, .apart.in-view .slab { will-change: transform; }

.bb { position: absolute; width: 6%; height: auto; top: 5.333%; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); pointer-events: none; }
.bb-tl { left: 3%; }
.bb-tr { right: 3%; }

.caps { position: relative; flex: none; width: 100%; height: 44px; margin-top: 14px; }
.cap { position: absolute; left: 0; right: 0; top: 0; font-size: 15px; color: var(--dim); text-align: center; }
.cap-b, .cap-load { opacity: 0; }
.cap-load { color: var(--dimmer); }

.labels { grid-area: 2 / 1; position: relative; z-index: 2; pointer-events: none; visibility: hidden; opacity: 0; }
.pin.labels-on .labels, .pin.labels-on .legend { visibility: visible; }
.lab {
  position: absolute; left: 0; top: 0; height: 44px; padding: 0 10px 0 0;
  display: flex; align-items: center; gap: 10px; text-align: left; pointer-events: auto; white-space: nowrap;
}
.lab-in { display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.lab.dim .lab-in { opacity: .35; }
.lab-name { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; }
.lab-count { display: block; font-size: 12px; color: var(--dim); line-height: 1.25; }
.lab[aria-pressed="true"] .badge { outline: 2px solid var(--white); outline-offset: 2px; }
.lab:hover .lab-name { color: var(--white); }
.lead { position: absolute; left: 0; top: 0; width: 100px; height: 1px; background: #666666; transform-origin: 0 0; transition: opacity .2s; }
.lead.dim { opacity: .25; }

.badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; flex: none; vertical-align: -5px; }
.badge img { width: 14px; height: 14px; }
.badge-s { background: #3d3d3d; }
.badge-p { background: var(--white); }
.badge-p img { filter: invert(1); }

.legend {
  grid-area: 2 / 1; align-self: start; justify-self: start; position: relative; z-index: 2;
  max-width: 250px; font-size: 13px; line-height: 1.6; color: var(--text);
  visibility: hidden; opacity: 0;
}
.legend p:not(.fine) { display: flex; align-items: flex-start; gap: 9px; line-height: 1.4; }
.legend p:not(.fine) + p { margin-top: 8px; }
.legend .badge { margin-top: -2px; }
.legend .fine { color: var(--dim); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }

/* static variant (reduced motion): a diagram, no pinning */
.apart.is-static { height: auto; }
.apart.is-static .pin { position: relative; top: 0; height: min(calc(100svh - var(--hh)), 900px); }

/* list labels: phones and portrait tablets */
@media (max-width: 899px) {
  .apart { height: 300vh; }
  /* the picture runs edge to edge on phones and tablets in portrait */
  .stage { margin-left: calc(-1 * var(--pl)); margin-right: calc(-1 * var(--pr)); }
  .labels { grid-area: 3 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding-top: 4px; }
  .lab { position: static; white-space: normal; height: auto; min-height: 44px; padding: 4px 0; }
  .lab-count { display: none; }
  .lab-name { font-size: 10.5px; letter-spacing: .1em; }
  .lead { display: none; }
  .legend { grid-area: 4 / 1; align-self: auto; max-width: none; padding: 8px 0 max(14px, env(safe-area-inset-bottom, 0px)); font-size: 12px; line-height: 1.8; }
  .legend .fine { font-size: 11px; margin-top: 4px; }
  .cap { font-size: 14px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .labels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- shared blocks ---------- */
.block { padding: clamp(64px, 10vw, 140px) var(--pr) 0 var(--pl); }
.block-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 28px; margin-bottom: clamp(22px, 2.8vw, 40px); }
.block-head h2 { font-weight: 900; font-size: clamp(28px, 3.8vw, 48px); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.block-head h2.h-small { font-size: clamp(20px, 2.2vw, 28px); }
.toggle {
  min-height: 44px; padding: 0 16px; border: 1px solid #555555; color: var(--text);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .15s, color .15s, border-color .15s; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.toggle:hover { border-color: var(--white); }
.toggle[aria-pressed="true"], .toggle.is-held { background: var(--white); color: #000000; border-color: var(--white); }
.ext { width: .7em; height: .7em; flex: none; margin-left: .3em; vertical-align: .05em; opacity: .55; transition: opacity .15s, transform .15s; }

/* ---------- raw / final ---------- */
.rawfinal { padding-top: clamp(32px, 5vw, 72px); }
.rf { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - var(--hh) - 140px) * 16 / 9)); min-width: min(100%, 320px); overflow: hidden; background: var(--panel); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.rf img { -webkit-user-drag: none; }
.rf-final, .rf-clip, .rf-raw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.rf-clip { overflow: hidden; transform: translateX(-50%); }
.rf-raw { transform: translateX(50%); }
.rf-bar { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: translateX(-50%); pointer-events: none; }
.rf-line { position: absolute; right: -1px; top: 0; width: 2px; height: 100%; background: var(--white); }
.rf-knob { position: absolute; right: -22px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: var(--white); }
.rf-knob::before, .rf-knob::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid #000000; border-width: 0 0 2px 2px; }
.rf-knob::before { left: 11px; transform: rotate(45deg); }
.rf-knob::after { right: 11px; transform: rotate(-135deg); }
.rf-tag { position: absolute; bottom: 12px; padding: 5px 9px; background: #000000; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.rf-tag-l { left: 12px; }
.rf-tag-r { right: 12px; }
.rf-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.rf-range:focus-visible ~ .rf-bar .rf-knob, .rf:has(.rf-range:focus-visible) .rf-knob { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- work: one block per game; name and pictures swap sides every other game ---------- */
.phone-toggle { margin-left: auto; align-self: center; }
.phone-note { color: var(--dim); font-size: 14px; margin: -14px 0 26px; }
.game {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px clamp(16px, 2vw, 32px);
  padding: clamp(40px, 5vw, 80px) 0; border-top: 1px solid var(--line);
}
.game:first-child { border-top: 0; padding-top: 0; }
.game-head { grid-column: 1 / 4; grid-row: 1; align-self: start; position: sticky; top: calc(var(--hh) + 28px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.game-shots { grid-column: 4 / 13; grid-row: 1; }
.game:nth-child(even) .game-head { grid-column: 10 / 13; align-items: flex-end; text-align: right; }
.game:nth-child(even) .game-shots { grid-column: 1 / 10; }
.game-name { margin: 0; font-weight: 900; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; }
.game-link { text-decoration: none; }
a.game-link:hover .ext { opacity: 1; transform: translate(2px, -2px); }
.game-client { color: var(--dim); font-size: 15px; }
.t-tag { margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border: 1px solid #4a4a4a; padding: 2px 7px; }

/* mosaic: one big picture (2/3) and the others stacked beside it (1/3); mirrored on even games */
.game-shots { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); align-content: start; }
.game-shots > .tile:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.game-shots > .tile:nth-child(2) { grid-column: 3; grid-row: 1; }
.game-shots > .tile:nth-child(3) { grid-column: 3; grid-row: 2; }
.game:nth-child(even) .game-shots > .tile:first-child { grid-column: 2 / 4; }
.game:nth-child(even) .game-shots > .tile:nth-child(2),
.game:nth-child(even) .game-shots > .tile:nth-child(3) { grid-column: 1; }

.tile { min-width: 0; transform-origin: 0 0; }
.shot { width: 100%; padding: 0; text-align: left; }
/* a clear layer over the picture: a long press or right click lands on it, not on the image */
.shot::after, .v-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; transition: background-color .25s; }
.shot .bb { z-index: 2; }
.shot { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; contain-intrinsic-size: auto 800px auto 450px; cursor: zoom-in; }
.shot > img:first-child { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .shot:hover::after { background: rgba(255, 255, 255, .04); } }
.has-drift .game-shots > .tile:first-child .shot > img:first-child { height: 110%; margin-top: -5%; will-change: transform; }

@media (max-width: 899px) {
  .game { grid-template-columns: minmax(0, 1fr); }
  .game-head, .game:nth-child(even) .game-head { grid-column: 1; position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; text-align: left; }
  .game-shots, .game:nth-child(even) .game-shots { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-shots > .tile:first-child, .game:nth-child(even) .game-shots > .tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .game-shots > .tile:nth-child(n+2), .game:nth-child(even) .game-shots > .tile:nth-child(n+2) { grid-column: auto; grid-row: auto; }
  .t-tag { margin-top: 0; align-self: center; }
}
/* phone size: every picture at the width a thumbnail has on a phone's Discover page */
.work.is-phone .game-shots { display: flex; flex-wrap: wrap; align-items: flex-start; }
.work.is-phone .tile { width: min(170px, calc(50% - 6px)); }

/* smooth wheel scrolling (Lenis, desktop only) needs the browser's own smooth scroll off */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

/* ---------- prices + contact ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.duo .block { padding-right: 0; }
.duo .block + .block { padding-left: clamp(24px, 4vw, 64px); padding-right: var(--pr); }
.duo .prices { padding-right: 0; }
@media (max-width: 899px) { .duo { grid-template-columns: minmax(0, 1fr); } .duo .block, .duo .block + .block { padding-left: var(--pl); padding-right: var(--pr); } }

/* 16fr / 9fr: the 16:9 picture and the square icon come out exactly the same height */
.price-cards { display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 9fr); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.pc-art { position: relative; overflow: hidden; background: #000000; }
.pc-art img { width: 100%; height: 100%; object-fit: cover; }
.pc-wide { aspect-ratio: 16 / 9; }
.pc-square { aspect-ratio: 1; }
.pc-body { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; padding: 18px 20px 20px; flex: 1; }
.pc-body h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pc-ratio { grid-column: 1; grid-row: 2; color: var(--dimmer); font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); line-height: .9; letter-spacing: -.02em; display: flex; align-items: flex-start; }
.pc-cur { font-size: .45em; font-weight: 700; margin: .12em .08em 0 0; color: var(--dim); }
.pc-alt { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.pc-rbx { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 4px; border: 1px solid #555555; border-radius: 4px; font-size: 10.5px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
@media (max-width: 559px) {
  .price-cards { grid-template-columns: minmax(0, 1fr); }
  /* the square icon would fill the whole phone: put it beside its price instead */
  .price-card:has(.pc-square) { flex-direction: row; }
  .price-card:has(.pc-square) .pc-square { width: 42%; flex: none; }
  .price-card:has(.pc-square) .pc-body { grid-template-columns: 1fr; align-content: end; }
  .price-card:has(.pc-square) .pc-price { grid-column: 1; grid-row: 3; margin-top: 8px; }
  .price-card:has(.pc-square) .pc-alt { grid-row: 4; }
}
.fine-print { margin-top: 16px; color: var(--dimmer); font-size: 14px; }

/* ---------- price style tests (?precos=a|b|c); the chosen one stays, the others go ---------- */
.prices[data-style] .price-cards { display: none; }
.prices[data-style="a"] .pv-a, .prices[data-style="b"] .pv-b, .prices[data-style="c"] .pv-c { display: block; }
.prices[data-style] { grid-column: 1 / -1; padding-right: var(--pr); }
.duo:has(.prices[data-style]) { grid-template-columns: minmax(0, 1fr); }
.duo:has(.prices[data-style]) .contact { padding-left: var(--pl); }

/* A: poster. The number is the headline, the art sits beside it */
.pa-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: clamp(20px, 4vw, 72px); padding: clamp(24px, 3vw, 44px) 0; border-top: 1px solid var(--line); }
.pa-row:last-child { border-bottom: 1px solid var(--line); }
.pa-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pa-price { font-weight: 900; font-size: clamp(88px, 13vw, 210px); line-height: .82; letter-spacing: -.045em; margin-top: 14px; display: flex; align-items: flex-start; }
.pa-cur { font-size: .34em; letter-spacing: 0; margin: .1em .06em 0 0; color: var(--dim); }
.pa-alt { margin-top: 18px; font-size: 18px; color: var(--dim); font-variant-numeric: tabular-nums; }
.pa-art { overflow: hidden; background: #000000; }
.pa-art img { width: 100%; height: 100%; object-fit: cover; }
.pa-wide { aspect-ratio: 16 / 9; }
.pa-square { aspect-ratio: 1; width: 56.25%; justify-self: end; }
@media (max-width: 699px) { .pa-row { grid-template-columns: minmax(0, 1fr); } .pa-square { width: 70%; justify-self: start; } }

/* B: spec sheet. Each format drawn with its measurements, the price on a label below */
.pv-b.pv { display: none; }
.prices[data-style="b"] .pv-b { display: grid; grid-template-columns: minmax(0, 16fr) minmax(0, 9fr); gap: clamp(40px, 5vw, 88px); align-items: end; padding: 28px 0 0 36px; }
.pb-fig { margin: 0; }
.pb-frame { position: relative; outline: 1px solid #3a3a3a; outline-offset: 10px; }
.pb-wide .pb-frame { aspect-ratio: 16 / 9; }
.pb-square .pb-frame { aspect-ratio: 1; }
.pb-frame img { width: 100%; height: 100%; object-fit: cover; }
.pb-dim { position: absolute; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pb-dim::before, .pb-dim::after { content: ""; position: absolute; background: #5a5a5a; }
.pb-dim-w { left: 0; right: 0; top: -30px; height: 1px; background: #5a5a5a; }
.pb-dim-w::before, .pb-dim-w::after { top: -5px; width: 1px; height: 11px; }
.pb-dim-w::before { left: 0; } .pb-dim-w::after { right: 0; }
.pb-dim-w > span { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); padding: 0 8px; background: var(--bg); line-height: 16px; }
.pb-dim-h { top: 0; bottom: 0; left: -30px; width: 1px; background: #5a5a5a; }
.pb-dim-h::before, .pb-dim-h::after { left: -5px; height: 1px; width: 11px; }
.pb-dim-h::before { top: 0; } .pb-dim-h::after { bottom: 0; }
.pb-dim-h > span { position: absolute; top: 50%; left: -8px; transform: translate(-50%, -50%) rotate(-90deg); padding: 0 8px; background: var(--bg); line-height: 16px; white-space: nowrap; }
.pb-tag { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 14px; margin-top: 26px; padding-top: 14px; border-top: 2px solid var(--white); }
.pb-no { font-size: 12px; font-weight: 700; color: var(--dimmer); font-variant-numeric: tabular-nums; }
.pb-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pb-price { font-weight: 900; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.02em; }
.pb-alt { grid-column: 3; text-align: right; color: var(--dim); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) { .prices[data-style="b"] .pv-b { grid-template-columns: minmax(0, 1fr); padding-left: 34px; } .pb-square { width: 70%; } }

/* D: the full menu (thumbnail, icon, rescale, priority) as one ruled table, no boxes */
.prices[data-style="d"] .pv-d { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-col { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 32px) clamp(22px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.pd-col:first-child { border-left: 0; padding-left: 0; }
.pd-main::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--white); }
.pd-col:first-child.pd-main::before { right: clamp(18px, 2vw, 32px); }
/* line drawings of each format */
.pd-glyph { position: relative; display: block; height: 30px; margin-bottom: clamp(18px, 2vw, 28px); }
.pd-glyph::before, .pd-glyph::after { content: ""; position: absolute; left: 0; bottom: 0; border: 1.5px solid #8a8a8a; }
.pd-g-wide::before { width: 53px; height: 30px; }
.pd-g-square::before { width: 30px; height: 30px; }
.pd-g-resize::before { width: 53px; height: 30px; }
.pd-g-resize::after { left: 62px; width: 22px; height: 22px; border-color: var(--white); }
.pd-g-rush::before { left: 22px; width: 30px; height: 30px; border-color: var(--white); }
.pd-g-rush::after { width: 16px; height: 9px; bottom: 6px; border-width: 1.5px 0; }
.pd-name { margin: 0; font-weight: 900; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.pd-price { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: clamp(36px, 3.4vw, 54px); line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-rbx { display: inline-flex; align-items: center; justify-content: center; height: 1.65em; padding: 0 .4em; border: 1.5px solid currentColor; border-radius: .28em; font-size: .32em; letter-spacing: .02em; line-height: 1; }
.pd-usd { margin-top: 8px; color: var(--dim); font-size: 15px; }
.pd-list { list-style: none; display: grid; gap: 9px; margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.4; }
.pd-list li { padding-left: 16px; position: relative; }
.pd-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 1.5px; background: #8a8a8a; }
.pd-cta { margin-top: auto; align-self: flex-start; min-height: 44px; font-size: 13px; font-weight: 700; }
.pd-cta > span { border-bottom: 1.5px solid var(--white) !important; padding: 3px 0 !important; }
.pd-main .pd-cta { padding: 0 16px; background: var(--white); color: #000000; }
.pd-main .pd-cta > span { border: 0 !important; }
.pd-todo .pd-price, .pd-todo .pd-usd { color: #6a6a6a; }
@media (max-width: 1099px) {
  .prices[data-style="d"] .pv-d { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-col:nth-child(3) { border-left: 0; padding-left: 0; }
  .pd-col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 599px) {
  .prices[data-style="d"] .pv-d { grid-template-columns: minmax(0, 1fr); }
  .pd-col { border-left: 0; padding-left: 0; padding-right: 0; }
  .pd-col + .pd-col { border-top: 1px solid var(--line); }
  .pd-col:first-child.pd-main::before { right: 0; }
}

/* C: one list, a currency switch that swaps every price */
.pc-switch { display: inline-flex; border: 1px solid #444444; padding: 3px; margin-bottom: clamp(18px, 2.4vw, 32px); }
.pc-cur-btn { min-height: 38px; padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: background-color .2s, color .2s; }
.pc-cur-btn[aria-pressed="true"] { background: var(--white); color: #000000; }
.pc-list { list-style: none; }
.pc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 2.4vw, 40px); padding: clamp(18px, 2.2vw, 30px) 0; border-top: 1px solid var(--line); }
.pc-item:last-child { border-bottom: 1px solid var(--line); }
.pc-thumb { display: block; height: clamp(64px, 8vw, 120px); overflow: hidden; background: #000000; }
.pc-thumb-wide { aspect-ratio: 16 / 9; }
.pc-thumb-square { aspect-ratio: 1; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-what { display: grid; gap: 4px; }
.pc-n { font-weight: 900; font-size: clamp(24px, 3vw, 44px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.pc-d { color: var(--dimmer); font-size: 14px; }
.pc-amt { display: inline-block; font-weight: 900; font-size: clamp(36px, 5.4vw, 88px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.contact-lead { font-size: 18px; line-height: 1.5; color: var(--dim); max-width: 34ch; }
.contact-links { display: grid; gap: 10px; margin-top: 22px; max-width: 420px; }
.ch {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 18px;
  border: 1px solid var(--line); background: var(--panel); text-decoration: none; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.ch:hover { border-color: #5a5a5a; background: #1c1c1c; }
.ch-ico { width: 22px; height: 22px; flex: none; color: var(--white); }
.ch-text { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.ch-text > span { grid-column: 1; }
.ch-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.ch-text .copy-a, .ch-text .copy-b, .ch-text > span:last-child { grid-row: 2; font-size: 17px; font-weight: 700; color: var(--text); }
.ch-hint { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); }
.ch:hover .ch-hint { color: var(--text); }
.ch .ext { width: 14px; height: 14px; opacity: .5; }
.ch:hover .ext { opacity: 1; }
.ch.copy { white-space: normal; font-size: inherit; }
.ch.copy > span { border: 0; padding: 0; }
.ch.copy .copy-b { visibility: hidden; }
.ch.is-copied .copy-a { visibility: hidden; }
.ch.is-copied .copy-b { visibility: visible; color: var(--green); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 11vw, 150px); padding: 6px var(--pr) max(10px, env(safe-area-inset-bottom, 0px)) var(--pl); border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 0 clamp(18px, 3vw, 34px); font-size: 13px; color: var(--dim); }
.foot-mark { font-size: 15px; color: var(--text); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2.6vw, 28px); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot-nav a:hover { color: var(--white); }
.foot-v { margin-left: auto; color: var(--dimmer); font-size: 12px; }

/* ---------- viewer ---------- */
.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #0a0a0a; color: var(--text); overflow: hidden; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: #000000; }
.v-stage { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; margin: max(12px, env(safe-area-inset-top, 0px)) 12px 0; touch-action: pan-y; }
.v-frame { position: relative; width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9; background: var(--panel); }
.v-frame.is-square { aspect-ratio: 1; width: min(100cqw, 100cqh); }
.v-img, .v-raw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; -webkit-user-drag: none; }
.v-raw { opacity: 0; transition: opacity .15s; }
.v-frame.show-raw .v-raw { opacity: 1; }
.v-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 10px var(--pr) max(12px, env(safe-area-inset-bottom, 0px)) var(--pl); }
.v-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; font-size: 14px; color: var(--dim); }
.v-game { color: var(--text); font-weight: 700; }
.v-meta { display: flex; gap: 14px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.v-actions .toggle { padding: 0 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
