/* Gable launch site. Tokens shared with the app (src/styles.css). */
:root {
  color-scheme: light dark;

  /* Light: primed plaster */
  --plaster: #f3efe6;
  --plaster-raised: #fbf9f4;
  --plaster-sunken: #e9e3d7;
  --ink: #1b1a17;
  --ink-muted: #5c574d;
  --line: #ddd6c8;
  --line-strong: #b9b0a0;
  --vermilion: #c8371a;
  --vermilion-deep: #a82c13;
  --vermilion-soft: #f6dcd2;
  --on-vermilion: #ffffff;
  --focus: #1f5fd1;

  /* Mural pigments: illustrations only */
  --cobalt: #1d4fa3;
  --saffron: #e8a629;
  --sea-green: #2f8f7a;
  --tile-white: #f7f3ea;
  --brick: #b9a48a;

  /* Illustration-only scene colours */
  --sky: #cfe3ea;
  --patch: #d3c3ab;
  --neighbour: #d9d0c1;
  --glass: #4a5b68;
  --cobble: #8d8577;

  --shadow-sm: 0 1px 2px rgb(40 30 15 / 0.06), 0 1px 1px rgb(40 30 15 / 0.04);
  --shadow-md: 0 6px 16px -4px rgb(40 30 15 / 0.12), 0 2px 4px rgb(40 30 15 / 0.06);
  --shadow-lg: 0 18px 40px -12px rgb(40 30 15 / 0.22);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --content: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --rhythm: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease-roller: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --plaster: #171614;
    --plaster-raised: #211f1c;
    --plaster-sunken: #2c2a26;
    --ink: #f1ece2;
    --ink-muted: #b4ad9f;
    --line: #3a3732;
    --line-strong: #5a554c;
    --vermilion: #ff7a4d;
    --vermilion-deep: #ff9670;
    --vermilion-soft: #3d2419;
    --on-vermilion: #171614;
    --focus: #8ab4ff;

    --cobalt: #4b7fd6;
    --saffron: #f0b84a;
    --sea-green: #4fb39c;
    --tile-white: #e9e3d7;
    --brick: #6e6355;

    --sky: #24303f;
    --patch: #7d7163;
    --neighbour: #2f2c28;
    --glass: #e8b65a;
    --cobble: #4a4640;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 6px 16px -4px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 18px 40px -12px rgb(0 0 0 / 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

/* Faint plaster texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--vermilion-soft);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--plaster);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus {
  top: 0.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}

.section {
  padding-block: var(--rhythm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg {
  min-height: 56px;
  padding-inline: 1.75rem;
  font-size: 1.0625rem;
}
.btn-sm {
  padding-inline: 1rem;
  font-size: 0.9375rem;
}
.btn-primary {
  background: var(--vermilion);
  color: var(--on-vermilion);
}
.btn-primary:hover {
  background: var(--vermilion-deep);
}
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--plaster-sunken);
}
.btn-invert {
  background: var(--plaster);
  color: var(--ink);
}
.btn-invert:hover {
  background: var(--plaster-sunken);
}
.btn:active {
  transform: translateY(1px);
}

/* ---------- Logo ---------- */
.mark-fill {
  fill: var(--vermilion);
}
.mark-line {
  stroke: var(--ink);
}
.mark-knob {
  fill: var(--plaster);
}

.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4em;
  min-height: 44px;
  padding-block: 6px;
  text-decoration: none;
  font-size: 1.25rem;
  border-radius: 6px;
}
.logo-mark {
  width: 1.6em;
  height: 1.6em;
  flex: none;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  /* Sit the baseline on the wall's foot (y=28 of 32) */
  padding-bottom: calc(1.6em * 4 / 32 - 0.12em);
}

/* ---------- 1. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--plaster) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.js .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.main-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-muted);
}
.main-nav a:hover {
  color: var(--ink);
  background: var(--plaster-sunken);
}
.main-nav a:active {
  background: var(--line);
}
.btn-header {
  margin-left: 0.5rem;
}
.btn-header .short {
  display: none;
}

@media (max-width: 719.98px) {
  .main-nav {
    display: none;
  }
  .btn-header {
    margin-left: auto;
  }
  .btn-header .long {
    display: none;
  }
  .btn-header .short {
    display: inline;
  }
}

/* ---------- 2. Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 1rem + 5vw, 6rem) var(--rhythm);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
}
.hero-title {
  font-size: clamp(2.75rem, 1.6rem + 6vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.hero-title .w {
  display: inline-block;
}
.hero-title .dot {
  color: var(--vermilion);
}
.desk-br {
  display: none;
}
.lede {
  max-width: 62ch;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}
.caption {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-wall {
  margin: 0 calc(-1 * var(--gutter));
}
.wall {
  --reveal: 50;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--sky);
}
.js .wall {
  --reveal: 0;
}
.wall-art {
  display: block;
  width: 100%;
  height: 100%;
}
.spec-line {
  margin-top: 0.875rem;
  padding-inline: var(--gutter);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* Scene fills */
.sky {
  fill: var(--sky);
}
.neighbour {
  fill: var(--neighbour);
}
.neighbour-win {
  fill: var(--glass);
  opacity: 0.55;
}
.render {
  fill: var(--brick);
}
.patch {
  fill: var(--patch);
  opacity: 0.7;
}
.crack {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.45;
  stroke-width: 2;
  stroke-linejoin: round;
}
.roof {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}
.band {
  fill: var(--sea-green);
}
.drainpipe {
  fill: var(--ink);
  opacity: 0.6;
}
.window-frame {
  fill: var(--tile-white);
  stroke: var(--ink);
  stroke-width: 2;
}
.glass {
  fill: var(--glass);
}
.window-bar {
  stroke: var(--tile-white);
  stroke-width: 4;
}
.door {
  fill: #3a3027;
}
.awning {
  fill: url(#stripes);
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}
.ink-line {
  fill: var(--ink);
}
.cobble {
  fill: var(--cobble);
}
.cobble-stones ellipse {
  fill: var(--ink);
  opacity: 0.12;
}
.table-top,
.table-leg,
.chair {
  fill: #2b2620;
}
@media (prefers-color-scheme: dark) {
  .table-top,
  .table-leg,
  .chair,
  .door {
    fill: #0e0d0c;
  }
}
.p-tile {
  fill: var(--tile-white);
}
.p-cobalt {
  fill: var(--cobalt);
}
.p-saffron {
  fill: var(--saffron);
}
.p-stripe-a {
  fill: var(--vermilion);
}
.p-grout {
  fill: none;
  stroke: var(--cobalt);
  stroke-opacity: 0.35;
  stroke-width: 1;
}

/* Divider, handle, tags, range */
.wall-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--reveal) * 1%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--plaster-raised);
  box-shadow: 0 0 0 1px rgb(27 26 23 / 0.85);
  pointer-events: none;
}
.wall-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plaster);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
.wall-handle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wall:hover .wall-handle {
  background: var(--plaster-raised);
}
.wall.is-dragging .wall-handle {
  transform: scale(0.94);
}
.wall:has(.wall-range:focus-visible) .wall-handle {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.tag {
  position: absolute;
  top: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgb(27 26 23 / 0.72);
  color: #f3efe6;
  font: 500 0.75rem/1.3 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.tag-after {
  left: 0.75rem;
}
.tag-before {
  right: 0.75rem;
}
.wall-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.js .wall-range {
  /* Pointer drags go through main.js so the divider follows the finger exactly. */
  pointer-events: none;
}

@media (min-width: 600px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 599.98px) {
  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .hero-wall {
    margin: 0;
  }
  .wall {
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
  }
  .spec-line {
    padding-inline: 0;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .desk-br {
    display: inline;
  }
}

/* ---------- 3. Problem ---------- */
.problem-inner {
  max-width: calc(48rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.problem p {
  max-width: 62ch;
  margin: 1.5rem auto 0;
  font-size: 1.1875rem;
  color: var(--ink-muted);
}
.rule {
  display: block;
  width: 64px;
  height: 3px;
  margin: 2.5rem auto 0;
  background: var(--vermilion);
  transform-origin: left center;
}

/* ---------- 4. How it works ---------- */
.how .section-title {
  max-width: 18ch;
}
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
}
.step {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.step:first-child {
  border-top: 0;
  padding-top: 0;
}
.step-num {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--line-strong);
}
.vignette {
  display: block;
  width: 160px;
  height: 120px;
  margin: 1.25rem 0;
}
.step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--ink-muted);
  max-width: 62ch;
}

.v-brick {
  fill: var(--brick);
}
.v-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
}
.v-badge {
  fill: var(--vermilion);
}
.v-plus {
  stroke: var(--on-vermilion);
  stroke-width: 3;
  stroke-linecap: round;
}

.v-slide {
  display: grid;
  place-items: center;
}
.v-slide-frame {
  position: relative;
  width: 140px;
  height: 105px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--brick);
}
.v-slide-before {
  position: absolute;
  inset: 0;
  background: var(--brick);
}
.v-slide-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 70% 0 0);
}
.v-slide-track {
  position: absolute;
  inset: 0;
  transform: translateX(30%);
}
.v-slide-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--ink);
}
.v-slide-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--plaster);
  border: 2px solid var(--ink);
}

.v-note {
  display: grid;
  place-items: center;
}
.v-paper {
  display: grid;
  gap: 0.35rem;
  width: 150px;
  padding: 0.85rem 0.75rem;
  background: var(--plaster-raised);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
  font-size: 0.6875rem;
  line-height: 1.3;
  white-space: nowrap;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .step,
  .step:first-child {
    padding: 0 2rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .step:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .step:last-child {
    padding-right: 0;
  }
}

/* ---------- 5. Features: wall labels ---------- */
.features .section-title {
  max-width: 16ch;
}
.labels {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
.labels-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.label {
  max-width: 30rem;
  padding: 1.5rem;
  background: var(--plaster-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.label .cat {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.label h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.label > p:not(.cat) {
  color: var(--ink-muted);
}
.detail {
  margin-top: 1.25rem;
}
.detail-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}
.detail-range input {
  flex: 1 1 8rem;
  min-width: 0;
  height: 44px;
  margin: 0;
  accent-color: var(--vermilion);
  cursor: pointer;
}
.detail-range output {
  font-size: 0.8125rem;
  color: var(--ink);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
}
.chips li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.chips li.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--plaster);
}
.small-line {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}
.note {
  margin: 0;
  padding: 1rem;
  background: var(--plaster-sunken);
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.copy-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.status {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.file svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 800px) {
  /* Two independent stacks, hung at different heights. DOM order stays Fig. 1 to 7. */
  .labels {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .labels-col {
    gap: 2.5rem;
  }
  .labels-col + .labels-col {
    margin-top: 3rem;
  }
  .label {
    max-width: none;
  }
}

/* ---------- 6. Try it ---------- */
.try {
  background: var(--plaster-sunken);
  padding-block: var(--rhythm);
}
.try-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.try-head p:last-child {
  margin-top: 1.25rem;
  color: var(--ink-muted);
}
.try-head strong {
  color: var(--ink);
  font-weight: 600;
}
.embed {
  max-width: var(--content);
  margin-inline: auto;
  padding: 12px;
  background: var(--plaster);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.embed-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  padding: 0 0.25rem 8px;
}
.embed-mark {
  width: 18px;
  height: 18px;
  flex: none;
}
.embed-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  min-width: 0;
}
.embed-path {
  color: var(--ink-muted);
}
.embed-right a,
.embed-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  margin-block: -4px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--vermilion);
  text-underline-offset: 3px;
}
.embed-right a:hover,
.embed-fallback a:hover {
  color: var(--vermilion-deep);
}
.embed-right a:active,
.embed-fallback a:active {
  background: var(--vermilion-soft);
}
.embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 12px;
  background: var(--plaster-raised);
}
.embed-fallback {
  margin-top: 1rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}
@media (max-width: 479.98px) {
  .embed-path {
    display: none;
  }
}
@media (min-width: 720px) {
  .embed iframe {
    height: min(78vh, 820px);
  }
}

/* ---------- 7. Closing ---------- */
.closing {
  background: var(--ink);
  color: var(--plaster);
  padding-block: var(--rhythm);
}
@media (prefers-color-scheme: dark) {
  .closing {
    background: var(--plaster-raised);
    color: var(--ink);
  }
  .btn-invert {
    background: var(--ink);
    color: var(--plaster);
  }
  .btn-invert:hover {
    background: var(--tile-white);
  }
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing-head {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0.5rem 0;
}
.stroke {
  position: absolute;
  left: 5%;
  top: 0;
  width: 90%;
  height: 100%;
  min-height: 64px;
  fill: var(--vermilion);
  clip-path: inset(0 0 0 0);
}
.closing-title {
  position: relative;
  max-width: 16ch;
  padding-inline: 1rem;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--on-vermilion);
  text-wrap: balance;
}
.closing p {
  max-width: 52ch;
  margin: 2rem 0;
  font-size: 1.125rem;
}
@media (min-width: 720px) {
  .closing-head {
    min-height: 120px;
    padding: 1rem 0;
  }
}
@media (max-width: 599.98px) {
  .closing .btn {
    width: 100%;
  }
}

/* ---------- 8. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
.footer-mark {
  width: 20px;
  height: 20px;
  flex: none;
}
.footer-right a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}
.footer-right a:hover {
  color: var(--vermilion);
}
.footer-right a:active {
  background: var(--plaster-sunken);
}
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-right a {
    margin-left: 0;
  }
}

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .main-nav a {
    transition:
      background-color 0.15s ease,
      color 0.15s ease,
      transform 0.1s ease;
  }
  .wall-handle {
    transition:
      transform 0.15s ease,
      background-color 0.15s ease;
  }
  .site-header {
    transition: border-color 0.2s ease;
  }

  /* Headline words rise in */
  .js .hero-title .w {
    animation: word-rise 0.5s var(--ease-roller) both;
    animation-delay: calc(var(--i) * 60ms);
  }
  @keyframes word-rise {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
  }

  /* "Drag me" nudge after the sweep */
  .wall-handle.is-nudging {
    animation: nudge 0.6s ease-in-out;
  }
  @keyframes nudge {
    25% {
      transform: translateX(-6px);
    }
    75% {
      transform: translateX(6px);
    }
  }

  /* Entrances: hidden only when JS is on and will reveal them */
  .js [data-reveal] {
    transition:
      opacity 0.6s var(--ease-roller),
      transform 0.6s var(--ease-roller);
  }
  .js [data-reveal="step"]:not(.in) {
    opacity: 0;
    transform: translateY(16px);
  }
  .js [data-reveal="step"] {
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="label"]:not(.in) {
    opacity: 0;
    transform: translateY(20px);
  }
  /* The entrance delay sits on opacity/transform only, so the hover lift
     (translate, box-shadow) never lags behind the pointer. */
  .js [data-reveal="label"] {
    transition:
      opacity 0.6s var(--ease-roller) var(--label-delay, 0ms),
      transform 0.6s var(--ease-roller) var(--label-delay, 0ms),
      translate 0.25s ease,
      box-shadow 0.25s ease;
  }
  @media (min-width: 800px) {
    .labels-col + .labels-col {
      --label-delay: 80ms;
    }
  }
  .js [data-reveal="embed"]:not(.in) {
    opacity: 0;
    transform: translateY(24px);
  }
  .js [data-reveal="rule"] {
    transition: transform 0.8s var(--ease-roller);
  }
  .js [data-reveal="rule"]:not(.in) {
    transform: scaleX(0);
  }
  .js [data-reveal="stroke"] {
    transition: none;
  }
  .js [data-reveal="stroke"] .stroke {
    transition: clip-path 0.9s ease-out;
  }
  .js [data-reveal="stroke"]:not(.in) .stroke {
    clip-path: inset(0 100% 0 0);
  }

  /* Step vignettes play once in view */
  .js .step.in .v-slide-track {
    animation: v-slide 1.8s var(--ease-roller) 0.3s;
  }
  .js .step.in .v-slide-after {
    animation: v-clip 1.8s var(--ease-roller) 0.3s;
  }
  @keyframes v-slide {
    50% {
      transform: translateX(70%);
    }
  }
  @keyframes v-clip {
    50% {
      clip-path: inset(0 30% 0 0);
    }
  }
  .js .v-paper span {
    clip-path: inset(0 100% 0 0);
  }
  .js .step.in .v-paper span {
    animation: type-in 0.7s steps(18, end) forwards;
    animation-delay: calc(0.3s + var(--n) * 0.7s);
  }
  @keyframes type-in {
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  /* Wall labels lift on hover */
  @media (hover: hover) {
    .label {
      transition:
        translate 0.25s ease,
        box-shadow 0.25s ease;
    }
    .label:hover {
      translate: 0 -2px;
      box-shadow: var(--shadow-md);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .wall {
    --reveal: 50;
  }
}
