/* Layout: one long record sleeve. A sticky vinyl stage, then full-width bands
   with a thin hairline grid; type does the heavy lifting, colour stays on the label. */
:root {
  /* dark-first: vinyl black with a violet bias, bone white, cobalt label */
  --bg: #0c0b0f;
  --bg-2: #15131a;
  --fg: #ecebe4;
  --muted: #8f8b98;
  --line: rgba(236, 235, 228, 0.14);
  --accent: #5b6bff;
  --accent-ink: #f4f3ff;
  --vinyl: #050407;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --s0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --s1: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --s2: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --s3: clamp(3.2rem, 1rem + 10vw, 11rem);

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #e9e7e1; --bg-2: #dedbd3; --fg: #131216; --muted: #6a6672;
    --line: rgba(19, 18, 22, 0.16); --accent: #2b3bd9; --accent-ink: #f6f5ff; --vinyl: #131216;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #e9e7e1; --bg-2: #dedbd3; --fg: #131216; --muted: #6a6672;
  --line: rgba(19, 18, 22, 0.16); --accent: #2b3bd9; --accent-ink: #f6f5ff; --vinyl: #131216;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-left: var(--gut); padding-right: var(--gut-r); }
.mono { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: 0.04em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 16px; }
.hp { position: absolute; left: -9999px; }


/* ---------- enter screen ---------- */
html.gated body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 95; background: var(--bg); color: var(--fg);
  display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1);
}
.gate.out { clip-path: inset(0 0 100% 0); pointer-events: none; }
.gate[hidden] { display: none; }
.gate-in { display: grid; justify-items: center; gap: clamp(16px, 3vh, 28px); text-align: center; width: min(100%, 60rem); }
.gate-top { display: flex; justify-content: space-between; gap: 12px; width: 100%; color: var(--muted); margin: 0; position: absolute; top: max(22px, env(safe-area-inset-top, 0px)); left: 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.gate-disc {
  width: clamp(120px, 22vh, 200px); aspect-ratio: 1; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle, var(--accent) 0 30%, #070609 30.5% 34%, transparent 34%),
    repeating-radial-gradient(circle, #0b0a0e 0 1px, #16151a 1px 2px, #0b0a0e 2px 3px),
    #0b0a0e;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
  animation: spin 1.8s linear infinite;
}
.gate-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .14) 12%, transparent 17% 50%, rgba(255, 255, 255, .1) 62%, transparent 67%); -webkit-mask: radial-gradient(circle, transparent 34%, #000 35%); mask: radial-gradient(circle, transparent 34%, #000 35%); animation: spin 1.8s linear infinite reverse; }
.gate-disc i { position: absolute; left: 50%; top: 50%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
.gate-title { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.4rem, 1rem + 8vw, 8rem); line-height: .85; letter-spacing: -0.045em; text-wrap: balance; }
.gate-sub { margin: 0; color: var(--muted); }
.gate-btns { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.gate-go { padding: 18px 30px; }
.gate-quiet { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 10px; }
.gate-quiet:hover { color: var(--fg); }
.gate-load { margin: 0; color: var(--muted); min-height: 1.4em; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  mix-blend-mode: difference; color: #fff;
}
.top-in {
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gut-r) 18px var(--gut);
}
.logo {
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
}
.logo sup { font-family: var(--f-mono); font-weight: 400; font-size: 0.6rem; margin-left: 4px; letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.ctrls { display: flex; align-items: center; gap: 10px; }
.clock { font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid currentColor; border-radius: 99px;
  padding: 5px 10px; cursor: pointer;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background .3s; }
.chip[aria-pressed="true"] i { background: currentColor; }

@media (max-width: 760px) {
  .nav a:nth-child(2), .nav a:nth-child(3) { display: none; }
  .clock { display: none; }
  .top-in { gap: 14px; }
  .nav { gap: 14px; }
}
@media (max-width: 480px) {
  .nav { display: none; }
  .ctrls { margin-left: auto; }
  .logo sup { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 520vh; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#vinyl { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#vinyl.grabbing { cursor: grabbing; }
.hero-ui { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(84px + env(safe-area-inset-top, 0px)) 22px; }
.hero-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.hero-tag {
  align-self: end; max-width: 34rem; margin-bottom: 28px;
  opacity: calc((var(--p, 0) - 0.9) * 10); transform: translateY(calc((1 - min(1, max(0, (var(--p, 0) - 0.9) * 10))) * 24px));
}
.hero-tag h1 { font-family: var(--f-display); font-weight: 500; font-stretch: 100%; font-size: var(--s1); line-height: 1.15; margin: 10px 0 0; text-wrap: balance; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.hint { opacity: calc(1 - var(--p, 0) * 12); }
/* captions that ride along with the dive */
.cap { position: absolute; margin: 0; pointer-events: none; transition: opacity .3s; }
.cap-mag { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; display: grid; gap: 4px; color: var(--muted);
  opacity: calc(min((var(--p) - 0.05) * 20, (0.66 - var(--p)) * 20)); }
.cap-mag b { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: var(--s2); color: var(--fg); line-height: 1; font-variant-numeric: tabular-nums; }
.cap-groove { left: 50%; bottom: 18%; transform: translateX(-50%); width: min(34rem, calc(100% - 32px)); text-align: center;
  font-family: var(--f-display); font-weight: 500; font-size: var(--s1); line-height: 1.2; color: #f2f1ea; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
  opacity: calc(min((var(--p) - 0.44) * 16, (0.64 - var(--p)) * 16)); }
.cap-side { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; color: var(--muted);
  opacity: calc(min((var(--p) - 0.74) * 14, (0.92 - var(--p)) * 14)); }
.rpm { pointer-events: auto; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; color: var(--fg); font: inherit; text-transform: inherit; letter-spacing: inherit; }
.rpm b { font-weight: 500; font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.2ch; text-align: right; }

/* ---------- intro ---------- */
.intro { padding-block: clamp(80px, 14vw, 180px) clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); display: grid; gap: clamp(32px, 5vw, 64px); }
.kicker { color: var(--muted); margin: 0; }
.statement {
  font-family: var(--f-display); font-weight: 600; font-stretch: 112%;
  font-size: var(--s2); line-height: 1.04; letter-spacing: -0.025em; margin: 0; max-width: 22ch; text-wrap: balance;
}
.statement em { font-style: normal; font-stretch: 62%; font-weight: 800; color: var(--accent); }
/* the story so far: a cassette that plays as you scroll; the year rolls like a tape counter */
.tape { position: relative; height: 340vh; border-top: 1px solid var(--line); }
.tape-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: center; gap: 0 clamp(24px, 4vw, 64px); padding-block: 90px 28px; }
.tape-cv { width: 100%; aspect-ratio: 1.58; max-height: 62vh; justify-self: center; }
.tape-read { display: grid; gap: 18px; min-width: 0; }
.tape-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin: 0; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tape-top span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }
.odo { display: flex; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(64px, 11vw, 168px); line-height: 1; letter-spacing: -0.04em; height: 1em; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.odo-col { display: flex; flex-direction: column; will-change: transform; }
.odo-col span { height: 1em; display: block; text-align: center; font-variant-numeric: tabular-nums; }
.tape-notes { position: relative; min-height: 9.5em; }
.tape-note { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tape-note.on { opacity: 1; transform: none; }
.tape-note h3 { font-family: var(--f-display); font-weight: 700; font-stretch: 90%; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.tape-note p { color: var(--muted); margin: 0 0 12px; max-width: 40ch; }
.tape-note a { color: var(--fg); margin-right: 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.tape-note a:hover { color: var(--accent); border-color: var(--accent); }
.tape-line { grid-column: 1 / -1; position: relative; height: 34px; border-top: 1px solid var(--line); }
.tape-line b { position: absolute; top: 10px; transform: translateX(-50%); font: 500 11px/1 var(--f-mono, monospace); color: var(--muted); transition: color .3s; }
.tape-line b::before { content: ""; position: absolute; left: 50%; top: -15px; width: 1px; height: 9px; background: var(--muted); }
.tape-line b.hit { color: var(--fg); }
.tape-line b.hit::before { background: var(--accent); height: 13px; top: -17px; }
.tape-line i { position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 800px) {
  .tape-stick { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-content: start; padding-top: 84px; gap: 14px; }
  .tape-cv { max-height: 30vh; }
  .odo { font-size: clamp(64px, 22vw, 110px); }
}

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 125%; text-transform: uppercase; font-size: var(--s1); letter-spacing: -0.01em; margin: 0; }
.count { color: var(--muted); }

/* ---------- work ---------- */
.work { padding: 0; }
/* section titles live inside the scene: huge outlined type behind the content, no header bars */
.ghost-title {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(64px, 15vw, 240px); line-height: .82; letter-spacing: -0.04em; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 26%, transparent); pointer-events: none; user-select: none;
}
.stage .ghost-title { position: absolute; inset: 0; display: grid; place-content: center; z-index: 0; }
.work-tools { position: absolute; z-index: 310; left: var(--gut); right: var(--gut-r); top: clamp(70px, 9vh, 110px); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
@media (max-width: 560px) { .work-hint { display: none; } }

/* the globe: sleeves placed on a sphere, rendered with real perspective */
.stage {
  position: relative; height: clamp(560px, 100vh, 940px); perspective: 1100px; touch-action: pan-y;
  cursor: grab; user-select: none; -webkit-user-select: none; overflow: hidden;
}
.stage.spinning { cursor: grabbing; }
.stage::before { /* soft light behind the globe */
  content: ""; position: absolute; left: 50%; top: 50%; width: min(80vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.globe { position: absolute; left: 50%; top: 50%; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.globe li { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.tile {
  position: absolute; display: block; width: var(--tile, 110px); height: var(--tile, 110px);
  left: calc(var(--tile, 110px) / -2); top: calc(var(--tile, 110px) / -2);
  border-radius: 3px; overflow: hidden; will-change: transform, opacity;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
  -webkit-user-drag: none;
}
.tile canvas { width: 100%; height: 100%; pointer-events: none; }
.tile-sheen { /* gloss of a shrink-wrapped sleeve */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08));
  mix-blend-mode: screen;
}
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.globe-label {
  position: absolute; left: 50%; bottom: 4%; transform: translate(-50%, 10px); z-index: 300;
  display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); width: min(90%, 40rem);
}
.globe-label.on { opacity: 1; transform: translate(-50%, 0); }
.globe-label b { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: var(--s2); line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }
.globe-label span { color: var(--muted); }
@media (max-width: 720px) { .stage { height: clamp(460px, 80vh, 700px); } }

/* ---------- services: a walk down the block ---------- */
.services { position: relative; height: 1400vh; }
.walk-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.walk-bg, .walk-fg { position: absolute; inset: 0; width: 100%; height: 100%; }
.walk-fg { pointer-events: none; z-index: 3; }
.walk-track { position: absolute; left: 0; top: 0; height: 100%; width: 100%; z-index: 2; will-change: transform; }
.walk-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(76px + env(safe-area-inset-top, 0px)) 20px; }
.walk-head { border-bottom: 0; }
.walk-hint { color: var(--muted); align-self: end; margin: 0; }
.walk-cap { align-self: start; justify-self: start; max-width: 34ch; margin: 14px 0 0; padding: 12px 14px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.4; color: var(--fg); background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line); border-radius: 10px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.walk-cap.on { opacity: 1; transform: none; }
.poster {
  position: absolute; top: 19%; width: clamp(220px, 26vw, 320px); padding: 22px 22px 26px;
  display: grid; gap: 10px; align-content: start;
  transform: rotate(var(--tilt)) translateY(0) scale(.96); transform-origin: 50% 0;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), filter .5s;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6);
  filter: saturate(.75) brightness(.92);
}
.poster::before, .poster::after { /* masking tape */
  content: ""; position: absolute; top: -10px; width: 64px; height: 20px; background: rgba(236, 232, 214, .72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.poster::before { left: 14px; transform: rotate(-6deg); }
.poster::after { right: 14px; transform: rotate(5deg); }
.poster-paper { background: #ece8dc; color: #141316; }
.poster-accent { background: var(--accent); color: var(--accent-ink); }
.poster-ink { background: #141316; color: #ece8dc; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.poster h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); line-height: .92; letter-spacing: -0.03em; text-wrap: balance; }
.poster p { margin: 0; font-size: var(--s0); line-height: 1.35; opacity: .85; }
.poster-no { opacity: .7; }
.poster-proof { pointer-events: auto; color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.poster-stamp {
  position: absolute; right: -10px; bottom: -14px; padding: 6px 10px; background: #f2c14e; color: #141316;
  transform: rotate(-8deg) scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.poster.on { transform: rotate(0deg) translateY(-10px) scale(1.04); box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7); filter: none; }
.poster.on .poster-stamp { transform: rotate(-8deg) scale(1); }
@media (max-width: 640px) { .poster { width: min(72vw, 280px); top: 17%; } }

/* ---------- built with: a working mini studio ---------- */
.tools { padding-block: clamp(20px, 4vw, 60px) 40px; }
.tools-head { position: relative; display: grid; justify-items: center; gap: 10px; margin-bottom: clamp(12px, 2vw, 28px); }
.tools-head .count { position: relative; z-index: 2; order: -1; }
.tools .studio { position: relative; z-index: 1; }
.studio {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 17rem); gap: clamp(14px, 2vw, 24px);
  margin-top: 24px; align-items: stretch;
}
.studio-dock { display: grid; gap: 16px; align-content: start; perspective: 600px; }
.app {
  --rx: 0deg; --ry: 0deg; display: grid; justify-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer;
  transform: translateY(-140%); opacity: 0;
}
.studio.arrived .app { animation: drop .9s cubic-bezier(.3, 1.5, .5, 1) forwards; animation-delay: calc(var(--i) * .14s); }
@keyframes drop { 0% { transform: translateY(-140%) rotate(-12deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
.app-face {
  position: relative; display: grid; place-items: center; width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 22%;
  background: var(--app-bg); color: var(--app-fg); box-shadow: inset 0 0 0 3px var(--app-fg), 0 14px 24px -12px rgba(0, 0, 0, .7);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .15s, box-shadow .3s; overflow: hidden;
}
.app-face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .35), transparent 55%); pointer-events: none; }
.app-face b { font-family: var(--f-display); font-weight: 700; font-stretch: 100%; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.app-name { color: var(--muted); font-size: 10px; max-width: 9ch; text-align: center; line-height: 1.2; }
.app.on .app-face { box-shadow: inset 0 0 0 3px var(--app-fg), 0 0 0 3px var(--bg), 0 0 0 5px var(--app-fg), 0 18px 30px -10px var(--app-fg); }
.app.on .app-name { color: var(--fg); }
.app:focus-visible { outline: none; }
.app:focus-visible .app-face { outline: 2px solid var(--accent); outline-offset: 4px; }
.studio-board {
  position: relative; height: clamp(360px, 58vh, 560px); border-radius: 6px; overflow: hidden; touch-action: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: crosshair;
}
.studio[data-tool="Ai"] .studio-board { cursor: none; }
.studio[data-tool="Ps"] .studio-board { cursor: none; }
.studio-art, .studio-ui { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio-ui { pointer-events: none; }
.studio-empty { position: absolute; left: 14px; top: 12px; margin: 0; color: var(--muted); pointer-events: none; }
.studio-clear { position: absolute; right: 12px; bottom: 12px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.studio-clear:hover { border-color: var(--fg); }
.studio-monitor { position: absolute; right: 12px; bottom: 64px; display: grid; gap: 4px; justify-items: end; opacity: 0; transition: opacity .2s; pointer-events: none; }
.studio-monitor.on { opacity: 1; }
.studio-monitor canvas { width: 160px; height: 90px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -10px rgba(0, 0, 0, .7); object-fit: cover; }
.studio-monitor span { color: #5bb1ff; }
.studio-panel { display: grid; align-content: start; gap: 12px; min-width: 0; }
.studio-panel h3 { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 112%; font-size: var(--s1); line-height: 1; color: var(--fg); text-decoration: underline; text-decoration-color: var(--app-fg); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.studio-k { margin: 0; color: var(--muted); }
.studio-use { margin: 0; color: var(--muted); }
.studio-yrs { display: flex; align-items: center; gap: 12px; }
.studio-yrs b { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: var(--s2); line-height: 1; }
.studio-yrs span { color: var(--muted); line-height: 1.3; }
.studio-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.studio-strip i { height: 10px; border-radius: 2px; background: var(--line); }
.studio-strip i.on { background: var(--accent); }
.studio-strip-l { display: flex; justify-content: space-between; margin: -6px 0 0; color: var(--muted); font-size: 10px; }
.studio-hint { margin: 0; font-size: var(--s-1); color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 860px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-dock { grid-auto-flow: column; justify-content: start; gap: 20px; }
  .studio-board { height: clamp(320px, 60vh, 460px); }
}

/* ---------- off the clock ---------- */

/* ---------- contact: cut a dubplate ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(40px, 8vw, 100px) clamp(60px, 10vw, 120px); }
.cta-marquee { position: absolute; left: 0; right: 0; top: clamp(10px, 3vw, 40px); white-space: nowrap; pointer-events: none; opacity: .9; }
.cta-marquee div { display: inline-flex; animation: marquee 38s linear infinite; }
.cta-marquee span { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(90px, 16vw, 260px); line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 14%, transparent); padding-right: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cta-in { position: relative; }
.cta-h {
  margin: clamp(30px, 6vw, 80px) 0 clamp(30px, 5vw, 60px); font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; font-size: var(--s3); line-height: 0.82; letter-spacing: -0.045em;
}
.cta-h span { display: inline-block; transition: font-stretch .6s var(--ease), color .4s; }
.cta-h span:last-child { color: var(--accent); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* the record, made from scratch as the order fills in:
   s-blank (a lacquer drops on), s-label (paper label, name printed), s-matrix (hole punched, run-out etched),
   s-ink (label inked in the job's colour), s-groove (the lathe cuts in from the edge), sent (stamped, sleeved) */
.press { display: grid; gap: 14px; justify-items: center; }
.press-deck { position: relative; width: min(100%, 520px); aspect-ratio: 1.12; display: grid; grid-template-columns: 86%; align-items: center; padding: 4%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--fg) 8%, var(--bg)), var(--bg) 70%); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.platter, .dub { grid-area: 1 / 1; }
.platter { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #3a3840 0 1.6%, #1d1c22 1.7% 2.6%, transparent 2.7%), repeating-radial-gradient(circle, #24232a 0 2px, #1f1e25 2px 5px);
  box-shadow: inset 0 0 0 3px #2c2b32, inset 0 0 0 9px #18171c, 0 10px 30px rgba(0, 0, 0, .4); }
.platter-hint { position: absolute; top: 58%; color: var(--muted); text-align: center; font-size: clamp(9px, 1.1vw, 11px); line-height: 1.6; transition: opacity .4s; }
.press.s-blank .platter-hint { opacity: 0; }

.dub { --spin: 1.8s; position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #1d1c23, #121116 70%, #0d0c10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px #0b0a0e;
  opacity: 0; transform: translateY(-26%) scale(1.12); transition: opacity .35s, transform .7s cubic-bezier(.3, 1.5, .5, 1); }
.press.s-blank .dub { opacity: 1; transform: none; }
.dub::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, .12) 14%, transparent 19% 55%, rgba(255, 255, 255, .08) 62%, transparent 68%); }
/* everything that turns with the platter */
.dub-cut, .dub-runout, .dub-label { animation: spin var(--spin) linear infinite; }
/* grooves: fine rings, revealed from the rim inward as --d grows */
.dub-cut { position: absolute; inset: 3%; border-radius: 50%; --d: -2%;
  background: radial-gradient(circle closest-side, transparent calc(99.4% - var(--d)), color-mix(in srgb, var(--accent) 85%, #fff) calc(99.4% - var(--d)) calc(100.6% - var(--d)), transparent calc(100.6% - var(--d))),
    radial-gradient(circle closest-side, transparent 60%, color-mix(in srgb, var(--accent) 10%, transparent)),
    repeating-radial-gradient(circle, #0c0b0f 0 1px, #26252d 1px 2.4px);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(99% - var(--d)), #000 calc(99% - var(--d))); mask: radial-gradient(circle closest-side, transparent calc(99% - var(--d)), #000 calc(99% - var(--d))); }
.dub-runout { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; transition: opacity .8s; }
.dub-runout text { font-family: var(--f-mono); font-size: 2.3px; letter-spacing: .32px; fill: rgba(255, 255, 255, .5); }
.press.s-matrix .dub-runout { opacity: 1; }
/* the label: plain paper first, then the name, then the ink */
.dub-label { --lab: #f1ede4; --lab-ink: #141318; position: absolute; inset: 32%; border-radius: 50%; background: var(--lab); color: var(--lab-ink);
  display: grid; grid-template-columns: 100%; align-content: center; justify-items: center; text-align: center; gap: 2px; padding: 8%; overflow: hidden;
  opacity: 0; transition: background .6s, color .6s; }
.press.s-label .dub-label { opacity: 1;  animation: labelOn .5s cubic-bezier(.3, 1.6, .5, 1) both, spin var(--spin) linear .5s infinite; }
@keyframes labelOn { from { transform: scale(1.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.press.s-ink .dub-label { background: var(--lab-c, var(--accent)); color: var(--lab-c-ink, var(--accent-ink)); }
.dub-label::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); background-size: 300% 100%; background-position: 100% 0; opacity: 0; }
.dub-label.inking::after { animation: inkSweep .7s ease-out; }
@keyframes inkSweep { from { opacity: 1; background-position: 100% 0; } to { opacity: 0; background-position: 0 0; } }
/* the centre hole is punched with the matrix */
.dub-label::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7%; aspect-ratio: 1; border-radius: 50%; background: #3a3840; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35); transform: translate(-50%, -50%) scale(0); transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.press.s-matrix .dub-label::before { transform: translate(-50%, -50%) scale(1); }
.dub-label small { font-size: clamp(7px, 1vw, 10px); opacity: .75; }
.dub-label b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1; width: 112%; min-height: 1em; overflow: hidden; white-space: nowrap; margin-bottom: 16%; }
.dub-label b.two { line-height: 1.04; min-height: 2.1em; flex-shrink: 0; }
.dub-label i { font-style: normal; font-size: clamp(6px, .85vw, 9px); margin-top: 14%; min-height: 1.2em; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dub-label em { font-style: normal; font-size: clamp(6px, .8vw, 9px); opacity: .75; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; }
.dub-label b.typed::after { content: ""; display: inline-block; width: .08em; height: .8em; margin-left: .06em; background: currentColor; vertical-align: -.05em; animation: recBlink .8s steps(1) infinite; }
/* the cutting arm: parked, then over the groove front while the notes are written */
.arm { --a: 0; position: absolute; right: 7%; top: 9%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: #2c2a31; box-shadow: inset 0 0 0 4px #3a3840; transform-origin: 50% 50%; transform: rotate(-30deg); transition: transform .8s var(--ease); z-index: 2; }
.arm i { position: absolute; left: 45%; top: 50%; width: 10%; height: 560%; background: linear-gradient(#cfd3da, #9aa0a8); border-radius: 4px; transform-origin: 50% 0; transform: rotate(12deg); }
.arm i::after { content: ""; position: absolute; left: -110%; bottom: -8%; width: 320%; height: 12%; background: #e6e6e6; border-radius: 2px; }
.press.s-groove .arm, .press.cutting.s-blank .arm { transform: rotate(calc(-4deg + var(--a) * 1deg)); }
.press.cutting.s-groove .arm i::before { content: ""; position: absolute; left: 50%; bottom: -14%; width: 260%; aspect-ratio: 1; border-radius: 50%; background: #ff3c5a; box-shadow: 0 0 12px 3px #ff3c5a; transform: translateX(-50%); opacity: .8; animation: recBlink .5s steps(1) infinite; }
/* build sheet under the deck */
.press-steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; width: min(100%, 520px); margin: 0; padding: 0; list-style: none; counter-reset: st; font-size: clamp(10px, 1.1vw, 12px); color: var(--muted); }
.press-steps li { counter-increment: st; display: flex; align-items: center; gap: 6px; transition: color .3s; }
.press-steps li::before { content: counter(st); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font-size: 9px; transition: background .3s, border-color .3s, color .3s; }
.press-steps li.on { color: var(--fg); }
.press-steps li.on::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.press-meter { display: flex; justify-content: space-between; width: min(100%, 520px); margin: 0; color: var(--muted); }
.press-meter #pressStatus::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 8px; vertical-align: 1px; }
.press.cutting .press-meter #pressStatus::before { background: #ff3c5a; box-shadow: 0 0 10px #ff3c5a; animation: recBlink 1s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.press .big-link { font-size: clamp(18px, 2.4vw, 30px); }
/* sent: the stamper comes down, then the record slides into its sleeve */
.stamp { position: absolute; inset: 0; background: radial-gradient(circle at 43% 50%, #fff, transparent 60%); opacity: 0; pointer-events: none; z-index: 3; }
.sleeve { position: absolute; top: 4%; bottom: 4%; left: 3%; aspect-ratio: 1; border-radius: 6px; z-index: 4; display: grid; align-content: space-between; padding: 7%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: var(--accent-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  transform: translateX(130%); visibility: hidden; }
.sleeve b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(40px, 9vw, 110px); line-height: .85; }
.sleeve span { font-size: clamp(9px, 1vw, 12px); }
.press.sent .stamp { animation: stampFlash .5s ease-out; }
.press.sent .dub { animation: pressed 3.45s ease-in-out forwards; }
.press.sent .sleeve { visibility: visible; animation: sleeveIn 3s cubic-bezier(.6, 0, .3, 1) .45s both; }
@keyframes stampFlash { 0% { opacity: 0; } 18% { opacity: .9; } 100% { opacity: 0; } }
@keyframes pressed { 0% { transform: none; } 4% { transform: scale(.94); } 12%, 82% { transform: none; } 100% { transform: translateX(-150%); } }
@keyframes sleeveIn { 0% { transform: translateX(130%); } 25%, 80% { transform: translateX(0); } 100% { transform: translateX(-140%); } }

/* the pressing order */
.form { display: grid; gap: 18px; }
.order { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.order-head { display: flex; justify-content: space-between; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); color: var(--muted); }
.order-head b { color: var(--fg); font-weight: 500; }
.fld { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fld > span, .fld legend { color: var(--muted); padding: 0; }
.fld b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.fld input, .fld textarea {
  width: 100%; font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; resize: vertical;
}
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; transition: background .2s, color .2s, border-color .2s; }
.chip-opt:hover span { border-color: var(--fg); }
.chip-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn {
  justify-self: start; display: inline-flex; gap: 10px; align-items: center;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 99px; padding: 14px 24px; cursor: pointer;
  font-family: var(--f-mono); font-size: var(--s-1); text-transform: uppercase; letter-spacing: .06em;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.press-btn { justify-self: stretch; justify-content: center; padding: 18px 24px; }
.form-note { margin: 0; min-height: 1.4em; color: var(--muted); text-transform: none; }
.big-link { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: var(--s2); text-decoration: none; line-height: 1; border-bottom: 2px solid currentColor; }
.big-link:hover { color: var(--accent); }
.email { margin: 0; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .cta-marquee div, .dub-cut, .dub-runout, .press .dub-label { animation: none !important; } }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }

/* ---------- case study ---------- */
.case {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0px at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path .8s var(--ease);
}
.case.open { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
.case-in { padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(60px + env(safe-area-inset-bottom, 0px)) var(--gut); }
.case-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 2; padding-block: 12px; background: var(--bg); }
.case-close { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; cursor: pointer; color: var(--fg); }
.case-close:hover { border-color: var(--fg); }
.case-title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(2.4rem, 1rem + 7vw, 8.5rem); line-height: .86; letter-spacing: -0.04em; margin: clamp(30px, 6vw, 70px) 0 clamp(24px, 4vw, 48px);
  overflow-wrap: anywhere; text-wrap: balance;
}
.case-hero { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; max-width: 100%; }
.case-hero canvas, .case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 6vw, 72px); }
.case-meta div { display: grid; gap: 4px; min-width: 0; }
.case-meta dt { color: var(--muted); }
.case-meta dd { margin: 0; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); }
.case-body h2 { margin: 0; }
.case-body p { font-size: var(--s1); line-height: 1.35; margin: 0 0 32px; max-width: 34ch; font-weight: 500; letter-spacing: -0.01em; }
.deliv { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.deliv li { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 7vw, 90px); }
.gallery figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; max-width: 100%; }
.gallery figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery canvas, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-note { color: var(--muted); margin-top: 14px; text-transform: none; }
.case-next { display: block; margin-top: clamp(60px, 10vw, 120px); padding-top: 24px; border-top: 1px solid var(--line); text-decoration: none; cursor: pointer; }
.case-next span { color: var(--muted); }
.case-next strong { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: var(--s2); line-height: 1; margin-top: 8px; transition: color .3s; }
.case-next:hover strong { color: var(--accent); }
@media (max-width: 720px) {
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure:first-child { grid-column: auto; }
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor span { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.big span { opacity: 1; }
.cursor.show { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

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

/* ---------- Night Drive arcade ---------- */
.pc-choice { position: absolute; z-index: 5; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pc-choice[hidden] { display: none; }
.pc-later { background: rgba(7, 4, 15, .7); color: #f4f2ff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pc-later:hover { border-color: #fff; }
.pc-play { background: #2bd96b; color: #04140a; border: 0; border-radius: 99px; padding: 10px 16px; cursor: pointer; font-weight: 600; box-shadow: 0 0 0 0 rgba(43, 217, 107, .6); animation: pcPulse 1.6s infinite; white-space: nowrap; }
@media (hover: hover) { .pc-play:hover { background: #fff; } }
@keyframes pcPulse { 0% { box-shadow: 0 0 0 0 rgba(43, 217, 107, .6); } 100% { box-shadow: 0 0 0 18px rgba(43, 217, 107, 0); } }
html.arcade-open body { overflow: hidden; }
.arcade { position: fixed; inset: 0; z-index: 120; background: #07040f; color: #f4f2ff; opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .3s; }
.arcade.in { opacity: 1; transform: none; }
.arcade[hidden] { display: none; }
.arc-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.arc-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 6px 16px; padding: max(16px, env(safe-area-inset-top, 0px)) 230px 0 18px; pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.arc-hud b { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.arc-hud em { font-style: normal; margin-left: 10px; color: #c9c3e6; }
.arc-hud em.hot { color: #2bd96b; }
.arc-hud #arcTarget { color: #2bd96b; }
.arc-hud #arcSpeed { color: #c9c3e6; }
@media (max-width: 640px) { .arc-hud { padding-right: 18px; padding-top: 64px; } .arc-hud #arcSpeed { display: none; } }
.arc-top { position: absolute; z-index: 3; right: 16px; top: max(14px, env(safe-area-inset-top, 0px)); display: flex; gap: 8px; }
.arc-chip { background: rgba(7, 4, 15, .6); color: #f4f2ff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; padding: 8px 12px; cursor: pointer; }
.arc-chip:hover { border-color: #fff; }
.arc-exit { background: #f4f2ea; color: #07040f; border-color: #f4f2ea; font-weight: 600; }
.arc-exit:hover { background: #2bd96b; border-color: #2bd96b; }
.arc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.arc-btn.ghost { background: transparent; color: #f4f2ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.arc-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.arc-panel { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding: 70px 16px 70px; overflow-y: auto; background: radial-gradient(ellipse at center, rgba(7, 4, 15, .55), rgba(7, 4, 15, .85)); }
.arc-panel[hidden] { display: none; }
.arc-card { background: rgba(14, 8, 30, .94); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: clamp(20px, 3vw, 32px); width: min(100%, 26rem); display: grid; gap: 14px; }
.arc-side { width: min(100%, 22rem); align-content: start; }
.arc-kick { color: #2bd96b; margin: 0; }
.arc-h { margin: 0; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .86; letter-spacing: -0.04em; background: linear-gradient(#ffe46b, #ff3c8e 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arc-p { margin: 0; color: #c9c3e6; }
.arc-keys { margin: 0; color: #8f88b3; text-transform: none; }
.arc-target { color: #f4f2ff; text-transform: none; }
.arc-target b { color: #2bd96b; }
.arc-btn { background: #2bd96b; color: #04140a; border: 0; border-radius: 99px; padding: 10px 16px; font: 600 14px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.arc-btn:hover { background: #fff; }
.arc-btn:disabled { opacity: .5; cursor: default; }
.arc-btn.big { padding: 16px 22px; font-size: 16px; justify-self: start; }
.arc-save, .arc-login { display: flex; gap: 8px; flex-wrap: wrap; }
.arc-save input, .arc-login input { flex: 1; min-width: 9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 10px; padding: 10px 12px; font: 500 15px var(--f-mono); text-transform: uppercase; }
.arc-msg { margin: 0; min-height: 1.2em; color: #ff9a7a; text-transform: none; }
.arc-side h3 { margin: 0; color: #8f88b3; font-weight: 500; }
.arc-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.arc-board li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.arc-board li b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-board li i { font-style: normal; font-size: 11px; color: #04140a; background: #2bd96b; border-radius: 99px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }
.arc-board li.ak { background: rgba(43, 217, 107, .12); box-shadow: inset 0 0 0 1px rgba(43, 217, 107, .4); }
.arc-board li.me { box-shadow: inset 0 0 0 1px #ff3c8e; }
.arc-empty, .arc-note { color: #8f88b3; margin: 0; text-transform: none; }
.arc-ak { color: #c9c3e6; margin: 0; text-transform: none; }
.arc-ak summary { cursor: pointer; color: #8f88b3; }
.arc-ak .arc-login { margin-top: 10px; }
.arc-link { background: none; border: 0; color: #2bd96b; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* the About statement: letters warp with scroll speed */
.statement .wv-w { display: inline-block; white-space: nowrap; }
.statement .wv-c { display: inline-block; transform-origin: 50% 60%; }
.pc-choice.big .pc-play { padding: 18px 28px; font-size: 18px; }
.services .walk-ui { transition: opacity .4s; }
.services.zoomed .walk-ui { opacity: 0; }

/* ---------- volume + credit ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vol, .arc-vol { display: inline-flex; align-items: center; gap: 8px; }
.vol input, .arc-vol input {
  -webkit-appearance: none; appearance: none; width: 72px; height: 22px; background: none; cursor: pointer; margin: 0; color: inherit; --v: 80%;
}
.vol input::-webkit-slider-runnable-track, .arc-vol input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, currentColor var(--v), color-mix(in srgb, currentColor 30%, transparent) var(--v)); }
.vol input::-moz-range-track, .arc-vol input::-moz-range-track { height: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 30%, transparent); }
.vol input::-moz-range-progress, .arc-vol input::-moz-range-progress { height: 2px; background: currentColor; }
.vol input::-webkit-slider-thumb, .arc-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: currentColor; border: 0; }
.vol input::-moz-range-thumb, .arc-vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: currentColor; border: 0; }
.vol input:focus-visible, .arc-vol input:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.arc-vol { padding-block: 4px; }
.arc-vol input { width: 80px; }
@media (max-width: 480px) { .arc-vol span { display: none; } .arc-vol input { width: 60px; } }
.foot .credit { flex-basis: 100%; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: var(--s-1); }
.foot .credit a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.foot .credit a:hover { color: var(--accent); }
/* Narrow screens: the slider drops under the header as a small pill, shown while sound is on. */
@media (max-width: 820px) {
  .ctrls { position: relative; }
  .vol { position: absolute; right: 0; top: calc(100% + 10px); padding: 6px 12px; border: 1px solid currentColor; border-radius: 99px; }
  .vol input { width: 110px; height: 28px; }
  #soundBtn[aria-pressed="false"] + .vol { display: none; }
}

/* real project imagery: show each piece whole, in Behance order */
.case-hero.real { aspect-ratio: auto; background: var(--bg-2); }
.case-hero.real img { height: auto; display: block; object-fit: contain; }
.gallery.real { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gallery.real figure, .gallery.real figure:first-child { aspect-ratio: auto; grid-column: auto; background: var(--bg-2); min-height: 120px; }
.gallery.real img { height: auto; display: block; object-fit: contain; }

/* ---------- Night Drive menus: arcade cabinet look ---------- */
.arcade { --px: "Press Start 2P", "JetBrains Mono", monospace; --neon: #ff3c8e; --cyan: #25e8ff; --lime: #2bd96b; --sun: #ffe46b; }
.arc-panel { background: radial-gradient(ellipse at center, rgba(7, 4, 15, .45), rgba(7, 4, 15, .9)); }
.arc-panel::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }
.arc-card {
  position: relative; border-radius: 0; background: #0b0618; border: 3px solid var(--neon);
  box-shadow: 0 0 0 3px #07040f, 0 0 0 6px var(--cyan), 0 0 36px rgba(255, 60, 142, .45), inset 0 0 40px rgba(255, 60, 142, .12);
  padding: clamp(20px, 3vw, 30px); gap: 16px;
}
.arc-side { border-color: var(--cyan); box-shadow: 0 0 0 3px #07040f, 0 0 0 6px var(--neon), 0 0 36px rgba(37, 232, 255, .35), inset 0 0 40px rgba(37, 232, 255, .1); }
.arc-kick, .arc-side h3, .arc-target, .arc-btn, .arc-blink, .arc-board li, .arc-chip, .arc-ak summary { font-family: var(--px); text-transform: uppercase; letter-spacing: 0; }
.arc-kick { font-size: 10px; line-height: 1.6; color: var(--lime); text-shadow: 0 0 8px rgba(43, 217, 107, .7); }
.arc-h { font-family: var(--px); font-weight: 400; font-stretch: normal; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.12; letter-spacing: 0; filter: drop-shadow(4px 4px 0 #3b0f5e) drop-shadow(0 0 14px rgba(255, 60, 142, .5)); }
.arc-p { font: 400 14px/1.6 var(--f-mono); color: #d8d2f5; }
.arc-keys { font-size: 12px; line-height: 1.6; }
.arc-target { font-size: 10px; line-height: 1.8; color: var(--sun); }
.arc-target b { color: var(--lime); }
.arc-side h3 { font-size: 13px; color: var(--sun); text-align: center; text-shadow: 0 0 10px rgba(255, 228, 107, .6); }
.arc-btn { border-radius: 0; font-size: 11px; line-height: 1.4; padding: 12px 16px; box-shadow: 4px 4px 0 #04140a, inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35); transition: transform .06s; }
.arc-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #04140a, inset -3px -3px 0 rgba(0, 0, 0, .25); }
.arc-btn.big { font-size: 13px; padding: 16px 20px; }
.arc-btn.ghost { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 4px 4px 0 #04140a; }
.arc-blink { margin: 0; font-size: 10px; color: var(--cyan); text-shadow: 0 0 8px rgba(37, 232, 255, .8); animation: arcBlink 1s steps(1) infinite; }
@keyframes arcBlink { 50% { opacity: 0; } }
.arc-board { gap: 2px; }
.arc-board li { font-size: 10px; line-height: 1.6; border-radius: 0; background: transparent; padding: 8px 4px; border-bottom: 2px dotted rgba(255, 255, 255, .14); grid-template-columns: 3.4em 1fr auto; }
.arc-board li:nth-child(1) span:first-child { color: var(--sun); }
.arc-board li:nth-child(2) span:first-child { color: #c9c3e6; }
.arc-board li:nth-child(3) span:first-child { color: #ff9a5a; }
.arc-board li b { font-weight: 400; }
.arc-board li i { border-radius: 0; font-size: 8px; padding: 3px 5px; }
.arc-board li.ak { background: rgba(43, 217, 107, .1); box-shadow: none; border-bottom-color: var(--lime); }
.arc-board li.me { box-shadow: none; color: var(--neon); }
.arc-save input, .arc-login input { border-radius: 0; border: 2px solid rgba(255, 255, 255, .3); background: #07040f; font: 400 11px/1.4 var(--px); }
.arc-save input:focus, .arc-login input:focus { outline: none; border-color: var(--cyan); }
.arc-ak summary { font-size: 9px; line-height: 1.8; }
.arc-msg { font-size: 12px; }
.arc-chip { border-radius: 0; font-size: 9px; line-height: 1.4; padding: 10px 12px; }
.arc-vol span { font-size: 9px; }
@media (prefers-reduced-motion: reduce) { .arc-blink { animation: none; } }
/* keep the menus on screen: big scores shrink to fit their card, and short screens get a tighter board */
.arc-card { container-type: inline-size; max-width: 100%; }
.arc-panel { align-content: safe center; padding: 70px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.arc-h.arc-score { font-size: min(60px, 11.5cqi); white-space: nowrap; }
.arc-save input { min-width: 0; flex: 1 1 8rem; }
@media (max-height: 800px) {
  .arc-panel { padding-top: 62px; padding-bottom: 14px; gap: 16px; }
  .arc-card { padding: 16px 20px; gap: 10px; }
  .arc-board li { padding: 4px; }
  .arc-side h3 { margin-bottom: 2px; }
}
@media (max-width: 700px) {
  .arc-panel { gap: 18px; }
  .arc-board li { padding: 5px 2px; font-size: 9px; grid-template-columns: 3.2em 1fr auto; gap: 6px; }
  .arc-h { font-size: min(44px, 11.5cqi); }
}
.gate-credit { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); margin: 0; color: var(--muted); font-size: var(--s-1); }
.gate-credit a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* ---------- make it obvious the site is scrolled, not clicked ---------- */
.scroll-cue { position: absolute; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); pointer-events: auto;
  display: grid; justify-items: center; gap: 10px; text-decoration: none; color: var(--fg); text-align: center;
  opacity: calc(1 - var(--p, 0) * 14); transition: transform .4s var(--ease); }
.scroll-cue .sc-text { font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scroll-cue .sc-text b { color: var(--fg); font-weight: 500; }
.scroll-cue .sc-touch { display: none; }
@media (hover: none) { .scroll-cue .sc-touch { display: inline; } .scroll-cue .sc-mouse { display: none; } }
.sc-mouse { width: 26px; height: 42px; border: 2px solid var(--fg); border-radius: 14px; position: relative; }
.sc-mouse i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scWheel 1.6s var(--ease) infinite; }
@keyframes scWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.sc-arrows { display: grid; justify-items: center; gap: 0; }
.sc-arrows i { width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin-top: -4px; animation: scArrow 1.6s ease-in-out infinite; }
.sc-arrows i:nth-child(2) { animation-delay: .2s; }
@keyframes scArrow { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.scroll-cue.nudge { animation: scNudge 1.2s var(--ease) 2; }
@keyframes scNudge { 0%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(14px); } }
.scroll-cue:hover .sc-text b, .scroll-cue:focus-visible .sc-text b { color: var(--accent); }
/* thin bar under the header: how far through the story you are */
.top-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.top-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
/* shown when someone jumps ahead with the menu */
.story-tip { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90;
  width: min(30rem, calc(100% - 32px)); display: grid; gap: 12px; padding: 16px 18px; border-radius: 16px;
  background: var(--fg); color: var(--bg); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: tipIn .5s var(--ease); }
.story-tip p { margin: 0; line-height: 1.45; }
.story-tip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.story-tip .chip { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.story-tip .chip:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, 16px); } }
@media (prefers-reduced-motion: reduce) { .sc-mouse i, .sc-arrows i, .scroll-cue.nudge, .story-tip { animation: none; } }
.story-tip[hidden] { display: none; }
