/* ==========================================================================
   OKWORX · Media Productions
   Cinema black · rec red · calibration amber · paper-white lab.
   Type: Bodoni Moda (the Didone "OK" of the logo) / Geist ("WORX") / Geist Mono (all technical data).
   ========================================================================== */

@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

:root {
  --ink: #080809;
  --ink-2: #0e0e11;
  --ink-3: #16161a;
  --ink-4: #1f1f24;
  --paper: #f4f4f0;
  --paper-2: #e8e7e0;
  --fg: var(--paper);
  --fg-2: rgba(244, 244, 240, 0.64);
  --fg-3: rgba(244, 244, 240, 0.4);
  --line: rgba(244, 244, 240, 0.1);
  --line-2: rgba(244, 244, 240, 0.2);
  --rec: #ff2a2a;
  --amber: #ffb000;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(16px, 4vw, 56px);
  --maxw: 1680px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Bodoni Moda's display cut (opsz 96) thins hairlines (the crossbar of 't', thin strokes of every letter) to almost
   nothing at headline sizes; its text cut keeps them sturdy. Set on every element with !important because each
   `font:` shorthand resets font-variation-settings. Fonts without an opsz axis (Geist, Geist Mono) ignore it. */
*, *::before, *::after { font-optical-sizing: none !important; font-variation-settings: 'opsz' 11 !important; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--rec); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-feature-settings: "tnum" 1, "zero" 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 8px 12px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ─────────────── Logo mark: OKWORX LOGO 6 used as a mask, so it takes the current text colour ─────────────── */
.mark { display: inline-flex; align-items: center; }
.mark-img {
  display: block; height: 1em; aspect-ratio: 5.948; background: currentColor;
  -webkit-mask: url("../img/okworx-wordmark.png") center / contain no-repeat;
          mask: url("../img/okworx-wordmark.png") center / contain no-repeat;
}

/* ─────────────── Buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .01em;
  border: 1px solid var(--line-2);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { border-color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-solid:hover { background: #fff; }
.btn-ghost { background: rgba(8, 8, 9, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-rec { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-rec-solid { background: var(--rec); border-color: var(--rec); color: #fff; }
.btn-rec-solid:hover { background: #ff4545; border-color: #ff4545; }
.btn-rec-solid .rec-dot { background: #fff; box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--rec); border-color: var(--rec); }

.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px rgba(255, 42, 42, .8); flex: none; animation: rec 1.6s steps(2, jump-none) infinite; display: inline-block; }
@keyframes rec { 50% { opacity: .25; } }

/* tiny EQ glyph */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; transition: height .2s; }
.is-playing .eq i { animation: eq .9s var(--ease-io) infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-delay: -.3s; }
.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
.is-playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }

/* ─────────────── Top bar ─────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar-h);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgba(8, 8, 9, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.bar .mark { font-size: 17px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 10px; font-size: 14px; color: var(--fg-2); border-radius: 6px; transition: color .2s; }
.nav a i { font: 400 10px/1 var(--mono); font-style: normal; letter-spacing: .06em; color: var(--fg-3); }
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav a.is-active i { color: var(--rec); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang button { font: 500 11px/1 var(--mono); letter-spacing: .08em; padding: 7px 9px; border-radius: 999px; color: var(--fg-3); }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--ink); }

/* Lab mode: bar flips to paper */
body.in-lab .bar.is-solid { background: rgba(244, 244, 240, .82); color: var(--ink); border-color: rgba(8, 8, 9, .1); }
body.in-lab .bar .nav a { color: rgba(8, 8, 9, .55); }
body.in-lab .bar .nav a:hover, body.in-lab .bar .nav a.is-active { color: var(--ink); }
body.in-lab .bar .nav a i { color: rgba(8, 8, 9, .35); }
body.in-lab .bar .lang { border-color: rgba(8, 8, 9, .2); }
body.in-lab .bar .lang button { color: rgba(8, 8, 9, .45); }
body.in-lab .bar .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
body.in-lab .bar .btn-rec { border-color: rgba(8, 8, 9, .25); }

/* ─────────────── 00 · Hero / slate ─────────────── */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate;
  /* letterbox to 2.39:1, kept within sane limits */
  --lb: clamp(0px, calc((100svh - 100vw / 2.39) / 2), 20svh);
  --lbt: max(var(--lb), calc(var(--bar-h) + 44px));
  --lbb: max(var(--lb), 76px);
}
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 8, 9, .72) 0%, rgba(8, 8, 9, .4) 36%, rgba(8, 8, 9, 0) 58%); }
@media (max-width: 900px) { .hero::before { background: linear-gradient(180deg, rgba(8, 8, 9, .2) 20%, rgba(8, 8, 9, .7) 70%); } }
.hero-grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.letterbox { position: absolute; left: 0; right: 0; background: #000; z-index: 1; transition: height 1.15s var(--ease-io); }
.lb-top { top: 0; height: 50%; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.lb-bot { bottom: 0; height: 50%; border-top: 1px solid rgba(255, 255, 255, .04); }
.hero.is-open .lb-top { height: var(--lbt); }
.hero.is-open .lb-bot { height: var(--lbb); }

.hero-frame {
  position: absolute; inset: 0; z-index: 2;
  display: grid; grid-template-rows: var(--lbt) 1fr var(--lbb);
  padding: 0 var(--gut);
  max-width: var(--maxw); margin: 0 auto;
}
.slate-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--fg-3); opacity: 0; transition: opacity 1s .9s; }
.hero.is-open .slate-row { opacity: 1; }
.slate-top { align-self: end; padding-bottom: 12px; }
.slate-bot { align-self: start; padding-top: 14px; }
.tc-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); }
.tc { color: var(--fg); min-width: 11ch; }
.readout { display: flex; gap: 22px; margin: 0; }
.readout div { display: flex; gap: 8px; }
.readout dt { color: var(--fg-3); }
.readout dd { margin: 0; color: var(--amber); }
.scroll-cue { color: var(--fg-2); }
.scroll-cue:hover { color: var(--fg); }

.hero-copy { align-self: center; max-width: 960px; padding: 24px 0; }
.eyebrow { color: var(--fg-2); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--rec); }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(50px, 8.6vw, 156px); line-height: .9; letter-spacing: -.035em; }
.ht-line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.12em; }
.ht-it { font-style: italic; font-weight: 500; padding-left: .55em; }
.ht-code { font-size: clamp(14px, 1.5vw, 22px); letter-spacing: .04em; text-transform: none; color: var(--amber); margin-top: 22px; padding-left: .2em; font-weight: 400; }
.ht-code::before { content: "› "; color: var(--fg-3); }
.caret { color: var(--rec); animation: rec 1s steps(2, jump-none) infinite; }
.hero-sub { max-width: 52ch; margin: 26px 0 0; color: var(--fg-2); font-size: clamp(15px, 1.15vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* intro choreography */
.hero .ht-line > span, .hero .ht-line { --d: 0s; }
.js .hero .ht-line { transform: translateY(105%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
.js .hero .ht-line:nth-child(2) { transition-delay: .12s; }
.js .hero .ht-line:nth-child(3) { transition-delay: .28s; }
.js .hero .eyebrow, .js .hero .hero-sub, .js .hero .hero-cta { opacity: 0; transform: translateY(14px); transition: opacity 1s .8s var(--ease), transform 1s .8s var(--ease); }
.js .hero.is-open .ht-line, .js .hero.is-open .eyebrow, .js .hero.is-open .hero-sub, .js .hero.is-open .hero-cta { transform: none; opacity: 1; }
.js .hero.is-open .ht-line { transition-delay: calc(.45s + var(--i, 0) * .1s); }

/* ─────────────── Sections ─────────────── */
.section { position: relative; padding: clamp(88px, 12vw, 180px) var(--gut); max-width: var(--maxw); margin: 0 auto; }
.sec-head { margin-bottom: clamp(40px, 6vw, 88px); }
.sec-head-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px 64px; align-items: end; }
.sec-idx { color: var(--fg-3); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.sec-idx::before { content: ""; width: 7px; height: 7px; background: var(--rec); border-radius: 50%; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 6.4vw, 112px); line-height: .92; letter-spacing: -.035em; }
.sec-title em { font-style: italic; font-weight: 500; color: var(--fg-2); }
.sec-lede { margin: 0; color: var(--fg-2); max-width: 54ch; font-size: clamp(15px, 1.15vw, 18px); }
.sec-head:not(.sec-head-row) .sec-lede { margin-top: 28px; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* chips / tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips button, .tabs button {
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2);
  display: inline-flex; gap: 8px; align-items: center; transition: all .25s var(--ease);
}
.chips button i, .tabs button i { font-style: normal; color: var(--fg-3); }
.chips button:hover, .tabs button:hover { color: var(--fg); border-color: var(--fg-2); }
.chips button[aria-selected="true"], .chips button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.chips button[aria-selected="true"] i, .chips button[aria-pressed="true"] i, .tabs button[aria-selected="true"] i { color: rgba(8, 8, 9, .5); }

/* ─────────────── 01 · Console ─────────────── */
.console {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.strip { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px 18px 18px; border-right: 1px solid var(--line); min-height: 560px; --f: .18; --lvl: 0; }
.strip:last-child { border-right: 0; }
.strip-head { display: flex; justify-content: space-between; align-items: flex-start; }
.strip-ch { font: 500 30px/1 var(--mono); letter-spacing: -.02em; color: var(--fg); }
.strip-knob { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a3a42, #121215 70%); border: 1px solid rgba(255, 255, 255, .08); position: relative; transform: rotate(calc(-135deg + var(--f) * 270deg)); transition: transform .5s var(--ease); }
.strip-knob::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 9px; margin-left: -1px; background: var(--amber); border-radius: 1px; }
.strip-name { font: 600 15px/1.2 var(--sans); letter-spacing: .01em; margin: 0; }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.strip-list li { font: 400 11.5px/1.3 var(--mono); letter-spacing: .03em; color: var(--fg-2); display: flex; gap: 8px; }
.strip-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); margin-top: .5em; flex: none; transition: background .3s; }
.strip.is-hot .strip-list li::before { background: var(--amber); }
.strip-io { margin-top: auto; display: grid; grid-template-columns: 14px 1fr; gap: 14px; height: 190px; }
.meter { display: flex; flex-direction: column-reverse; gap: 3px; }
.meter i { flex: 1; border-radius: 1px; background: rgba(255, 255, 255, .06); transition: background .08s; }
.meter i.on { background: #3ddc84; }
.meter i.on.warm { background: var(--amber); }
.meter i.on.hot { background: var(--rec); }
.fader { position: relative; touch-action: none; cursor: ns-resize; }
.fader::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; background: #050506; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.fader-scale { position: absolute; inset: 6px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.fader-scale i { height: 1px; width: 30%; background: var(--line-2); align-self: flex-end; }
.fader-scale i:nth-child(odd) { width: 18%; }
.fader-cap {
  position: absolute; left: 50%; width: 38px; height: 22px; margin-left: -19px; border-radius: 3px;
  bottom: calc(var(--f) * (100% - 22px));
  background: linear-gradient(180deg, #e9e9e4 0%, #bdbdb6 48%, #8f8f89 52%, #d6d6d0 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: bottom .6s var(--ease);
}
.fader-cap::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; margin-top: -1px; background: #1a1a1a; }
.strip.is-dragging .fader-cap { transition: none; }
.strip-scribble { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: #050506; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .05); }
.strip-scribble .mono { color: var(--amber); font-size: 10.5px; }
.strip-scribble a { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.strip-scribble a:hover { color: var(--fg); }
.strip.is-lab .strip-ch { color: var(--rec); }

/* ─────────────── 02 · Picture ─────────────── */
.films { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.film { grid-column: span 4; min-width: 0; }
.film.w-8 { grid-column: span 8; } .film.w-7 { grid-column: span 7; } .film.w-6 { grid-column: span 6; } .film.w-5 { grid-column: span 5; }
.film[hidden] { display: none; }
.film-btn { display: block; width: 100%; text-align: left; }
.frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-3); border-radius: 4px;
  --wipe: 0%;
  transition: --wipe .9s var(--ease-io);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.frame .log { filter: saturate(.38) contrast(.7) brightness(1.14) sepia(.08); }
.frame .grade { clip-path: inset(0 calc(100% - var(--wipe)) 0 0); filter: saturate(1.08) contrast(1.06); }
.frame .wipe { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 1px; background: var(--amber); box-shadow: 0 0 12px var(--amber); opacity: 0; transition: opacity .3s; z-index: 2; }
.frame .bars::before, .frame .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; transition: height .7s var(--ease-io); }
.frame .bars::before { top: 0; } .frame .bars::after { bottom: 0; }
.frame .hud { position: absolute; inset: 10px 12px; z-index: 4; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.hud-row { display: flex; justify-content: space-between; gap: 8px; }
.hud .mono { font-size: 10px; }
.hud .lut { color: var(--fg-2); transition: color .3s; }
.hud .tcl { opacity: 0; transition: opacity .3s; display: inline-flex; gap: 6px; align-items: center; }
.frame .play {
  position: absolute; left: 50%; top: 50%; z-index: 5; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(8, 8, 9, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35); transform: scale(.85); opacity: 0; transition: all .45s var(--ease);
}
.frame .play svg { width: 16px; height: 16px; margin-left: 3px; }
.film-btn:hover .frame, .film-btn:focus-visible .frame, .film.is-graded .frame { --wipe: 100%; }
.film-btn:hover .frame .wipe, .film-btn:focus-visible .frame .wipe { opacity: 1; }
.film-btn:hover .frame .bars::before, .film-btn:hover .frame .bars::after,
.film-btn:focus-visible .frame .bars::before, .film-btn:focus-visible .frame .bars::after { height: 11.5%; }
.film-btn:hover .frame img, .film-btn:focus-visible .frame img { transform: scale(1.035); }
.film-btn:hover .hud .lut { color: var(--amber); }
.film-btn:hover .hud .tcl, .film-btn:focus-visible .hud .tcl { opacity: 1; }
.film-btn:hover .play, .film-btn:focus-visible .play { opacity: 1; transform: none; }
.film-cap { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 2px 0; }
.film-client { color: var(--fg-3); }
.film-title { grid-column: 1; font: 500 clamp(19px, 1.6vw, 26px)/1.15 var(--serif); letter-spacing: -.015em; margin: 0; }
.film-meta { grid-row: 1 / span 2; grid-column: 2; align-self: start; color: var(--fg-3); text-align: right; }
.film.w-7 .film-title, .film.w-8 .film-title { font-size: clamp(22px, 2.2vw, 34px); }

/* ─────────────── 03 · Sound ─────────────── */
.sound-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.sound-side { position: sticky; top: calc(var(--bar-h) + 32px); }
.sound-side .sec-lede { margin-top: 28px; }
.scope { margin: 36px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #050506; overflow: hidden; }
.scope canvas { width: 100%; height: 200px; }
.scope figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--fg-2); }
.scope-now { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scope-meta { display: flex; gap: 14px; color: var(--fg-3); white-space: nowrap; }
.scope-meta [data-now-time] { color: var(--amber); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track button {
  width: 100%; display: grid; grid-template-columns: 3.2em 1fr auto 6.6em 3.4em; align-items: center; gap: 14px;
  padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: left; transition: background .2s, padding .3s var(--ease);
}
.track button:hover { background: rgba(255, 255, 255, .03); padding-left: 12px; }
.t-no { font: 400 12px/1 var(--mono); color: var(--fg-3); position: relative; height: 14px; display: flex; align-items: center; }
.t-no .eq { position: absolute; left: 0; opacity: 0; color: var(--amber); }
.t-title { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-client { color: var(--fg-3); white-space: nowrap; }
.t-kind { white-space: nowrap; justify-self: start; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--fg-2); }
.t-kind[data-k="theme"] { border-color: rgba(255, 176, 0, .35); color: var(--amber); }
.t-kind[data-k="vo"] { border-color: rgba(255, 42, 42, .4); color: #ff6b6b; }
.t-dur { font: 400 12px/1 var(--mono); color: var(--fg-3); text-align: right; }
.track.is-current .t-title { color: var(--amber); }
.track.is-current .t-no > span { opacity: 0; }
.track.is-current .t-no .eq { opacity: 1; }

/* ─────────────── 04 · Records ─────────────── */
.crate { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 36px); }
.rec { min-width: 0; position: relative; z-index: 0; }
.rec:hover, .rec.is-current { z-index: 3; }
.sleeve { position: relative; aspect-ratio: 1; isolation: isolate; }
.sleeve-btn { position: absolute; inset: 0; z-index: 2; border-radius: 3px; overflow: hidden; background: var(--ink-3); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); }
.sleeve-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.sleeve-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 40%); pointer-events: none; }
.sleeve-play { pointer-events: none; position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; z-index: 3; transform: scale(.8); opacity: 0; transition: all .35s var(--ease); }
.sleeve-play svg { width: 14px; height: 14px; }
.sleeve-play .i-pause { display: none; }
.rec.is-current .sleeve-play .i-play { display: none; }
.rec.is-current .sleeve-play .i-pause { display: block; }
.vinyl {
  position: absolute; inset: 4%; z-index: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--label, var(--rec)) 0 15%, #0b0b0c 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #111 0 1.2px, #1b1b1d 1.6px 2.6px),
    #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .7);
  transition: transform .9s var(--ease);
}
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, .08) 14%, transparent 20% 60%, rgba(255, 255, 255, .06) 64%, transparent 70%); }
.rec:hover .vinyl, .rec.is-current .vinyl { transform: translateX(28%); }
.rec.is-current.is-playing .vinyl { animation: spin 1.8s linear infinite; }
@keyframes spin { from { transform: translateX(28%) rotate(0); } to { transform: translateX(28%) rotate(360deg); } }
.rec:hover .sleeve-play, .rec.is-current .sleeve-play, .sleeve-btn:focus-visible + .sleeve-play { opacity: 1; transform: none; }
.rec-info { padding-top: 16px; }
.rec-artist { color: var(--fg-3); margin: 0; }
.rec-title { margin: 6px 0 0; font: 500 23px/1.12 var(--serif); letter-spacing: -.015em; }
.rec-meta { margin: 8px 0 0; color: var(--fg-3); display: flex; gap: 10px; }
.rec-meta b { font-weight: 400; color: var(--amber); }
.rec-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.rec-links a { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.rec-links a:hover { color: var(--fg); border-color: var(--fg); }
.rec details { margin-top: 12px; }
.rec summary { list-style: none; cursor: pointer; color: var(--fg-2); display: inline-flex; gap: 8px; }
.rec summary::-webkit-details-marker { display: none; }
.rec summary::after { content: "+"; color: var(--amber); }
.rec details[open] summary::after { content: "−"; }
.rec-tracks { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.rec-tracks button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg-2); text-align: left; }
.rec-tracks button:hover, .rec-tracks .is-current button { color: var(--amber); }
.rec-tracks span:last-child { font: 400 11px/1.4 var(--mono); color: var(--fg-3); }

/* ─────────────── 05 · Stage ─────────────── */
.patchbay { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.patchbay svg.cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.cables path { fill: none; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .6)); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease-io); }
.patchbay.is-in .cables path { stroke-dashoffset: 0; }
.mod { position: relative; padding: 26px 22px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.mod:last-child { border-right: 0; }
.mod-top { display: flex; justify-content: space-between; color: var(--fg-3); }
.mod-top .on { color: #3ddc84; display: inline-flex; gap: 6px; align-items: center; }
.mod-top .on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.mod-name { font: 500 clamp(28px, 2.6vw, 40px)/1 var(--serif); letter-spacing: -.02em; margin: 6px 0 0; }
.mod p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.jacks { display: flex; gap: 14px; margin-top: -6px; }
.jack { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #000 0 32%, #2b2b31 36% 60%, #3d3d44 64%); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .06); }
.jack-lbl { display: flex; gap: 14px; color: var(--fg-3); margin-top: auto; padding-top: 18px; }
.jack-lbl span { width: 22px; text-align: center; font-size: 8.5px; }

/* ─────────────── 06 · Lab (paper mode) ─────────────── */
.lab {
  max-width: none; color: var(--ink); background-color: var(--paper);
  --line: rgba(8, 8, 9, .1); --line-2: rgba(8, 8, 9, .2);
  background-image:
    linear-gradient(rgba(8, 8, 9, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 9, .055) 1px, transparent 1px),
    linear-gradient(rgba(8, 8, 9, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 9, .028) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
  padding-left: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  padding-right: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
}
.lab ::selection { background: var(--ink); color: var(--paper); }
.lab .sec-idx { color: rgba(8, 8, 9, .5); }
.lab .sec-title em { color: rgba(8, 8, 9, .5); }
.lab .sec-lede, .lab-copy p { color: rgba(8, 8, 9, .68); }
.ruler {
  position: absolute; left: 0; right: 0; top: 0; height: 28px; border-bottom: 1px solid rgba(8, 8, 9, .2);
  background:
    repeating-linear-gradient(90deg, rgba(8, 8, 9, .55) 0 1px, transparent 1px 80px) 0 0 / 100% 100%,
    repeating-linear-gradient(90deg, rgba(8, 8, 9, .35) 0 1px, transparent 1px 40px) 0 10px / 100% 18px no-repeat,
    repeating-linear-gradient(90deg, rgba(8, 8, 9, .22) 0 1px, transparent 1px 8px) 0 18px / 100% 10px no-repeat;
}
.lab-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.app { background: #fff; border: 1px solid rgba(8, 8, 9, .14); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(8, 8, 9, .35), 0 2px 0 rgba(8, 8, 9, .04); }
.app-bar { text-transform: none; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border-bottom: 1px solid rgba(8, 8, 9, .1); color: rgba(8, 8, 9, .6); font-size: 10.5px; }
.app-dots { display: flex; gap: 6px; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(8, 8, 9, .14); }
.app-dots i:first-child { background: var(--rec); }
.app-status { color: var(--ink); }
.app-stage { position: relative; aspect-ratio: 4 / 3; background: #efefea; overflow: hidden; }
.app-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .8s var(--ease), transform 1.2s var(--ease), clip-path .9s var(--ease-io); }
.app-view img.is-on { opacity: 1; transform: none; }
.app-view img[data-step="1"] { object-fit: contain; background: #e9e9e6; }
.app-view img[data-step="1"].is-on { clip-path: inset(5% 2% 8% 2%); transform: scale(1.06); }
.app-dims { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; }
.app[data-step="1"] .app-dims { opacity: 1; transition-delay: .6s; }
.dim { position: absolute; color: var(--rec); font-size: 10px; background: #fff; padding: 3px 6px; border: 1px solid rgba(255, 42, 42, .4); }
.dim-w { left: 50%; top: 3%; transform: translateX(-50%); }
.dim-h { right: 0.8%; top: 50%; transform: translateY(-50%) rotate(90deg); }
.app-dims::before, .app-dims::after { content: ""; position: absolute; border-color: rgba(255, 42, 42, .7); border-style: dashed; }
.app-dims::before { left: 4%; right: 4%; top: 5.4%; border-width: 1px 0 0; }
.app-dims::after { top: 7%; bottom: 7%; right: 2.8%; border-width: 0 0 0 1px; }
.app-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(8, 8, 9, .1); }
.app-steps button { padding: 12px 12px 14px; text-align: left; border-right: 1px solid rgba(8, 8, 9, .08); position: relative; color: rgba(8, 8, 9, .5); transition: color .25s, background .25s; }
.app-steps button:last-child { border-right: 0; }
.app-steps button b { display: block; font: 500 10px/1 var(--mono); letter-spacing: .08em; margin-bottom: 6px; }
.app-steps button span { font-size: 13px; line-height: 1.2; display: block; }
.app-steps button::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--rec); }
.app-steps button[aria-selected="true"] { color: var(--ink); background: rgba(8, 8, 9, .03); }
.app-steps button[aria-selected="true"]::after { width: 100%; transition: width var(--step-ms, 4200ms) linear; }
.app.is-paused .app-steps button[aria-selected="true"]::after { transition: none; }
.lab-product { margin: 0 0 14px; }
.lab-product .mono { font-size: 15px; color: var(--rec); letter-spacing: .02em; text-transform: none; }
.lab-copy p { margin: 0 0 26px; font-size: 17px; }
.spec { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid rgba(8, 8, 9, .14); }
.spec li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(8, 8, 9, .14); font-size: 14.5px; color: rgba(8, 8, 9, .72); }
.spec b { color: var(--ink); font-weight: 500; padding-top: 3px; }

/* ─────────────── 07 · Clients ─────────────── */
.clients { padding: clamp(72px, 9vw, 130px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-idx { padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto 34px; }
.marquee { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee-rev { animation-direction: reverse; animation-duration: 95s; margin-top: 10px; }
.clients:hover .marquee { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 500 clamp(34px, 5vw, 78px)/1.15 var(--serif); letter-spacing: -.025em; white-space: nowrap; padding: 0 .38em; display: flex; align-items: center; gap: .76em; color: var(--fg); }
.marquee li::after { content: ""; width: .16em; height: .16em; border-radius: 50%; background: var(--rec); flex: none; }
.marquee-rev li { font-style: italic; color: var(--fg-3); }
.marquee-rev li::after { background: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────────── 08 · Contact ─────────────── */
.contact-title { margin: 0 0 clamp(40px, 6vw, 80px); font: 500 clamp(64px, 13vw, 232px)/.86 var(--serif); letter-spacing: -.045em; }
.contact-title em { font-style: italic; font-weight: 500; color: var(--rec); }
.slate { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: #0b0b0d; overflow: hidden; max-width: 1080px; }
.clapper { height: 46px; background: repeating-linear-gradient(-55deg, var(--paper) 0 26px, var(--ink) 26px 52px); border-bottom: 1px solid var(--line-2); transform-origin: 0 100%; transition: transform .18s var(--ease-io); position: relative; }
.slate.is-clap .clapper { transform: rotate(-9deg); }
.slate-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.cell { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; min-width: 0; }
.cell:nth-child(3), .cell-wide:nth-child(4), .cell-wide:nth-child(5) { border-right: 0; }
.cell-wide:nth-child(4), .cell-wide:nth-child(5) { grid-column: 1 / -1; }
fieldset.cell { border-top: 0; border-left: 0; }
.cell > span, .cell legend { color: var(--fg-3); padding: 0; float: left; width: 100%; }
.cell input, .cell textarea { background: none; border: 0; padding: 0; font: 500 clamp(20px, 2vw, 28px)/1.2 var(--serif); color: var(--fg); outline: none; width: 100%; resize: vertical; }
.cell input::placeholder, .cell textarea::placeholder { color: rgba(244, 244, 240, .22); font-style: italic; }
.cell input[readonly] { font: 400 18px/1.6 var(--mono); color: var(--amber); }
.cell:focus-within { background: rgba(255, 255, 255, .02); }
.chips-slate { margin-top: 6px; clear: both; }
.slate-foot { display: flex; align-items: center; gap: 18px; padding: 16px 18px; flex-wrap: wrap; }
.slate-note { color: var(--fg-3); margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line); }
.contact-grid .k { color: var(--fg-3); margin: 0 0 12px; }
.big-link { font: 500 clamp(24px, 2.6vw, 40px)/1.1 var(--serif); letter-spacing: -.02em; border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; }
.big-link.sm { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; border: 0; display: inline-block; }
.big-link:hover { color: var(--rec); border-color: var(--rec); }
.socials { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials a { font-size: 17px; color: var(--fg-2); }
.socials a:hover { color: var(--fg); }

/* ─────────────── Footer ─────────────── */
.foot { padding: 40px var(--gut) 120px; max-width: var(--maxw); margin: 0 auto; overflow: hidden; }
.foot-mark { color: var(--ink-4); user-select: none; }
.foot-mark .mark-img { width: 100%; height: auto; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); padding-top: 26px; border-top: 1px solid var(--line); margin-top: 18px; }
.foot-row a { color: var(--fg-2); }
.foot-row a:hover { color: var(--fg); }

/* ─────────────── Sonic bar ─────────────── */
.sonic {
  position: fixed; right: var(--gut); bottom: 18px; z-index: 45;
  display: grid; grid-template-columns: 40px minmax(0, 200px) auto auto; align-items: center; gap: 12px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: rgba(14, 14, 17, .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  color: var(--paper); overflow: hidden;
  transition: transform .5s var(--ease), opacity .5s;
}
.sonic-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.sonic-play svg { width: 13px; height: 13px; }
.sonic-play .i-pause { display: none; }
.sonic.is-playing .sonic-play .i-play { display: none; }
.sonic.is-playing .sonic-play .i-pause { display: block; }
.sonic-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sonic-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sonic-sub { font-size: 9.5px; color: rgba(244, 244, 240, .45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sonic-meter { display: flex; align-items: flex-end; gap: 2px; height: 22px; }
.sonic-meter i { width: 3px; height: 8%; background: var(--amber); border-radius: 1px; opacity: .9; }
.sonic-meter i:nth-child(n+11) { background: var(--rec); }
.sonic-tc { font-size: 10.5px; color: rgba(244, 244, 240, .6); min-width: 5ch; text-align: right; }
.sonic-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.sonic-prog i { display: block; height: 100%; width: 0; background: var(--rec); }

/* ─────────────── Screening room ─────────────── */
.screen { width: min(1280px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #000; color: var(--fg); overflow: hidden; }
.screen::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(6px); }
.screen[open] { animation: screen-in .5s var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: scale(.97); } }
.screen-head { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.screen-head [data-screen-title] { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-tc { display: inline-flex; gap: 8px; align-items: center; }
.screen-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; }
.screen-close:hover { background: var(--fg); color: var(--ink); }
.screen-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.screen-frame iframe, .screen-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1180px) {
  .nav { display: none; }
  .bar-end { margin-left: auto; }
  .console { grid-template-columns: repeat(3, 1fr); }
  .strip:nth-child(3n) { border-right: 0; }
  .strip:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .patchbay { grid-template-columns: repeat(3, 1fr); }
  .mod:nth-child(3) { border-right: 0; }
  .mod:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .readout { display: none; }
}
@media (max-width: 900px) {
  .sec-head-row, .sound-grid, .lab-grid { grid-template-columns: 1fr; }
  .sound-side { position: static; }
  .films { grid-template-columns: repeat(2, 1fr); }
  .film, .film.w-5, .film.w-6, .film.w-7, .film.w-8 { grid-column: span 1; }
  .film.w-8, .film.w-7 { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid > :first-child { grid-column: 1 / -1; }
  .slate-grid { grid-template-columns: 1fr 1fr; }
  .cell:first-child { grid-column: 1 / -1; border-right: 0; }
  .cell:nth-child(2) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --bar-h: 56px; }
  .bar { gap: 12px; }
  .bar .mark { font-size: 15px; }
  .btn-rec span:last-child { display: none; }
  .btn-rec { width: 36px; padding: 0; justify-content: center; }
  .hero { --lbt: calc(var(--bar-h) + 38px); --lbb: 64px; min-height: 600px; }
  .slate-top > span:first-child { display: none; }
  .slate-top { justify-content: flex-end; }
  .slate-bot > span:first-child { font-size: 10px; }
  .ht-it { padding-left: .3em; }
  .hero-sub { font-size: 15px; }
  .console { grid-template-columns: repeat(2, 1fr); }
  .strip { min-height: 470px; padding: 18px 14px 14px; border-bottom: 1px solid var(--line); }
  .strip:nth-child(3n) { border-right: 1px solid var(--line); }
  .strip:nth-child(2n) { border-right: 0; }
  .strip:nth-last-child(-n+2) { border-bottom: 0; }
  .strip-io { height: 150px; }
  .films { grid-template-columns: 1fr; }
  .film.w-8, .film.w-7 { grid-column: auto; }
  .track button { grid-template-columns: 2.4em 1fr 3em; gap: 10px; }
  .scope canvas { height: 120px; }
  .scope { margin-top: 28px; }
  .t-client, .t-kind { display: none; }
  .crate { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .rec-title { font-size: 19px; }
  .rec-links { gap: 4px 10px; }
  .patchbay { grid-template-columns: 1fr; }
  .mod { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .mod:last-child { border-bottom: 0; }
  .patchbay svg.cables { display: none; }
  .app-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .app-steps button { padding: 10px 6px 12px; }
  .app-steps button span { font-size: 11px; }
  .spec li { grid-template-columns: 1fr; gap: 4px; }
  .slate-grid { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; }
  .cell:nth-child(n) { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .sonic { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  body.at-top .sonic:not(.is-playing) { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .foot { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gut); }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; }
}

/* ==========================================================================
   Lean landing (index.html): positioning, not inventory
   ========================================================================== */

/* sound bar only exists once something has played */
.sonic:not(.has-played) { transform: translateY(160%); opacity: 0; pointer-events: none; }

.text-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--fg); border-color: var(--fg); }

/* hero doors */
.door { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); transition: color .2s; }
.door b { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 500; font-size: 10px; color: var(--fg); }
.door:hover { color: var(--fg); }
.door:hover b { background: var(--rec); border-color: var(--rec); }

/* statement */
.statement { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(40px, 6vw, 80px); }
.statement-text { margin: 0; max-width: 24ch; font: 400 clamp(30px, 3.7vw, 62px)/1.16 var(--sans); letter-spacing: -.025em; color: rgba(244, 244, 240, .8); }
/* the two names stay in the house serif, at a sturdy optical size so no hairline disappears */
.statement-text em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; color: var(--fg); }

/* studio disciplines: four editorial rows */
.disciplines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.disc-row {
  display: grid; grid-template-columns: 4em minmax(0, 1.05fr) minmax(0, 1fr) 9em; gap: 24px; align-items: baseline;
  width: 100%; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-2); text-align: left;
  transition: padding .5s var(--ease), background .5s var(--ease);
}
.disc-no { color: var(--fg-3); }
.disc-name { font: 500 clamp(34px, 4.4vw, 72px)/1 var(--serif); letter-spacing: -.03em; transition: transform .6s var(--ease), color .3s; }
.disc-body { display: flex; flex-direction: column; gap: 12px; }
.disc-p { color: var(--fg-2); font-size: 16px; max-width: 46ch; }
.disc-c { color: var(--fg-3); font-size: 10.5px; }
.disc-go { justify-self: end; color: var(--fg-3); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.disc-go .eq { height: 10px; }
.disc-row:hover .disc-name { transform: translateX(14px); font-style: italic; }
.disc-row:hover .disc-go, .disc-row:hover .disc-no { color: var(--rec); }
.disc-row:focus-visible { outline-offset: -2px; }
.disc-row.is-playing .disc-go { color: var(--amber); }

.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); transition: opacity .35s var(--ease); will-change: transform; }
.peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .8s var(--ease); }
.peek.is-on { opacity: 1; }
.peek.is-on img { transform: none; }
body.in-lab .peek { display: none; }

/* selected work */
.films-selected { row-gap: clamp(28px, 3vw, 44px); }

/* studio → lab route */
.bridge .sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.route { border-top: 1px solid var(--line-2); }
.route-row { display: grid; grid-template-columns: 1fr 1.25fr 12em; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.route-head { padding: 14px 0; color: var(--fg-3); }
.route-head span:last-child { text-align: right; }
.route-head span:nth-child(2) { text-align: center; }
.r-a { font: 500 clamp(22px, 2.2vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; }
.r-b { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; color: var(--fg-2); font-size: 15px; }
.r-b > span { text-align: center; max-width: 30ch; }
.wire { height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line-2)) no-repeat; position: relative; }
.wire::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--rec); box-shadow: 0 0 10px var(--rec); transition: width .8s var(--ease-io); }
.r-b .wire:last-child::before { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--fg-3); border-right: 0; }
.route-row:hover .wire::after { width: 100%; }
.route-row:hover .r-b .wire:last-child::after { transition-delay: .6s; }
.r-c { text-align: right; font-size: 14px; color: var(--amber); text-transform: none; letter-spacing: .02em; }

/* lab: the two other products */
.lab-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 88px); }
.product { border-top: 2px solid var(--ink); padding-top: 22px; }
.product-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 18px; color: var(--ink); text-transform: none; font-size: 15px; letter-spacing: .02em; }
.product h3 { margin: 0 0 12px; font: 500 clamp(26px, 2.6vw, 40px)/1.05 var(--serif); letter-spacing: -.02em; }
.product p { margin: 0; color: rgba(8, 8, 9, .68); max-width: 48ch; }
.lab .text-link { color: var(--ink); border-color: rgba(8, 8, 9, .3); text-transform: none; letter-spacing: .02em; font-size: 13px; }
.lab .text-link:hover { color: var(--rec); border-color: var(--rec); }
.status { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(61, 220, 132, .14); color: #138a4a; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-private { background: rgba(8, 8, 9, .07); color: rgba(8, 8, 9, .6); }
.lab-product .status { margin-left: 10px; }

/* clients, typeset */
.clients-lean { padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(40px, 5vw, 64px); }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em 0; font: 500 clamp(26px, 3.2vw, 50px)/1.25 var(--serif); letter-spacing: -.02em; }
.names li { display: inline-flex; align-items: baseline; }
.names li:not(.names-break):not(:last-child)::after { content: "·"; color: var(--rec); margin: 0 .38em; }
.names li:not(.names-break):has(+ .names-break)::after { content: none; }
.names-break { flex-basis: 100%; font-size: 11px; color: var(--fg-3); margin: 34px 0 6px; }
.names-artist { color: var(--fg-3); font-style: italic; font-size: .72em; }
.names-artist:not(:last-child)::after { color: var(--amber) !important; }

.lean .contact { padding-top: clamp(64px, 8vw, 120px); }
.lean .contact-grid { margin-top: 0; }

@media (max-width: 900px) {
  .disc-row { grid-template-columns: 2.6em 1fr; gap: 10px 16px; }
  .disc-body { grid-column: 2; }
  .disc-go { grid-column: 2; justify-self: start; }
  .route-row { grid-template-columns: 1fr; gap: 10px; }
  .route-head { display: none; }
  .r-b { grid-template-columns: 24px auto 1fr; }
  .r-b > span { text-align: left; }
  .r-b .wire:first-child { display: none; }
  .r-b { grid-template-columns: auto 1fr; }
  .r-c { text-align: left; }
  .lab-more { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .statement-text { font-size: 28px; }
  .disc-p { font-size: 15px; }
}

/* ==========================================================================
   Lab · rugs.media story (port of the rugs.media landing's StoryScroll) + giyin.me + reai.media
   The stage keeps rugs.media's own paper and madder; the text around it is OKWORX.
   ========================================================================== */
.lab-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; padding-top: 26px; border-top: 2px solid var(--ink); }
.lab-intro p { margin: 0 0 24px; color: rgba(8, 8, 9, .7); font-size: 17px; max-width: 52ch; }
.lab-h { margin: 0; font: 500 clamp(34px, 4vw, 64px)/1 var(--serif); letter-spacing: -.03em; }
.lab .product-top { display: flex; gap: 12px; align-items: center; justify-content: flex-start; }
.status-soon { background: rgba(255, 176, 0, .18); color: #7a5200; }

.rugstory { margin-top: clamp(24px, 3vw, 48px); }
.rs-wide { display: none; }
.rs-phone { position: relative; height: 600svh; }
@media (min-width: 900px) {
  .rs-wide { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); position: relative; height: 500vh; }
  .rs-phone { display: none; }
}
.rs-stick { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: calc(var(--bar-h) + 16px) 0 24px; }
.rs-stage { position: relative; width: 100%; max-width: calc(100vh - var(--bar-h) - 48px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; background: #e9e1d3; border-radius: 6px; box-shadow: 0 40px 80px -48px rgba(8, 8, 9, .45); }
.rs-unit { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; transform-origin: 0 0; }
.rs-layer { position: absolute; inset: 0; }
.rs-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-fill { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
.rs-later { overflow: hidden; }
.rs-later-in { position: absolute; inset: 0; }
.rs-quad { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.rs-checker {
  background-color: #f7f5f1;
  background-image: linear-gradient(45deg, #e4dfd6 25%, transparent 25%, transparent 75%, #e4dfd6 75%), linear-gradient(45deg, #e4dfd6 25%, transparent 25%, transparent 75%, #e4dfd6 75%);
  background-position: 0 0, 12px 12px; background-size: 24px 24px;
}
.rs-measure, .rs-loupe svg { overflow: visible; }
.rs-loupe svg { position: absolute; inset: 0; }
.rs-lens { position: absolute; overflow: hidden; border-radius: 18px; background: #2a2522; box-shadow: 0 24px 40px -16px rgba(20, 12, 6, .6), 0 0 0 5px #fbf8f2; }
.rs-lens i { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(251, 248, 242, .7); }
.rs-lens-cap { position: absolute; margin: 0; font: 400 17px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #1d1b18; white-space: nowrap; }
.rs-field { position: absolute; display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2px solid #1d1b18; border-radius: 10px; background: #fbf8f2; font: 400 22px/1.2 var(--mono); color: #1d1b18; box-shadow: 0 6px 16px -8px rgba(20, 12, 6, .5); white-space: nowrap; }
.rs-typed { min-width: 2.6ch; text-align: right; font-variant-numeric: tabular-nums; }
.rs-caret { width: 2px; height: 24px; background: #9a3f28; animation: rec 1s steps(2, jump-none) infinite; }
.rs-cm { color: #8a8276; }
.rs-note { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(251, 248, 242, .92); color: #5b544a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; letter-spacing: .14em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.rs-steps { list-style: none; margin: 0; padding: 0; }
.rs-li { height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.rs-step { max-width: 28rem; opacity: .22; transition: opacity .5s var(--ease); }
.is-on > .rs-step { opacity: 1; }
.rs-label { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--rec); }
.rs-label i { width: 32px; height: 1px; background: currentColor; }
.rs-step h3 { margin: 20px 0 0; font: 500 clamp(32px, 3.2vw, 52px)/1.02 var(--serif); letter-spacing: -.02em; }
.rs-body { margin: 20px 0 0; color: rgba(8, 8, 9, .68); font-size: 15.5px; line-height: 1.6; }

.rs-pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: calc(var(--bar-h) + 12px) 0 28px; }
.rs-pin .rs-stage { max-width: min(100%, 50svh); }
.rs-phone-text { position: relative; min-height: 13.5rem; }
.rs-phone-list { list-style: none; margin: 0; padding: 0; }
.rs-pli { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s, transform .15s; }
.rs-pli.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s .15s, transform .3s .15s; }
.rs-pli .rs-step { opacity: 1; }
.rs-pli h3 { margin-top: 12px; font-size: 30px; }
.rs-pli .rs-body { margin-top: 10px; font-size: 15px; }
.rs-dots { position: absolute; right: 0; top: 0; display: flex; gap: 4px; }
.rs-dots i { width: 16px; height: 4px; border-radius: 2px; background: rgba(8, 8, 9, .15); }
.rs-dots i.is-on { background: var(--rec); }

/* giyin.me */
.giyin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px clamp(32px, 6vw, 112px); align-items: center; margin-top: clamp(72px, 9vw, 140px); padding-top: 26px; border-top: 2px solid var(--ink); }
.giyin-copy p { margin: 22px 0 26px; color: rgba(8, 8, 9, .7); font-size: 17px; max-width: 50ch; }
.giyin-copy .spec { margin-bottom: 24px; }
.looks { margin: 0; }
.looks-frame { position: relative; aspect-ratio: 1195 / 1600; overflow: hidden; border-radius: 6px; background: #ecebe6; box-shadow: 0 40px 80px -48px rgba(8, 8, 9, .45); }
.looks-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.looks-frame img.is-on { opacity: 1; transform: none; }
.looks-tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 10px; }
.looks-tabs { display: flex; gap: 8px; margin-top: 14px; }
.looks-tabs button { flex: 1; padding: 10px 12px; border: 1px solid rgba(8, 8, 9, .2); border-radius: 999px; font: 500 12px/1 var(--sans); color: rgba(8, 8, 9, .65); transition: all .25s var(--ease); }
.looks-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.looks-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.looks figcaption { margin-top: 12px; color: rgba(8, 8, 9, .5); text-transform: none; letter-spacing: .02em; }

/* reai.media */
.lab .reai { margin-top: clamp(72px, 9vw, 140px); max-width: 680px; }

@media (max-width: 900px) {
  .lab-intro, .giyin { grid-template-columns: 1fr; }
  .looks { max-width: 420px; }
}

/* giyin.me: the web product and the iOS app, each with its own status */
.product-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.product-links li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-links .text-link { margin-top: 0; }

/* Touch screens keep :hover after a finger passes over an element (iOS); undo the pointer-only effects there.
   Playing / current / graded states are left alone. */
@media (hover: none) {
  .disc-row:hover .disc-name { transform: none; font-style: normal; }
  .disc-row:hover .disc-no, .disc-row:not(.is-playing):hover .disc-go { color: var(--fg-3); }
  .route-row:hover .wire::after { width: 0; }
  .film:not(.is-graded) .film-btn:hover .frame { --wipe: 0%; }
  .film-btn:hover .frame .wipe, .film-btn:hover .play { opacity: 0; }
  .film-btn:hover .frame .bars::before, .film-btn:hover .frame .bars::after { height: 0; }
  .film-btn:hover .frame img { transform: none; }
  .rec:not(.is-current):hover .vinyl { transform: none; }
  .rec:not(.is-current):hover .sleeve-play { opacity: 0; transform: scale(.8); }
}
