/* ============================================================
   AbleReal — site styles (v1.0 site, second pass, November 2026)
   Colours are sampled from the Director panel: navy, the orange of
   Apply Shots, the teal of the Drone. Camera colours 1..10 match the
   Director's camera buttons. Edit the tokens below to retheme.
   ============================================================ */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #070b12;
  --bg-2: #0a1019;
  --panel: #111823;
  --panel-2: #172030;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #f2f5f8;
  --muted: #aeb8c4;
  --faint: #7c8796;

  --orange: #e8a33d;
  --orange-hi: #ffc266;
  --teal: #4fc9c4;
  --green: #35e6a0;      /* the Scope's shaped curve */
  --ink: #191410;        /* text on orange */

  --c-midi: #c9a0ff;
  --c-auto: #4fc9c4;
  --c-audio: #35e6a0;

  --cam1: #e7a3a8; --cam2: #c4a151; --cam3: #bfbb5d; --cam4: #88bb79; --cam5: #68b6b6;
  --cam6: #7995c4; --cam7: #a788c4; --cam8: #c488b6; --cam9: #e8a33d; --cam10: #4fc9c4;

  --wrap: 1200px;
  --gut: 24px;
  --r: 16px;
  --dock: 96px;          /* room the transport dock takes at the bottom */

  --f-display: "Barlow Semi Condensed", "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --beat: 0.46875s;      /* one beat at 128 BPM */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--f-mono); font-size: 0.88em; color: var(--orange-hi); background: rgba(232, 163, 61, 0.1); padding: 2px 6px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 em, h1 em { font-style: normal; background: linear-gradient(100deg, var(--orange-hi) 0%, var(--orange) 45%, var(--teal) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-size: 1.5rem; line-height: 1.15; }
.h-big { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 18px; }

::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 860px; }

.section { position: relative; padding: clamp(88px, 11vw, 160px) 0; }

.head { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head-left { margin-left: 0; text-align: left; }
.lede { margin-top: 20px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange);
}
.head .eyebrow::before, .lab .eyebrow::before, .price .eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7;
}

.fine { color: var(--faint); font-size: 0.86rem; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.sub-h { margin: clamp(56px, 7vw, 88px) 0 24px; font-size: 1.05rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.01em; line-height: 1;
  cursor: pointer; white-space: nowrap; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
  will-change: transform;
}
.btn-solid {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 194, 102, 0.5) inset, 0 10px 40px -8px rgba(232, 163, 61, 0.55);
}
.btn-solid::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-solid:hover { box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.8) inset, 0 14px 54px -6px rgba(232, 163, 61, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); background: rgba(79, 201, 196, 0.12); }
.btn-sm { padding: 10px 18px; font-size: 0.98rem; }
.btn-lg { padding: 16px 28px; font-size: 1.18rem; }
.btn-xl { padding: 20px 40px; font-size: 1.35rem; }
.btn[aria-disabled="true"] { background: rgba(255, 255, 255, 0.07); color: var(--muted); box-shadow: 0 0 0 1px var(--line-2) inset; cursor: default; }
.btn[aria-disabled="true"]::before { display: none; }

/* ---------- Progress, flash, nav ---------- */

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--teal)); }

.flash { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 42%, rgba(255, 226, 180, 0.95), rgba(255, 160, 60, 0.4) 55%, transparent 80%); }
.flash.is-on { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }

.nav { position: fixed; inset: 14px 0 auto 0; z-index: 60; pointer-events: none; transition: transform 0.45s var(--ease); }
.nav.is-hidden { transform: translateY(-150%); }
.nav-in {
  position: relative; pointer-events: auto;
  width: min(1180px, calc(100% - 28px)); height: 60px; margin: 0 auto; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 18px; border: 1px solid var(--line-2);
  background: rgba(7, 11, 18, 0.66); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 16px 50px -20px rgba(0, 0, 0, 0.8);
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 32px; height: 32px; flex: none; overflow: visible; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.bm-bar { transform-box: fill-box; transform-origin: 50% 50%; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { position: relative; color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after, .nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero: the film, unfaded, with a plate for the words ---------- */

.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background: var(--bg); overflow: hidden; }
.hero-film { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 35%; will-change: transform; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(7, 11, 18, 0.55), transparent); }

/* viewfinder corners */
.vf { position: absolute; z-index: 2; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, 0.8); pointer-events: none; }
.vf-tl { left: 26px; top: 96px; border-right: 0; border-bottom: 0; }
.vf-tr { right: 26px; top: 96px; border-left: 0; border-bottom: 0; }
.vf-bl { left: 26px; bottom: 104px; border-right: 0; border-top: 0; }
.vf-br { right: 26px; bottom: 104px; border-left: 0; border-top: 0; }

.hud {
  position: absolute; z-index: 2; top: 104px; margin: 0;
  display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 12px;
  background: rgba(7, 11, 18, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 245, 248, 0.86);
  font-variant-numeric: tabular-nums;
}
.hud-l { left: 66px; }
.hud-r { right: 66px; }
.hud-sec { color: var(--orange-hi); font-weight: 500; }
.meters { display: inline-flex; align-items: flex-end; gap: 5px; height: 20px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.meters i { position: relative; width: 6px; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.meters i b { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(var(--v, 0.05)); background: linear-gradient(0deg, var(--green), var(--orange-hi)); }
.meters i em { display: none; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse calc(var(--beat) * 2) ease-out infinite; flex: none; }
.dot-rec { background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f; }
@keyframes pulse { 0% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 0.55; } }

.hero-in { position: absolute; z-index: 3; left: 0; right: 0; bottom: 112px; padding: 0 66px; pointer-events: none; }
.plate {
  position: relative; pointer-events: auto; width: min(620px, 100%); padding: 32px 36px 28px; border-radius: 26px;
  background: rgba(7, 11, 18, 0.74); backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 110px -30px rgba(0, 0, 0, 0.9);
}
.plate::before { content: ""; position: absolute; left: 36px; right: 36px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--teal) 70%, transparent); }

.hero-eyebrow { color: var(--text); letter-spacing: 0.14em; margin-bottom: 18px; }
.hero-eyebrow .arrow { color: var(--orange); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); letter-spacing: 0.1em; }

.hero-title { font-size: clamp(2.2rem, min(4.3vw, 7.4vh), 4.1rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.02em; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-title .w > span { display: inline-block; transform: translateY(105%); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(0.2s + var(--i) * 0.055s); }
.hero-title em .w > span { background: linear-gradient(100deg, var(--orange-hi), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: none; } }

.hero-sub { margin: 18px 0 22px; font-size: clamp(0.98rem, 1.25vw, 1.1rem); color: #d5dce5; text-wrap: pretty; }
.hero-sub strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; background: var(--teal); transform: rotate(45deg); }

.plate { opacity: 0; animation: plate 1s var(--ease) 0.1s forwards; }
@keyframes plate { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
#hear.is-playing { border-color: var(--orange); background: rgba(232, 163, 61, 0.16); }

/* ---------- Transport dock ---------- */

.dock {
  position: fixed; z-index: 55; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(1060px, calc(100% - 24px)); height: 64px; padding: 0 10px;
  display: flex; align-items: center; gap: 16px;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: rgba(9, 14, 22, 0.8); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 70px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.dock.is-away { transform: translate(-50%, 140%); opacity: 0; }
.dock-play { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink); background: linear-gradient(180deg, var(--orange-hi), var(--orange)); transition: transform 0.2s var(--ease); }
.dock-play:hover { transform: scale(1.08); }
.dock-play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.6); animation: ring calc(var(--beat) * 4) ease-out infinite; }
.dock.is-playing .dock-play::after { animation: none; box-shadow: 0 0 0 calc(var(--k, 0) * 12px) rgba(232, 163, 61, calc(0.15 + var(--k, 0) * 0.35)); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.55); } 100% { box-shadow: 0 0 0 16px rgba(232, 163, 61, 0); } }
.dock-play .i-play { margin-left: 3px; }
.dock-play .i-pause, .dock.is-playing .dock-play .i-play { display: none; }
.dock.is-playing .dock-play .i-pause { display: block; }
.dock-read { flex: none; width: 168px; display: grid; gap: 1px; line-height: 1.15; overflow: hidden; }
.dock-read b { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; white-space: nowrap; }
.dock-read span { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dock-strip { position: relative; flex: 1; min-width: 0; height: 36px; display: flex; gap: 2px; border-radius: 9px; overflow: hidden; cursor: pointer; }
.dock-strip > span { position: relative; min-width: 0; height: 100%; background: color-mix(in srgb, var(--mc) 26%, #0c121c); border-bottom: 2px solid var(--mc); transition: background 0.25s; overflow: hidden; }
.dock-strip > span:hover { background: color-mix(in srgb, var(--mc) 46%, #0c121c); }
.dock-strip > span.is-on { background: color-mix(in srgb, var(--mc) 62%, #0c121c); }
.dock-strip > span em { position: absolute; left: 7px; top: 9px; font-style: normal; font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); white-space: nowrap; pointer-events: none; }
.dock-ph { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); pointer-events: none; will-change: transform; }
.dock-buy { flex: none; }
.dock.at-hero .dock-buy { display: none; }             /* the hero already has the button */

/* ---------- Stats ---------- */

.stats { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 24px; border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 16px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.9; background: linear-gradient(180deg, #fff, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; line-height: 1.35; max-width: 15ch; }

/* ---------- Reveal ---------- */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cards, glow, ring ---------- */

.card { position: relative; padding: 30px 28px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel), rgba(17, 24, 35, 0.55)); border: 1px solid var(--line); overflow: hidden; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card b { color: var(--text); font-weight: 600; }
[data-glow]::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 163, 61, 0.16), transparent 60%); }
[data-glow]:hover::before { opacity: 1; }
[data-glow] { transition: border-color 0.3s, transform 0.9s var(--ease) var(--d, 0s), opacity 0.9s var(--ease) var(--d, 0s); }
[data-glow]:hover { border-color: rgba(232, 163, 61, 0.35); }
.card-img { margin-top: 18px; border-radius: 8px; border: 1px solid var(--line); }
.card-img-device { max-width: 420px; width: 100%; }

/* a light that travels round the border */
.ring { position: relative; }
.ring::after {
  content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 58%, var(--orange) 72%, #fff 79%, var(--teal) 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }

/* ---------- Clips (screen recordings) ---------- */

.clip { position: relative; margin: 0; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 100px -40px #000; transform-style: preserve-3d; }
.clip-v { position: relative; background: #0a0f17; }
.clip-v video { width: 100%; height: auto; }
.clip figcaption { position: relative; z-index: 2; display: grid; gap: 3px; padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.clip figcaption b { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.15; }
.clip figcaption > span:last-child { color: var(--muted); font-size: 0.93rem; }
.clip-k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.clip-tall { box-shadow: 0 40px 100px -30px #000, 0 0 140px -50px rgba(232, 163, 61, 0.55); transition: transform 0.5s var(--ease), opacity 0.9s var(--ease); }

/* ---------- Workflow: Live → Sequencer → film ---------- */

.sweep { background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(232, 163, 61, 0.07), transparent 70%); }
.sweep .head { margin-bottom: 36px; }
.sweep-stage {
  position: relative; aspect-ratio: 1920 / 778; width: min(100%, max(520px, calc((100vh - 480px) * 2.468))); margin: 0 auto;
  border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 50px 130px -40px #000, 0 0 160px -60px rgba(79, 201, 196, 0.5);
  --wipe: 0; --film: 0; --dev: 1;
}
.sw { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.sw-seq { clip-path: inset(0 calc((1 - var(--wipe)) * 100%) 0 0); }
.sw-film { opacity: 0; clip-path: inset(calc((1 - var(--film)) * 1%) 0 calc((1 - var(--film)) * 88.4%) 0); object-position: 50% 50%; }
.sweep-stage.is-film .sw-film { opacity: 1; }
.sw-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--wipe) * 100%); width: 3px; margin-left: -1.5px; background: var(--orange-hi); box-shadow: 0 0 28px 5px rgba(232, 163, 61, 0.85); opacity: 0; transition: opacity 0.2s; }
.sweep-stage.is-wiping .sw-line { opacity: 1; }
.sw-lane { position: absolute; z-index: 2; left: 0.3%; right: 0.3%; top: 1%; height: 10.6%; border-radius: 6px; border: 2px solid var(--orange-hi); box-shadow: 0 0 34px rgba(232, 163, 61, 0.8), inset 0 0 24px rgba(232, 163, 61, 0.35); opacity: 0; transition: opacity 0.25s; }
.sweep-stage.is-lane .sw-lane { opacity: 1; }
.sw-ph { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); opacity: calc(0.9 - var(--film) * 3); pointer-events: none; }
.sw-device { position: absolute; z-index: 4; right: 2.5%; bottom: 6%; width: 54%; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 60px -10px rgba(232, 163, 61, 0.6); opacity: var(--dev); transform: translateY(calc((1 - var(--dev)) * 24px)) scale(calc(0.96 + var(--dev) * 0.04)); transform-origin: 100% 100%; }
.sw-tag { position: absolute; z-index: 5; left: 14px; top: 14px; padding: 6px 13px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 1rem; background: rgba(7, 11, 18, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.sweep-stage[data-view="live"] .sw-tag-live, .sweep-stage[data-view="seq"] .sw-tag-seq, .sweep-stage[data-view="film"] .sw-tag-film { opacity: 1; transform: none; }
.sw-tag-film { background: var(--orange); color: var(--ink); border-color: var(--orange); }

.sweep-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 30px auto 0; max-width: 1200px; }
.sweep-steps > li { position: relative; padding-top: 14px; opacity: 0.34; transition: opacity 0.4s; }
.sweep-steps > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-2); transition: background 0.4s; }
.sweep-steps > li.is-on::before { background: linear-gradient(90deg, var(--orange), var(--teal)); }
.sweep-steps > li.is-on, .sweep.is-free .sweep-steps > li { opacity: 1; }
.ss-n { display: block; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--orange); margin-bottom: 8px; }
.sweep-steps h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.sweep-steps p { color: var(--muted); font-size: 0.97rem; }
.sweep-steps p b { color: var(--text); font-weight: 600; }
.sweep-bar { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); }
.chip.c-midi, .pair-src.c-midi { color: var(--c-midi); border-color: color-mix(in srgb, var(--c-midi) 45%, transparent); }
.chip.c-auto, .pair-src.c-auto { color: var(--c-auto); border-color: color-mix(in srgb, var(--c-auto) 45%, transparent); }
.chip.c-audio, .pair-src.c-audio { color: var(--c-audio); border-color: color-mix(in srgb, var(--c-audio) 45%, transparent); }

.twoclick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tc { padding: 10px 18px; border-radius: 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; border: 1px solid rgba(232, 163, 61, 0.5); color: var(--orange); background: rgba(232, 163, 61, 0.06); transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
.tc.is-press { background: var(--orange); color: var(--ink); box-shadow: 0 0 40px -4px rgba(232, 163, 61, 0.9); transform: scale(0.96); }

/* ---------- Intensity: wipe compare ---------- */

.hook { background: var(--bg-2); border-block: 1px solid var(--line); }
.tiers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tier { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--faint); }
.tier.is-a { color: var(--text); border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
.tier.is-b { color: var(--ink); border-color: var(--orange); background: var(--orange); box-shadow: 0 0 34px -6px rgba(232, 163, 61, 0.8); }

.wipe-frame { max-width: 1080px; margin: 0 auto; }
.wipe { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --pos: 50%; }
.wipe-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wipe-b { clip-path: inset(0 0 0 var(--pos)); }
.wipe-tag { position: absolute; top: 18px; padding: 7px 14px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.15s; }
.wipe-tag-a { left: 18px; background: rgba(7, 11, 18, 0.65); border: 1px solid var(--line-2); }
.wipe-tag-b { right: 18px; background: var(--orange); color: var(--ink); }
.wipe-tag.is-cut { transform: scale(1.14); }
.wipe-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; cursor: ew-resize; }
.wipe-handle::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, 0.8); }
.wipe-grip { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--ease); }
.wipe:hover .wipe-grip, .wipe-handle:focus-visible .wipe-grip { transform: scale(1.12); }

.lanes { position: relative; margin-top: 18px; display: grid; gap: 8px; }
.lane { display: grid; grid-template-columns: 96px 1fr 170px; align-items: center; gap: 14px; }
.lane-name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; text-align: right; }
.lane[data-lane="b"] .lane-name { color: var(--orange); }
.lane-note { font-family: var(--f-mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }
.lane-track { position: relative; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; display: flex; gap: 3px; }
.lane-track .seg { height: 100%; border-radius: 4px; background: rgba(255, 255, 255, 0.16); transition: background 0.25s; }
.lane[data-lane="b"] .lane-track .seg { background: rgba(232, 163, 61, 0.3); }
.lane-track .seg.is-on { background: rgba(255, 255, 255, 0.75); }
.lane[data-lane="b"] .lane-track .seg.is-on { background: var(--orange); }
.lane-track .ph { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; }
.hook .fine { margin-top: 24px; }

/* ---------- Ticker ---------- */

.ticker { position: relative; height: 58px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 44px; padding-left: 44px; white-space: nowrap; animation: ticker 46s linear infinite; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track b { color: var(--text); font-weight: 500; }
.ticker-track i { font-style: normal; color: var(--orange); }
.ticker-track u { text-decoration: none; color: var(--teal); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Structure: song timeline ---------- */

.structure { background: radial-gradient(ellipse 60% 40% at 50% 100%, rgba(79, 201, 196, 0.07), transparent 70%); }
.song { padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.song-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.song-in { position: relative; min-width: 760px; padding-top: 4px; }
.song-flags, .song-blocks { display: flex; gap: 3px; }
.song-flags { align-items: flex-start; min-height: 64px; }
.song-flags > span { position: relative; padding: 0 0 10px 14px; min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; white-space: nowrap; color: var(--muted); transition: color 0.3s; }
.song-flags > span::before { content: ""; position: absolute; left: 0; top: 5px; border-left: 9px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.song-flags > span.lo { padding-top: 28px; }
.song-flags > span.lo::before { top: 33px; }
.song-flags > span.is-on { color: var(--text); }
.song-blocks > button { position: relative; height: 92px; min-width: 0; padding: 0; border: 0; border-radius: 8px; cursor: pointer; overflow: hidden; background: color-mix(in srgb, var(--mc) 22%, #0c121c); border-top: 3px solid var(--mc); transition: background 0.3s; }
.song-blocks > button:hover { background: color-mix(in srgb, var(--mc) 40%, #0c121c); }
.song-blocks > button span { position: absolute; left: 10px; bottom: 9px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mc); white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(0.5s + var(--i) * 0.12s); }
.song.is-in .song-blocks > button span { opacity: 1; transform: none; }
.song-blocks > button.is-on { background: color-mix(in srgb, var(--mc) 58%, #0c121c); }
.song-blocks > button.is-on span { color: #fff; }
.song-tempo { position: relative; height: 64px; margin-top: 10px; }
.song-tempo svg { width: 100%; height: 100%; overflow: visible; }
.song-tempo path.t-line { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease) 0.4s; }
.song.is-in .song-tempo path.t-line { stroke-dashoffset: 0; }
.song-tempo path.t-fill { fill: rgba(79, 201, 196, 0.1); stroke: none; }
.song-tempo-label { position: absolute; left: 0; top: 2px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.song-playhead { position: absolute; top: 26px; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.9); pointer-events: none; will-change: transform; }
.song-playhead span { position: absolute; bottom: 4px; left: 8px; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink); font-family: var(--f-mono); font-size: 0.7rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.song-playhead.is-flip span { left: auto; right: 8px; }

.song-detail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 10px; min-height: 2.4em; }
.sd-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.sd-arrow { color: var(--orange); font-size: 1.4rem; }
.sd-mood { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--mc, var(--teal)); transition: color 0.3s; }
.sd-text { color: var(--muted); }

/* ---------- Cameras ---------- */

.cams { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.cam { position: relative; aspect-ratio: 1 / 1.05; padding: 0; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--cc) 70%, transparent); background: #0b1018; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform 0.3s var(--ease), background 0.12s, box-shadow 0.3s; }
.cam b { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1; color: var(--cc); transition: color 0.12s; }
.cam span { font-family: var(--f-display); font-weight: 500; font-size: clamp(0.6rem, 1vw, 0.82rem); letter-spacing: 0.04em; color: var(--cc); transition: color 0.12s; }
.cam.is-on { background: var(--cc); transform: translateY(-8px); box-shadow: 0 24px 50px -14px var(--cc); }
.cam.is-on b, .cam.is-on span { color: #0b1018; }
.cam:nth-child(9) { margin-left: 8px; }
.cam-readout { margin: 26px 0 0; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; min-height: 3.6em; align-content: flex-start; }
.cam-readout b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cam-readout span { font-family: var(--f-mono); font-size: 0.86rem; color: var(--muted); }

.rules { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.rules-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.rules-head p { color: var(--muted); }
.rules-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.rules-list li { padding: 22px 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.rules-list b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.rules-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Director ---------- */

.director { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(64px, 8vw, 110px); }
.duo .clip-v { aspect-ratio: 1280 / 468; }
.duo .clip-v video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.director-in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; perspective: 1400px; }
.tweaks { display: grid; }
.tweaks li { display: grid; grid-template-columns: 124px 1fr; gap: 2px 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.tw-k { grid-row: span 2; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding-top: 6px; }
.tweaks b { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.tweaks li > span:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- Mapper ---------- */

.patch { position: relative; display: grid; grid-template-columns: minmax(0, 320px) 1fr minmax(0, 260px); align-items: center; padding: 34px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; }
.patch-col { position: relative; z-index: 1; display: grid; gap: 12px; }
.patch-src { grid-column: 1; gap: 22px; }
.patch-dst { grid-column: 3; }
.patch-label { margin: 0 0 4px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.patch-cables { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.patch-cables path { fill: none; stroke-linecap: round; transition: opacity 0.35s, stroke-width 0.35s; }
.patch-cables .cb { stroke-width: 1.5; opacity: 0.22; }
.patch-cables .cp { stroke-width: 3; stroke-dasharray: 3 97; animation: flow linear infinite; opacity: 0.9; }
.patch-cables g.is-dim .cb { opacity: 0.06; }
.patch-cables g.is-dim .cp { opacity: 0; }
.patch-cables g.is-hot .cb { opacity: 0.75; stroke-width: 2; }
@keyframes flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.node { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #0b1018; text-align: left; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
button.node { cursor: pointer; }
.node i { width: 10px; height: 10px; border-radius: 50%; background: var(--nc, var(--faint)); box-shadow: 0 0 12px var(--nc, transparent); grid-row: span 2; }
.node b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1; }
.node span { grid-column: 2; color: var(--faint); font-size: 0.82rem; }
.node[data-dst] i { grid-row: auto; }
.node[data-src="midi"] { --nc: var(--c-midi); }
.node[data-src="auto"] { --nc: var(--c-auto); }
.node[data-src="audio"] { --nc: var(--c-audio); }
.node.is-hot { border-color: var(--nc); box-shadow: 0 0 40px -10px var(--nc); transform: translateX(4px); }
.node[data-dst].is-hit { border-color: var(--hc); box-shadow: 0 0 30px -8px var(--hc); }
.node[data-dst].is-hit i { background: var(--hc); box-shadow: 0 0 12px var(--hc); }

/* the demo show: two stages drawn from the exported curves, three viewport captures */
.show { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.pair { position: relative; grid-column: span 2; padding: 14px 14px 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.pair-wide { grid-column: span 3; }
.pair-src { display: inline-block; margin: 16px 6px 8px; padding: 4px 11px; border: 1px solid; border-radius: 999px; font-family: var(--f-mono); font-size: 0.72rem; }
.pair h4 { margin: 0 6px; font-size: 1.5rem; }
.pair-how { display: block; margin: 8px 6px 0; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--faint); }
.viz { position: relative; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #1b2536, #05080d 70%); }
.pair-wide .viz { aspect-ratio: 21 / 9; }
.viz-clip video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

.viz-lasers { --g: 0; }
.viz-lasers i { position: absolute; left: 50%; top: -4%; width: 2px; height: 140%; transform-origin: 50% 0; transform: rotate(var(--a)); background: linear-gradient(180deg, #fff, var(--c-midi) 12%, transparent 92%); filter: drop-shadow(0 0 6px var(--c-midi)); opacity: calc(0.05 + var(--g) * 0.95); }
.viz-lasers::after { content: ""; position: absolute; left: 50%; top: -30px; width: 220px; height: 120px; margin-left: -110px; border-radius: 50%; background: var(--c-midi); filter: blur(40px); opacity: calc(var(--g) * 0.7); }

.viz-heads { --sw: 0deg; }
.viz-heads i { position: absolute; bottom: -6%; left: var(--x); width: 9%; height: 125%; margin-left: -4.5%; transform-origin: 50% 100%; transform: rotate(calc(var(--sw) * var(--dir))); background: linear-gradient(0deg, rgba(79, 201, 196, 0.8), transparent 85%); clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0); mix-blend-mode: screen; }

/* shaping lab */
.lab { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(53, 230, 160, 0.06), transparent 40%), var(--panel); }
.lab h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.lab-text > p { color: var(--muted); }
.lab-controls { display: grid; gap: 14px; margin: 26px 0 16px; }
.lab-controls label { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lab-controls output { color: var(--text); font-variant-numeric: tabular-nums; }
.lab-controls input { grid-column: 1 / -1; }
.seg { display: inline-flex; width: max-content; padding: 4px; border-radius: 10px; background: #0b1018; border: 1px solid var(--line-2); }
.seg button { padding: 8px 20px; border: 0; border-radius: 7px; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg button.is-on { background: var(--green); color: #04130c; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--green); border: 3px solid #04130c; box-shadow: 0 0 0 1px var(--green), 0 0 18px rgba(53, 230, 160, 0.6); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #04130c; box-shadow: 0 0 0 1px var(--green); }

.lab-view { position: relative; border-radius: 16px; background: #05080d; border: 1px solid var(--line); overflow: hidden; }
.lab-light { position: relative; height: 150px; background: radial-gradient(ellipse at 50% 130%, #151d2b, #05080d 70%); overflow: hidden; }
.lab-light span { position: absolute; left: 50%; top: -30%; width: 46%; height: 170%; margin-left: -23%; background: linear-gradient(180deg, #fff 0%, var(--c-audio) 30%, transparent 90%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); opacity: var(--lv, 0); filter: blur(2px); }
.lab-light::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 60%; height: 40px; margin-left: -30%; border-radius: 50%; background: var(--c-audio); filter: blur(22px); opacity: var(--lv, 0); }
#lab-canvas { width: 100%; height: auto; }
.lab-legend { display: flex; gap: 20px; margin: 0; padding: 10px 16px 14px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); }
.lab-legend span::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.lg-in { color: #8793a3; } .lg-out { color: var(--green); } .lg-gate { color: #d7dde5; }

/* ---------- Output ---------- */

.output { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.output-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; perspective: 1400px; }
.output .head { margin-bottom: 26px; }
.ticks li { position: relative; padding: 13px 0 13px 32px; border-top: 1px solid var(--line); color: var(--muted); }
.ticks li::before, .price-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

/* ---------- Film player ---------- */

.film { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 163, 61, 0.08), transparent 70%); }
.player { aspect-ratio: 16 / 9; border-radius: 22px; background: #000; border: 1px solid var(--line-2); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 160px -50px rgba(232, 163, 61, 0.55); }
.player > * { width: 100%; height: 100%; border-radius: 21px; display: block; border: 0; background: #000; }
.player-cover { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.5s; filter: brightness(0.78); }
.player-cover:hover img { transform: scale(1.03); filter: brightness(0.95); }
.player-play { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: linear-gradient(180deg, var(--orange-hi), var(--orange)); animation: ring2 calc(var(--beat) * 4) ease-out infinite; transition: transform 0.3s var(--ease); }
.player-play svg { margin-left: 5px; }
.player-cover:hover .player-play { transform: scale(1.08); }
@keyframes ring2 { 0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.55); } 100% { box-shadow: 0 0 0 34px rgba(232, 163, 61, 0); } }
.player-meta { position: absolute; right: 24px; top: 22px; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* ---------- By hand vs AbleReal ---------- */

.vs { border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 1.5fr); border-top: 1px solid var(--line); }
.vs-row:first-child { border-top: 0; }
.vs-row > * { padding: 20px 26px; }
.vs-row b { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.vs-row span:nth-child(2) { color: var(--faint); }
.vs-row span:nth-child(3) { position: relative; padding-left: 58px; color: var(--text); background: rgba(232, 163, 61, 0.07); border-left: 1px solid rgba(232, 163, 61, 0.28); }
.vs-row:not(.vs-head) span:nth-child(3)::before { content: ""; position: absolute; left: 28px; top: 28px; width: 12px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.vs-head > * { padding-block: 14px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.vs-head span:nth-child(3) { color: var(--orange); }
.vs-cost b, .vs-cost span { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.vs-cost span:nth-child(3) { color: var(--orange-hi); }
.vs-cost span:nth-child(3)::before { top: 34px !important; }

/* ---------- Included ---------- */

.box { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.box-a { grid-column: span 5; } .box-b { grid-column: span 7; } .box-c { grid-column: span 7; } .box-d { grid-column: span 5; }
.box-k { display: block; margin-bottom: 14px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.box h3 { font-size: 1.8rem; }
.docs { position: relative; z-index: 2; display: grid; gap: 2px; margin-top: 6px; }
.docs a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.98rem; transition: color 0.2s, padding 0.3s var(--ease); }
.docs a::after { content: "PDF ↗"; font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); }
.docs a:hover { color: var(--orange); padding-left: 8px; }

.reqs { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.req { padding: 30px 28px; border-radius: var(--r); border: 1px solid var(--line); }
.req h3 { margin-bottom: 14px; }
.req li { padding: 13px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.req li b { font-weight: 600; }
.req li span { color: var(--faint); font-size: 0.9rem; }
.req-note { background: linear-gradient(160deg, rgba(79, 201, 196, 0.1), transparent 60%); border-color: rgba(79, 201, 196, 0.3); }
.req-note p { color: var(--muted); }

/* ---------- Pricing, with stage beams behind ---------- */

.pricing { overflow: hidden; background: #04070c; border-block: 1px solid var(--line); isolation: isolate; }
.beams { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.price { position: relative; max-width: 700px; margin: 0 auto; padding: clamp(40px, 6vw, 68px) clamp(24px, 5vw, 64px); text-align: center; border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(9, 14, 22, 0.78); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 60px 140px -40px #000; }
.price h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.price-n { margin: 26px 0 28px; font-family: var(--f-display); font-weight: 700; font-size: clamp(5.5rem, 14vw, 9rem); line-height: 0.85; letter-spacing: -0.03em; }
.price-n sup { font-size: 0.4em; vertical-align: 0.9em; color: var(--orange); margin-right: 4px; }
.price-n span { display: block; margin-top: 14px; font-family: var(--f-mono); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.price-list { max-width: 430px; margin: 0 auto 34px; text-align: left; }
.price-list li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.98rem; }
.price-list li::before { top: 18px; }
.price .fine { margin-top: 18px; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 24px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); transition: color 0.2s; }
.faq-q:hover { color: var(--orange); }
.faq-q i { position: relative; flex: none; width: 18px; height: 18px; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: currentColor; transition: transform 0.35s var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.is-open .faq-q i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq-a > p { overflow: hidden; margin: 0; padding: 0 4px; color: var(--muted); max-width: 68ch; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > p { padding-bottom: 26px; }

/* ---------- Final CTA ---------- */

.final { position: relative; padding: clamp(110px, 15vw, 200px) 0; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.final-bg { position: absolute; inset: -8% 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 11, 18, 0.45) 50%, var(--bg) 100%), url("assets/img/og-image.jpg") center / cover no-repeat; will-change: transform; }
.final h2 { max-width: 16ch; margin: 0 auto 18px; font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.final p { color: var(--muted); font-size: 1.25rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */

.foot { background: #04070c; border-top: 1px solid var(--line); padding: 64px 0 var(--dock); font-size: 0.93rem; }
.foot-in { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.foot-brand p { margin: 14px 0 0; color: var(--faint); }
.foot-brand a[href^="mailto"] { color: var(--orange); }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols h4 { margin-bottom: 6px; font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.foot-cols a { color: var(--muted); transition: color 0.2s; }
.foot-cols a:hover { color: var(--text); }
.foot-legal { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8rem; }
.foot-legal p:last-child { max-width: 680px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .quad { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 20px; }
  .hud-l { display: none; }
}

@media (max-width: 900px) {
  :root { --gut: 20px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(7, 11, 18, 0.97); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s; }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.25rem; color: var(--text); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; padding: 15px; }
  .nav.is-hidden { transform: none; }

  .hero-in { padding: 0 20px; }
  .vf { display: none; }
  .hud-r { right: 20px; }

  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .sweep-stage { width: 100%; aspect-ratio: 16 / 10; }
  .sweep-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sweep-steps > li { opacity: 1; padding-top: 22px; }
  .sweep-bar { display: none; }
  .sw-device { width: 78%; }

  .rules, .director-in, .lab, .reqs, .output-in, .duo { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .box > * { grid-column: 1 / -1; }
  .show { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair, .pair-wide { grid-column: span 1; }
  .pair-wide .viz { aspect-ratio: 3 / 2; }
  .show > :last-child { grid-column: 1 / -1; }
  .show > :last-child .viz { aspect-ratio: 16 / 9; }

  .cams { grid-template-columns: repeat(5, 1fr); }
  .cam:nth-child(9) { margin-left: 0; }
  .lane { grid-template-columns: 76px 1fr; }
  .lane-note { display: none; }
  .patch { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); padding: 20px 16px; }
  .node { padding: 11px 12px; }
  .node b { font-size: 1.05rem; }
  .node span { display: none; }

  .dock-read { display: none; }
  .dock-buy-long { display: none; }
  .dock-strip > span em { display: none; }

  .vs-row { grid-template-columns: minmax(0, 1fr); }
  .vs-head { display: none; }
  .vs-row > * { padding: 6px 20px; }
  .vs-row b { padding-top: 18px; }
  .vs-row span:nth-child(2)::before { content: "By hand: "; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .vs-row span:nth-child(3) { padding: 12px 20px 16px 50px; border-left: 0; border-top: 1px solid rgba(232, 163, 61, 0.28); margin-top: 8px; }
  .vs-row:not(.vs-head) span:nth-child(3)::before { left: 20px; top: 21px; }
  .vs-cost span:nth-child(3)::before { top: 26px !important; }
}

@media (max-width: 760px) {
  /* film on top at full brightness, words underneath */
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; overflow: visible; background: var(--bg); }
  .hero-film { position: relative; inset: auto; height: 58vh; height: 58svh; min-height: 340px; }
  .hero-in { position: relative; bottom: auto; padding: 0 16px 28px; margin-top: -34px; }
  .plate { width: 100%; padding: 26px 22px 24px; background: rgba(9, 14, 22, 0.94); }
  .plate::before { left: 22px; right: 22px; }
  .hud-r { top: 88px; right: 14px; gap: 10px; padding: 8px 11px; font-size: 0.64rem; }
  #hud-bpm { display: none; }
  .hero-title { font-size: clamp(2.2rem, 10.4vw, 3rem); }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; }
  .quad, .rules-list { grid-template-columns: minmax(0, 1fr); }
  .show { gap: 12px; }
  .pair { padding: 10px 10px 16px; }
  .pair h4 { font-size: 1.12rem; }
  .pair-src { margin: 12px 2px 6px; font-size: 0.62rem; padding: 3px 8px; }
  .pair-how { margin: 6px 2px 0; font-size: 0.6rem; }
  .song { padding: 18px 16px; }
  .player, .player > * { border-radius: 14px; }
  .player-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .player-meta { display: none; }
  .wipe { border-radius: 14px; }
  .wipe-tag { top: 10px; font-size: 0.9rem; padding: 5px 11px; }
  .wipe-tag-a { left: 10px; } .wipe-tag-b { right: 10px; }
  .tweaks li { grid-template-columns: minmax(0, 1fr); }
  .tw-k { grid-row: auto; }
  .foot-cols { gap: 40px; }
  .dock { gap: 10px; height: 58px; border-radius: 18px; bottom: 10px; }
  .dock-play { width: 40px; height: 40px; }
  .clip figcaption b { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .w > span { transform: none; }
  .plate { opacity: 1; }
  .ticker-track { animation: none; }
  .sweep-steps > li { opacity: 1; }
}

/* ============================================================
   Third pass (new footage): film link, intensity pickers, camera view, lightbox
   ============================================================ */

.hero-link { display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 4px 0; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); cursor: pointer; color: var(--text); font-family: var(--f-body); font-size: 0.92rem; transition: color 0.2s, border-color 0.2s; }
.hero-link:hover { color: var(--orange-hi); border-color: var(--orange); }

.pick { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 28px; }
.pick-g { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.pick-g > span { padding: 0 10px 0 12px; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pick-g button { padding: 8px 15px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.pick-g button:hover { color: var(--text); }
.pick-g[data-side="a"] button.is-on { background: #fff; color: var(--ink); }
.pick-g[data-side="b"] button.is-on { background: var(--orange); color: var(--ink); box-shadow: 0 0 30px -6px rgba(232, 163, 61, 0.8); }

.cam-view { position: relative; max-width: 860px; margin: 28px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 50px 120px -40px #000; }
.cam-view img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cam-view .cam-readout { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; min-height: 0; justify-content: flex-start; padding: 44px 22px 16px; text-align: left; background: linear-gradient(0deg, rgba(7, 11, 18, 0.92), transparent); }
.cam-view .cam-readout span { color: #d5dce5; }
.cam-note { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(7, 11, 18, 0.7); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 245, 248, 0.86); }
.duo-money { margin: 20px auto 0; max-width: 860px; }
.duo-money .clip-v { aspect-ratio: 16 / 9; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 20px 28px; background: rgba(4, 7, 12, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lightbox[hidden] { display: none; }
.lightbox-frame { width: min(1280px, 100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 60px 160px -30px #000, 0 0 160px -60px rgba(232, 163, 61, 0.7); }
.lightbox-frame > * { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-x { position: absolute; top: 18px; right: 20px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); cursor: pointer; font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em; color: var(--text); }
.lightbox-x:hover { border-color: var(--orange); }

@media (max-width: 600px) {
  .pick-g button { padding: 7px 10px; font-size: 0.9rem; }
  .pick-g > span { padding: 0 4px 0 8px; }
  .cam-note { display: none; }
}

/* side-by-side lanes: one block per shot, in its camera's colour, with the camera number */
.lane-track { height: 30px; }
.lane-track .seg, .lane[data-lane="b"] .lane-track .seg { display: grid; place-items: center; background: color-mix(in srgb, var(--cc, #8793a3) 30%, #0c121c); border-bottom: 2px solid var(--cc, #8793a3); font-family: var(--f-display); font-weight: 600; font-size: 0.86rem; color: var(--cc, #8793a3); overflow: hidden; }
.lane-track .seg.is-on, .lane[data-lane="b"] .lane-track .seg.is-on { background: var(--cc, #fff); color: #0b1018; }
/* blocks sit at their exact time position; the 2px gap is drawn inside each block so a shared cut lines up across lanes */
.lane-track { display: block; }
.lane-track .seg, .lane[data-lane="b"] .lane-track .seg { position: absolute; top: 0; bottom: 0; height: auto; border-radius: 4px; box-shadow: inset 1px 0 0 var(--bg-2), inset -1px 0 0 var(--bg-2); }

/* ============================================================
   Founder's notes, 13 November: less empty space, ticker closes Structure, pictures in Included, BlackEye aside
   ============================================================ */
.section { padding: clamp(60px, 6.5vw, 100px) 0; }
.head { margin-bottom: clamp(28px, 3.4vw, 46px); }
.sweep .head { margin-bottom: 26px; }
.final { padding: clamp(84px, 10vw, 140px) 0; }
.rules { margin-top: clamp(44px, 5vw, 72px); }
.duo { margin-bottom: clamp(48px, 5.5vw, 76px); }
.sub-h, .lab { margin-top: clamp(44px, 5vw, 64px); }
.sub-h { margin-bottom: 20px; }

.structure { padding-bottom: 0; }
.structure .ticker { margin-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 0; }

.aside { max-width: 860px; margin: 20px auto 0; padding: 26px 28px; border-radius: var(--r); border: 1px solid rgba(79, 201, 196, 0.3); background: linear-gradient(160deg, rgba(79, 201, 196, 0.1), transparent 60%); }
.aside h3 { margin-bottom: 10px; }
.aside p { color: var(--muted); font-size: 0.98rem; }

.thumbs { position: relative; z-index: 2; display: grid; gap: 10px; margin-top: 20px; }
.thumbs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumbs-dev { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-items: end; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; border-radius: 8px; border: 1px solid var(--line-2); background: #0a0f17; }
.thumbs-dev img { aspect-ratio: auto; object-fit: contain; }
.box-c .thumbs img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
.thumbs figcaption { margin-top: 6px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ============================================================
   Launch pass, 24 November: phone tap targets and small labels, footer legal links, simple text pages
   ============================================================ */
.foot-links { margin-left: 10px; }
.foot-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .foot-cols div { gap: 2px; }
  .foot-cols a { padding: 8px 0; }                 /* 40 px tall: easy to hit with a thumb */
  .foot-cols h4 { margin-bottom: 4px; }
}
@media (max-width: 600px) {
  .pair-src { font-size: 0.68rem; }
  .pair-how { font-size: 0.68rem; }
  .hud-r { font-size: 0.68rem; }
}

/* privacy.html, terms.html, legal.html */
.page { max-width: 760px; margin: 0 auto; padding: 130px var(--gut) 90px; }
.page h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin-bottom: 10px; }
.page h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--muted); margin-bottom: 12px; }
.page ul { padding-left: 20px; list-style: disc; }
.page a { color: var(--orange-hi); text-decoration: underline; text-underline-offset: 3px; }
.page .fine { color: var(--faint); font-size: 0.86rem; }
.page-back { display: inline-block; margin-bottom: 34px; font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted) !important; text-decoration: none !important; }
