/* VideoRapid UI
   Concept: an editing suite. The production pipeline is shown as a timeline track
   whose clip colours carry meaning everywhere in the product:
   amber = words (research, script, titles), green = audio (voice, music, mix),
   blue = picture (visuals, infographics, render), rose = checks (fact, language, vision). */

:root {
  --bg: #121722;
  --panel: #1a2130;
  --raise: #222b3d;
  --line: #2c364b;
  --line-soft: #242d40;
  --ink: #eceff5;
  --mute: #93a0b8;
  --faint: #66728a;

  --clip-word: #f4b740;
  --clip-audio: #43c59e;
  --clip-picture: #7b8cff;
  --clip-check: #ef6f8e;

  --accent: var(--clip-word);
  --accent-ink: #1b1405;
  --ok: #43c59e;
  --warn: #f4b740;
  --bad: #ef6f8e;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shell: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  font-feature-settings: "tnum" 0;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(244, 183, 64, .35); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.mute { color: var(--mute); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.measure { max-width: 64ch; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, var(--shell)); margin-inline: auto; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--raise); color: var(--ink);
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--mute); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffc757; border-color: #ffc757; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line); }
.btn-danger { background: transparent; border-color: #5a2a37; color: #ffb3c3; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.help { color: var(--mute); font-size: 13px; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: #151b27; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-md);
  font: 15px/1.45 var(--font-body);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244, 183, 64, .18); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }

/* segmented choice (ratio, tier, web images) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #151b27; font-size: 14px; font-weight: 600; cursor: pointer;
}
.choice small { display: block; font-weight: 400; color: var(--mute); margin-top: 2px; }
.choice input:checked + span { border-color: var(--accent); background: rgba(244, 183, 64, .1); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choices.stack { flex-direction: column; }
.choices.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .choices.cols-3 { grid-template-columns: 1fr; } }
.choices.stack .choice span { padding: 12px 14px; }

/* ------------------------------------------------------------- flash + badges */
.flash { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 18px; border: 1px solid var(--line); background: var(--panel); }
.flash-success { border-color: #1f5a49; background: #13261f; }
.flash-error { border-color: #5a2a37; background: #2a1520; }
.flash-info { border-color: #3a4566; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--raise); color: var(--mute); white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-running, .badge-queued, .badge-leased { color: var(--clip-picture); }
.badge-completed, .badge-paid { color: var(--ok); }
.badge-failed, .badge-cancelled, .badge-refunded, .badge-expired { color: var(--bad); }
.badge-awaiting_approval, .badge-pending { color: var(--warn); }

/* ------------------------------------------------------------- public site */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(18, 23, 34, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.site-nav nav { display: flex; gap: 22px; margin-right: auto; }
.site-nav nav a { color: var(--mute); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav nav a:hover { color: var(--ink); }
.nav-toggle { display: none; }

.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 15ch; }
.hero-lede { font-size: 1.2rem; color: var(--mute); max-width: 52ch; margin-bottom: 30px; }
.prompt-bar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; max-width: 820px; }
.prompt-bar textarea { width: 100%; border: 0; background: transparent; color: var(--ink); font: 500 1.15rem/1.5 var(--font-body); resize: none; min-height: 64px; padding: 6px 8px; }
.prompt-bar textarea:focus { outline: none; }
.prompt-bar-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.type-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.type-pills .choice span { padding: 6px 11px; font-size: 13px; border-radius: 999px; }

/* the timeline track: the signature element */
.track { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #151b27; padding: 18px 18px 14px; position: relative; overflow: hidden; }
.track-ruler { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; padding: 0 0 8px 92px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px; }
.track-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.track-row > span { color: var(--mute); font-size: 13px; font-weight: 600; }
.track-lane { position: relative; height: calc(var(--rows, 1) * 31px + 3px); background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--line-soft) calc(10% - 1px) 10%); border-radius: 6px; }
.clip {
  position: absolute; top: calc(3px + var(--row, 0) * 31px); height: 28px; border-radius: 6px; padding: 0 8px;
  display: flex; align-items: center; font-size: 12px; font-weight: 700; color: #10131a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clip-word { background: var(--clip-word); }
.clip-audio { background: var(--clip-audio); }
.clip-picture { background: var(--clip-picture); }
.clip-check { background: var(--clip-check); }
.clip.is-pending { background: transparent; border: 1px dashed var(--line); color: var(--faint); }
.clip.is-running { animation: clip-pulse 1.6s ease-in-out infinite; }
.clip.is-failed { background: transparent; border: 1px solid var(--bad); color: var(--bad); }
.clip.is-skipped { opacity: .25; }
@keyframes clip-pulse { 50% { opacity: .55; } }
.playhead { position: absolute; top: 0; bottom: 0; left: 92px; width: 2px; background: var(--ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top-color: var(--ink); }
.track.is-intro .playhead { animation: sweep 5.5s var(--ease) .4s 1 forwards; }
.track.is-intro .clip { clip-path: inset(0 100% 0 0); animation: reveal .5s var(--ease) forwards; }
@keyframes sweep { to { left: calc(100% - 20px); } }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
.track-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: var(--mute); font-size: 13px; }
.track-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.section { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.section-head p { color: var(--mute); max-width: 52ch; margin: 0; }

.type-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.type-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.type-item:hover h3 { color: var(--accent); }
.type-item h3 { font-size: 1.1rem; margin: 2px 0 4px; transition: color .15s; }
.type-item p { margin: 0; color: var(--mute); font-size: 14.5px; }
.type-item .rate { display: block; margin-top: 6px; color: var(--faint); font-size: 13px; }
.type-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--raise); color: var(--accent); }
.type-icon svg { width: 22px; height: 22px; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.step::before { counter-increment: step; content: counter(step); font: 800 1.6rem/1 var(--font-display); color: var(--faint); }
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--mute); margin: 0; font-size: 15px; }
.step .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.pack { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; background: var(--panel); }
.pack.is-featured { border-color: var(--accent); }
.pack h3 { margin-bottom: 2px; }
.pack .price { font: 800 2.4rem/1 var(--font-display); letter-spacing: -.03em; margin: 14px 0 4px; }
.pack .credits { color: var(--accent); font-weight: 700; }
.pack ul { list-style: none; padding: 0; margin: 16px 0 22px; color: var(--mute); font-size: 14.5px; }
.pack li { padding: 5px 0 5px 20px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 0; top: 13px; width: 9px; height: 2px; background: var(--clip-audio); }
.pack .btn { margin-top: auto; }
.pack-note { font-size: 13px; color: var(--faint); margin-top: 6px; }

.calc { margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.calc-out { font: 800 2rem/1.1 var(--font-display); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--mute); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--mute); margin: 10px 0 0; max-width: 72ch; }

.site-foot { border-top: 1px solid var(--line-soft); padding: 40px 0 56px; color: var(--mute); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--mute); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose p, .prose li { color: #c9cfdc; }
.prose ul { padding-left: 1.2em; }

/* ------------------------------------------------------------- app shell */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line-soft); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; background: #10141e; }
.side .brand { padding: 4px 8px 10px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--mute); text-decoration: none; font-weight: 500; font-size: 15px;
}
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side nav a:hover { color: var(--ink); background: var(--panel); }
.side nav a.is-active { color: var(--ink); background: var(--raise); }
.side .nav-group { color: var(--faint); font-size: 12.5px; font-weight: 600; padding: 14px 10px 4px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.wallet { display: block; padding: 12px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); text-decoration: none; margin-bottom: 12px; }
.wallet b { display: block; font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -.02em; }
.wallet span { color: var(--mute); font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.me img, .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raise); object-fit: cover; }
.me form { margin-left: auto; }

.main { min-width: 0; padding: 28px 36px 64px; }
.main-inner { max-width: 1100px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: 2rem; margin: 0; letter-spacing: -.025em; font-weight: 800; }
.page-head p { margin: 4px 0 0; color: var(--mute); }
.topbar-mobile { display: none; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.panel-flush { padding: 0; overflow: hidden; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 22px; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 800 1.7rem/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: 14px; }

.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; color: var(--mute); font-weight: 600; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.project-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover { background: #1d2536; }
.thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--raise) center / cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.thumb svg { width: 22px; height: 22px; }
.project-row h3 { font-size: 1rem; margin: 0 0 3px; font-family: var(--font-body); letter-spacing: 0; }
.project-row .meta { color: var(--mute); font-size: 13.5px; }
.progress { height: 6px; border-radius: 99px; background: var(--raise); overflow: hidden; width: 140px; }
.progress i { display: block; height: 100%; background: var(--clip-picture); border-radius: 99px; transition: width .4s var(--ease); }

.empty { text-align: center; padding: 56px 20px; color: var(--mute); }
.empty h3 { color: var(--ink); }

/* wizard */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-card { position: relative; }
.type-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type-card > span { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #151b27; cursor: pointer; height: 100%; }
.type-card input:checked + span { border-color: var(--accent); background: rgba(244, 183, 64, .08); }
.type-card input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-card b { display: block; font-size: 15px; }
.type-card small { color: var(--mute); }
.type-card .type-icon { width: 36px; height: 36px; }
.wizard { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.summary { position: sticky; top: 24px; }
.summary .total { font: 800 2.3rem/1 var(--font-display); letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; margin: 16px 0; }
.summary dt { color: var(--mute); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .warnbox { border: 1px solid #5c4a1c; background: #241e10; border-radius: var(--r-md); padding: 12px; font-size: 14px; margin-bottom: 14px; }
.disclose summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--mute); }
.disclose[open] summary { color: var(--ink); margin-bottom: 12px; }
.dropzone { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; color: var(--mute); cursor: pointer; }
.dropzone.is-over { border-color: var(--accent); color: var(--ink); }
.upload-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.upload-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }

/* project page */
.project-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin-bottom: 18px; }
.player { width: 100%; border-radius: var(--r-lg); background: #000; aspect-ratio: 16 / 9; }
.player.is-vertical { aspect-ratio: 9 / 16; max-height: 70vh; width: auto; margin-inline: auto; }
.downloads { display: grid; gap: 8px; }
.download { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; }
.download:hover { border-color: var(--mute); }
.download b { display: block; font-size: 15px; }
.download span { color: var(--mute); font-size: 13px; }
.event-log { font-size: 13.5px; max-height: 280px; overflow: auto; }
.event-log div { padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.event-log time { color: var(--faint); font-variant-numeric: tabular-nums; }
.event-log .lvl-warning { color: var(--warn); }
.event-log .lvl-error { color: var(--bad); }
.scene-edit { border-bottom: 1px solid var(--line-soft); padding: 14px 0; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.scene-edit > b { color: var(--faint); font: 800 1.1rem/1.8 var(--font-display); }

.login-card { width: min(100% - 32px, 420px); margin: 12vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border-radius: var(--r-md); background: #fff; color: #1f1f1f; font-weight: 600; text-decoration: none; border: 1px solid #dadce0; }
.google-btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .packs { grid-template-columns: repeat(2, 1fr); }
  .type-list { grid-template-columns: repeat(2, 1fr); }
  .wizard { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-105%); transition: transform .2s var(--ease); height: 100%; }
  .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .topbar-mobile { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--bg); z-index: 30; }
  .main { padding: 20px 16px 48px; }
  .type-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps, .calc { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .project-head { grid-template-columns: 1fr; }
  .site-nav nav { display: none; }
  .site-nav nav.is-open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 16px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav .nav-cta { display: none; }
}
@media (max-width: 560px) {
  .packs, .type-list, .type-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 72px 1fr; }
  .project-row > :last-child { grid-column: 2; }
  .thumb { width: 72px; }
  .track { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .track > .track-ruler, .track > .track-row { min-width: 760px; }
  .playhead { display: none; }
  .hero { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .track.is-intro .clip { clip-path: none; }
}
