/* Deck layout and components. Colours come from tokens.css surface variables only.
   One [data-slide] section = one slide: it fills the viewport and the fixed chrome
   (progress, chapter, counter, dots) floats above it. */

/* ---------- deck frame ---------- */
html {
  /* Anchors jump to a slide top, so the deck wants no scroll padding.
     proximity (not mandatory) keeps the taller inquiry slide scrollable. */
  scroll-padding-top: 0;
  scroll-snap-type: y proximity;
}

.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);
}

.slide {
  --slide-pt: clamp(88px, 11vh, 124px);
  --slide-pb: clamp(76px, 9.5vh, 108px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  /* a slide taller than the screen starts at the top instead of bleeding
     out of both ends under the fixed overlay */
  align-content: safe center;
  padding: var(--slide-pt) var(--gutter) var(--slide-pb);
  background: var(--s-bg);
  color: var(--s-fg);
  scroll-snap-align: start;
}

.slide__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.slide__inner--split {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(28px, 3.5vw, 56px);
}

/* the only slide allowed to run past one screen, so it keeps the submit row
   clear of the counter plate */
.slide--inquiry {
  --slide-pb: clamp(96px, 11vh, 128px);
}

/* keeps the closing slide on the same left rail as every other slide */
.slide__inner--inquiry {
  gap: clamp(24px, 3vw, 40px);
}

.slide__inner--inquiry .slide__head,
.slide__inner--inquiry .form {
  max-width: var(--shell-narrow);
}

.slide__head {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 900px;
}

.slide__inner--split .slide__head {
  max-width: none;
}

/* ---------- slide type ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--s-accent);
}

.kicker__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* The <br> sets the two statements; balance only shares out what is left. */
.display {
  font-size: clamp(2rem, 1rem + 2.95vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display--xl {
  font-size: clamp(2.2rem, 1.05rem + 3.6vw, 4.4rem);
}

.lede {
  font-size: var(--fs-600);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
  max-width: 640px;
}

.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);
}

/* ---------- presentation chrome ----------
   The overlay floats over slides that alternate between the studio and the
   paper surface, so its text sits on small studio-ink plates: one set of
   colours that stays legible over either surface (on the studio slides the
   plate matches the background and reads as plain text). The dot rail and the
   progress line use the two tokens that clear 3:1 on both surfaces. */
.chrome {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.chrome.is-away {
  opacity: 0;
  visibility: hidden;
}

.chrome__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}

.chrome__progressFill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--tally-500);
  transition: width 180ms linear;
}

.chrome__brand,
.chrome__chapter,
.chrome__counter {
  position: absolute;
  background: var(--ink-900);
  color: var(--mist-100);
  border-radius: var(--r-2);
}

.chrome__brand {
  top: clamp(14px, 2vh, 24px);
  left: var(--gutter);
  display: inline-grid;
  justify-items: start;
  gap: 5px;
  padding: 9px 14px 8px 12px;
  font-size: var(--fs-200);
}

.chrome__logo {
  display: block;
  width: auto;
  height: 18px;
}

.chrome__brandSub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-500);
}

/* sits on the same ink plate as the other overlay items so it stays legible
   over both the studio and the paper slides */
.chrome__back {
  position: absolute;
  top: clamp(14px, 2vh, 24px);
  right: var(--gutter);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-2);
  background: var(--ink-900);
  color: var(--mist-100);
  font-size: var(--fs-200);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.chrome__back::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-left: 2px solid var(--tally-300);
  border-bottom: 2px solid var(--tally-300);
  transform: rotate(45deg);
}

.chrome__back:hover {
  background: var(--ink-700);
}

/* Korean set in the mono face picks up its wide tracking, so every label that
   can hold Korean stays in the sans face. Mono is for figures and Latin only. */
.chrome__chapter {
  bottom: clamp(16px, 2.2vh, 26px);
  left: var(--gutter);
  padding: 7px 12px;
  font-size: var(--fs-100);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--mist-300);
}

.chrome__counter {
  right: var(--gutter);
  bottom: clamp(16px, 2.2vh, 26px);
  display: inline-flex;
  align-items: baseline;
  padding: 4px 12px 5px;
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  line-height: 1.2;
  color: var(--mist-500);
}

.chrome__counter b {
  font-size: var(--fs-600);
  font-weight: 600;
  color: var(--mist-100);
}

.chrome__counter i {
  font-style: normal;
  margin-inline: 4px;
}

.chrome__dots {
  position: absolute;
  top: 50%;
  right: clamp(12px, 1.5vw, 22px);
  transform: translateY(-50%);
  pointer-events: auto;
}

.chrome__dots ul {
  display: grid;
  gap: 11px;
}

.chrome__dots a {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid var(--mist-500);
  border-radius: 50%;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.chrome__dots a:hover {
  border-color: var(--tally-500);
}

.chrome__dots a.is-on {
  background: var(--tally-500);
  border-color: var(--tally-500);
  transform: scale(1.35);
}

/* a still-running transition would be caught mid-way by a screenshot */
html.shot-mode .chrome__dots a,
html.shot-mode .chrome__progressFill {
  transition: none !important;
}

@media (max-width: 1100px) {
  .chrome__dots {
    display: none;
  }
}

/* Narrow screens are the one place a slide can grow past the viewport, so the
   ident plates would ride over the middle of its content. They step aside while
   the page is moving and come back once it settles. deck.js sets the class;
   a capture holds a scroll position, so it keeps them on. */
@media (max-width: 760px) {
  html:not(.shot-mode) .chrome.is-moving .chrome__brand,
  html:not(.shot-mode) .chrome.is-moving .chrome__back,
  html:not(.shot-mode) .chrome.is-moving .chrome__chapter,
  html:not(.shot-mode) .chrome.is-moving .chrome__counter {
    opacity: 0;
  }

  .chrome__brand,
  .chrome__back,
  .chrome__chapter,
  .chrome__counter {
    transition: opacity 200ms var(--ease);
  }
}

/* ---------- 01 cover ---------- */
.slide--cover .slide__inner {
  justify-items: start;
  gap: clamp(20px, 2.6vw, 34px);
}

.cover__rule {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(96px, 14vh, 150px);
  height: 1px;
  background: var(--s-line);
}

.cover__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-4);
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
  transition: opacity var(--dur) var(--ease);
}

.cover__hint.is-gone {
  opacity: 0;
}

.cover__key {
  border: 1px solid var(--s-line);
  border-radius: var(--r-1);
  padding: 1px 6px;
}

.cover__rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 1px;
  background: var(--s-accent);
}

/* ---------- figures and code-drawn diagrams ---------- */
.fig {
  display: grid;
  gap: var(--sp-3);
  justify-items: center;
}

.fig__cap {
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
}

.dg {
  width: 100%;
  height: auto;
}

.dg-t {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  fill: var(--s-fg);
}

.dg-t--mono {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  fill: var(--s-fg-faint);
}

.dg-t--faint {
  font-size: 20px;
  font-weight: 500;
  fill: var(--s-fg-faint);
}

.dg-t--in {
  fill: var(--paper-50);
}

.dg-t--node,
.dg-t--hub {
  font-size: 20px;
  font-weight: 700;
  text-anchor: middle;
}

.dg-t--hub {
  fill: var(--paper-50);
}

.dg-end {
  text-anchor: end;
}

/* 02 — a day already full: solid blocks, one thin free sliver.
   Runs the full column so its left edge lines up with the headline. */
.fig--day {
  justify-items: stretch;
}

.fig--day .dg-t {
  font-size: 19px;
}

.fig--day .dg-t--mono,
.fig--day .dg-t--faint {
  font-size: 15px;
}

.dg-block {
  fill: var(--ink-600);
}

.t-dark .dg-block {
  fill: var(--ink-700);
}

.dg-gap {
  fill: var(--tally-500);
}

.dg-brace,
.dg-call {
  fill: none;
  stroke: var(--s-fg-faint);
  stroke-width: 1.6;
}

/* 04 — the cycle that feeds offline sales */
.fig--cycle .dg {
  max-width: 420px;
}

.dg-ring {
  fill: none;
  stroke: var(--s-line);
  stroke-width: 1.5;
  stroke-dasharray: 3 8;
}

.dg-node circle,
.dg-node rect {
  fill: var(--s-bg-raised);
  stroke: var(--s-line);
  stroke-width: 1.5;
}

.dg-arrow {
  fill: var(--s-accent);
  stroke: none;
}

/* 06 — before / after: many contacts vs one desk.
   The slide also carries the hand-over list, so the two panels are capped by
   height rather than by column width and the slide gaps are pulled in. */
#s6 .slide__inner {
  gap: clamp(22px, 2.6vw, 38px);
}

.dg--door {
  max-height: 258px;
  width: auto;
  margin-inline: auto;
}

.door {
  --door-gap: clamp(26px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--door-gap);
  align-items: start;
}

.door__panel {
  position: relative;
  display: grid;
  gap: var(--sp-3);
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  background: var(--s-bg-raised);
}

.door__panel--after {
  border-color: var(--s-fg-faint);
}

.door__panel--after::before {
  content: "";
  position: absolute;
  left: calc(-1 * (var(--door-gap) / 2) - 7px);
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--s-accent);
  border-right: 2px solid var(--s-accent);
  transform: translateY(-50%) rotate(45deg);
}

.door__cap {
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--s-fg-faint);
}

.door__cap--on {
  color: var(--s-accent);
  font-weight: 600;
}

.dg--door .dg-t {
  font-size: 17px;
}

.dg--door .dg-t--node,
.dg--door .dg-t--hub {
  font-size: 16px;
}

.dg--door .dg-t--faint {
  font-size: 15px;
}

.dg-lines path,
path.dg-lines {
  fill: none;
  stroke-width: 1.6;
}

.dg-lines--tangle path {
  stroke: var(--s-fg-faint);
}

.dg-lines--fan path {
  stroke: var(--ink-500);
}

path.dg-lines--main {
  stroke: var(--ink-600);
  stroke-width: 2.6;
}

.dg-node--hub rect {
  fill: var(--ink-600);
  stroke: none;
}

.dg-media circle {
  fill: var(--s-fg-faint);
}

.door__panel--after .dg-media circle {
  fill: var(--ink-500);
}

/* the lines draw themselves in when the slide arrives */
.door .dg-lines path {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  transition: stroke-dashoffset 1s var(--ease);
}

.door .dg-lines--fan path:nth-child(2) { transition-delay: 90ms; }
.door .dg-lines--fan path:nth-child(3) { transition-delay: 180ms; }
.door .dg-lines--fan path:nth-child(4) { transition-delay: 270ms; }
.door .dg-lines--fan path:nth-child(5) { transition-delay: 360ms; }

.door.is-in .dg-lines path {
  stroke-dashoffset: 0;
}

html.shot-mode .door .dg-lines path {
  stroke-dashoffset: 0 !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .door .dg-lines path {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* 08 — report sheet, placeholder figures only */
.fig--report .dg {
  max-width: 560px;
}

.rp-sheet {
  fill: var(--s-bg-raised);
  stroke: var(--s-line);
  stroke-width: 1.5;
}

.rp-head {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.rp-rule {
  fill: none;
  stroke: var(--s-line);
  stroke-width: 1;
}

.rp-kpi rect {
  fill: var(--s-bg-sunken);
}

.dg-t--num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  fill: var(--s-fg);
}

.rp-rows rect {
  fill: var(--s-line);
}

/* ---------- 03 keywords ---------- */
.keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--s-line);
}

.keys__item {
  display: grid;
  gap: var(--sp-3);
  justify-items: start;
  align-content: start;
}

.ic {
  width: 42px;
  height: 42px;
}

.ic-s {
  fill: none;
  stroke: var(--s-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-f {
  fill: var(--s-accent);
  stroke: none;
}

.keys__word {
  font-size: var(--fs-700);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.keys__sub {
  font-size: var(--fs-300);
  color: var(--s-fg-faint);
}

.keys__item:nth-child(2) { transition-delay: 90ms; }
.keys__item:nth-child(3) { transition-delay: 180ms; }

/* ---------- 05 content formats (detail) ---------- */
.fmt {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.fmt__item {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--s-line);
  border-radius: var(--r-3);
  background: var(--s-bg-raised);
}

.fmt__no {
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  color: var(--s-accent);
}

.fmt__name {
  font-size: var(--fs-600);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fmt__meta {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-200);
  color: var(--s-fg-faint);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--s-line);
}

.fmt__dl {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

.fmt__dl dt {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--s-fg-faint);
}

.fmt__dl dd {
  margin: 2px 0 0;
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.fmt__item:nth-child(2) { transition-delay: 70ms; }
.fmt__item:nth-child(3) { transition-delay: 140ms; }
.fmt__item:nth-child(4) { transition-delay: 210ms; }

.foot-note {
  font-size: var(--fs-200);
  color: var(--s-fg-faint);
  line-height: var(--lh-snug);
}

/* ---------- supporting point rows (message slides) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--s-line);
}

.chips__item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
}

.chips__item b {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--s-accent);
}

.pts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  padding-top: clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--s-line);
}

.pts--stack {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}

.pts__item {
  display: grid;
  gap: 5px;
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.pts--stack .pts__item {
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
}

.pts__item b {
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--s-fg);
}

.pts--big .pts__item b {
  font-size: var(--fs-700);
}

.pts--big .pts__item {
  gap: var(--sp-3);
  font-size: var(--fs-400);
}

/* ---------- 06 what we take over ---------- */
.deeds {
  display: grid;
  gap: var(--sp-4);
  padding-top: clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--s-line);
}

.deeds__label {
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--s-accent);
}

.deeds__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-4) clamp(14px, 1.8vw, 26px);
}

.deeds__list li {
  display: grid;
  gap: 4px;
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
  padding-left: var(--sp-3);
  border-left: 2px solid var(--s-line);
}

.deeds__list b {
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--s-fg);
}

/* ---------- 07 run order (detail) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  border-top: 1px solid var(--s-line);
}

/* the fixed row track lets the "광고주 준비" line sit on one baseline across
   the four steps even though they carry different numbers of bullets */
.flow__item {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--sp-2);
  padding-top: clamp(18px, 2.2vw, 28px);
}

.flow__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--s-accent);
}

.flow__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-200);
  letter-spacing: 0.12em;
  color: var(--s-fg-faint);
}

.flow__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--s-accent);
}

.flow__name {
  font-size: var(--fs-600);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.flow__do {
  display: grid;
  gap: 6px;
  margin-top: var(--sp-1);
}

.flow__do li {
  position: relative;
  padding-left: 15px;
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.flow__do li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 1px;
  background: var(--s-fg-faint);
}

.flow__prep {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--s-line);
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.flow__prep span {
  display: block;
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--s-fg-faint);
  margin-bottom: 3px;
}

.flow__item:nth-child(2) { transition-delay: 70ms; }
.flow__item:nth-child(3) { transition-delay: 140ms; }
.flow__item:nth-child(4) { transition-delay: 210ms; }

/* ---------- 08 / 09 item lists beside a figure ---------- */
.specs {
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--s-line);
}

.specs li {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: baseline;
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.specs b {
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--s-fg);
}

/* 08 — viewing page mockup */
.fig--watch .dg {
  max-width: 520px;
}

.wt-head {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  fill: var(--s-fg-muted);
}

.wt-live {
  fill: var(--tally-500);
}

.wt-screen {
  fill: var(--ink-900);
}

.wt-gate {
  fill: var(--s-bg-sunken);
  stroke: var(--s-line);
  stroke-width: 1;
}

.wt-bar {
  fill: var(--ondark-fill);
}

.wt-bar--dim {
  fill: var(--ondark-fill-soft);
}

.wt-lower {
  fill: var(--ink-990);
  fill-opacity: 0.86;
}

.wt-lower-bar {
  fill: var(--mist-100);
  fill-opacity: 0.8;
}

.wt-lower-bar--dim {
  fill: var(--mist-300);
  fill-opacity: 0.45;
}

.wt-tally {
  fill: var(--tally-400);
}

.wt-field {
  fill: var(--s-bg);
  stroke: var(--s-line);
  stroke-width: 1;
}

.wt-check rect {
  fill: var(--s-bg);
  stroke: var(--s-line);
  stroke-width: 1;
}

.wt-cap {
  font-size: 13px;
  font-weight: 500;
}

.wt-ck {
  font-size: 11px;
  font-weight: 500;
  fill: var(--s-fg-muted);
}

.wt-ck--chat {
  font-size: 13px;
  fill: var(--s-fg-faint);
}

/* ---------- 10 review and consent ---------- */
.safe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 3.5vw, 56px);
  align-items: start;
}

.safe__rules {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
}

.safe__rules li {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-3);
  padding-bottom: clamp(14px, 1.8vw, 22px);
  border-bottom: 1px solid var(--s-line);
  font-size: var(--fs-300);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.safe__rules li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.safe__no {
  grid-row: span 2;
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--s-accent);
  padding-top: 3px;
}

.safe__rules b {
  font-size: var(--fs-500);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--s-fg);
}

.consent {
  border: 1px solid var(--s-line);
  border-radius: var(--r-3) var(--r-3) 0 0;
  overflow: hidden;
  background: var(--s-bg-raised);
}

.consent caption {
  text-align: left;
  padding: var(--sp-3) var(--sp-5);
  background: var(--s-bg-sunken);
  border-bottom: 1px solid var(--s-line);
  font-size: var(--fs-200);
  font-weight: 700;
}

.consent th,
.consent td {
  text-align: left;
  vertical-align: top;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--s-line);
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
}

.consent tr:last-child th,
.consent tr:last-child td {
  border-bottom: 0;
}

.consent th {
  font-weight: 600;
  width: 48%;
}

.consent td {
  color: var(--s-fg-muted);
}

.consent .req,
.consent .opt {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 1px 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-3) var(--sp-5);
  border: 1px solid var(--s-line);
  border-top: 0;
  border-radius: 0 0 var(--r-3) var(--r-3);
  background: var(--s-bg-sunken);
  font-size: var(--fs-100);
  color: var(--s-fg-muted);
  line-height: var(--lh-snug);
}

/* ---------- 07 run order ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  border-top: 1px solid var(--s-line);
}

.steps__item {
  position: relative;
  display: grid;
  gap: var(--sp-2);
  justify-items: start;
  align-content: start;
  padding-top: clamp(22px, 2.6vw, 34px);
}

.steps__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--s-accent);
}

.steps__no {
  font-size: var(--fs-200);
  letter-spacing: 0.14em;
  color: var(--s-fg-faint);
}

.steps__name {
  font-size: var(--fs-700);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps__time {
  font-size: var(--fs-300);
  color: var(--s-accent);
}

.steps__item:nth-child(2) { transition-delay: 70ms; }
.steps__item:nth-child(3) { transition-delay: 140ms; }
.steps__item:nth-child(4) { transition-delay: 210ms; }

/* ---------- 12 inquiry ---------- */
.inq__mail {
  margin-top: var(--sp-2);
}

.inq__mail a {
  font-family: var(--font-mono);
  font-size: var(--fs-600);
  font-weight: 500;
  color: var(--s-accent);
  text-underline-offset: 5px;
}

.inq__note {
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-faint);
  max-width: 640px;
}

.form {
  display: grid;
  gap: var(--sp-4);
  width: 100%;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
}

.more__body .form__row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label,
.fieldset__legend {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--s-fg);
}

.req-mark {
  color: var(--s-accent);
  margin-left: 3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--s-bg-raised);
  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: 96px;
  line-height: 1.6;
  resize: vertical;
}

.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(--s-accent);
}

.field__err {
  font-size: var(--fs-100);
  color: var(--s-accent);
}

.field__err:empty {
  display: none;
}

.agree {
  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-raised);
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
}

.agree input {
  margin-top: 2px;
  accent-color: var(--ink-600);
}

.agree__req {
  color: var(--s-accent);
  font-weight: 700;
}

.more {
  border: 1px solid var(--s-line);
  border-radius: var(--r-2);
  background: var(--s-bg-raised);
}

.more__sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 12px var(--sp-4);
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-200);
  font-weight: 600;
}

.more__sum::-webkit-details-marker {
  display: none;
}

.more__sum::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--s-fg-faint);
}

.more[open] .more__sum::after {
  content: "\2212";
}

.more__hint {
  margin-left: auto;
  font-weight: 400;
  color: var(--s-fg-faint);
}

.more__body {
  display: grid;
  gap: var(--sp-4);
  padding: 0 var(--sp-4) var(--sp-4);
}

/* a closed panel must leave no box behind */
.more:not([open]) .more__body {
  display: none;
}

.fieldset {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  border: 0;
}

.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);
  background: var(--s-bg);
  font-size: var(--fs-200);
  color: var(--s-fg-muted);
  cursor: pointer;
}

.check input {
  accent-color: var(--ink-600);
}

.check:hover {
  border-color: var(--s-fg-faint);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

.form__status {
  font-size: var(--fs-200);
  line-height: var(--lh-snug);
  color: var(--s-fg-muted);
  max-width: 54ch;
}

.form__status:empty {
  display: none;
}

.form__status[data-tone="err"] {
  color: var(--s-accent);
}

.form__status[data-tone="ok"] {
  color: var(--ink-600);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-left: auto;
  padding: 14px var(--sp-7);
  border: 1px solid transparent;
  border-radius: var(--r-2);
  background: var(--s-btn-bg);
  color: var(--s-btn-fg);
  font-size: var(--fs-400);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
    transform 160ms var(--ease);
}

.btn:hover {
  background: var(--ink-600);
  color: var(--paper-0);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ---------- appendix ---------- */
.appendix {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: var(--s-bg-sunken);
  color: var(--s-fg);
}

.appendix__inner {
  max-width: var(--shell-narrow);
  margin-inline: auto;
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
}

.appendix__title {
  font-size: var(--fs-700);
  letter-spacing: -0.02em;
}

.qa {
  display: grid;
  border-top: 1px solid var(--s-line);
}

.qa__item {
  border-bottom: 1px solid var(--s-line);
}

.qa__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-500);
  font-weight: 700;
}

.qa__item summary::-webkit-details-marker {
  display: none;
}

.qa__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--s-fg-faint);
}

.qa__item[open] summary::after {
  content: "\2212";
}

.qa__item p {
  padding-bottom: var(--sp-5);
  max-width: 68ch;
  font-size: var(--fs-300);
  color: var(--s-fg-muted);
}

.qa__item:not([open]) p {
  display: none;
}

/* ---------- footer ---------- */
.foot {
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  background: var(--s-bg);
  color: var(--s-fg-muted);
  font-size: var(--fs-200);
}

.foot__inner {
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4) var(--sp-7);
  align-items: center;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  color: var(--s-fg);
}

.foot__logo {
  display: block;
  width: auto;
  height: 24px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-2) var(--sp-5);
}

.foot__links a {
  color: var(--s-fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--ondark-line-strong);
  padding-bottom: 2px;
}

.foot__links a:hover {
  color: var(--s-fg);
  border-bottom-color: var(--s-accent);
}

.foot__mail a {
  font-family: var(--font-mono);
  color: var(--s-fg);
}

.foot__copy {
  text-align: right;
  font-size: var(--fs-100);
  color: var(--s-fg-faint);
}

/* ---------- motion pause while the tab is hidden ---------- */
html.is-hidden *,
html.is-hidden *::before,
html.is-hidden *::after {
  animation-play-state: paused !important;
}

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  /* the list wraps to two rows here, so the diagram gives the height back */
  .deeds__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dg--door {
    max-height: 190px;
  }
}

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

  .slide__inner--split .slide__head {
    max-width: 900px;
  }

  .fig--cycle .dg,
  .fig--report .dg,
  .fig--watch .dg {
    max-width: 440px;
  }

  .fmt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safe {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .door__panel--after::before {
    left: 50%;
    top: calc(-1 * (var(--door-gap) / 2) - 7px);
    transform: translateX(-50%) rotate(135deg);
  }

  .dg--door {
    max-height: 26svh;
    width: auto;
    margin-inline: auto;
  }

  .form__row,
  .more__body .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  /* clears the ident plates: they sit at 17px with a 40px box at this height */
  .slide {
    --slide-pt: 86px;
    --slide-pb: 72px;
  }

  /* the brand plate and the back link share the top rail here, so both shrink */
  .chrome__brand {
    padding: 7px 10px 6px 9px;
    gap: 4px;
  }

  .chrome__logo {
    height: 14px;
  }

  .chrome__back {
    padding: 7px 10px;
    font-size: var(--fs-100);
  }

  .keys {
    gap: var(--sp-5);
    grid-template-columns: minmax(0, 1fr);
  }

  .keys__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--sp-4);
  }

  .ic {
    width: 34px;
    height: 34px;
  }

  .fmt,
  .flow,
  .deeds__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* two rows of steps: the rail belongs to each item, not to the row above */
  .flow {
    border-top: 0;
    row-gap: clamp(24px, 5vw, 34px);
  }

  .flow__item {
    border-top: 1px solid var(--s-line);
  }

  .pts {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-4);
  }

  .pts__item {
    grid-template-columns: 7em minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: baseline;
  }

  .pts--big .pts__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .specs li {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  /* the timeline is a thin strip at this width — its labels need the size back */
  .fig--day .dg-t {
    font-size: 36px;
  }

  .fig--day .dg-t--mono,
  .fig--day .dg-t--faint {
    font-size: 30px;
  }

  .foot__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot__links {
    justify-content: flex-start;
  }

  .foot__copy {
    text-align: left;
  }
}

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

  .form__foot {
    align-items: stretch;
  }

  .btn {
    width: 100%;
    margin-left: 0;
  }
}
