/* ==========================================================================
   Founders Club — styles
   Identity: warm paper, near-black ink, one vermilion accent.
   The vermilion dot marks "this exists" — wordmark, hero, step 6,
   and the finishing mark in every illustration.
   ========================================================================== */

:root {
  --paper: #f5f1e8;
  --paper-deep: #ece6da;
  --ink: #16130f;
  --ink-soft: #3d3832;
  --muted: #665f55;
  --faint: #8c8478;       /* large text only (≥3:1 on paper) */
  --rule: #d6cebf;
  --accent: #d63a1f;      /* vermilion: buttons, dots, large text */
  --accent-deep: #ad2d16; /* vermilion for small text on paper */

  --night: #16130f;
  --night-text: #f5f1e8;
  --night-muted: #b8afa1;
  --night-rule: #3b362f;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --col-gap: clamp(16px, 2.4vw, 32px);
  --section-pad: clamp(80px, 10vw, 144px);
  --header-h: 68px;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);

  color-scheme: light;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; }
em { font-style: italic; }
img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

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

[hidden] { display: none !important; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.period { color: var(--accent); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type helpers ---------- */

.kicker {
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}

.section-intro {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1.05em 1.5em;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease-out);
}
.btn:hover { background: var(--ink); }
.btn-arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-small { padding: 0.75em 1.1em; font-size: 0.9375rem; }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.inline-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.inline-link:hover { text-decoration-color: var(--accent); }

/* ---------- Notice bar ---------- */

.notice {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  text-align: center;
}
.notice a {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.45em;
  padding: 10px var(--gutter);
  text-decoration: none;
}
.notice-label { font-weight: 600; }
.notice-arrow { color: var(--accent); transition: transform 0.2s ease; }
.notice a:hover .notice-arrow { transform: translateX(3px); }
.notice a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.notice :focus-visible { outline-color: var(--paper); outline-offset: -4px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36;
  text-decoration: none;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  list-style: none;
}
.menu a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 1.5px;
  transition: background-size 0.25s ease;
}
.menu a:not(.btn):hover { background-size: 100% 1.5px; }
.menu-join { margin-left: clamp(0px, 1vw, 8px); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: inherit;
  font: 600 0.9375rem/1 var(--sans);
  cursor: pointer;
}
.menu-toggle-icon,
.menu-toggle-icon::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.menu-toggle-icon { position: relative; transform: translateY(-3px); }
.menu-toggle-icon::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { transform: translateY(0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }

  .js .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .js .menu.is-open { display: flex; }
  .js .menu li { border-top: 1px solid var(--rule); }
  .js .menu li:first-child { border-top: 0; }
  .js .menu a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    background: none;
  }
  .js .menu-join { margin: 16px 0 0; border-top: 0 !important; }
  .js .menu-join .btn { width: 100%; justify-content: center; padding: 1.05em; }

  .no-js .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .menu { flex-wrap: wrap; }
}

/* Reading progress under the header */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  pointer-events: none;
}

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

.hero {
  padding-block: clamp(40px, 4.5vw, 72px) clamp(56px, 7vw, 96px);
}

.hero-title {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9.6vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}
.hero-title .line { display: block; }
.hero-title .keep { white-space: nowrap; } /* the ellipsis never wraps onto its own line */
.hero-title em { letter-spacing: -0.03em; }

.ellipsis,
.hero-title .period { position: relative; display: inline-block; }
.ellipsis { color: var(--faint); margin-left: 0.02em; letter-spacing: 0.02em; }
.ellipsis > span:not(.note) { display: inline-block; }

/* Margin notes — small editorial annotations */
.note {
  position: absolute;
  top: 68%;
  left: calc(100% + 0.35em);
  display: none;
  align-items: center;
  gap: 10px;
  font: 500 0.8125rem/1 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  transform: translateY(-50%);
}
.note::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}
.hero-title .period .note { color: var(--accent-deep); }

@media (min-width: 1000px) {
  .note { display: inline-flex; }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  margin-top: clamp(36px, 4vw, 56px);
}

.lede {
  max-width: 30ch;
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.35;
  color: var(--ink-soft);
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

.facts {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
  font-size: 1.0625rem;
}
.facts li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* Hero motion: lines rise in, the ellipsis types, then the period lands. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line { animation: line-rise 1s var(--ease-out) backwards; }
  .js .hero-title .line:nth-child(2) { animation-delay: 0.12s; }
  .js .hero-title .line:nth-child(3) { animation-delay: 0.24s; }

  .js .ellipsis > span:not(.note) { animation: dot-in 0.45s ease both; }
  .js .ellipsis > span:nth-child(1) { animation-delay: 0.8s; }
  .js .ellipsis > span:nth-child(2) { animation-delay: 0.95s; }
  .js .ellipsis > span:nth-child(3) { animation-delay: 1.1s; }

  .js .hero-title .period {
    animation: period-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1.3) 1.45s both;
  }
  .js .note { animation: fade-in 0.8s ease 2s both; }

  .js .hero .kicker { animation: fade-up 0.8s ease both; }
  .js .hero-foot > * { animation: fade-up 0.9s ease 0.55s both; }
  .js .hero-foot > :last-child { animation-delay: 0.7s; }

  /* Hovering the headline: the unfinished idea keeps "typing". */
  .hero-title:hover .ellipsis > span:not(.note) {
    animation: dot-wave 1.1s ease-in-out infinite;
  }
  .hero-title:hover .ellipsis > span:nth-child(2) { animation-delay: 0.15s; }
  .hero-title:hover .ellipsis > span:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes line-rise {
  from { clip-path: inset(0 0 100% 0); transform: translateY(35%); }
  to   { clip-path: inset(-25% -5% -25% -5%); transform: none; }
}
@keyframes dot-in {
  from { opacity: 0; transform: translateY(0.08em); }
  to   { opacity: 1; transform: none; }
}
@keyframes period-in {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes dot-wave {
  0%, 60%, 100% { transform: none; }
  30% { transform: translateY(-0.12em); }
}

/* ---------- Scenes: pinned stages driven by scroll (motion only) ---------- */

.scene { position: relative; }
.js-motion .scene { padding-block: 0; }
.js-motion .scene-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

/* Scene: three grey dots (an idea…) merge, turn vermilion, and fill the screen. */
.scene-dot { background: var(--accent); }
.scene-dot .scene-sticky {
  display: grid;
  place-items: center;
  padding: clamp(72px, 10vw, 136px) var(--gutter);
}
.dot-title {
  position: relative;
  z-index: 2;
  max-width: 15ch;
  text-align: center;
  font-size: clamp(2.5rem, 6.6vw, 6.25rem);
  line-height: 1;
  color: var(--paper);
}
.dot-dots, .dot-fill, .dot-hint { display: none; }

.js-motion .scene-dot { height: 300vh; background: var(--paper); }
.js-motion .scene-dot .scene-sticky { padding: 0 var(--gutter); }

.js-motion .dot-dots,
.js-motion .dot-fill {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
}
.js-motion .dot-dots span,
.js-motion .dot-fill {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
}
.js-motion .dot-dots span {
  position: absolute;
  background: color-mix(in srgb, var(--accent) calc(var(--conv, 0) * 100%), var(--faint));
  transform: translateX(calc(var(--off) * (1 - var(--conv, 0))));
}
.dot-dots span:nth-child(1) { --off: -48px; }
.dot-dots span:nth-child(2) { --off: 0px; }
.dot-dots span:nth-child(3) { --off: 48px; }
.js-motion .dot-fill {
  z-index: 1;
  background: var(--accent);
  opacity: 0;
  will-change: transform;
}
.js-motion .dot-hint {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 40px);
  text-align: center;
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: var(--hint, 1);
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(16px, 2vw, 24px);
  background: var(--ink);
  color: var(--paper);
  user-select: none;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  width: max-content;
  padding-right: clamp(20px, 2.6vw, 40px);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  white-space: nowrap;
}
.marquee-track i {
  flex: none;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.js-motion .marquee-track { animation: none; will-change: transform; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
}
.marquee + .section { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 20px;
}
.section-head > .kicker { grid-column: 1 / 4; padding-top: 1.1em; }
.section-head > div { grid-column: 4 / 13; }

/* ---------- What we do: illustration stage + list ---------- */

.what-head h2 { margin-top: 18px; }
.what-head .section-intro { max-width: 32ch; }

.build-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "stage list";
  column-gap: var(--col-gap);
  margin-top: 56px;
  align-items: start;
}

.build-index { display: none; }

.stage {
  grid-area: stage;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.stage-frame {
  position: relative;
  aspect-ratio: 1;
  max-height: calc(100vh - var(--header-h) - 120px);
  margin-inline: auto;
  background-color: var(--paper-deep);
  background-image: radial-gradient(circle, rgba(22, 19, 15, 0.16) 1px, transparent 1.4px);
  background-size: 20px 20px;
  background-position: 10px 10px;
}

.stage-caption {
  margin-top: 14px;
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.stage-num { color: var(--ink); }

.ill {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ill.is-active { opacity: 1; }

.ill .d,
.icon .d {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill .a,
.icon .a { fill: var(--accent); }
.ill .k { fill: var(--ink); }
.ill .c {
  fill: none;
  stroke: var(--paper);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Drawing: strokes trace themselves, then the vermilion "period" lands. */
.js-motion .ill .d,
.js-motion .ill .c {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.js-motion .ill.is-active .d {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
.js-motion .ill.is-active .d:nth-of-type(2) { transition-delay: 0.12s; }
.js-motion .ill.is-active .d:nth-of-type(3) { transition-delay: 0.24s; }
.js-motion .ill.is-active .d:nth-of-type(4) { transition-delay: 0.36s; }
.js-motion .ill.is-active .d:nth-of-type(n+5) { transition-delay: 0.46s; }

.js-motion .ill .a,
.js-motion .ill .k {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
}
.js-motion .ill.is-active .a,
.js-motion .ill.is-active .k {
  transform: none;
  transition: transform 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 0.6s;
}
.js-motion .ill.is-active .c {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.4s ease 0.95s;
}

.build-list { grid-area: list; list-style: none; border-top: 1px solid var(--ink); }

.build-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
}

.build-name {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60;
  transition: color 0.35s ease;
}
.build-name .period { color: inherit; transition: color 0.35s ease; }

.build-note {
  flex: 0 1 22ch;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: right;
  text-wrap: balance;
  transition: color 0.35s ease;
}

.js .build-item .build-name { color: var(--faint); }
.js .build-item.is-active .build-name { color: var(--ink); }
.js .build-item.is-active .build-name .period { color: var(--accent); }
.js .build-item.is-active .build-note { color: var(--ink); }

.js-motion .build-name { transition: color 0.35s ease, transform 0.5s var(--ease-out); }
.js-motion .build-name .period {
  display: inline-block;
  transition: color 0.35s ease, transform 0.4s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.js-motion .build-item.is-active .build-name .period { transform: scale(1.35); }

/* Pinned version: one type at a time fills the middle of the screen, and the
   index along the bottom jumps between them. */
.js-motion #what { padding-bottom: 0; }
.js-motion .scene-build { height: 650vh; margin-top: clamp(48px, 6vw, 80px); }
.js-motion .scene-build .scene-sticky { border-top: 1px solid var(--ink); }

.js-motion .build-layout {
  --mx: 0;
  --my: 0;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "list" "index";
  align-items: stretch;
}
.js-motion .scene-build .stage { display: none; }

.js-motion .scene-build .build-list {
  grid-area: list;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 0 var(--gutter);
  border-top: 0;
  text-align: center;
}
.js-motion .scene-build .build-item {
  grid-area: 1 / 1;
  display: block;
  padding: 0;
  border: 0;
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
}
.js-motion .scene-build .build-item.is-past { transform: translateY(-56px); }
.js-motion .scene-build .build-item.is-active { opacity: 1; transform: none; }
.js-motion .scene-build .build-name {
  display: block;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  text-wrap: balance;
  transform: translate(calc(var(--mx) * 6px), calc(var(--my) * 6px));
}
.js-motion .scene-build .build-note {
  display: block;
  max-width: 26ch;
  margin: clamp(16px, 2vw, 28px) auto 0;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.35;
  text-align: center;
  color: var(--ink-soft);
}

.js-motion .build-index {
  grid-area: index;
  display: flex;
  gap: 6px;
  padding: clamp(16px, 2.4vh, 24px) var(--gutter) clamp(20px, 3vh, 32px);
  border-top: 1px solid var(--rule);
}
.build-index button {
  flex: 1;
  min-width: 0;
  padding: 14px 0 0;
  border: 0;
  background: none;
  font: 600 0.6875rem/1.2 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}
.build-index button::before,
.build-index button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--rule);
}
.build-index button::after {
  background: var(--accent);
  transform: scaleX(var(--seg, 0));
  transform-origin: left;
}
.build-index button:hover,
.build-index button[aria-current="true"] { color: var(--ink); }
.build-index button:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }

/* ---------- How it works: one drawing evolves through six steps ---------- */

.steps-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--col-gap);
  row-gap: 24px;
}
.steps-head { grid-column: 1 / -1; grid-row: 1; }
.steps-head h2 { margin-top: 16px; }

.steps-list {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px var(--col-gap);
  margin-top: clamp(32px, 4vw, 56px);
  list-style: none;
}
.sl-num {
  display: block;
  font: 600 0.875rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.sl-item h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.sl-item p {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

.steps-art, .rail { display: none; }

/* Pinned version */
.js-motion .scene-steps { height: 560vh; border-top: 0; }
.js-motion .steps-layout {
  height: 100%;
  padding-block: clamp(20px, 4vh, 48px);
}
.js-motion .steps-head { grid-column: 1; }
.js-motion .steps-head h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }

.js-motion .steps-list {
  grid-column: 1;
  grid-template-columns: minmax(0, 1fr);
  align-self: center;
  gap: 0;
  margin-top: 0;
}
.js-motion .sl-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
}
.js-motion .sl-item.is-past { transform: translateY(-48px); }
.js-motion .sl-item.is-active { opacity: 1; transform: none; }
.js-motion .sl-item h3 { font-size: clamp(2.75rem, 5.4vw, 5.5rem); line-height: 0.95; }
.js-motion .sl-item p { margin-top: 20px; font-size: clamp(1.125rem, 1.6vw, 1.5rem); }

.js-motion .steps-art {
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: min(100%, 62vh);
  aspect-ratio: 1;
  background-color: var(--paper-deep);
  background-image: radial-gradient(circle, rgba(22, 19, 15, 0.16) 1px, transparent 1.4px);
  background-size: 20px 20px;
  background-position: 10px 10px;
}

.journey { display: block; width: 100%; height: 100%; }
.journey .s,
.journey .sa {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey .sa { stroke: var(--accent); }
.journey .thin { stroke-width: 2; }
.journey .dash { stroke-dasharray: 8 9; }
.journey .f { fill: var(--accent); }
.journey .beam { fill: rgba(214, 58, 31, 0.1); }
.journey .screen { fill: var(--paper); opacity: 0; transition: opacity 0.6s ease; }
[data-step="6"] .journey .screen { opacity: 1; }
.journey .q {
  font: 500 46px var(--serif);
  fill: var(--accent);
  text-anchor: middle;
}

/* Every layer starts hidden; data-step on the section decides what shows. */
.journey > g,
.journey .j-dot {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
}
.journey .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-out);
}
.journey .j-btn {
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 3;
  transition: fill 0.5s ease, stroke 0.5s ease;
}
.journey .j-person { transform: translate(200px, 430px); }
.journey .j-person .head { transition: fill 0.5s ease, stroke 0.5s ease; }
.journey .j-marks,
.journey .j-dot {
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
}
.journey .j-loop { transform-origin: 240px 200px; }
.journey .j-dot { fill: var(--accent); }

/* 1 — Find a need: people, one of them with a problem */
[data-step="1"] .j-need,
[data-step="1"] .j-person { opacity: 1; }
[data-step="1"] .p1 { transform: translate(130px, 250px); }
[data-step="1"] .p2 { transform: translate(200px, 215px); }
[data-step="1"] .p3 { transform: translate(270px, 250px); }
[data-step="1"] .p2 .head { fill: var(--accent); stroke: var(--accent); }

/* 2 — Plan a small test: a test card and a dashed sketch */
[data-step="2"] .j-plan,
[data-step="2"] .j-sketch,
[data-step="3"] .j-sketch { opacity: 1; }

/* 3+ — Build: the sketch draws itself solid */
[data-step="3"] .j-phone, [data-step="4"] .j-phone,
[data-step="5"] .j-phone, [data-step="6"] .j-phone { opacity: 1; }
[data-step="3"] .j-phone .draw, [data-step="4"] .j-phone .draw,
[data-step="5"] .j-phone .draw, [data-step="6"] .j-phone .draw { stroke-dashoffset: 0; }

/* 4 — Test it: people try it and react */
[data-step="4"] .j-person,
[data-step="4"] .j-marks { opacity: 1; }
[data-step="4"] .j-marks { transform: none; transition-delay: 0.4s; }
[data-step="4"] .p1 { transform: translate(90px, 140px); }
[data-step="4"] .p2 { transform: translate(70px, 215px); }
[data-step="4"] .p3 { transform: translate(90px, 290px); }

/* 5 — Improve: the loop spins, the button gets fixed */
[data-step="5"] .j-loop { opacity: 1; animation: spin 7s linear infinite; }
[data-step="5"] .j-btn,
[data-step="6"] .j-btn { fill: var(--accent); stroke: var(--accent); }

/* 6 — Share: on stage, with an audience, and a full stop */
[data-step="6"] .j-beam,
[data-step="6"] .j-person { opacity: 1; }
[data-step="6"] .j-dot { opacity: 1; transform: none; transition-delay: 0.5s; transition-timing-function: ease, cubic-bezier(0.3, 1.6, 0.5, 1); }
[data-step="6"] .p1 { transform: translate(170px, 372px); }
[data-step="6"] .p2 { transform: translate(240px, 376px); }
[data-step="6"] .p3 { transform: translate(310px, 372px); }

/* Progress rail */
.js-motion .rail {
  --rail: 0;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  position: relative;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
}
.js-motion .rail::before,
.js-motion .rail::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 11px;
  right: calc(100% / 6 - 11px);
  height: 1.5px;
  background: var(--rule);
}
.js-motion .rail::after {
  background: var(--accent);
  transform: scaleX(var(--rail));
  transform-origin: left center;
}
.rail li { position: relative; z-index: 1; }

@property --fill {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.rail-dot {
  --fill: 0;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--fill) * 1turn), var(--paper) 0);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: --fill 0.6s ease, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.rail li.is-reached .rail-dot { --fill: var(--p); }
.rail li:last-child.is-reached .rail-dot { box-shadow: none; }
.rail li.is-current .rail-dot { transform: scale(1.2); }
.rail-label {
  display: block;
  margin-top: 10px;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.rail li.is-current .rail-label { color: var(--ink); }

/* ---------- Inside the club: the board ---------- */

.board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--ink);
}
.board-col { padding: 28px clamp(20px, 2.6vw, 36px) 0 0; }
.board-col + .board-col {
  padding-left: clamp(20px, 2.6vw, 36px);
  border-left: 1px solid var(--rule);
}

.board-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Status marks reuse the dot language: filled = happening, dashed = planned. */
.status {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.status-now { background: var(--accent); }
.status-planned { border: 1.5px dashed var(--accent); }
.status-optional { border: 1.5px solid var(--ink); }
.js-motion .status-planned { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.board-list { list-style: none; margin-top: 12px; }

.board-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.board-item:last-child { border-bottom: 0; }

.icon {
  width: 44px;
  height: 44px;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.icon .d { stroke-width: 1.75; }
.board-item:hover .icon { transform: rotate(-6deg) scale(1.08); }

.board-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}
.board-item p {
  margin-top: 6px;
  font-size: 0.9688rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Icons draw in as their item is revealed. */
.js-motion .board-item .icon .d {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--ease-out) calc(var(--delay, 0s) + 0.25s);
}
.js-motion .board-item.is-visible .icon .d { stroke-dashoffset: 0; }
.js-motion .board-item .icon .a {
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) calc(var(--delay, 0s) + 0.8s);
}
.js-motion .board-item.is-visible .icon .a { transform: none; }

/* ---------- Who it's for: three starting points ---------- */

.scene-who .scene-sticky {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--ink);
  list-style: none;
}
.quote { padding: 32px clamp(20px, 3vw, 40px) 0 0; }
.quote + .quote {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--rule);
}
.quote-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.quote-a {
  margin-top: 18px;
  font-weight: 500;
  color: var(--ink-soft);
}
.quote-a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}
.quote-count { display: none; }

/* Pinned: one big quote at a time, typed out as you scroll. */
.js-motion .scene-who { height: 330vh; }
.js-motion .scene-who .scene-sticky {
  display: grid;
  place-items: center;
  max-width: none;
  padding-inline: 0;
}
.js-motion .quotes {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  border-top: 0;
}
.js-motion .quote,
.js-motion .quote + .quote {
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.js-motion .quote.is-active { opacity: 1; }
.js-motion .quote-q {
  font-size: clamp(2.75rem, 7.6vw, 7.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 72;
}
.js-motion .quote-q .c { opacity: 0.12; transition: opacity 0.18s ease; }
.js-motion .quote-q .c.on { opacity: 1; }
.js-motion .quote-a {
  margin-top: 32px;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.js-motion .quote.show-a .quote-a { opacity: 1; transform: none; }
.js-motion .quote-count {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font: 600 0.8125rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.quote-count span { color: var(--ink); }

.ask {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 12px;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid var(--rule);
}
.js-motion .ask { margin-top: 0; }
.ask .kicker { grid-column: 1 / 4; padding-top: 0.9em; }
.ask-text {
  grid-column: 4 / 13;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}

/* ---------- Photos (shown once config.photos has entries) ---------- */

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: var(--col-gap);
  margin-top: clamp(48px, 6vw, 72px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.photo-strip figure { scroll-snap-align: start; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
}
.photo-strip figure:hover img { filter: none; }
.photo-strip figcaption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Join (dark) ---------- */

.join {
  padding-block: var(--section-pad);
  background: var(--night);
  color: var(--night-text);
}
.join .kicker { color: var(--night-muted); }
.join .section-intro { color: var(--night-muted); }
.join h2 { font-size: clamp(2.75rem, 7vw, 6.25rem); }
.join :focus-visible { outline-color: var(--paper); }

.meeting {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--night-text);
}
.meeting-item {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-top: 24px;
}
.meeting-item:first-child { grid-column: 1 / 7; }
.meeting-item:last-child { grid-column: 7 / 13; }
.meeting dt {
  grid-column: 1 / 3;
  padding-top: 0.75em;
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.meeting dd { grid-column: 3 / 7; }
.meeting-main {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 48;
}
.meeting-sub {
  display: block;
  margin-top: 8px;
  color: var(--night-muted);
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: 64px;
  margin-top: clamp(64px, 8vw, 112px);
}
.join-grid > :first-child { grid-column: 1 / 7; }
.join-grid > .partners { grid-column: 8 / 13; }

.join-h {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--night-rule);
  font: 600 0.8125rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.join-steps {
  list-style: none;
  counter-reset: join;
}
.join-steps li {
  counter-increment: join;
  position: relative;
  padding: 22px 0 22px 56px;
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-muted);
}
.join-steps li::before {
  content: counter(join);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--accent);
}
.join-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--night-text);
}
.join-steps .btn { margin-top: 10px; }
.join-steps [data-join-ready] { display: block; }

.join .inline-link { color: var(--night-text); }

.partners p {
  margin-top: 22px;
  color: var(--night-muted);
}
.partners p:first-of-type { color: var(--night-text); font-size: 1.125rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 40px;
}

.footer-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.25rem, 14.4vw, 11.25rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 72;
  white-space: nowrap;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
}
.footer-links a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--accent);
}

/* Footer wordmark rises letter by letter. */
.footer-mark .ch { display: inline-block; }
.js-motion .footer-mark .ch {
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.6s ease, transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i) * 40ms);
}
.js-motion .footer-mark.is-visible .ch { opacity: 1; transform: none; }
.js-motion .footer-mark .period {
  transform: translateY(-1.2em);
  transition-timing-function: ease, cubic-bezier(0.3, 1.5, 0.5, 1);
}

/* ---------- Scroll reveal (only with JS + motion allowed) ---------- */

.js-motion .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* Headings wipe up into place. */
.js-motion .reveal h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.3em);
  transition: clip-path 1s var(--ease-out) 0.1s, transform 1s var(--ease-out) 0.1s;
}
.js-motion .reveal.is-visible h2 {
  clip-path: inset(-0.3em -0.3em -0.4em -0.3em);
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 999px) {
  .section-head > .kicker,
  .section-head > div { grid-column: 1 / -1; }
  .section-head > .kicker { padding-top: 0; }

  .build-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "list";
    row-gap: 32px;
    margin-top: 32px;
  }

  /* On smaller screens the illustration rides along above the list. */
  .stage {
    top: var(--header-h);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: -32px;
    padding-block: 12px;
    background: var(--paper);
  }
  .stage-frame {
    flex: none;
    width: clamp(120px, 34vw, 200px);
    max-height: none;
    margin: 0;
  }
  .stage-caption { margin-top: 0; }
  .build-index button { font-size: 0.625rem; letter-spacing: 0.04em; }

  .board { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .board-col,
  .board-col + .board-col {
    padding: 24px 0 8px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .board-col + .board-col { margin-top: 32px; }

  .ask .kicker,
  .ask-text { grid-column: 1 / -1; }
  .ask .kicker { padding-top: 0; }

  .join-grid > :first-child,
  .join-grid > .partners { grid-column: 1 / -1; }
  .partners { max-width: 640px; }
}

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

  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .js-motion .steps-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    row-gap: 16px;
  }
  .js-motion .steps-head h2 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .js-motion .steps-art { grid-column: 1; grid-row: 2; max-width: min(100%, 36svh); }
  .js-motion .steps-list { grid-row: 3; align-self: start; }
  .js-motion .rail { grid-row: 4; }
  .js-motion .sl-item h3 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .js-motion .sl-item p { margin-top: 12px; }
  .rail-label { display: none; }

  .js-motion .scene-build .build-note { margin-top: 12px; font-size: 1.0625rem; }
  .build-index button { height: 32px; padding: 0; font-size: 0; }
  .build-index button::before,
  .build-index button::after { top: 14px; }

  .quotes { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .quote,
  .quote + .quote {
    padding: 28px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .quote:first-child { border-top-color: var(--ink); }

  .meeting-item,
  .meeting-item:first-child,
  .meeting-item:last-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    padding-block: 22px;
  }
  .meeting-item + .meeting-item { border-top: 1px solid var(--night-rule); }
  .meeting dt,
  .meeting dd { grid-column: 1 / -1; padding-top: 0; }
}

@media (max-width: 560px) {
  .build-item { flex-direction: column; gap: 4px; padding: 14px 0; }
  .build-note { text-align: left; }

  .actions .btn { width: 100%; justify-content: center; }

  .step { padding-right: 52px; }
}

/* ---------- Reduced motion: final states, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
