/* Hangline launch site. Tokens from docs/site/BRIEF.md, shared with the app. */

:root {
  color-scheme: light dark;
  --color-wall: #f5f1ea;
  --color-surface: #fcfaf6;
  --color-surface-sunken: #ebe5da;
  --color-plaster-deep: #e4dccd;
  --color-line: #d9d1c3;
  --color-line-strong: #8f877a;
  --color-ink: #23211e;
  --color-ink-muted: #5c564d;
  --color-pencil: #7a7266;
  --color-frame: #23211e;
  --color-accent: #1d4f5c;
  --color-accent-strong: #153d48;
  --color-accent-soft: #d5e4e6;
  --color-on-accent: #ffffff;
  --color-warning: #a8321a;
  --color-warning-soft: #f7e0d8;
  --color-focus: #1d4f5c;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(35 33 30 / 0.08);
  --shadow-md: 0 2px 4px rgb(35 33 30 / 0.06), 0 8px 24px rgb(35 33 30 / 0.1);
  --shadow-lg: 0 4px 8px rgb(35 33 30 / 0.06), 0 18px 40px rgb(35 33 30 / 0.14);

  --duration-fast: 120ms;
  --duration-base: 220ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-settle: cubic-bezier(0.34, 1.4, 0.64, 1);

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

  --size-hero: clamp(2.6rem, 1.4rem + 5.2vw, 5.75rem);
  --size-closing: clamp(2.2rem, 1.35rem + 3.8vw, 4.5rem);
  --size-section: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  --size-small: 1.375rem;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(5rem, 10vw, 9rem);
  --gutter: clamp(1rem, 2.4vw, 2rem);
  --touch-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-wall: #1a1917;
    --color-surface: #23221f;
    --color-surface-sunken: #2c2a27;
    --color-plaster-deep: #211f1c;
    --color-line: #3d3a35;
    --color-line-strong: #7d766b;
    --color-ink: #efe9df;
    --color-ink-muted: #b5ad9f;
    --color-pencil: #9a9284;
    --color-frame: #efe9df;
    --color-accent: #8fc5d1;
    --color-accent-strong: #b0d8e0;
    --color-accent-soft: #24414a;
    --color-on-accent: #10191c;
    --color-warning: #f39a80;
    --color-warning-soft: #4a2219;
    --color-focus: #8fc5d1;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.35), 0 18px 40px rgb(0 0 0 / 0.5);
  }
}

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

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-wall);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--color-accent);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-accent-strong);
  text-decoration-thickness: 2px;
}

a:active {
  transform: translateY(1px);
}

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

iframe {
  display: block;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--color-ink-muted);
}

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

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(72rem, 100% - 2 * var(--pad));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

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

.section-title {
  font-size: var(--size-section);
}

.small-title {
  font-size: var(--size-small);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 1rem / 1.2 var(--font-sans);
  text-decoration: none;
  transition:
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-accent-strong);
  color: var(--color-on-accent);
}

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-line-strong);
  color: var(--color-ink);
}

.btn--secondary:hover {
  background: var(--color-surface-sunken);
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--small {
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.btn--large {
  min-height: 56px;
  padding: 0 2.25rem;
  font-size: 1.125rem;
}

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

.logo {
  flex: none;
  overflow: visible;
}

.logo__canvas {
  fill: var(--logo-canvas, var(--color-accent-soft));
}

.logo__eye {
  stroke: var(--logo-eye, var(--color-accent));
}

.logo__piece {
  transform-box: view-box;
  transform-origin: 16px 3px;
  transition: transform var(--duration-base) var(--ease-out);
}

.brand:hover .logo__piece {
  transform: rotate(-4deg);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-wall);
}

.js .site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(72rem, 100% - 2 * var(--pad));
  margin-inline: auto;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--touch-min);
  color: var(--color-ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-ink);
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__link {
  display: none;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--color-ink);
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

@media (min-width: 40rem) {
  .site-nav__link {
    display: inline-flex;
  }
}

@media (min-width: 64rem) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--color-wall) 92%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* ---------- Mounts and wall labels ---------- */

.mount {
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.wall-label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem 0 0 auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.wall-label__title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-ink);
}

.wall-label__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  min-width: var(--touch-min);
  width: fit-content;
  margin-top: 0.15rem;
  font-weight: 600;
}

/* ---------- The demo wall drawing ---------- */

.wall {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wall__plaster {
  fill: var(--color-surface-sunken);
  stroke: var(--color-line);
  stroke-width: 2;
}

.wall__floor {
  stroke: var(--color-line-strong);
  stroke-width: 8;
}

.wall__eyeline {
  stroke: var(--color-accent);
  stroke-width: 6;
  stroke-dasharray: 40 30;
}

.wall text {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  fill: var(--color-pencil);
  /* SVG user units are millimetres; these rem sizes read as about 13 px. */
  font-size: 5.25rem;
}

/* Sits above the frame tops, tied to the eye-line by a pencil leader. */
.wall .wall__eyelabel {
  fill: var(--color-accent);
  font-size: 5.75rem;
}

.work__mount {
  fill: var(--color-surface);
}

.work__frame {
  fill: none;
  stroke: var(--color-frame);
  stroke-width: 28;
}

.dim,
.wire {
  fill: none;
  stroke: var(--color-pencil);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.wire {
  stroke: var(--color-ink-muted);
}

.hook circle {
  fill: var(--color-ink);
}

.cross {
  stroke: var(--color-accent);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

.dims {
  opacity: 0;
}

.work {
  transform-box: view-box;
}

/* Each work turns around its own hook point. */
.work--1 {
  transform-origin: 767px 1150px;
  --i: 0;
}
.work--2 {
  transform-origin: 1783px 1300px;
  --i: 1;
}
.work--3 {
  transform-origin: 3000px 930px;
  --i: 2;
}
.work--4 {
  transform-origin: 4217px 1300px;
  --i: 3;
}
.work--5 {
  transform-origin: 5233px 1150px;
  --i: 4;
}

@media (max-width: 39.99rem) {
  .gaps {
    display: none;
  }
  .wall .wall__eyelabel {
    font-size: 12rem;
  }
  .wall .dims text {
    font-size: 11rem;
  }
}

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

.hero {
  padding-top: clamp(3rem, 8vw, 6.5rem);
}

.hero__copy {
  grid-column: 1 / span 9;
}

.hero__title {
  font-size: var(--size-hero);
  line-height: 1.05;
}

.hero__sub {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  color: var(--color-ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.hero__figure {
  margin-top: clamp(3rem, 7vw, 5rem);
}

@media (max-width: 63.99rem) {
  .hero__copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 39.99rem) {
  .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }
  .hero__figure {
    margin-inline: calc(var(--pad) * -1 + 0.625rem);
  }
}

@keyframes settle {
  from {
    transform: translate(0, 60px) rotate(2.5deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .work--3 {
    animation: settle 900ms var(--ease-settle) 500ms both;
  }
  .hero .hook {
    animation: fade-in 260ms var(--ease-out) both;
    animation-delay: calc(1450ms + var(--i) * 80ms);
  }
}

/* ---------- 2. The old way ---------- */

.envelope {
  padding-top: var(--rhythm);
}

.envelope__inner {
  max-width: 40rem;
  text-align: center;
}

.envelope__inner > p:not(.eyebrow) {
  margin-top: 1.5rem;
  color: var(--color-ink-muted);
}

.envelope .sum {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 2.5rem auto 0;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 1rem + 2.2vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-muted);
}

.sum__strike {
  position: absolute;
  left: -4%;
  top: 22%;
  width: 108%;
  height: 60%;
  overflow: visible;
  pointer-events: none;
}

.sum__strike path {
  fill: none;
  stroke: var(--color-warning);
  stroke-width: 3px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.envelope .envelope__close {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--size-small);
  line-height: 1.3;
  color: var(--color-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .js .sum .sum__strike path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 600ms var(--ease-out);
  }
  .js .sum.is-in .sum__strike path {
    stroke-dashoffset: 0;
  }
  .js .envelope__close {
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 500ms var(--ease-out) 450ms,
      transform 500ms var(--ease-out) 450ms;
  }
  .js .sum.is-in + .envelope__close {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 3. How it works ---------- */

.how {
  margin-top: var(--rhythm);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: var(--color-plaster-deep);
}

.how .section-title {
  max-width: 34rem;
}

.how .mount {
  box-shadow: var(--shadow-md);
}

.how__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.steps {
  display: grid;
  gap: 3.5rem;
  padding: 0;
  list-style: none;
}

.step__label {
  max-width: 32rem;
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-line-strong);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.step__title {
  margin-top: 0.25rem;
  font-size: var(--size-small);
}

.step__medium {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.how__stage {
  display: none;
}

@media (min-width: 64rem) {
  .how__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
  }
  .steps {
    grid-column: 1 / span 5;
    gap: 0;
  }
  .step {
    display: flex;
    align-items: center;
    min-height: 70vh;
  }
  .step__figure {
    display: none;
  }
  .step__label {
    margin: 0;
  }
  .how__stage {
    display: block;
    grid-column: 6 / -1;
    position: sticky;
    top: 18vh;
    margin-block: 15vh;
  }
}

/* Drawing states. With no data-step (no JavaScript) the figure shows step 3. */
.wall .work,
.wall .gap,
.wall .hook,
.wall .dims {
  transition:
    transform 700ms var(--ease-out),
    opacity 700ms var(--ease-out);
}

.wall[data-step] .work {
  transition-delay: calc(var(--i) * 40ms);
}

.wall[data-step="1"] .dims {
  opacity: 1;
}

.wall[data-step="1"] .work,
.wall[data-step="2"] .work {
  opacity: var(--shown, 1);
}

.wall[data-step="1"] .work {
  --shown: 0;
}

.wall[data-step="1"] .gap,
.wall[data-step="1"] .hook,
.wall[data-step="2"] .gap,
.wall[data-step="2"] .hook {
  opacity: 0;
  transition-duration: 300ms;
}

/* Step 2: hung by eye. Offsets in mm; positive y in the brief is up the wall. */
.wall[data-step="2"] .work--1 {
  transform: translate(-300px, -200px) rotate(-2deg);
}
.wall[data-step="2"] .work--2 {
  transform: translate(100px, 350px) rotate(1.5deg);
}
.wall[data-step="2"] .work--3 {
  transform: translate(-150px, -250px) rotate(-1deg);
}
.wall[data-step="2"] .work--4 {
  transform: translate(250px, -100px) rotate(2deg);
}
.wall[data-step="2"] .work--5 {
  transform: translate(-100px, 200px) rotate(-1.5deg);
}
.wall[data-step="1"] .work--1 {
  transform: translate(-300px, -500px) rotate(-2deg);
}
.wall[data-step="1"] .work--2 {
  transform: translate(100px, 50px) rotate(1.5deg);
}
.wall[data-step="1"] .work--3 {
  transform: translate(-150px, -550px) rotate(-1deg);
}
.wall[data-step="1"] .work--4 {
  transform: translate(250px, -400px) rotate(2deg);
}
.wall[data-step="1"] .work--5 {
  transform: translate(-100px, -100px) rotate(-1.5deg);
}

/* Step 3: gaps and hooks follow once the works have landed. */
.wall:not([data-step]) .gap,
.wall:not([data-step]) .hook,
.wall[data-step="3"] .gap,
.wall[data-step="3"] .hook {
  transition-delay: 650ms;
}

.wall:not([data-step]) .work,
.wall[data-step="3"] .work {
  transition-delay: calc(var(--i) * 40ms);
}

/* ---------- 4. What it catches ---------- */

.catches {
  padding-top: var(--rhythm);
  row-gap: var(--gutter);
}

.catches__head {
  max-width: 44rem;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.card > .muted {
  margin-top: 0.5rem;
}

@media (min-width: 64rem) {
  .card--table {
    grid-column: 1 / span 7;
  }
  .card--problems {
    grid-column: 8 / -1;
    box-shadow: var(--shadow-sm);
  }
}

.units {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.js .units {
  display: flex;
}

.units__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.units__toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface-sunken);
}

.units__toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.units__toggle label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  cursor: pointer;
}

.units__toggle label:hover {
  color: var(--color-ink);
}

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

.units__toggle input:checked + label {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}

.units__toggle input:focus-visible + label {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.table-scroll {
  margin-top: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hook-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hook-table caption {
  margin-bottom: 0.5rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.hook-table th,
.hook-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  white-space: nowrap;
}

.hook-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  border-bottom-color: var(--color-line-strong);
}

.hook-table tbody th {
  font-weight: 500;
}

.hook-table tbody td:nth-child(2) {
  color: var(--color-ink-muted);
}

.hook-table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.hook-table tbody tr:hover {
  background: var(--color-surface-sunken);
}

.hook-table tbody td.num {
  transition: opacity 80ms linear;
}

.hook-table.is-fading tbody td.num {
  opacity: 0;
}

@media (max-width: 39.99rem) {
  .hook-table .col-right {
    display: none;
  }
  .hook-table {
    min-width: 0;
  }
  .hook-table th,
  .hook-table td {
    padding: 0.5rem 0.3rem;
  }
  .hook-table thead th,
  .hook-table tbody th,
  .hook-table tbody td:nth-child(2) {
    white-space: normal;
  }
}

.clash {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
}

.outline {
  fill: none;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  transition: opacity 600ms var(--ease-out);
}

.outline--warn {
  stroke: var(--color-warning);
}

.outline--ok {
  stroke: var(--color-frame);
  opacity: 0;
}

.clash__right {
  transition: transform 600ms var(--ease-out);
}

.notices {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.notice {
  padding: 0.6rem 0.85rem;
  border-left: 3px solid var(--color-warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-warning-soft);
  font-size: 0.9375rem;
  color: var(--color-ink);
  transition: opacity 600ms var(--ease-out);
}

.notice--ok {
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* With JS and motion, the notices share one slot and crossfade. */
@media (prefers-reduced-motion: no-preference) {
  .js .card--problems .notices {
    grid-template-areas: "slot";
  }
  .js .card--problems .notice {
    grid-area: slot;
  }
  .js .card--problems .notice--ok {
    opacity: 0;
  }
  .js .card--problems.is-in .notice--warn {
    opacity: 0;
  }
  .js .card--problems.is-in .notice--ok {
    opacity: 1;
  }
  .js .card--problems.is-in .clash__right {
    transform: translateX(110px);
  }
  .js .card--problems.is-in .outline--warn {
    opacity: 0;
  }
  .js .card--problems.is-in .outline--ok {
    opacity: 1;
  }
}

.facts {
  display: grid;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
}

.facts li {
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.facts li:last-child {
  border-bottom: 1px solid var(--color-line);
}

.fact__title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 64rem) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .facts li,
  .facts li:last-child {
    padding: 0.25rem 2rem;
    border: 0;
    border-left: 1px solid var(--color-line);
  }
  .facts li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- 5. The real thing ---------- */

.real {
  padding-top: var(--rhythm);
}

.real__head {
  max-width: 44rem;
}

.real__head > p:last-child {
  margin-top: 1.25rem;
  color: var(--color-ink-muted);
}

.hung {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.hung__piece {
  transform-origin: 50% 7px;
  transition: transform 900ms var(--ease-settle);
}

.hung__wire {
  display: block;
  width: 100%;
  height: 6rem;
  margin-bottom: -1px;
  overflow: visible;
}

.hung__wire line {
  stroke: var(--color-ink-muted);
  stroke-width: 1.5px;
}

.hung__wire circle {
  fill: var(--color-ink);
}

.hung__frame {
  border: 14px solid var(--color-frame);
  box-shadow: var(--shadow-lg);
}

.hung__mount {
  padding: 1rem;
  background: var(--color-surface);
}

.hung iframe {
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: var(--color-wall);
}

@media (max-width: 39.99rem) {
  .hung__frame {
    border-width: 8px;
  }
  .hung__mount {
    padding: 0.5rem;
  }
  .hung iframe {
    height: 640px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hung:not(.is-in) .hung__piece {
    transform: rotate(1.2deg);
  }
}

/* ---------- 6. Closing ---------- */

.closing {
  padding-block: clamp(6rem, 14vw, 11rem);
  text-align: center;
}

.closing__title {
  font-size: var(--size-closing);
  line-height: 1.05;
}

.closing__sub {
  margin-top: 1rem;
  font-size: 1.1875rem;
  color: var(--color-ink-muted);
}

.closing__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

/* The eye-line runs across the whole viewport, behind the button. */
.closing__line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 2px;
  margin-top: -1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    90deg,
    var(--color-accent) 0 10px,
    transparent 10px 18px
  );
}

.closing__line .btn {
  position: relative;
}

.closing__mark {
  position: absolute;
  bottom: calc(50% + 0.5rem);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-pencil);
}

.closing__mark--left {
  left: 0;
}

.closing__mark--right {
  right: 0;
}

@media (max-width: 39.99rem) {
  .closing__mark--right {
    display: none;
  }
}

/* ---------- 7. Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-line);
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1.75rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--color-ink);
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  width: fit-content;
}

@media (min-width: 48rem) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
