:root {
  /* fixed in both themes */
  --floor: #1b1a2e;
  --floor-raised: #25233d;
  --dot: #9c98b8;
  --on-floor: #f7f3ea;
  --on-floor-muted: #c9c4da;

  /* powders: artwork and swatches only */
  --powder-chalk: #f7f3ea;
  --powder-turmeric: #f2c230;
  --powder-marigold: #f28c28;
  --powder-kumkum: #d7263d;
  --powder-rose: #f06eaa;
  --powder-peacock: #1f9bcf;
  --powder-leaf: #3fa34d;
  --powder-lavender: #a98bdb;

  /* light theme */
  --bg: #faf6ef;
  --surface: #f3ede2;
  --surface-raised: #fffdf9;
  --border: #e3d9c8;
  --text: #2a2620;
  --text-muted: #6b6255;
  --accent: #e8891a;
  --accent-strong: #9e5200;
  --accent-soft: #fbe6c8;
  --on-accent: #1f1608;
  --focus-ring: #1f6fd1;
  --grid-dot: rgb(120 90 40 / 0.12);

  --shadow-sm: 0 1px 2px rgb(60 40 10 / 0.08), 0 4px 10px -4px rgb(60 40 10 / 0.14);
  --shadow-lg: 0 1px 2px rgb(60 40 10 / 0.06), 0 10px 24px -8px rgb(60 40 10 / 0.16),
    0 36px 72px -28px rgb(60 40 10 / 0.28);

  --radius-md: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --rhythm: clamp(5rem, 10vw, 9rem);
  --font-display: "Young Serif", Georgia, serif;
  --font-text: "Figtree", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16151c;
    --surface: #1f1d26;
    --surface-raised: #26242f;
    --border: #363341;
    --text: #f1ece3;
    --text-muted: #b3aca0;
    --accent: #f5a43a;
    --accent-strong: #ffc06b;
    --accent-soft: #3a2a14;
    --on-accent: #1f1608;
    --focus-ring: #8ab8ff;
    --grid-dot: rgb(255 240 210 / 0.06);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 10px -4px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 24px -8px rgb(0 0 0 / 0.5), 0 36px 72px -28px rgb(0 0 0 / 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

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

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

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}

p {
  max-width: 34em;
}

svg {
  display: block;
}

a {
  color: var(--accent-strong);
}

.num {
  font-variant-numeric: tabular-nums;
}

.small {
  font-size: 0.875rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ---------- Surfaces ---------- */

.floor {
  --focus-ring: #8ab8ff;
  background: var(--floor);
  color: var(--on-floor);
}

.on-floor-muted {
  color: var(--on-floor-muted);
}

.paper {
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

.surface {
  background: var(--surface);
}

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

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow-floor {
  color: var(--powder-turmeric);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 650 1rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.25) inset,
    var(--shadow-sm);
}

.btn-primary:hover {
  background: #f5a43a;
}

.floor .btn-primary:hover {
  background: #f7b35a;
}

.btn-large {
  min-height: 52px;
  padding-inline: 1.5rem;
  font-size: 1.0625rem;
}

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

.btn-ghost {
  border-color: #4a4766;
  color: var(--on-floor);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--dot);
  background: rgb(247 243 234 / 0.06);
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.25rem;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition:
    text-decoration-color 160ms var(--ease),
    transform 120ms var(--ease);
}

.text-link:hover {
  text-decoration-color: currentColor;
}

.text-link:active {
  transform: scale(0.97);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  margin-bottom: -64px;
  color: var(--on-floor);
  border-bottom: 1px solid transparent;
  transition:
    background-color 200ms var(--ease),
    border-color 200ms var(--ease);
}

.site-header:not(.is-scrolled) {
  --focus-ring: #8ab8ff;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  color: var(--text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  transition: transform 120ms var(--ease);
}

.brand:hover .wordmark {
  color: var(--powder-marigold);
}

.site-header.is-scrolled .brand:hover .wordmark {
  color: var(--accent-strong);
}

.brand:active {
  transform: scale(0.97);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  transition: color 160ms var(--ease);
}

.logo {
  width: 32px;
  height: 32px;
  flex: none;
}

.logo-tile {
  stroke: transparent;
}

.floor .logo-tile,
.site-header:not(.is-scrolled) .logo-tile {
  stroke: #3a3757;
  stroke-width: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 559px) {
  .header-how {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 56rem);
  padding-top: calc(64px + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  display: flex;
  align-items: center;
}

.ambient {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  opacity: 0.08;
  pointer-events: none;
  animation: drift 20s var(--ease) infinite alternate;
}

@keyframes drift {
  to {
    transform: translate(12px, 12px);
  }
}

.hero-grid {
  position: relative;
  width: 100%;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.hero-copy {
  display: grid;
  gap: 1.5rem;
  align-content: end;
}

.hero-copy h1 {
  color: var(--on-floor);
}

.hero-copy .eyebrow {
  margin: 0;
}

.br-wide {
  display: none;
}

.hero-sub {
  color: var(--on-floor-muted);
  font-size: 1.1875rem;
  max-width: 30em;
}

.demo {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  display: grid;
  gap: 0.875rem;
  justify-items: center;
}

.demo-frame {
  width: 100%;
  aspect-ratio: 1;
  background: var(--floor-raised);
  border: 1px solid #34314f;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
  overflow: hidden;
}

.demo-svg {
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}

.demo-svg .pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 180ms var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

.demo-ring {
  fill: none;
  stroke: var(--powder-marigold);
  stroke-width: 0.1;
}

.demo-caption {
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--on-floor);
  text-align: center;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

.demo-caption.is-in {
  opacity: 1;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.demo-controls[hidden],
.demo-caption[hidden] {
  display: none;
}

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.22);
  border: 1px solid #34314f;
}

.seg-btn,
.ctl-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--on-floor-muted);
  font: 500 0.9375rem/1 var(--font-text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 120ms var(--ease);
}

.seg-btn:hover,
.ctl-btn:hover {
  color: var(--on-floor);
  background: rgb(247 243 234 / 0.08);
}

.seg-btn:active,
.ctl-btn:active {
  transform: scale(0.97);
}

.seg-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
}

.ctl-btn {
  border-color: #34314f;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.22);
}

.colour-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch, var(--powder-chalk));
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.3);
}

.demo-note {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    align-items: end;
  }

  .br-wide {
    display: inline;
  }

  .demo {
    max-width: 34rem;
    margin-inline: 0 0;
    justify-self: end;
  }
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
}

.step {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-block: 2rem;
  border-top: 1px solid var(--border);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-tile {
  width: 120px;
  height: 120px;
  padding: 10px;
  border-radius: 14px;
  background: var(--floor);
  box-shadow: var(--shadow-sm);
}

.step-tile svg {
  width: 100%;
  height: 100%;
}

.step-num {
  margin-right: 0.625rem;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.step p {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step,
  .step:first-child {
    padding: 0 2rem;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .step:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .step:last-child {
    padding-right: 0;
  }
}

/* Reveals: hidden only once main.js has run, so the page reads without JS. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 500ms var(--ease) var(--d, 0ms),
    transform 500ms var(--ease) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.feature-copy {
  display: grid;
  gap: 1.25rem;
}

.feature-copy p {
  color: var(--text-muted);
}

.feature-visual {
  display: grid;
  gap: 0.875rem;
  min-width: 0;
}

.floor-panel {
  background: var(--floor);
  color: var(--on-floor);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.visual-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 5fr 7fr;
    column-gap: clamp(3rem, 6vw, 5rem);
  }

  .visual-left {
    grid-template-columns: 7fr 5fr;
  }

  .visual-left .feature-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .visual-left .feature-visual {
    grid-column: 1;
    grid-row: 1;
  }
}

/* 4a grids */
.grids-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.grid-figure {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  color: var(--on-floor-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.grid-figure svg {
  width: 100%;
  aspect-ratio: 1;
}

/* 4b mirror */
.mirror-panel {
  position: relative;
  width: 100%;
  max-width: min(100%, 72svh);
  aspect-ratio: 1;
  padding: clamp(1rem, 3vw, 2rem);
}

.mirror-panel svg {
  width: 100%;
  height: 100%;
}

.mirror-panel path {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 260ms var(--ease),
    transform 260ms var(--ease);
}

.mirror-panel .b1,
.mirror-panel .b2,
.mirror-panel .b3 {
  opacity: 0;
  transform: scale(0.6);
}

.mirror-panel[data-beat="1"] .b1,
.mirror-panel[data-beat="2"] :is(.b1, .b2),
.mirror-panel[data-beat="3"] :is(.b1, .b2, .b3) {
  opacity: 1;
  transform: none;
}

.mirror-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.28);
  border: 1px solid #34314f;
  color: var(--on-floor);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 260ms var(--ease);
}

.mirror-panel[data-beat="0"] [data-l="0"],
.mirror-panel[data-beat="1"] [data-l="1"],
.mirror-panel[data-beat="2"] [data-l="2"],
.mirror-panel[data-beat="3"] [data-l="3"] {
  opacity: 1;
}

/* 4c powder */
.powder-panel {
  padding: clamp(1rem, 4vw, 2.5rem);
}

.powder-card {
  padding: clamp(1.125rem, 3vw, 1.75rem);
  border-radius: 14px;
  background: var(--floor-raised);
  border: 1px solid #34314f;
}

.powder-heading {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.powder-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.powder-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 8.5rem) 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.3);
}

.bar {
  height: 6px;
  border-radius: 3px;
  background: rgb(247 243 234 / 0.06);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: calc(var(--w) * 100%);
  border-radius: 3px;
  background: var(--c);
  transform-origin: left;
  transition: transform 600ms var(--ease);
}

.js .powder-card:not(.is-in) .bar span {
  transform: scaleX(0);
}

.powder-list .num {
  text-align: right;
  min-width: 3.5em;
}

.powder-total {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #3a3757;
  text-align: right;
  font-weight: 650;
}

@media (max-width: 479px) {
  .powder-list li {
    grid-template-columns: auto 1fr auto;
  }

  .powder-list .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* 4d sheet */
.sheet-stage {
  padding: clamp(0.5rem, 3vw, 2rem);
}

.sheet {
  width: min(100%, 26rem);
  margin-inline: auto;
  aspect-ratio: 1240 / 1754;
  padding: 7% 6%;
  background: #ffffff;
  color: #2a2620;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 320ms var(--ease);
}

.sheet > div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 900px) and (hover: hover) {
  .sheet:hover {
    transform: none;
  }
}

.sheet-title {
  font-size: clamp(0.6875rem, 0.55rem + 0.6vw, 0.875rem);
  font-weight: 650;
  max-width: none;
}

.sheet-strip {
  display: flex;
  gap: 4px;
  margin: 0.625rem 0 1rem;
}

.sheet-strip span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

.sheet-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.sheet-panel {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--floor);
  padding: 6%;
}

.sheet-panel svg {
  width: 100%;
  height: 100%;
}

.sheet-panel .num {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 0.625rem;
  font-weight: 650;
  color: var(--on-floor-muted);
  line-height: 1;
}

.sheet-foot {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #e3d9c8;
  font-size: clamp(0.6875rem, 0.6rem + 0.35vw, 0.8125rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  color: #6b6255;
}

.sheet-foot p {
  max-width: none;
  margin: 0;
}

.sheet-foot p + p {
  margin-top: 0.125rem;
  font-weight: 650;
}

.sheet-tags {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  max-width: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tag .icon {
  color: var(--accent-strong);
}

/* 4e strip */
.strip {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-block: 1px solid var(--border);
}

.strip-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.strip-list li {
  flex: 1 1 16rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.strip-list .icon {
  flex: none;
  margin-top: 0.2rem;
  color: var(--accent-strong);
}

.strip-list p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.strip-list strong {
  color: var(--text);
  font-weight: 650;
}

/* ---------- The real app ---------- */

.try .wrap {
  display: grid;
  justify-items: start;
}

.try h2 {
  margin-bottom: 1rem;
}

.try-line {
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.device {
  width: 100%;
  max-width: 68rem;
  border: 10px solid var(--floor);
  border-radius: 24px;
  background: var(--floor);
  box-shadow:
    0 0 0 1px var(--border),
    var(--shadow-lg);
  overflow: hidden;
}

.device iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
}

.browser-bar {
  display: none;
}

.full-screen {
  margin-top: 1.25rem;
}

.try-tip {
  display: none;
}

@media (min-width: 900px) {
  .browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 36px;
    padding-inline: 0.5rem 0;
  }

  .browser-dots {
    display: flex;
    gap: 6px;
  }

  .browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
  }

  .browser-pill {
    flex: 0 1 18rem;
    margin-inline: auto;
    padding: 0.125rem 1rem;
    border-radius: 999px;
    background: var(--floor-raised);
    color: var(--on-floor-muted);
    font-size: 0.8125rem;
    text-align: center;
  }

  .device iframe {
    height: 760px;
  }

  .full-screen {
    display: none;
  }

  .try-tip {
    display: block;
    margin-top: 1rem;
  }
}

/* ---------- Closing and footer ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: var(--rhythm);
  text-align: center;
  display: grid;
  place-items: center;
}

.closing-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(36rem, 90vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: 0.22;
  pointer-events: none;
}

.closing-art path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.js .closing:not(.is-in) .closing-art path {
  stroke-dashoffset: 1;
}

.closing-copy {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: radial-gradient(closest-side, rgb(27 26 46 / 0.85), transparent);
}

.closing-title {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem);
  line-height: 1.02;
}

.closing-line {
  color: var(--on-floor-muted);
  font-size: 1.1875rem;
}

.site-footer {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.footer-tag {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-made {
  margin-top: 2.5rem;
  max-width: 72rem;
}

/* ---------- Reduced motion: every reveal shows its end state ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient,
  .demo-svg .pop {
    animation: none;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .powder-card:not(.is-in) .bar span,
  .bar span {
    transform: none;
    transition: none;
  }

  .js .closing:not(.is-in) .closing-art path,
  .closing-art path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .demo-caption,
  .mirror-panel path,
  .mirror-label,
  .sheet {
    transition: none;
  }
}
