/* ==========================================================================
   RECORD — site stylesheet
   Concept: "On Air". Warm studio paper, ink type, one signal-red tally light.
   Display: Big Shoulders Display · Body: Instrument Sans · Labels: JetBrains Mono
   ========================================================================== */

:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --card: #fbf9f4;
  --ink: #15130f;
  --ink-2: #4b463d;
  --ink-3: #8a8274;
  --line: #d8d0bf;
  --rec: #e5321b;
  --rec-ink: #b8240f;
  --night: #121110;
  --night-2: #1c1a17;
  --night-line: #2e2b26;
  --night-text: #efe9dc;
  --night-soft: #a69f90;
  --ok: #2f7d4f;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 0 rgba(21, 19, 15, .04), 0 18px 40px -22px rgba(21, 19, 15, .35);
  --head-h: 76px;
  --glow-1: rgba(229, 50, 27, .20);
  --glow-2: rgba(255, 176, 64, .28);
  --glow-3: rgba(229, 50, 27, .12);
  --glow-4: rgba(255, 255, 255, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151310;
    --paper-2: #1d1a16;
    --card: #1f1c18;
    --ink: #f1ebdf;
    --ink-2: #c3bbab;
    --ink-3: #8f8778;
    --line: #34302a;
    --rec: #ff4a30;
    --rec-ink: #ff6a52;
    --night: #0c0b09;
    --night-2: #171512;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .8);
    --glow-1: rgba(255, 74, 48, .20);
    --glow-2: rgba(255, 150, 40, .12);
    --glow-3: rgba(255, 74, 48, .10);
    --glow-4: rgba(255, 255, 255, .03);
  }
}
:root[data-theme="dark"] {
  --paper: #151310; --paper-2: #1d1a16; --card: #1f1c18; --ink: #f1ebdf; --ink-2: #c3bbab;
  --ink-3: #8f8778; --line: #34302a; --rec: #ff4a30; --rec-ink: #ff6a52; --night: #0c0b09; --night-2: #171512;
  --glow-1: rgba(255, 74, 48, .20); --glow-2: rgba(255, 150, 40, .12); --glow-3: rgba(255, 74, 48, .10); --glow-4: rgba(255, 255, 255, .03);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; background: var(--paper-2); }
body {
  margin: 0;
  padding-top: var(--head-h);
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  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%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* radial glows: the page background, distinct from the solid header */
body::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 34% at 82% 18%, var(--glow-1), transparent 70%),
    radial-gradient(42% 40% at 12% 62%, var(--glow-2), transparent 70%),
    radial-gradient(30% 30% at 58% 92%, var(--glow-3), transparent 70%),
    radial-gradient(60% 50% at 40% 10%, var(--glow-4), transparent 75%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rec); color: #fff; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.display, h1, h2 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .9;
  margin: 0;
}
h2 { font-size: clamp(44px, 6.4vw, 92px); }
h3 { font: 600 22px/1.25 var(--f-body); margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 58ch; }
.mono, .label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label { color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; }
.label .tc { color: var(--rec); }
.red { color: var(--rec); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 999px; border: 1.5px solid var(--bg);
  background: var(--bg); color: var(--fg);
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.btn-rec { --bg: var(--rec); --fg: #fff; }
.btn-rec:hover { --bg: var(--rec-ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn .os { width: 18px; height: 18px; }
.btn small { font: 500 11px/1 var(--f-mono); letter-spacing: .06em; opacity: .75; text-transform: uppercase; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.btn-rec .dot { background: #fff; animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-head.scrolled { box-shadow: 0 10px 30px -18px rgba(21, 19, 15, .45); }
.head-row { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { --lockup: 42px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: block; flex: none; height: var(--lockup, 34px); aspect-ratio: 120 / 100;
  background: url("/assets/img/logo-camera.svg") no-repeat center / contain;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; height: var(--lockup); }
.brand-name { display: block; font: 800 31px/.82 var(--f-display); letter-spacing: .02em; }
.brand-by { display: block; margin-top: 3px; white-space: nowrap; font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--rec); }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.rec-clock { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font: 500 13px/1 var(--f-mono); letter-spacing: .06em; }
.rec-clock .dot { color: var(--rec); animation: blink 1.6s steps(2, start) infinite; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 14px; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; }

@media (max-width: 1180px) { .rec-clock { display: none; } }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-head.open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--head-h); left: 0; right: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-head.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
}
@media (max-width: 520px) {
  .head-right .btn { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero-grid > *, .replay-grid > *, .chapter > *, .faq-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: inherit; text-transform: none; line-height: 1; }
.hero h1 .kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 500 13px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.hero h1 .kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: blink 1.6s steps(2, start) infinite; }
.hero h1 .display {
  display: block; font-size: clamp(64px, 9.6vw, 148px); text-transform: uppercase; line-height: .86;
}
.hero h1 .display em { font-style: normal; color: var(--rec); }
.hero .lede { margin: 28px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin-top: 18px; color: var(--ink-3); font: 500 12px/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; }
.cta-note b { color: var(--ink); font-weight: 600; }

/* staged entrance */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- viewfinder demo ---------- */
.vf { position: relative; }
.vf-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg);
  background: var(--night); overflow: hidden; box-shadow: var(--shadow);
  isolation: isolate;
}
/* the "screen" being recorded */
.vf-screen { position: absolute; inset: 0; padding: 7% 7% 0; color: #e9e3d6; }
.vf-win {
  height: 100%; border-radius: 10px 10px 0 0; background: #24211c; border: 1px solid #36322b; border-bottom: 0;
  display: grid; grid-template-rows: 28px 1fr; overflow: hidden;
}
.vf-bar { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #36322b; }
.vf-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a453c; }
.vf-bar span { margin-left: 10px; font: 500 10px var(--f-mono); color: #8e8676; letter-spacing: .06em; }
.vf-body { display: grid; grid-template-columns: 30% 1fr; }
.vf-side { border-right: 1px solid #36322b; padding: 14px 12px; display: grid; gap: 9px; align-content: start; }
.vf-side b { height: 8px; border-radius: 4px; background: #3a362f; }
.vf-side b:nth-child(2) { background: var(--rec); width: 70%; }
.vf-side b:nth-child(4) { width: 60%; } .vf-side b:nth-child(5) { width: 80%; }
.vf-main { padding: 16px 18px; }
.vf-main h4 { margin: 0 0 4px; font: 700 clamp(14px, 1.7vw, 22px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.vf-main p { margin: 0 0 12px; font: 500 9px var(--f-mono); color: #8e8676; letter-spacing: .06em; }
.vf-chart { display: flex; align-items: flex-end; gap: 6%; height: 52%; padding-top: 6px; border-bottom: 1px solid #3a362f; }
.vf-chart span { flex: 1; background: #3d3830; border-radius: 3px 3px 0 0; height: var(--h); transform-origin: bottom; animation: grow 3.2s ease-in-out infinite alternate; }
.vf-chart span:nth-child(5) { background: var(--rec); }
.vf-chart span:nth-child(2n) { animation-delay: -1.1s; }
@keyframes grow { from { transform: scaleY(.72); } to { transform: scaleY(1); } }
.vf-cursor {
  position: absolute; width: 18px; height: 18px; z-index: 3; left: 46%; top: 52%;
  animation: cursor 7s ease-in-out infinite;
}
.vf-cursor::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: rgba(229, 50, 27, .22); animation: ping 1.4s ease-out infinite; }
@keyframes cursor { 0%,100% { transform: translate(0,0); } 30% { transform: translate(90px, 40px); } 60% { transform: translate(-60px, 70px); } }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* overlay chrome: brackets, rec, meters */
.vf-ui { position: absolute; inset: 0; pointer-events: none; z-index: 4; color: #fff; }
.vf-corner { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(255, 255, 255, .8); }
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.vf-rec {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); font: 500 11px var(--f-mono); letter-spacing: .08em;
}
.vf-rec .dot { color: var(--rec); width: 8px; height: 8px; animation: blink 1.2s steps(2, start) infinite; }
.vf-meter { position: absolute; left: 22px; bottom: 22px; display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.vf-meter span { width: 4px; background: #fff; border-radius: 2px; height: 30%; animation: meter .9s ease-in-out infinite alternate; }
.vf-meter span:nth-child(2) { animation-delay: -.2s; } .vf-meter span:nth-child(3) { animation-delay: -.5s; }
.vf-meter span:nth-child(4) { animation-delay: -.1s; } .vf-meter span:nth-child(5) { animation-delay: -.7s; }
@keyframes meter { to { height: 100%; } }

/* the camera bubble */
.bubble {
  --size: 34%;
  position: absolute; z-index: 5; right: 5%; bottom: 7%;
  width: var(--size); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 16px 34px -10px rgba(0, 0, 0, .7);
  transition: border-radius .45s cubic-bezier(.3, .8, .2, 1), aspect-ratio .45s cubic-bezier(.3, .8, .2, 1), width .45s;
  cursor: grab; touch-action: none; pointer-events: auto;
}
.bubble[data-shape="oval"] { aspect-ratio: 3 / 4; width: calc(var(--size) * .82); border-radius: 50% / 50%; }
.bubble[data-shape="rect"] { aspect-ratio: 4 / 3; width: calc(var(--size) * 1.18); border-radius: 18px; }
.bubble.dragging { cursor: grabbing; transition: none; }
.bubble-bg { position: absolute; inset: -12%; background-size: cover; background-position: center; transition: filter .4s, opacity .4s; }
.bubble[data-bg="blur"] .bubble-bg { filter: blur(9px) saturate(1.1); }
.bubble-person { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble-person .hair { fill: #2a1f18; }
.bubble-person .skin { fill: #c9906b; }
.bubble-person .shirt { fill: #2f3b4a; }
.bubble-person .collar { fill: #e9e3d6; }
.bubble-tag {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
  font: 500 9px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}

/* demo controls */
.vf-controls {
  margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; display: grid; gap: 12px;
}
.ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctl > .label { width: 92px; flex: none; }
.ctl > .scenes { flex: 1 1 0; min-width: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button {
  border: 0; background: none; color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  font: 600 13px/1 var(--f-body); cursor: pointer; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.scenes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.scenes::-webkit-scrollbar { display: none; }
.scenes button {
  flex: none; width: 52px; height: 32px; border-radius: 7px; border: 2px solid transparent; padding: 0;
  background-size: cover; background-position: center; cursor: pointer; transition: transform .15s, border-color .15s;
}
.scenes button:hover { transform: translateY(-2px); }
.scenes button[aria-pressed="true"] { border-color: var(--rec); }
.vf-caption { margin-top: 10px; font: 500 11px/1.5 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
.lic { display: inline-block; padding: 2px 7px; border-radius: 999px; border: 1px solid currentColor; font: 600 10px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rec); vertical-align: middle; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- facts ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: 22px; padding: 16px 22px;
  font: 600 clamp(20px, 2.4vw, 30px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.ticker span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .label { margin-bottom: 18px; }
.section-head .lede { margin: 0; justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

.night { background: var(--night); color: var(--night-text); }
.night .lede { color: var(--night-soft); }
.night .label { color: var(--night-soft); }
.night .btn-ghost { --fg: var(--night-text); border-color: var(--night-line); }
.night .btn-ghost:hover { border-color: var(--night-text); }

/* capture modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.mode { padding: 28px 24px 30px; border-right: 1px solid var(--line); }
.mode:last-child { border-right: 0; }
.mode-ico { height: 74px; margin-bottom: 20px; display: flex; align-items: center; }
.mode-ico svg { height: 100%; width: auto; }
.mode p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr 1fr; } .mode:nth-child(2) { border-right: 0; } .mode:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } .mode { border-right: 0; border-bottom: 1px solid var(--line); } .mode:last-child { border-bottom: 0; } }

/* chapters (feature rows) */
.chapter { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.chapter:nth-child(even) .chapter-media { order: -1; }
.chapter h3 { font: 800 clamp(36px, 4.4vw, 60px)/.92 var(--f-display); text-transform: uppercase; margin: 16px 0 18px; }
.chapter p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 2px; background: var(--rec); }
.chapter-media { position: relative; }
.shot {
  border-radius: var(--r-lg); overflow: hidden; background: var(--night); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: auto; }
.shot-crop { aspect-ratio: 4 / 3.2; }
.shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top left); }
.shot-note { margin-top: 10px; font: 500 11px/1.5 var(--f-mono); color: var(--ink-3); letter-spacing: .04em; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-child(even) .chapter-media { order: 0; } }

/* scene wall */
.scene-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scene-wall figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.scene-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.scene-wall figure:hover img { transform: scale(1.06); }
.scene-wall figcaption { position: absolute; left: 8px; bottom: 6px; color: #fff; font: 500 10px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.7); }

/* audio balance */
.mix { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 22px; box-shadow: var(--shadow); }
.mix-row { display: grid; grid-template-columns: 120px 1fr 52px; gap: 14px; align-items: center; }
.mix-bar { height: 12px; border-radius: 999px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.mix-bar i { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 999px; animation: lvl 1.8s ease-in-out infinite alternate; }
.mix-row.voice .mix-bar i { background: var(--rec); animation-duration: 1.1s; }
@keyframes lvl { from { width: calc(var(--w) * .7); } to { width: var(--w); } }
.mix-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.mix-modes span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px var(--f-mono); letter-spacing: .04em; }
.mix-modes span.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* instant replay */
.replay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.buffer { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 28px; }
.buffer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.buffer-head .mono { color: var(--night-soft); }
.buffer-track { position: relative; height: 96px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(90deg, #26231f 0 2px, transparent 2px 12px); border: 1px solid var(--night-line); }
.buffer-fill {
  position: absolute; inset: 0 0 0 auto; width: 100%;
  background: linear-gradient(90deg, rgba(229,50,27,0) 0%, rgba(229,50,27,.25) 40%, rgba(229,50,27,.55));
  transform-origin: right;
}
.buffer-wave { position: absolute; inset: 18px 0; display: flex; align-items: center; gap: 3px; animation: scroll 6s linear infinite; width: 200%; }
.buffer-wave i { flex: 1; background: rgba(239, 233, 220, .55); border-radius: 2px; height: var(--h); }
@keyframes scroll { to { transform: translateX(-50%); } }
.buffer-now { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: var(--rec); box-shadow: 0 0 14px var(--rec); }
.buffer-scale { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px var(--f-mono); color: var(--night-soft); }
.buffer-actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.kbd { display: inline-flex; gap: 6px; }
.kbd kbd {
  font: 600 13px/1 var(--f-mono); padding: 9px 11px; border-radius: 8px; background: #2a2723; color: var(--night-text);
  border: 1px solid #3a362f; box-shadow: 0 3px 0 #0a0908;
}
.kbd.hit kbd { transform: translateY(2px); box-shadow: 0 1px 0 #0a0908; background: var(--rec); border-color: var(--rec); }
.saved { opacity: 0; transform: translateY(6px); transition: .35s; font: 500 12px var(--f-mono); color: #7ad19b; letter-spacing: .04em; }
.saved.show { opacity: 1; transform: none; }
.lengths { display: flex; gap: 8px; }
.lengths button { background: none; border: 1px solid var(--night-line); color: var(--night-soft); border-radius: 999px; padding: 6px 12px; font: 500 12px var(--f-mono); cursor: pointer; }
.lengths button[aria-pressed="true"] { border-color: var(--night-text); color: var(--night-text); }
.no-gpu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 36px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--r); overflow: hidden; }
.no-gpu div { background: var(--night); padding: 18px; }
.no-gpu b { display: block; font: 800 28px/1 var(--f-display); text-transform: uppercase; margin-bottom: 6px; }
.no-gpu span { color: var(--night-soft); font-size: 14px; }
@media (max-width: 860px) { .replay-grid { grid-template-columns: 1fr; } .no-gpu { grid-template-columns: 1fr; } }

/* library */
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lib-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.lib-card .big { font: 800 64px/.9 var(--f-display); text-transform: uppercase; margin: 14px 0 12px; }
.lib-card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.trim { position: relative; height: 46px; margin-top: 18px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 18px, var(--line) 18px 19px); border: 1px solid var(--line); }
.trim::before { content: ""; position: absolute; top: -2px; bottom: -2px; left: 22%; right: 30%; border: 2px solid var(--rec); border-radius: 6px; border-inline-width: 7px; }
.formats { display: flex; gap: 8px; margin-top: 18px; }
.formats span { flex: 1; text-align: center; padding: 12px 0; border-radius: 8px; border: 1px solid var(--line); font: 600 13px var(--f-mono); }
.formats span:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.res { display: flex; align-items: flex-end; gap: 6px; margin-top: 18px; height: 46px; }
.res span { border: 1.5px solid var(--ink); border-radius: 4px; font: 600 10px var(--f-mono); display: grid; place-items: center; }
.res span:nth-child(1) { width: 40px; height: 22px; } .res span:nth-child(2) { width: 54px; height: 30px; }
.res span:nth-child(3) { width: 68px; height: 38px; } .res span:nth-child(4) { width: 82px; height: 46px; background: var(--rec); color: #fff; border-color: var(--rec); }
@media (max-width: 860px) { .lib { grid-template-columns: 1fr; } }

/* use cases */
.uses { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.use { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; color: #fff; display: flex; align-items: flex-end; background: var(--night); }
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.use:hover img { transform: scale(1.04); }
.use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 9, 8, .88)); }
.use-body { position: relative; z-index: 1; padding: 26px; }
.use-body .label { color: rgba(255, 255, 255, .75); }
.use-body h3 { font: 800 40px/.95 var(--f-display); text-transform: uppercase; margin: 10px 0; }
.use-body p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; max-width: 42ch; }
.use.a { grid-column: span 7; } .use.b { grid-column: span 5; } .use.c { grid-column: span 5; } .use.d { grid-column: span 7; }
.use.text { background: var(--rec); align-items: stretch; }
.use.text::after { display: none; }
.use.text .use-body { display: flex; flex-direction: column; justify-content: space-between; }
.use.text pre { margin: 0 0 20px; font: 500 13px/1.7 var(--f-mono); color: rgba(255,255,255,.9); white-space: pre-wrap; }
@media (max-width: 860px) { .use.a, .use.b, .use.c, .use.d { grid-column: span 12; } .use { min-height: 340px; } }

/* free vs licence */
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.compare thead th { font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare tr:last-child td { border-bottom: 0; }
.yes::before { content: "●"; color: var(--ok); margin-right: 6px; }
.no { color: var(--ink-3); }
.cap { font: 500 14px/1.4 var(--f-body); color: var(--ink-2); }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }

/* pricing */
.price-card {
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--ink); color: var(--paper);
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.price-main { padding: clamp(28px, 5vw, 56px); }
.price-main .label { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.amount { display: flex; align-items: flex-start; gap: 6px; margin: 18px 0 8px; font-family: var(--f-display); font-weight: 900; }
.amount sup { font-size: 40px; margin-top: 16px; }
.amount b { font-size: clamp(110px, 14vw, 180px); line-height: .8; }
.amount small { align-self: flex-end; font: 500 14px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; opacity: .7; }
.price-main p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 44ch; }
.price-main .btn { --bg: var(--rec); --fg: #fff; margin-top: 10px; }
.price-side { padding: clamp(28px, 5vw, 56px); background: color-mix(in srgb, var(--paper) 7%, var(--ink)); }
.price-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.price-side li { display: flex; gap: 12px; align-items: baseline; }
.price-side li::before { content: "✓"; color: var(--rec); font-weight: 700; }
.packs { width: 100%; margin-top: 28px; border-collapse: collapse; }
.packs td { padding: 14px 0; border-bottom: 1px solid var(--line); }
.packs td:nth-child(2) { font-family: var(--f-mono); font-size: 15px; }
.packs td:last-child { text-align: right; }
.packs a { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--rec); }
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 600 clamp(18px, 1.8vw, 22px)/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--rec-ink); }
.faq .answer { padding: 0 0 26px; color: var(--ink-2); max-width: 72ch; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* also-from (appetizer) */
.also { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.also a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; background: var(--card);
  transition: border-color .2s, transform .2s;
}
.also a:hover { border-color: var(--ink); transform: translateY(-2px); }
.also .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--paper-2); display: grid; place-items: center; border: 1px solid var(--line); }
.also h3 { margin: 0 0 4px; font-size: 19px; }
.also p { margin: 0; color: var(--ink-2); font-size: 14px; }
.also .arrow { font: 500 20px var(--f-mono); color: var(--rec); }
@media (max-width: 760px) { .also { grid-template-columns: 1fr; } }

/* final cta */
.final { text-align: center; padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(64px, 12vw, 190px); }
.final .lede { margin: 26px auto 34px; }
.final .cta-row { justify-content: center; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed var(--line); pointer-events: none;
}

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; font: 500 12px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rec); }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px var(--f-mono); letter-spacing: .04em; color: var(--ink-3); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* inner page header */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(56px, 9vw, 132px); margin: 18px 0 22px; }
.page-hero h1 em { font-style: normal; color: var(--rec); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(32px, 4vw, 48px); margin: 56px 0 16px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose a { text-decoration-color: var(--rec); text-underline-offset: 3px; }

/* download page */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.dl.suggested { border-color: var(--ink); box-shadow: var(--shadow); }
.dl.suggested::before { content: "Your system"; position: absolute; top: -12px; left: 24px; background: var(--rec); color: #fff; padding: 4px 10px; border-radius: 999px; font: 600 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.dl h2 { font-size: clamp(44px, 5vw, 64px); }
.dl dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.dl dt { font: 500 12px/1.9 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dl dd { margin: 0; color: var(--ink-2); }
.dl .btn { align-self: flex-start; margin-top: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "0" counter(s); display: block; font: 800 54px/1 var(--f-display); color: var(--rec); margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .dl-grid, .steps { grid-template-columns: 1fr; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ---------- keyword / comparison pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.byline { margin-top: 18px; font: 500 12px/1.6 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.compare th.us, .compare td.us { background: color-mix(in srgb, var(--rec) 7%, var(--card)); }
.compare thead th.us { color: var(--rec-ink); }
.compare td:first-child { font-weight: 500; }
.compare.wide td:not(:first-child), .compare.wide th:not(:first-child) { width: auto; min-width: 130px; font-size: 14px; }
.compare.wide { min-width: 860px; }
.table-note { margin-top: 12px; font: 500 11px/1.6 var(--f-mono); color: var(--ink-3); letter-spacing: .03em; max-width: 90ch; }
.verdicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.verdict { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.verdict.us { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.verdict.us p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.verdict .label { margin-bottom: 12px; }
.verdict.us .label { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.verdict h3 { font: 800 30px/.95 var(--f-display); text-transform: uppercase; margin: 0 0 12px; }
.verdict p { color: var(--ink-2); font-size: 15px; margin: 0; }
.howto { list-style: none; counter-reset: h; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.howto > li { counter-increment: h; display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.howto > li::before { content: counter(h, decimal-leading-zero); font: 800 56px/.9 var(--f-display); color: var(--rec); }
.howto h3 { margin-bottom: 8px; }
.howto p, .howto li li { color: var(--ink-2); }
.howto kbd, .prose kbd { font: 600 12px/1 var(--f-mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 2px 0 var(--line); white-space: nowrap; }
.method { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.method h2 { font-size: clamp(36px, 4.4vw, 60px); }
.method .pill { display: inline-block; margin-top: 16px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.method .pill.good { border-color: var(--ok); color: var(--ok); }
.method .pill.limit { border-color: var(--rec); color: var(--rec-ink); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .howto > li { grid-template-columns: 60px 1fr; } .howto > li::before { font-size: 40px; } }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 36px; }
.stat-row div { background: var(--card); padding: 22px; }
.stat-row b { display: block; font: 800 44px/1 var(--f-display); text-transform: uppercase; }
.stat-row span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr 1fr; } }
