/* newsreel landing.
   Compact, tactile, precise — small type, hairlines, shadow rings instead of borders — but
   arranged as a real product page: a wide hero the video can breathe in, banded sections,
   and a gallery that gets the full width because the collection is the point. */

:root {
  --ink: #18181b;
  --ink-2: #52525b;
  --ink-3: #a1a1aa;
  --hairline: rgba(0, 0, 0, 0.07);
  --green: #16a34a;
  --green-soft: rgba(34, 197, 94, 0.13);
  --surface: rgba(255, 255, 255, 0.72);
  --tabs-bg: rgba(0, 0, 0, 0.05);
  --page: #fbfbfc;
  --band: #ffffff;
  --band-alt: #f5f5f7;
  --code-k: #7c3aed;
  --code-s: #0f766e;

  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-control:
    0 0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 5px rgba(0, 0, 0, 0.08);
  --shadow-card:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-lift:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 18px 44px rgba(15, 18, 34, 0.12);
  --shadow-pill: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.07);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tracking: -0.01em;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --fade: 220ms var(--ease-out);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--page);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-sans);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

button, a, .tab, .filter, .act, .dep { cursor: pointer; }
.remix input { cursor: text; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.mark { width: 18px; height: 18px; flex: none; fill: currentColor; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  font: 500 13px/1 var(--font-sans); color: var(--ink-2); text-decoration: none;
  transition: color 120ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 7px 12px; border-radius: var(--radius-sm);
  background: #fff; box-shadow: var(--shadow-control);
  transition: transform 120ms var(--ease-out);
}
.nav-cta:active { transform: scale(0.96); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 8px; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--font-mono); color: var(--ink-3);
  letter-spacing: 0.02em; margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.03; font-weight: 600; letter-spacing: -0.035em;
  margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--ink-3); }
.lede {
  max-width: 62ch; color: var(--ink-2); font-size: 16px; text-wrap: pretty;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 44px; }

.cmd {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: #fff; box-shadow: var(--shadow-card);
  font: 500 13px/1 var(--font-mono); color: var(--ink);
  letter-spacing: var(--tracking);
  transition: transform 120ms var(--ease-out);
}
.cmd:active { transform: scale(0.98); }
.cmd-prefix { color: var(--ink-3); }
.cmd-icon {
  width: 15px; height: 15px; flex: none; border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
  transition: box-shadow var(--fade), background var(--fade);
}
.cmd.is-copied .cmd-icon { box-shadow: inset 0 0 0 1.5px var(--green); background: var(--green); }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border-radius: var(--radius-md);
  font: 500 13px/1 var(--font-sans); color: var(--ink-2); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }

.reel { margin: 0; }
.video-shell {
  position: relative; aspect-ratio: 1440 / 900;   /* reserved: the poster cannot shift layout */
  border-radius: var(--radius-xl); overflow: hidden;
  background: #0b0d12; box-shadow: var(--shadow-lift);
}
.video-shell video { display: block; width: 100%; height: 100%; }
.reel figcaption {
  margin-top: 14px; font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-3);
  max-width: 70ch;
}

/* ── bands ───────────────────────────────────────────────────────────────── */
.band { padding: 72px 0; background: var(--band); border-top: 1px solid var(--hairline); }
.band.alt { background: var(--band-alt); }
.collection { padding: 72px 0; background: var(--band-alt); border-top: 1px solid var(--hairline); }

.section-title { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.section-sub { margin-top: 8px; color: var(--ink-2); font-size: 14px; max-width: 68ch; text-wrap: pretty; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}

/* ── steps ───────────────────────────────────────────────────────────────── */
.steps {
  list-style: none; margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.steps li {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.step-n {
  display: inline-block; font: 500 11px/1 var(--font-mono); color: var(--ink-3);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.steps h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.steps p { font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }

/* ── kinds ───────────────────────────────────────────────────────────────── */
.kinds {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px;
}
.kind {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-card);
}
/* the family this kind rolls its background from, shown as the actual gradients */
.kind-swatches { display: flex; height: 76px; }
.kind-swatches span { flex: 1; }
.kind-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kind-body h3 {
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--kind-accent);
}
.kind-body > p { font-size: 13.5px; color: var(--ink-2); text-wrap: pretty; }
.kind-facts { display: grid; gap: 6px; }
.kind-facts > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.kind-facts dt { color: var(--ink-3); }
.kind-facts dd { color: var(--ink-2); font-family: var(--font-mono); font-size: 11.5px; }
.kind-scenes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.kind-scenes span {
  font: 500 10.5px/1 var(--font-mono); color: var(--ink-3);
  padding: 5px 7px; border-radius: 6px; background: var(--band-alt);
}
.cmd.sm { padding: 9px 11px; font-size: 12px; align-self: flex-start; }
.kind .cmd.sm { box-shadow: inset 0 0 0 1px var(--hairline); }
.kind .cmd.is-copied .cmd-icon {
  box-shadow: inset 0 0 0 1.5px var(--kind-accent); background: var(--kind-accent);
}

/* ── filters + grid ──────────────────────────────────────────────────────── */
.filters {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px;
  border-radius: 8px; background: var(--tabs-bg);
}
.filter {
  appearance: none; border: 0; background: transparent;
  font: 500 12px/1 var(--font-sans); color: var(--ink-2);
  padding: 6px 11px; border-radius: var(--radius-sm);
  transition: color 120ms var(--ease-out), background 120ms var(--ease-out);
}
.filter.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-pill); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-card);
  transition: box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.stage {
  position: relative; aspect-ratio: 16 / 10;   /* reserved before mount: no grid shift */
  background: #0f1116; overflow: hidden;
}
.stage > .mount {
  /* ⚠️ The scenes are authored for a 1440x900 frame and size their type in vw, so dropping
     one into a 290px card renders a headline ten times too big. Give every card the REAL
     stage and scale it down instead: what you see here is exactly the video frame. */
  position: absolute; top: 0; left: 0;
  width: 1440px; height: 900px;
  transform-origin: top left;
}
.stage .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 11px/1 var(--font-mono); color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: repeating-linear-gradient(-45deg, #14161c 0 10px, #12141a 10px 20px);
}
.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 9px; }
.card-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.badge {
  font: 500 10px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 5px; color: var(--ink-3); background: rgba(0, 0, 0, 0.045);
}
.badge.is-live { color: #0f7a44; background: var(--green-soft); }
.card-blurb { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); min-height: 56px; }
.card-tech { font: 500 11px/1.4 var(--font-mono); color: var(--ink-3); }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.act {
  appearance: none; border: 0;
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 27px; padding: 6px 9px; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-2);
  font: 500 11px/1 var(--font-mono); letter-spacing: var(--tracking);
  box-shadow: var(--shadow-control);
  transition: color 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.act:hover { color: var(--ink); }
.act:active { transform: scale(0.96); }
.act .lockable { min-width: 46px; text-align: left; }  /* width-locked: no shift on "copied" */
.act.is-copied { color: var(--green); }

.remix { display: flex; gap: 6px; }
.remix input {
  flex: 1; min-width: 0; appearance: none; border: 0; border-radius: var(--radius-sm);
  padding: 6px 9px; background: #fff;
  font: 500 11.5px/1.3 var(--font-mono); color: var(--ink);
  box-shadow: var(--shadow-control);
}
.remix input:focus { outline: 2px solid rgba(34, 197, 94, 0.4); outline-offset: 1px; }

/* ── studio ──────────────────────────────────────────────────────────────── */
.studio {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px;
}
.studio-col {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.col-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.media-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 11px 0; border-top: 1px solid var(--hairline);
}
.media-meta { display: flex; flex-direction: column; gap: 2px; }
.media-meta strong { font-size: 13.5px; font-weight: 600; }
.media-meta span { font: 500 11.5px/1 var(--font-mono); color: var(--ink-3); }
.media-row audio { height: 32px; max-width: 220px; }
.fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.fine code {
  font: 500 11.5px/1 var(--font-mono); padding: 3px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.05); color: var(--ink-2);
}

/* ── tabs + code ─────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--tabs-bg); }
.tab {
  appearance: none; border: 0; background: transparent;
  font: 500 12px/1 var(--font-sans); color: var(--ink-2);
  padding: 6px 11px; border-radius: var(--radius-sm);
  transition: color 120ms var(--ease-out), background 120ms var(--ease-out);
}
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-pill); }

.code-card {
  display: grid;                       /* one cell for every panel: stable height */
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  padding: 18px 20px; overflow-x: auto;
}
.panel {
  grid-area: 1 / 1; font: 400 12.5px/1.75 var(--font-mono);
  opacity: 0; filter: blur(3px); transform: translateY(3px);
  transition: opacity var(--fade), filter var(--fade), transform var(--fade);
  pointer-events: none;
}
.panel.is-active { opacity: 1; filter: blur(0); transform: none; pointer-events: auto; }
.panel .k { color: var(--code-k); }
.panel .s { color: var(--code-s); }
.panel .n { color: var(--code-k); }
.panel .c { color: var(--ink-3); }

/* ── agent ───────────────────────────────────────────────────────────────── */
.agent {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start;
}
.agent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.agent-start {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.mini {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--band-alt); overflow-x: auto;
  font: 400 12.5px/1.8 var(--font-mono); color: var(--ink);
}
.mini .c { color: var(--ink-3); }
@media (max-width: 820px) { .agent { grid-template-columns: 1fr; } }

/* ── dependencies ────────────────────────────────────────────────────────── */
.deps {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.dep {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-card); text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.dep:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.dep.is-static { cursor: default; }
.dep.is-static:hover { transform: none; box-shadow: var(--shadow-card); }
.dep strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.dep span { font-size: 12.5px; color: var(--ink-2); }
.dep em {
  font-style: normal; margin-top: 6px;
  font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { padding: 34px 0 46px; border-top: 1px solid var(--hairline); background: var(--band); }
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  font: 500 12px/1 var(--font-mono); color: var(--ink-3);
}
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.muted { color: var(--ink-3); }

/* ── toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 80;
  transform: translate(-50%, 8px);
  padding: 8px 13px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff;
  font: 500 11.5px/1 var(--font-mono);
  opacity: 0; pointer-events: none;
  transition: opacity var(--fade), transform var(--fade);
}
.toast .toast-text { min-width: 108px; display: inline-block; text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── entrance (opacity/transform/filter only: never layout) ──────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; animation: enter 620ms var(--ease-out) forwards; }
  .hero-inner > *:nth-child(1) { animation-delay: 0ms; }
  .hero-inner > *:nth-child(2) { animation-delay: 80ms; }
  .hero-inner > *:nth-child(3) { animation-delay: 160ms; }
  .hero-inner > *:nth-child(4) { animation-delay: 240ms; }
  .hero-inner > *:nth-child(5) { animation-delay: 320ms; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(8px); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: blur(0); }
  }
}

/* ── mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .wrap, .hero-inner, .nav-inner { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 40px; }
  .band, .collection { padding: 48px 0; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .media-row audio { max-width: 100%; width: 100%; }
}
