/* Flashwall launch page. Tokens from docs/site/BRIEF.md, which takes them from docs/DESIGN.md. */

:root {
  --paper: #f4ecdc;
  --surface: #fbf6ec;
  --sunken: #ebe0cb;
  --ink: #1b1714;
  --ink-muted: #5a5048;
  --line-soft: #d2c3a8;
  --red: #b8321f;
  --red-hover: #962512;
  --on-red: #fbf6ec;
  --green: #1f5c4f;
  --gold: #c99a2e;
  --focus: #1f5c4f;

  /* The ink bands (price guide, close, footer) invert: --ink behind, --paper on top. */
  --band-gold: var(--gold);
  --band-muted: #b3a690;
  --band-rule: rgba(239, 230, 212, 0.15);
  --band-focus: var(--gold);

  --shadow-sm: 2px 2px 0 var(--ink);
  --shadow-md: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --display:
    "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia,
    serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad: clamp(4.5rem, 10vw, 8rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110f;
    --surface: #1e1a17;
    --sunken: #0d0b0a;
    --ink: #efe6d4;
    --ink-muted: #b3a690;
    --line-soft: #3a332d;
    --red: #e5573c;
    --red-hover: #f27a5f;
    --on-red: #14110f;
    --green: #5fb39f;
    --gold: #e2b84f;
    --focus: #e2b84f;

    /* In dark the ink band is bone, so its gold, muted text and rule darken to keep AA. */
    --band-gold: #7a5a12;
    --band-muted: #5a5048;
    --band-rule: rgba(27, 23, 20, 0.15);
    --band-focus: #1f5c4f;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main > section,
.site-footer {
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0;
  max-width: 62ch;
}

code,
pre,
.mono {
  font-family: var(--mono);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.red {
  color: var(--red);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "✦";
  color: var(--gold);
  margin-right: 0.6em;
  letter-spacing: 0;
}

.smallprint {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.75rem;
  padding: 0.6rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    background-color 140ms;
}
.btn--primary {
  background: var(--red);
  color: var(--on-red);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--red-hover);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--surface);
}
.btn--primary:hover,
.btn--ghost:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}
.btn--lg {
  min-height: 3.5rem;
  padding: 0.8rem 1.9rem;
  font-size: 1.125rem;
}
.btn--paper {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn--paper:hover {
  background: var(--band-rule);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.actions--center {
  justify-content: center;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-height: 44px;
}
.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
  overflow: visible;
}
.logo__sheet {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}
.logo__tape {
  fill: var(--gold);
  opacity: 0.9;
}
.logo__star {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
}
.logo__word {
  font: 700 1.375rem/1 var(--display);
  letter-spacing: -0.01em;
}

/* ---------- 0. Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid transparent;
  transition:
    background-color 200ms,
    border-color 200ms;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav__link {
  display: none;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 0;
}
.site-nav__link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

@media (min-width: 700px) {
  .site-nav__link {
    display: inline-block;
  }
}
@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-header.is-scrolled {
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    border-bottom-color: var(--ink);
    backdrop-filter: saturate(1.2);
  }
}

/* ---------- 1. Hero ---------- */

.hero {
  padding: clamp(2rem, 6vw, 5rem) 0 var(--pad);
}
.hero__grid {
  display: grid;
  gap: 3rem;
}
.hero__copy {
  align-self: center;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
}
.hero .actions {
  margin-top: 2rem;
}
.hero .smallprint {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
  .hero__title {
    font-size: clamp(3rem, 7vw, 7.5rem);
  }
}

.hero__stage {
  padding: 1.25rem 0.5rem 0.5rem;
}

.sheet {
  --px: 0;
  --py: 0;
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: calc(8px - var(--px) * 3px) calc(8px - var(--py) * 3px) 0
    var(--ink);
  transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px))
    rotate(-1deg);
  padding: 2.5rem clamp(0.75rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}
@media (min-width: 900px) {
  .sheet {
    transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px))
      rotate(-2deg);
  }
}

.tape {
  position: absolute;
  top: -11px;
  width: 72px;
  height: 22px;
  background: var(--gold);
  opacity: 0.7;
  translate: calc(var(--px) * 4px) calc(var(--py) * 4px);
}
.tape--left {
  left: 18px;
  rotate: -8deg;
}
.tape--right {
  right: 18px;
  rotate: 6deg;
}

.sheet__label {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.sheet__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2.5vw, 1.75rem) clamp(0.5rem, 2vw, 1.5rem);
}
@media (min-width: 560px) {
  .sheet__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.piece {
  position: relative;
  margin: 0;
  text-align: center;
}
.piece .art {
  display: block;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.piece figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.4rem;
}
.piece__title {
  font: 700 0.9375rem/1.2 var(--display);
}
.piece__price {
  font: 0.8125rem/1.2 var(--mono);
  color: var(--ink-muted);
}

.stamp {
  position: absolute;
  top: 34%;
  left: 50%;
  translate: -50% -50%;
  rotate: -12deg;
  padding: 0.2rem 0.55rem;
  border: 2px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font: 800 0.875rem/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

/* The product's flash art, mapped to the palette as in src/styles.css. */
.art-fill {
  fill: var(--red);
}
.art-accent {
  fill: var(--gold);
  stroke: var(--ink);
  stroke-width: 3;
}
.art-shade {
  fill: var(--green);
}
.art-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.art-detail {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art-thin {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

/* ---------- Bands and section heads ---------- */

.band {
  padding: var(--pad) 0;
}
.band--sunken {
  background: var(--sunken);
}
.band--ink,
.close,
.site-footer {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--band-focus);
}
.band--ink .eyebrow,
.close .eyebrow {
  color: var(--band-gold);
}
.band--ink .eyebrow::before {
  color: var(--band-gold);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  text-align: center;
}
.section-head--center h2 {
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    rotate 180ms var(--ease-out);
}
.card:hover {
  rotate: 0deg;
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 2. The DMs ---------- */

.thread {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
  display: grid;
  gap: 1.25rem;
}
.dm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.dm__bubble {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.15rem;
  max-width: 100%;
}
.dm__q {
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 100%
    3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tag {
  align-self: flex-end;
  display: inline-flex;
  gap: 0.4em;
  align-items: center;
  font: 600 0.8125rem/1 var(--mono);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  background: var(--paper);
  white-space: nowrap;
}
.thread__after {
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1.125rem;
}

@media (min-width: 700px) {
  .dm {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .tag {
    align-self: center;
  }
  .dm--indent {
    padding-left: 2rem;
  }
}

/* ---------- 3. Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}
.step {
  position: relative;
  padding: 2.25rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.step:nth-child(1) {
  rotate: -1deg;
}
.step:nth-child(2) {
  rotate: 0.75deg;
}
.step:nth-child(3) {
  rotate: -0.5deg;
}
.step:hover {
  rotate: 0deg;
}
.step__num {
  position: absolute;
  top: -1.375rem;
  left: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--on-red);
  border: 2px solid var(--ink);
  font: 700 1.375rem/1 var(--display);
}
.step h3 code {
  font-size: 0.85em;
}
.step p code {
  font-size: 0.9em;
  background: var(--sunken);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}
.code {
  margin: 0.25rem 0 0;
  background: var(--sunken);
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  overflow-x: auto;
  max-width: 100%;
}
.code .s {
  color: var(--red);
}
.code .k {
  color: var(--ink);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
  }
}

/* ---------- 4. Price guide ---------- */

.price__grid {
  display: grid;
  gap: 3rem;
}
.price__copy {
  display: grid;
  gap: 1.25rem;
  align-content: center;
}
.price__copy h2 {
  margin-bottom: 0.25rem;
}
.price__copy .eyebrow {
  margin-bottom: 0;
}
.rule {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  font: 0.9375rem/1.4 var(--mono);
  max-width: 28rem;
}
.rule li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.rule li:first-child {
  border-top: 1px solid var(--line-soft);
}

.estimate {
  order: -1;
  --focus: var(--green);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--red);
  rotate: 1deg;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.35rem;
  min-width: 0;
  transition: rotate 200ms var(--ease-out);
}
.estimate:focus-within {
  rotate: 0deg;
}
@media (prefers-color-scheme: dark) {
  .estimate {
    --focus: var(--gold);
  }
}
@media (min-width: 900px) {
  .price__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
  }
  .estimate {
    order: 0;
  }
}

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.field > label,
.field legend {
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0;
}
.size {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.size__num {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--mono);
}
.size__num input,
.estimate select {
  font: 1rem var(--mono);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  min-height: 2.75rem;
}
.size__num input {
  width: 4.25rem;
  padding: 0.3rem 0.5rem;
  text-align: right;
}
.estimate select {
  width: 100%;
  padding: 0.4rem 0.75rem;
  font-family: var(--body);
}

.range {
  --fill: 15.25%;
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: linear-gradient(
    to right,
    var(--red) var(--fill),
    var(--line-soft) var(--fill)
  );
}
.range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--line-soft);
}
.range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
}
.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--ink);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.seg legend {
  width: 100%;
  margin-bottom: 0.5rem;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--surface);
  color: var(--ink);
}
.seg input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.result {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 0;
  border-top: 2px dashed var(--line-soft);
  border-bottom: 2px dashed var(--line-soft);
}
.result__range {
  position: relative;
  display: block;
  min-height: 1.1em;
  font: 700 clamp(2.75rem, 7vw, 4.5rem) / 1.05 var(--display);
  color: var(--red);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.result__value {
  display: block;
}
.result__value--consult {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  padding: 0.35em 0;
}
.result__value--invalid {
  font: 600 1.0625rem/1.4 var(--body);
  color: var(--ink);
  padding: 0.9em 0;
}
.result__tier {
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  min-height: 1.4em;
}
.estimate__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.estimate__foot .smallprint {
  flex: 1 1 14rem;
}

/* ---------- 5. Features ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
}
.feat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.feat p {
  color: var(--ink-muted);
}
.vig {
  min-height: 4.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.bento__after {
  margin-top: 2.5rem;
  color: var(--ink-muted);
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .feat--gallery {
    grid-column: span 4;
    grid-row: span 2;
  }
  .feat--artists {
    grid-column: span 2;
    grid-row: span 2;
  }
  .feat--aftercare,
  .feat--slip {
    grid-column: span 3;
  }
  .feat--modes,
  .feat--private {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1.25rem;
    align-items: center;
  }
  .feat--modes .vig,
  .feat--private .vig {
    grid-row: span 2;
    margin: 0;
  }
}

.vig--gallery {
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  flex: 1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  transition:
    background-color 120ms,
    color 120ms;
}
@media (hover: hover) {
  .chip:hover {
    background: var(--ink);
    color: var(--paper);
  }
}
.vig__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
}
.vig__row .mono {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.switch__track {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: calc(1.25rem - 6px);
  height: calc(1.25rem - 6px);
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ink);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  justify-items: center;
  margin-top: auto;
  padding: 0.75rem;
  background: var(--sunken);
  border-radius: 4px;
}
.thumbs .art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 120px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.vig--artists {
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.mono-gram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.disc {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font: 700 1.25rem/1 var(--display);
}
.disc--red {
  background: var(--red);
  color: var(--on-red);
}
.disc--green {
  background: var(--green);
  color: var(--on-red);
}
.disc--gold {
  background: var(--gold);
  color: #1b1714;
}
.badge {
  font: 600 0.6875rem/1 var(--mono);
  padding: 0.25rem 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  white-space: nowrap;
  color: var(--ink-muted);
}
.badge--open {
  color: var(--green);
  border-color: var(--green);
}

.vig--stages {
  position: relative;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.25rem;
}
.vig--stages::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  right: 1rem;
  border-top: 2px dashed var(--ink);
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font: 0.6875rem/1.2 var(--mono);
  text-align: center;
  flex: 1;
}
.stage__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--on-red);
  border: 2px solid var(--ink);
  font: 700 0.9375rem/1 var(--display);
}

.vig--slip {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font: 0.75rem/1.5 var(--mono);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-bottom: 0;
  padding: 0.65rem 0.85rem 1.1rem;
  --zig: 8px;
  mask: conic-gradient(
      from -45deg at bottom,
      #0000,
      #000 1deg 89deg,
      #0000 90deg
    )
    50% / calc(2 * var(--zig)) 100%;
}

.split {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, #f4ecdc 50%, #14110f 50%);
}
.ring {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 2px dashed var(--ink);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.5rem;
}

/* ---------- 6. Demo bench ---------- */

.tabs-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter)) 1.5rem;
  padding: 0.35rem var(--gutter) 0.6rem;
  scrollbar-width: thin;
}
.tabs {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  margin: 0 auto;
}
.tabs a {
  scroll-snap-align: start;
}
.tabs a[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.bench {
  margin: 0 auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  overflow: hidden;
}
.bench__bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 0.85rem;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
  position: relative;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.address {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  max-width: calc(100% - 8rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 0.8125rem/1 var(--mono);
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-muted);
}
.bench__screen {
  position: relative;
  height: min(78vh, 760px);
  background: var(--paper);
}
.bench__screen iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: normal;
}
.bench__empty {
  position: absolute;
  inset: 1.5rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  border: 2px dashed var(--line-soft);
  border-radius: 8px;
  text-align: center;
  color: var(--ink-muted);
  padding: 1.5rem;
}
.bench__star {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}
.bench__empty a {
  color: var(--ink);
  font-weight: 700;
}
.demo__after {
  margin: 1.5rem auto 0;
  text-align: center;
}
.demo__after + .demo__after {
  margin-top: 0.75rem;
}
.demo__after a {
  font-weight: 700;
  display: inline-block;
  padding: 0.6rem 0.25rem;
  text-underline-offset: 0.25em;
}

@media (max-width: 699px) {
  .tabs {
    margin: 0;
  }
  .bench {
    width: 100%;
    max-width: 390px;
    border: 10px solid var(--ink);
    outline: 2px solid var(--ink);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
  }
  .bench__bar {
    display: none;
  }
  .bench__screen {
    height: 640px;
  }
}

/* ---------- 7. Close ---------- */

.close {
  border-top: 3px solid var(--gold);
  padding: clamp(6rem, 14vw, 10rem) 0;
  text-align: center;
}
.close h2 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.close__line {
  margin: 1.5rem auto 2.5rem;
  font-size: 1.125rem;
}
.stars {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.75rem;
  color: var(--band-gold);
  font-size: 1.25rem;
}
.stars span {
  display: inline-block;
}
.close .btn--primary {
  border-color: var(--paper);
  box-shadow: 2px 2px 0 var(--paper);
}

/* ---------- 8. Footer ---------- */

.site-footer {
  padding: 0 0 3rem;
}
.site-footer__row {
  border-top: 1px solid var(--band-rule);
  padding-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.logo--band .logo__word {
  color: var(--paper);
}
.logo--band .logo__sheet {
  stroke: var(--paper);
  fill: var(--ink);
}
.site-footer__print {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--band-muted);
  max-width: 44ch;
}
.site-footer__print .mono {
  font-size: 0.8125rem;
}

/* ---------- Motion ---------- */
/* Everything above is the resting, fully visible state. Motion only exists under
   .js-motion, which main.js sets when prefers-reduced-motion allows it. */

@media (prefers-reduced-motion: no-preference) {
  /* Hero: stencil draw, fills, captions, then the stamp. */
  .js-motion .sheet .art-line,
  .js-motion .sheet .art-detail {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 700ms ease-out forwards;
    animation-delay: calc(var(--i) * 110ms);
  }
  .js-motion .sheet .art-fill,
  .js-motion .sheet .art-shade,
  .js-motion .sheet .art-accent,
  .js-motion .sheet .art-thin {
    opacity: 0;
    animation: fade 300ms ease-out forwards;
    animation-delay: calc(var(--i) * 110ms + 700ms);
  }
  .js-motion .sheet figcaption,
  .js-motion .sheet__label {
    opacity: 0;
    animation: fade 260ms ease-out 1.25s forwards;
  }
  .js-motion .stamp {
    opacity: 0;
    animation: stamp 180ms ease-out 1.6s forwards;
  }
  .js-motion .sheet {
    transition:
      transform 60ms linear,
      box-shadow 60ms linear;
  }

  /* DMs: strike through, tag slides in. */
  .js-motion .dm .dm__q {
    background-size: 0% 3px;
  }
  .js-motion .dm .tag {
    opacity: 0;
    transform: translateX(-8px);
  }
  .js-motion .dm.is-in .dm__q {
    animation: strike 420ms ease-out forwards;
  }
  .js-motion .dm.is-in .tag {
    animation: slide-in 300ms var(--ease-out) 220ms forwards;
  }

  /* Steps and bento cards rise in, staggered. */
  .js-motion .step[data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(16px);
  }
  .js-motion .feat[data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(12px);
  }
  .js-motion .step.is-in {
    animation: rise-16 480ms var(--ease-out) backwards;
    animation-delay: calc(var(--i) * 90ms);
  }
  .js-motion .feat.is-in {
    animation: rise-12 420ms var(--ease-out) backwards;
    animation-delay: calc(var(--i) * 60ms);
  }
  .js-motion .feat--gallery .thumbs .art-line,
  .js-motion .feat--gallery .thumbs .art-detail {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js-motion .feat--gallery.is-in .thumbs .art-line,
  .js-motion .feat--gallery.is-in .thumbs .art-detail {
    animation: draw 500ms ease-out 200ms forwards;
  }

  /* Price: old number up and out, new number up from below. */
  .js-motion .result__value.is-out {
    position: absolute;
    inset: 0 auto auto 0;
    animation: num-out 160ms ease-in forwards;
  }
  .js-motion .result__value.is-in {
    animation: num-in 160ms var(--ease-out);
  }

  /* Demo: the address pill cross-fades. */
  .js-motion .address .is-swap,
  .js-motion [data-address].is-swap {
    animation: fade 220ms ease-out;
  }

  /* Close: three stars turn in. */
  .js-motion .close:not(.is-in) .stars span {
    opacity: 0;
  }
  .js-motion .close.is-in .stars span {
    animation: star-in 420ms var(--ease-out) backwards;
    animation-delay: calc(var(--i) * 80ms);
  }
}

@keyframes strike {
  to {
    background-size: 100% 3px;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes stamp {
  0% {
    opacity: 0;
    scale: 1.4;
  }
  70% {
    opacity: 0.85;
    scale: 1;
    transform: translateX(1px);
  }
  85% {
    transform: translateX(-1px);
  }
  100% {
    opacity: 0.85;
    scale: 1;
    transform: none;
  }
}
@keyframes slide-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise-16 {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes rise-12 {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes num-out {
  to {
    opacity: 0;
    transform: translateY(-0.4em);
  }
}
@keyframes num-in {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
}
@keyframes star-in {
  from {
    opacity: 0;
    rotate: -90deg;
    scale: 0.6;
  }
}
