/* Scene Smith — "The Cutting Room"
   An editing suite after dark. The customer's product is the only thing in
   colour; the interface is graphite, hairlines and mono spec labels. One
   signal colour means LIVE and nothing else. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0E1114;
  --panel: #161A1F;
  --panel-2: #1C222A;
  --line: #272E36;
  --line-soft: #1E242B;
  --fg: #F3F5F6;
  --muted: #8D979F;
  --muted-2: #626C75;
  --signal: #D4FF3F;
  --signal-dim: rgba(212, 255, 63, .14);
  --alert: #FF5A3C;

  --u: 8px;
  --max: 1360px;
  --r: 4px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter Tight', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── type ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 92px); line-height: .96; }
h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.02; }
h3 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.12; letter-spacing: -.02em; }
h4 { font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; color: var(--muted); max-width: 62ch; }
.body-muted { color: var(--muted); }
.tight { max-width: 68ch; }

/* The label voice — every element on screen names itself like a spec plate. */
.lab {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-block;
}
.lab-b { color: var(--fg); }
.lab-s { color: var(--signal); }
.lab-a { color: var(--alert); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── layout ───────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-n { max-width: 960px; margin: 0 auto; padding: 0 24px; }
section { padding: clamp(48px, 7vw, 104px) 0; }
section.first { padding-top: clamp(36px, 4.5vw, 64px); }
section + section { border-top: 1px solid var(--line-soft); }

.sec-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head .lab { padding-top: 6px; }
.stack > * + * { margin-top: var(--gap, 16px); }

/* ── top bar ──────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 17, 20, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .in {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.mark { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.035em; font-size: 17px; }
.mark:hover { text-decoration: none; }
.mark .dot { width: 9px; height: 9px; background: var(--signal); flex: none; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 8px 11px; border-radius: var(--r);
}
.top nav a:hover { color: var(--fg); background: var(--panel); text-decoration: none; }
.top nav a.on { color: var(--signal); }
.top nav a.cta {
  color: var(--ink); background: var(--signal); font-weight: 500;
}
.top nav a.cta:hover { background: #e2ff6d; color: var(--ink); }
.burger { display: none; }

@media (max-width: 860px) {
  .top .in { height: 54px; gap: 12px; }
  .top nav { gap: 2px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { padding: 8px; font-size: 10px; white-space: nowrap; }
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  padding: 13px 20px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; color: var(--fg); cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
  text-align: center;
}
.btn:hover { border-color: var(--muted-2); background: var(--panel); text-decoration: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 2px;
}
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 500; }
.btn-signal:hover { background: #e2ff6d; border-color: #e2ff6d; color: var(--ink); }
.btn-lg { padding: 16px 26px; font-size: 13px; min-height: 52px; }
.btn-sm { padding: 9px 13px; font-size: 11px; min-height: 36px; }
.btn-alert { border-color: rgba(255, 90, 60, .5); color: var(--alert); }
.btn-alert:hover { background: rgba(255, 90, 60, .1); border-color: var(--alert); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── panels ───────────────────────────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel-2 { background: var(--panel-2); }
.panel-flat { background: transparent; }
.panel-live { border-color: rgba(212, 255, 63, .38); box-shadow: 0 0 0 1px rgba(212, 255, 63, .1); }
.panel-alert { border-color: rgba(255, 90, 60, .45); }
.pad-sm { padding: 16px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grid > * { background: var(--ink); padding: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* ── frames: media held at a true ratio, hard-edged ───────────────────── */
.frame {
  position: relative; display: block; overflow: hidden;
  background: #0A0C0E; border: 1px solid var(--line); border-radius: 0;
}
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.r916 { aspect-ratio: 9 / 16; }
.r45  { aspect-ratio: 4 / 5; }
.r11  { aspect-ratio: 1 / 1; }
.r169 { aspect-ratio: 16 / 9; }
.frame .tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: rgba(14, 17, 20, .86); backdrop-filter: blur(6px);
  padding: 6px 9px; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}
.frame .corner {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  background: rgba(14, 17, 20, .8); padding: 4px 7px; border: 1px solid var(--line);
}

/* the reel wall */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .wall { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 520px) { .wall { grid-template-columns: 1fr; } }
.reel { display: block; }
.reel:hover { text-decoration: none; }
.reel .frame { transition: border-color .18s var(--ease); }
.reel:hover .frame { border-color: var(--signal); }
.reel .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; align-items: baseline; }
.reel .meta h3 { font-size: 17px; }

/* ── the timeline: the signature component ───────────────────────────── */
.tl { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.tl-beats { display: grid; grid-template-columns: repeat(4, 1fr); }
.tl-beat { padding: 16px 14px; border-right: 1px solid var(--line); background: var(--ink); }
.tl-beat:last-child { border-right: 0; }
.tl-beat .t { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--signal); }
.tl-beat .n { font-size: 15px; font-weight: 500; margin: 7px 0 5px; letter-spacing: -.01em; }
.tl-beat .d { font-size: 13px; line-height: 1.45; color: var(--muted); }
.tl-beat .bar { height: 2px; background: var(--line); margin-top: 13px; position: relative; }
.tl-beat .bar i { position: absolute; inset: 0 40% 0 0; background: var(--signal); opacity: .55; }
.tl-beat:last-child .bar i { inset: 0 100% 0 0; }
@media (max-width: 760px) { .tl-beats { grid-template-columns: repeat(2, 1fr); }
  .tl-beat { border-bottom: 1px solid var(--line); }
  .tl-beat:nth-child(2n) { border-right: 0; } }

/* ── stage rail: discrete frame ticks, not a smooth bar ──────────────── */
.rail { display: flex; gap: 3px; margin: 14px 0 10px; }
.rail i { flex: 1; height: 4px; background: var(--line); border-radius: 1px; }
.rail i.done { background: var(--muted-2); }
.rail i.live { background: var(--signal); animation: tick 1.1s steps(2, end) infinite; }
.rail i.bad { background: var(--alert); }
@keyframes tick { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .38; } }
@media (prefers-reduced-motion: reduce) { .rail i.live { animation: none; } }

.pip { display: inline-flex; align-items: center; gap: 7px; }
.pip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; }
.pip.live::before { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-dim); }
.pip.bad::before { background: var(--alert); }
.pip.ok::before { background: var(--signal); }

/* ── forms ────────────────────────────────────────────────────────────── */
label.field { display: block; margin-bottom: 18px; }
label.field > span.l {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 7px;
}
label.field > span.h { display: block; font-size: 13px; color: var(--muted-2); margin-top: 6px; line-height: 1.4; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 12px 13px; min-height: 46px;
  background: var(--ink); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--sans); font-size: 15px; line-height: 1.4;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--muted-2); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted);
  transition: all .14s var(--ease); min-height: 38px; line-height: 1.5;
}
.chip input:checked + span { border-color: var(--signal); color: var(--signal); background: var(--signal-dim); }
.chip input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.chip span:hover { border-color: var(--muted-2); color: var(--fg); }

.err {
  border: 1px solid rgba(255, 90, 60, .5); background: rgba(255, 90, 60, .08);
  color: #FFC3B6; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 18px;
}
.ok-note {
  border: 1px solid rgba(212, 255, 63, .4); background: var(--signal-dim);
  color: #EAFFB0; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 18px;
}

/* ── tables / lists ───────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.scroll-x { overflow-x: auto; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kv > * { background: var(--ink); padding: 12px 14px; font-size: 14px; }
.kv > .k { font-family: var(--mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
@media (max-width: 620px) { .kv { grid-template-columns: 1fr; } .kv > .k { padding-bottom: 0; background: var(--ink); } }

.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li { padding: 9px 0 9px 22px; position: relative; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.45; }
.list-clean li:last-child { border-bottom: 0; }
.list-clean li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 1px; background: var(--signal); }
.list-clean.no::before, .list-clean.no li::before { background: var(--alert); }

details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 500; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--signal); font-size: 17px; flex: none; }
details[open] summary::after { content: "−"; }
details > .a { padding: 0 0 20px; color: var(--muted); max-width: 72ch; font-size: 15px; line-height: 1.55; }

footer.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 0; }
.foot-grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col a, .foot-col span.i { font-size: 14px; color: var(--muted); }
.foot-note { color: var(--muted-2); font-size: 13px; max-width: 46ch; line-height: 1.5; }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted);
}
.badge.s { border-color: rgba(212, 255, 63, .45); color: var(--signal); }
.badge.a { border-color: rgba(255, 90, 60, .45); color: var(--alert); }

.price { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--fg); }
.price .per { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 20px; } }

.sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .sticky { position: static; } }

.empty {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 36px 24px; text-align: center; color: var(--muted);
}
.empty .lab { display: block; margin-bottom: 10px; }

.hide { display: none !important; }
.spin { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--line); border-top-color: var(--signal); border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--signal); color: var(--ink);
  padding: 10px 16px; z-index: 100; font-family: var(--mono); font-size: 12px;
}
.skip:focus { left: 8px; top: 8px; }

.uploads { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.up { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.up img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.up .u-b { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.drop {
  border: 1px dashed var(--line); border-radius: var(--r); padding: 28px 20px; text-align: center;
  transition: border-color .16s var(--ease), background .16s var(--ease); cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--signal); background: var(--signal-dim); }
