/* Layout and components. Colours come from tokens.css surface variables only. */

/* ---------- shell ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  background: var(--s-bg);
  color: var(--s-fg);
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

.rule {
  border: 0;
  border-top: 1px solid var(--s-line-soft);
  margin: 0;
}

/* ---------- type helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-fg-muted);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--s-accent);
  flex: none;
}

.eyebrow__ko {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-200);
  color: var(--s-fg-faint);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: var(--sp-6) var(--sp-8);
  align-items: end;
  margin-bottom: var(--sp-8);
}

.section-head__title {
  font-size: var(--fs-800);
  max-width: 18em;
  text-wrap: balance;
}

.section-head__lede {
  font-size: var(--fs-500);
  color: var(--s-fg-muted);
  line-height: var(--lh-body);
}

@media (max-width: 940px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--sp-4);
  }

  .section-head__title {
    max-width: 24em;
  }

  .section-head__lede {
    font-size: var(--fs-400);
    max-width: 38em;
  }
}

.lede {
  color: var(--s-fg-muted);
  font-size: var(--fs-500);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: var(--fs-200);
  color: var(--s-fg-faint);
  line-height: var(--lh-snug);
}

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-pad-y) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-2);
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--s-btn-bg);
  color: var(--s-btn-fg);
}

.btn--primary:hover {
  background: var(--ink-600);
  color: var(--paper-0);
}

.t-dark .btn--primary:hover {
  background: var(--paper-0);
  color: var(--ink-900);
}

.btn--ghost {
  background: transparent;
  color: var(--s-fg);
  border-color: var(--s-line);
}

.btn--ghost:hover {
  border-color: var(--s-fg-muted);
  background: var(--s-bg-raised);
}

.btn--sm {
  --btn-pad-y: 9px;
  padding-inline: var(--sp-4);
  font-size: var(--fs-200);
}

.btn--block {
  width: 100%;
}

/* ---------- tally lamp ---------- */
.tally {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 5px 10px 5px 8px;
  border-radius: var(--r-1);
  background: var(--tally-500);
  color: var(--paper-0);
}

.tally__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper-0);
  flex: none;
  animation: tally-pulse 2.6s var(--ease) infinite;
}

@keyframes tally-pulse {
  0%,
  45%,
  100% {
    opacity: 1;
  }
  60%,
  85% {
    opacity: 0.35;
  }
}

/* ---------- header ---------- */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -60px;
  z-index: 200;
  background: var(--paper-50);
  color: var(--slate-900);
  padding: 10px 16px;
  border-radius: var(--r-2);
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: var(--sp-4);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.site-header.is-stuck {
  background: var(--ink-900);
  border-bottom-color: var(--ondark-line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
  transition: height 220ms var(--ease);
}

.site-header.is-stuck .site-header__bar {
  height: 62px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-decoration: none;
  color: var(--mist-100);
  flex: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 22px;
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--mist-300);
  padding-left: 1px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.site-nav__link {
  display: block;
  padding: 6px 2px;
  font-size: var(--fs-300);
  color: var(--mist-300);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-nav__link:hover {
  color: var(--mist-100);
  border-bottom-color: var(--tally-300);
}

.header-tc {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  color: var(--mist-500);
  padding-left: var(--sp-5);
  border-left: 1px solid var(--ondark-line);
  flex: none;
}

.header-cta {
  flex: none;
}

/* the bar is a studio surface but carries no theme class, so the ghost button
   has to be told which side it is on */
.site-header .btn--ghost {
  color: var(--mist-100);
  border-color: var(--ondark-line-strong);
}

.site-header .btn--ghost:hover {
  border-color: var(--mist-300);
  background: var(--ink-800);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--ondark-line-strong);
  border-radius: var(--r-2);
  color: var(--mist-100);
  font-size: var(--fs-200);
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 15px;
}

.nav-toggle__bars span {
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.header-progress {
  height: 2px;
  background: var(--tally-400);
  width: 0;
  transition: width 90ms linear;
}

@media (max-width: 1080px) {
  .header-tc {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--ondark-line);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    display: grid;
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 0;
    font-size: var(--fs-400);
    border-bottom: 1px solid var(--ondark-line-soft);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink-900);
  color: var(--mist-100);
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero__top {
  margin-bottom: clamp(28px, 4vw, 52px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* The <br> sets the two statements; balancing only shares out what is left when
   a statement has to wrap again on narrow screens. Ignored where unsupported. */
.hero__title {
  font-size: var(--fs-900);
  letter-spacing: -0.035em;
  margin-top: var(--sp-5);
  text-wrap: balance;
}

.hero__title em {
  font-style: normal;
  color: var(--tally-300);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero__lede {
  max-width: 34em;
  font-size: var(--fs-500);
  color: var(--mist-300);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero__formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ondark-line);
}

.hero__formats li {
  font-size: var(--fs-200);
  color: var(--mist-300);
}

.hero__formats b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mist-100);
  margin-bottom: 2px;
}

/* control room visual */
.cr {
  position: relative;
  border: 1px solid var(--ondark-line);
  border-radius: var(--r-4);
  background: var(--ink-950);
  padding: 10px;
  box-shadow: var(--shadow-2);
}

.cr__canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 560;
  border-radius: var(--r-3);
  background: var(--ink-990);
}

.cr__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 10px 6px 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.1em;
  color: var(--mist-500);
}

.cr__caption-ko {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cr {
    order: -1;
  }
}

/* ---------- formats ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--s-line);
  border-block: 1px solid var(--s-line);
}

/* Cards share one hairline grid, so the lift on hover is a background change and
   a tally rule rather than a shadow — a shadow would break the shared rules. */
.format {
  position: relative;
  background: var(--s-bg);
  padding: var(--sp-6) clamp(var(--sp-4), 2.4vw, var(--sp-7));
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}

.format::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--tally-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.format:hover,
.format:focus-within {
  background: var(--s-bg-raised);
  transform: translateY(-3px);
  z-index: 1;
}

.format:hover::before,
.format:focus-within::before {
  transform: scaleX(1);
}

.format__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--s-line-soft);
}

.format__no {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  color: var(--s-accent);
}

.format__name {
  font-size: var(--fs-700);
  letter-spacing: -0.03em;
}

/* Korean set in the mono face picks up its wide tracking, so label rows that
   mix Korean with figures stay in the sans face with tabular numerals. */
.format__len {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-200);
  color: var(--s-fg-muted);
  text-align: right;
}

.format__fit {
  font-size: var(--fs-500);
  color: var(--s-fg);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
}

.format__has {
  display: grid;
  gap: var(--sp-2);
}

.format__has li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.format__has li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 1px;
  background: var(--s-fg-faint);
}

.format__cta {
  margin-top: auto;
  padding-top: var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  align-self: flex-start;
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--s-fg-muted);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.format__cta span {
  transition: transform 200ms var(--ease);
}

.format:hover .format__cta,
.format__cta:focus-visible {
  color: var(--s-accent);
}

.format:hover .format__cta span {
  transform: translateX(4px);
}

/* --- format mini visuals: drawn with boxes so they stay sharp at any width --- */
.format__viz {
  margin-block: var(--sp-2) var(--sp-1);
  padding: var(--sp-4);
  border: 1px solid var(--s-line-soft);
  border-radius: var(--r-3);
  background: var(--s-bg-sunken);
}

.viz-long__rail,
.viz-short__rail {
  position: relative;
  display: flex;
  gap: 3px;
  height: 44px;
}

.viz-long__chapter {
  position: relative;
  display: block;
  border-radius: var(--r-1);
  background: var(--s-line);
  overflow: hidden;
}

.viz-long__chapter i {
  position: absolute;
  inset: auto 0 5px 6px;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: -0.02em;
  color: var(--s-fg-muted);
  white-space: nowrap;
}

.viz-long__chapter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--s-fg-faint);
  opacity: 0.5;
}

.viz-long__chapter.is-qa {
  background: var(--s-accent);
}

.viz-long__chapter.is-qa i {
  color: var(--paper-0);
}

.viz-long__chapter.is-qa::before {
  background: var(--paper-0);
  opacity: 0.6;
}

.viz-long__scale,
.viz-short__scale,
.viz-series__scale,
.viz-vod__scale {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--s-fg-faint);
}

.viz-series__scale,
.viz-vod__scale {
  font-family: var(--font-sans);
  font-size: var(--fs-100);
  letter-spacing: 0;
}

.viz-short__block {
  position: relative;
  display: block;
  flex: 8;
  border-radius: var(--r-1);
  background: var(--s-line);
  overflow: hidden;
}

.viz-short__block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--s-fg-faint);
  opacity: 0.5;
}

.viz-short__block i {
  position: absolute;
  inset: auto 0 5px 7px;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: -0.02em;
  color: var(--s-fg-muted);
  white-space: nowrap;
}

.viz-series__track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.viz-series__ep {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--s-line);
  background: var(--s-bg-raised);
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
}

.viz-series__ep + .viz-series__ep {
  margin-left: 18px;
}

.viz-series__ep + .viz-series__ep::before {
  content: "";
  position: absolute;
  right: 100%;
  width: 18px;
  height: 1px;
  background: var(--s-line);
}

.viz-series__ep.is-done {
  border-color: var(--s-fg-faint);
  color: var(--s-fg-muted);
}

.viz-series__ep.is-live {
  background: var(--s-accent);
  border-color: var(--s-accent);
  color: var(--paper-0);
  font-weight: 600;
}

.viz-series__ep.is-opt {
  border-style: dashed;
}

.viz-vod__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.viz-vod__tile {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-1);
  background: var(--s-line);
}

.viz-vod__tile.is-first {
  position: relative;
  background: var(--s-accent);
}

/* play glyph: a triangle made from a border, so no icon font is needed */
.viz-vod__tile.is-first i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -5px 0 0 -3px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--paper-0);
}

@media (max-width: 760px) {
  .formats {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- scope table ---------- */
.scope {
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--s-bg-raised);
}

.scope th,
.scope td {
  text-align: left;
  vertical-align: top;
  padding: var(--sp-5) var(--sp-5);
  border-bottom: 1px solid var(--s-line-soft);
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
}

.scope thead th {
  background: var(--s-bg-sunken);
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--s-fg-muted);
  padding-block: var(--sp-3);
  border-bottom-color: var(--s-line);
}

.scope tbody tr:last-child th,
.scope tbody tr:last-child td {
  border-bottom: 0;
}

.scope tbody th {
  width: 20%;
  font-weight: 700;
  font-size: var(--fs-400);
  color: var(--s-fg);
}

.scope tbody th small {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--s-fg-faint);
  margin-bottom: 4px;
}

.scope td {
  color: var(--s-fg-muted);
  width: 40%;
}

.scope td.is-ours {
  color: var(--s-fg);
  background: var(--s-bg);
  box-shadow: inset 1px 0 0 var(--s-line-soft);
}

.scope td ul {
  display: grid;
  gap: 6px;
}

.scope td li {
  position: relative;
  padding-left: 15px;
}

.scope td li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-1);
  border: 1px solid var(--s-fg-faint);
}

.scope td.is-ours li::before {
  background: var(--s-accent);
  border-color: var(--s-accent);
}

/* Below this the three columns get too narrow to read, so each row becomes a
   stack and the column headings move into the cells via data-col. */
@media (max-width: 760px) {
  .scope thead {
    display: none;
  }

  .scope,
  .scope tbody,
  .scope tr,
  .scope th,
  .scope td {
    display: block;
    width: auto;
  }

  .scope tr {
    border-bottom: 1px solid var(--s-line);
  }

  .scope tr:last-child {
    border-bottom: 0;
  }

  .scope tbody th {
    width: auto;
    padding-bottom: var(--sp-2);
    border-bottom: 0;
  }

  .scope tbody th small {
    display: inline-block;
    margin: 0 8px 0 0;
  }

  .scope td {
    border-bottom: 0;
    padding-top: var(--sp-2);
  }

  .scope td::before {
    content: attr(data-col);
    display: block;
    font-size: var(--fs-100);
    font-weight: 600;
    color: var(--s-fg-faint);
    margin-bottom: 6px;
  }

  .scope td.is-ours {
    background: var(--s-bg);
    padding-bottom: var(--sp-5);
  }
}

/* ---------- cue sheet ---------- */
.cue {
  border-top: 1px solid var(--s-line);
}

.cue__row {
  display: grid;
  grid-template-columns: 86px 1fr 136px;
  gap: var(--sp-5);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--s-line-soft);
  position: relative;
}

.cue__row::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -0.5);
  top: var(--sp-6);
  width: 3px;
  height: 22px;
  background: var(--s-line);
  transition: background-color 420ms var(--ease);
}

.cue__row.is-live::before {
  background: var(--tally-400);
}

.cue__no {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  letter-spacing: 0.1em;
  color: var(--s-fg-faint);
  padding-top: 4px;
}

.cue__state {
  display: block;
  margin-top: var(--sp-2);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--s-fg-faint);
}

.cue__row.is-live .cue__state {
  color: var(--s-accent);
}

.cue__title {
  font-size: var(--fs-600);
  letter-spacing: -0.028em;
}

.cue__body {
  margin-top: var(--sp-3);
  display: grid;
  gap: 6px;
  max-width: 54em;
}

.cue__body li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-400);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.cue__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 1px;
  background: var(--s-fg-faint);
}

.cue__dur {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--s-fg);
  text-align: right;
  padding: 4px 0 4px var(--sp-5);
  border-left: 1px solid var(--s-line-soft);
}

.cue__dur small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--s-fg-faint);
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .cue__row {
    grid-template-columns: 64px 1fr;
    gap: var(--sp-3) var(--sp-4);
  }

  .cue__dur {
    grid-column: 2;
    text-align: left;
    padding: 0;
    border-left: 0;
  }

  .cue__row::before {
    left: calc(var(--gutter) * -0.4);
  }
}

/* ---------- platform mockups ---------- */
.plat {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.mock {
  border: 1px solid var(--s-line);
  border-radius: var(--r-4);
  background: var(--s-bg-raised);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--s-line-soft);
  background: var(--s-bg-sunken);
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
}

.mock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tally-400);
  flex: none;
}

.mock__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

/* the sign-up column sets the row height, so the player meta line drops to the
   bottom of the stage column instead of leaving a gap under it */
.mock__stage {
  padding: var(--sp-4);
  border-right: 1px solid var(--s-line-soft);
  display: grid;
  align-content: space-between;
}

.mock__screen {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2);
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
}

.mock__live {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  padding: 3px 7px;
  border-radius: var(--r-1);
  background: var(--tally-500);
  color: var(--paper-0);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.mock__deck {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 24%;
  display: grid;
  gap: 9px;
}

.mock__deckbar {
  height: 5px;
  border-radius: var(--r-1);
  background: var(--ondark-fill-soft);
}

.mock__deckbar--title {
  height: 9px;
  width: 54%;
  background: var(--ondark-fill);
  margin-bottom: 7px;
}

.mock__deckbar--sm {
  width: 68%;
}

.mock__scrub {
  position: absolute;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: 12px;
  height: 4px;
  border-radius: var(--r-1);
  background: var(--ondark-line);
  overflow: hidden;
}

.mock__scrub-fill {
  display: block;
  height: 100%;
  width: 42%;
  background: var(--tally-400);
}

.mock__lower {
  position: absolute;
  left: var(--sp-4);
  bottom: 17%;
  padding: 6px 10px;
  border-left: 3px solid var(--tally-400);
  background: var(--screen-scrim);
  font-size: var(--fs-100);
  color: var(--mist-100);
  letter-spacing: 0.04em;
}

.mock__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--fs-100);
  font-variant-numeric: tabular-nums;
  color: var(--s-fg-faint);
}

.mock__gate {
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
  align-content: start;
}

.mock__label {
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--s-fg-muted);
}

.mock__field {
  height: 30px;
  border: 1px solid var(--s-line);
  border-radius: var(--r-2);
  background: var(--s-bg);
}

.mock__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-100);
  color: var(--s-fg-muted);
}

.mock__check span:first-child {
  width: 12px;
  height: 12px;
  border: 1px solid var(--s-line);
  border-radius: 2px;
  flex: none;
}

.mock__btn {
  height: 32px;
  border-radius: var(--r-2);
  background: var(--s-btn-bg);
  display: grid;
  place-items: center;
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--s-btn-fg);
}

.mock__chat {
  border-top: 1px solid var(--s-line-soft);
  padding: var(--sp-4);
  display: grid;
  gap: var(--sp-2);
}

.mock__chatline {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--fs-100);
  color: var(--s-fg-muted);
  line-height: 1.5;
}

.mock__chatline b {
  color: var(--s-fg-faint);
  font-weight: 600;
  flex: none;
}

figcaption.mock__cap {
  padding: 10px var(--sp-4);
  border-top: 1px solid var(--s-line-soft);
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
  background: var(--s-bg-sunken);
}

.plat__points {
  display: grid;
  gap: var(--sp-5);
}

.point {
  border-top: 1px solid var(--s-line);
  padding-top: var(--sp-4);
}

.point__name {
  font-size: var(--fs-500);
  letter-spacing: -0.02em;
}

.point__desc {
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

.mode {
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  padding: var(--sp-5);
  background: var(--s-bg-raised);
}

.mode__tag {
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--s-accent);
}

.mode__name {
  margin-top: var(--sp-2);
  font-size: var(--fs-500);
}

.mode__desc {
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

@media (max-width: 960px) {
  .plat {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .mock__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock__stage {
    border-right: 0;
    border-bottom: 1px solid var(--s-line-soft);
  }

  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- compliance ---------- */
.comply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.comply__list {
  display: grid;
  gap: var(--sp-6);
}

.comply__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--sp-4);
}

.comply__num {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  color: var(--s-accent);
  padding-top: 2px;
}

.comply__name {
  font-size: var(--fs-500);
  letter-spacing: -0.02em;
}

.comply__desc {
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.consent {
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  overflow: hidden;
}

.consent caption {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  background: var(--s-bg-sunken);
  border-bottom: 1px solid var(--s-line);
  font-size: var(--fs-300);
  font-weight: 700;
}

.consent th,
.consent td {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--s-line-soft);
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  vertical-align: top;
}

.consent tr:last-child th,
.consent tr:last-child td {
  border-bottom: 0;
}

.consent th {
  font-weight: 600;
  width: 46%;
}

.consent td {
  color: var(--s-fg-muted);
}

.consent .req,
.consent .opt {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--r-1);
  margin-right: 6px;
  vertical-align: 1px;
}

.consent .req {
  background: var(--tally-500);
  color: var(--paper-0);
}

.consent .opt {
  border: 1px solid var(--s-line);
  color: var(--s-fg-muted);
}

.consent__foot {
  padding: var(--sp-4) var(--sp-5);
  background: var(--s-bg-sunken);
  border-top: 1px solid var(--s-line);
  font-size: var(--fs-200);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

@media (max-width: 900px) {
  .comply {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .consent,
  .consent caption,
  .consent tbody,
  .consent tr,
  .consent th,
  .consent td {
    display: block;
    width: auto;
  }

  .consent tr {
    border-bottom: 1px solid var(--s-line-soft);
  }

  .consent tr:last-child {
    border-bottom: 0;
  }

  .consent th {
    padding-bottom: var(--sp-1);
  }

  .consent td {
    padding-top: 0;
    border-bottom: 0;
  }
}

/* ---------- report ---------- */
.report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.report__items {
  display: grid;
  gap: var(--sp-5);
}

.report__item {
  border-left: 2px solid var(--s-line);
  padding-left: var(--sp-4);
}

.report__item h3 {
  font-size: var(--fs-500);
  letter-spacing: -0.02em;
}

.report__item p {
  margin-top: var(--sp-2);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.sheet {
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  background: var(--s-bg-raised);
  overflow: hidden;
}

.sheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--s-line);
  background: var(--s-bg-sunken);
}

.sheet__title {
  font-size: var(--fs-300);
  font-weight: 700;
}

.sheet__tag {
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--s-accent);
}

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--s-line-soft);
}

.sheet__cell {
  padding: var(--sp-4) var(--sp-5);
  border-right: 1px solid var(--s-line-soft);
}

.sheet__cell:last-child {
  border-right: 0;
}

.sheet__cell dt {
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
  line-height: 1.4;
}

.sheet__cell dd {
  font-family: var(--font-mono);
  font-size: var(--fs-600);
  letter-spacing: -0.02em;
  margin-top: 6px;
  color: var(--s-fg);
}

.sheet table th,
.sheet table td {
  text-align: left;
  padding: 10px var(--sp-5);
  font-size: var(--fs-200);
  border-bottom: 1px solid var(--s-line-soft);
}

.sheet table thead th {
  font-size: var(--fs-100);
  font-weight: 600;
  color: var(--s-fg-faint);
}

.sheet table td {
  color: var(--s-fg-muted);
  font-variant-numeric: tabular-nums;
}

.sheet table tr:last-child td,
.sheet table tr:last-child th {
  border-bottom: 0;
}

.sheet__foot {
  padding: 10px var(--sp-5);
  border-top: 1px solid var(--s-line);
  background: var(--s-bg-sunken);
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
}

@media (max-width: 900px) {
  .report {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .sheet__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet__cell:nth-child(2) {
    border-right: 0;
  }

  .sheet__cell:nth-child(-n + 2) {
    border-bottom: 1px solid var(--s-line-soft);
  }
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--s-line);
  max-width: 920px;
}

.faq__item {
  border-bottom: 1px solid var(--s-line-soft);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  font-size: var(--fs-500);
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-500);
  font-weight: 400;
  color: var(--s-fg-faint);
  line-height: 1.2;
  flex: none;
}

.faq__item[open] .faq__q::after {
  content: "\2212";
}

.faq__q span {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  color: var(--s-accent);
  padding-top: 3px;
  flex: none;
}

/* closed panels must leave no box behind, so they never collide with the next question */
.faq__item:not([open]) .faq__a {
  display: none;
}

.faq__a {
  padding: 0 0 var(--sp-5) calc(var(--sp-4) + 26px);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  max-width: 62em;
}

.faq__a p + p {
  margin-top: var(--sp-3);
}

@media (max-width: 560px) {
  .faq__a {
    padding-left: 0;
  }
}

/* ---------- proposal band ---------- */
.deckband {
  background: var(--ink-900);
  color: var(--mist-100);
  padding-block: clamp(36px, 5vw, 60px);
  border-top: 1px solid var(--ondark-line);
}

.deckband__inner {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

/* three stacked sheets, fanned: reads as a deck without a bitmap */
.deckband__pages {
  position: relative;
  height: 104px;
}

.deckband__page {
  position: absolute;
  left: 0;
  top: 8px;
  width: 124px;
  height: 80px;
  border: 1px solid var(--ondark-line);
  border-radius: var(--r-2);
  background: var(--ink-950);
  transform-origin: 12% 90%;
}

.deckband__page:nth-child(1) {
  transform: rotate(-7deg);
}

.deckband__page:nth-child(2) {
  transform: rotate(-3.5deg);
}

.deckband__page--front {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--ink-800);
  border-color: var(--ondark-line-strong);
  box-shadow: var(--shadow-2);
}

.deckband__line {
  height: 4px;
  border-radius: var(--r-1);
  background: var(--ondark-fill-soft);
}

.deckband__line--title {
  height: 7px;
  width: 58%;
  background: var(--tally-400);
  margin-bottom: 3px;
}

.deckband__line--sm {
  width: 64%;
}

.deckband__title {
  font-size: var(--fs-700);
  letter-spacing: -0.03em;
}

.deckband__desc {
  margin-top: var(--sp-3);
  max-width: 44em;
  font-size: var(--fs-300);
  color: var(--mist-300);
  line-height: var(--lh-snug);
}

.deckband__btn {
  flex: none;
}

@media (max-width: 900px) {
  .deckband__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-5);
    justify-items: start;
  }

  .deckband__pages {
    display: none;
  }
}

/* ---------- inquiry ---------- */
.inq {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.inq__aside {
  display: grid;
  gap: var(--sp-5);
}

.inq__aside dl {
  display: grid;
  gap: var(--sp-4);
  border-top: 1px solid var(--s-line);
  padding-top: var(--sp-5);
}

.inq__aside dt {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  letter-spacing: 0.12em;
  color: var(--s-fg-faint);
}

.inq__aside dd {
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
  margin-top: 4px;
  line-height: var(--lh-snug);
}

.inq__aside dd a {
  color: var(--s-fg);
}

.form {
  border: 1px solid var(--s-line);
  border-radius: var(--r-4);
  background: var(--s-bg-raised);
  padding: clamp(20px, 3vw, 36px);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-4);
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.fieldset__legend {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--s-fg);
}

.field .req-mark {
  color: var(--tally-ink);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--s-bg);
  border: 1px solid var(--s-line);
  border-radius: var(--r-2);
  font-size: var(--fs-300);
  transition: border-color 160ms var(--ease);
}

.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.6;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--s-fg-faint);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--tally-ink);
}

.field__err {
  font-size: var(--fs-100);
  color: var(--tally-ink);
  min-height: 1em;
}

.field__err:empty {
  display: none;
}

.fieldset {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--s-line);
  border-radius: var(--r-2);
  font-size: var(--fs-200);
  color: var(--s-fg-muted);
  cursor: pointer;
  background: var(--s-bg);
}

.check input {
  accent-color: var(--ink-600);
}

.check:hover {
  border-color: var(--s-fg-faint);
}

.agree {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-4);
  border: 1px solid var(--s-line);
  border-radius: var(--r-2);
  background: var(--s-bg);
  font-size: var(--fs-200);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

.agree input {
  margin-top: 2px;
  accent-color: var(--ink-600);
}

.agree__req {
  color: var(--tally-ink);
  font-weight: 700;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.form__status {
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.form__status[data-tone="err"] {
  color: var(--tally-ink);
}

.form__status[data-tone="ok"] {
  color: var(--ink-600);
  font-weight: 600;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

@media (max-width: 900px) {
  .inq {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--mist-300);
  padding-block: var(--sp-8) var(--sp-6);
  font-size: var(--fs-200);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-6);
  align-items: start;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--ondark-line);
}

.site-footer__desc {
  margin-top: var(--sp-3);
  max-width: 36em;
  line-height: var(--lh-snug);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.site-footer__links a {
  color: var(--mist-100);
  text-decoration: none;
  border-bottom: 1px solid var(--ondark-line-strong);
  padding-bottom: 2px;
}

.site-footer__links a:hover {
  border-bottom-color: var(--tally-300);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
  padding-top: var(--sp-5);
  color: var(--mist-500);
  font-size: var(--fs-100);
}

@media (max-width: 700px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}
