/* ═══════════════════════════════════════════════════════════════════════
   AFRODISIAC — Drop 001
   A dark showroom. One key light. Twelve garments that turn.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand ground */
  --soil:   #0a0908;   /* garment black, primary ground */
  --stage:  #050504;   /* the floor the catalogue sits on — deeper than soil */
  --raise:  #131110;   /* raised surface */
  --bone:   #eee7dc;
  --oxide:  #a9472d;
  --indigo: #5846ff;
  --smoke:  #756d63;

  --bone-70: rgb(238 231 220 / 70%);
  --bone-50: rgb(238 231 220 / 50%);
  --bone-32: rgb(238 231 220 / 32%);
  --hair:    rgb(238 231 220 / 12%);
  --hair-lo: rgb(238 231 220 / 7%);
  --oxide-lit: color-mix(in srgb, var(--oxide) 66%, var(--bone) 34%);

  /* Type: a disciplined grotesk carries everything. The high-contrast serif
     appears exactly once, on the manifesto, echoing the editorial voice
     printed on the garments themselves. */
  --sans: "Helvetica Neue", Inter, "Segoe UI", system-ui, Arial, sans-serif;
  --serif: Didot, "Bodoni 72", "Playfair Display", "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --pad: clamp(1.25rem, 4.5vw, 5.5rem);
  --ease: cubic-bezier(.16, .84, .28, 1);

  /* Key-light position, driven by the pointer in script.js */
  --lx: 60%;
  --ly: 30%;
}

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

html {
  scroll-behavior: smooth;
  background: var(--stage);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background: var(--stage);
  font-family: var(--sans);
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--oxide-lit);
  outline-offset: 4px;
  border-radius: 1px;
}

/* The nav is fixed, so anchored sections need to clear it. */
:target, section[id] { scroll-margin-top: 5.5rem; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1.1rem;
  color: var(--soil);
  background: var(--bone);
  font: .7rem/1 var(--mono);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* ── Shared type roles ─────────────────────────────────────────────────── */

.eyebrow {
  color: var(--bone-50);
  text-transform: uppercase;
  font: .625rem/1 var(--mono);
  letter-spacing: .16em;
}
.eyebrow span { color: var(--oxide-lit); padding: 0 .35em; }

.display {
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1, .catalogue h2, .manifesto h2, .waitlist h2 {
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.055em;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-transform: uppercase;
  font: .68rem/1 var(--mono);
  letter-spacing: .1em;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn-solid { color: var(--soil); background: var(--bone); border-color: var(--bone); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--oxide-lit); border-color: var(--oxide-lit); }
.btn-line { border-color: var(--hair); color: var(--bone-70); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--bone); color: var(--bone); }

/* ── Nav ───────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem var(--pad);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  border-bottom-color: var(--hair-lo);
  background: rgb(5 5 4 / 72%);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  text-transform: uppercase;
  font-size: clamp(.8rem, 1.1vw, 1rem);
  font-weight: 500;
  letter-spacing: .34em;
}

.nav nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav nav a {
  color: var(--bone-70);
  text-transform: uppercase;
  font: .66rem/1 var(--mono);
  letter-spacing: .1em;
  transition: color .3s var(--ease);
}
.nav nav a:hover { color: var(--bone); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--hair);
  color: var(--bone) !important;
}
.nav-cta:hover { border-color: var(--bone); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: 8rem var(--pad) clamp(2rem, 5vh, 4rem);
  overflow: hidden;
  background: var(--soil);
}

.hero-film { position: absolute; inset: 0; }
.hero-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: .82;
}

/* Grade the film down so type sits on it cleanly, and let one warm and one
   indigo pool sit in the frame the way the mockup lighting does. */
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 78% 32%, rgb(169 71 45 / 18%), transparent 70%),
    radial-gradient(55% 45% at 12% 12%, rgb(88 70 255 / 12%), transparent 70%),
    linear-gradient(to top, var(--stage) 2%, rgb(5 5 4 / 72%) 34%, rgb(5 5 4 / 12%) 68%, rgb(5 5 4 / 55%) 100%);
}

.hero-body { position: relative; z-index: 2; max-width: 78rem; }

.hero .eyebrow { margin-bottom: clamp(1.25rem, 3vh, 2.25rem); }

/* Three short lines, so the type can run bigger than a long headline would. */
.hero h1 {
  font-size: clamp(3.4rem, 13vw, 13rem);
  line-height: .82;
  letter-spacing: -.062em;
  text-transform: uppercase;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line:nth-child(2) { padding-left: clamp(1.5rem, 9vw, 10rem); }
.hero-outline > span {
  color: transparent;
  -webkit-text-stroke: 1px rgb(238 231 220 / 62%);
  padding-left: clamp(.75rem, 4vw, 4rem);
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 7vh, 5.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
.hero-foot p {
  max-width: 34ch;
  color: var(--bone-70);
  font-size: clamp(.85rem, 1.05vw, .95rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-cue {
  position: absolute;
  z-index: 2;
  right: calc(var(--pad) - .35rem);
  bottom: clamp(2rem, 5vh, 4rem);
  color: var(--bone-32);
  text-transform: uppercase;
  font: .58rem/1 var(--mono);
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  animation: cue 3.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(.6rem); opacity: 1; }
}

/* Page-load reveal: one orchestrated moment, then the page stays still.
   Headline lines rise out of a mask; everything else just fades up. */
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.15s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .28s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .40s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .52s; }
@keyframes rise { to { transform: translateY(0); } }

.fade-up { opacity: 0; animation: fade-up 1.1s var(--ease) forwards; }
.hero .eyebrow.fade-up { animation-delay: .12s; }
.hero-foot.fade-up { animation-delay: .78s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.1rem); }
  to   { opacity: 1; transform: none; }
}

/* ── Catalogue ─────────────────────────────────────────────────────────── */

.catalogue {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 14vh, 11rem) var(--pad) clamp(4rem, 10vh, 8rem);
  background: var(--stage);
}

/* One key light travelling over the rail, the way a light travels over a rail
   of black garments. It sits above the cards and screens onto them, so the
   orbit prints only read as you move past. The one ambient effect on the page. */
.key-light {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .6;
  background: radial-gradient(34rem 34rem at var(--lx) var(--ly),
              rgb(169 71 45 / 15%), rgb(88 70 255 / 6%) 40%, transparent 68%);
}

.catalogue > *:not(.key-light) { position: relative; z-index: 2; }

.lede {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 88rem;
  margin-bottom: clamp(4rem, 10vh, 8rem);
}
.lede h2 { font-size: clamp(2.6rem, 7vw, 6.5rem); }
.lede-note {
  max-width: 44ch;
  margin-left: auto;
  color: var(--bone-50);
  font-size: clamp(.85rem, 1.05vw, 1rem);
  line-height: 1.6;
}

.rail + .rail { margin-top: clamp(4rem, 12vh, 9rem); }

.rail-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
  text-transform: uppercase;
  font: .68rem/1 var(--mono);
  letter-spacing: .18em;
}
.rail-count { color: var(--bone-32); letter-spacing: .12em; }

.rail-note {
  max-width: 48ch;
  margin: 1.75rem 0 0;
  color: var(--bone-50);
  font-size: .9rem;
  line-height: 1.6;
}

.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem) clamp(1.25rem, 4vw, 4.5rem);
  max-width: 68rem;
  margin-top: clamp(3rem, 7vh, 6rem);
}
/* Stagger and push the columns apart so the rail reads as a walk past a rail,
   not a spreadsheet. */
.pieces > .piece:nth-child(even) { margin-top: clamp(2rem, 8vh, 7rem); justify-self: end; }
.pieces > .piece:nth-child(odd) { justify-self: start; }

/* ── A piece ───────────────────────────────────────────────────────────── */

.piece {
  /* Sized so a whole garment and its caption fit one screen. */
  width: min(100%, max(26rem, calc(56svh * 0.75)));
  opacity: 0;
  transform: perspective(1400px) rotateX(7deg) translateY(2.5rem);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
.piece.is-in { opacity: 1; transform: none; }

/* The stage holds two sibling controls: the plate opens the viewer, the
   Front/Back toggle turns it. They can't nest — buttons don't nest. */
.piece-stage { position: relative; }

.piece-view {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 1600px;
}

/* The card rests showing its BACK. Every front in this drop is the same quiet
   garment with a 28 mm chest mark, so the back is the piece — leading with it
   is what makes the catalogue readable. Turning shows you the front. */
.card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  transform: rotateY(180deg);
  transform-style: preserve-3d;
  transition: transform 1.15s var(--ease);
}

.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  background: var(--soil);
  box-shadow: 0 2.5rem 5rem rgb(0 0 0 / 55%);
}
.card-face img { width: 100%; height: 100%; object-fit: cover; }
.card-back { transform: rotateY(180deg); }

/* The plates were cut from a two-up, so a sliver of the neighbouring garment
   can survive at one edge. Bleeding the edges back to stage black hides it
   and deepens the pool the garment floats in. */
.card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--soil), rgb(10 9 8 / 0) 8%, rgb(10 9 8 / 0) 92%, var(--soil)),
    radial-gradient(125% 92% at 50% 44%, transparent 52%, rgb(3 3 3 / 62%));
  box-shadow: inset 0 0 0 1px var(--hair-lo);
}

.piece.is-turned .card { transform: rotateY(360deg); }

/* Both the state readout and the control that changes it. Hover is a desktop
   luxury; this is how anyone on a touchscreen turns a garment over. */
.card-turn {
  position: absolute;
  z-index: 3;
  right: .75rem;
  bottom: .75rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 .95rem;
  border: 1px solid var(--hair);
  background: rgb(5 5 4 / 62%);
  backdrop-filter: blur(8px);
  cursor: pointer;
  text-transform: uppercase;
  font: .58rem/1 var(--mono);
  letter-spacing: .16em;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.card-turn:hover, .card-turn:focus-visible { border-color: var(--bone-50); background: rgb(5 5 4 / 82%); }
.card-turn span { transition: color .5s var(--ease); }
.card-turn span:first-child { color: rgb(238 231 220 / 30%); }   /* Front */
.card-turn span:last-child { color: var(--oxide-lit); }          /* Back — at rest */
.piece.is-turned .card-turn span:first-child { color: var(--bone); }
.piece.is-turned .card-turn span:last-child { color: rgb(238 231 220 / 30%); }

.piece-meta { padding-top: clamp(1.25rem, 2.2vw, 1.9rem); }

.piece-ref {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--hair-lo);
  text-transform: uppercase;
  font: .62rem/1 var(--mono);
  letter-spacing: .14em;
}
.piece-ref span:first-child { color: var(--oxide-lit); }
.piece-ref span:last-child { color: var(--bone-32); }

.piece-phrase {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.1vw, 1.85rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.piece-note {
  margin-top: .7rem;
  color: var(--bone-32);
  font-size: .82rem;
  line-height: 1.5;
}

/* ── Manifesto: a title card, not a page section ───────────────────────── */

.manifesto {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.75rem, 4vh, 3rem);
  min-height: 92svh;
  padding: clamp(6rem, 14vh, 11rem) var(--pad);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 46%, rgb(169 71 45 / 9%), transparent 72%),
    var(--soil);
  border-block: 1px solid var(--hair-lo);
}

.orbit-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(58rem, 120vw);
  translate: -50% -50%;
  color: var(--oxide);
  opacity: .085;
  pointer-events: none;
}

.manifesto h2 {
  position: relative;
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 8.5vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.03em;
}
.manifesto-body {
  position: relative;
  max-width: 46ch;
  color: var(--bone-50);
  font-size: clamp(.95rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}

/* The brand line, stamped like an end card. Its only appearance on the page. */
.manifesto-line {
  position: relative;
  margin-top: clamp(1rem, 3vh, 2.5rem);
  padding-top: clamp(1.25rem, 3vh, 2.25rem);
  border-top: 1px solid var(--hair);
  color: var(--oxide-lit);
  text-transform: uppercase;
  font: .62rem/1 var(--mono);
  letter-spacing: .3em;
  text-indent: .3em;
}

/* ── Waitlist ──────────────────────────────────────────────────────────── */

.waitlist {
  display: grid;
  gap: clamp(1.25rem, 3vh, 2rem);
  padding: clamp(6rem, 14vh, 11rem) var(--pad);
  background:
    radial-gradient(45% 55% at 12% 92%, rgb(169 71 45 / 16%), transparent 62%),
    radial-gradient(40% 45% at 92% 6%, rgb(88 70 255 / 10%), transparent 62%),
    var(--stage);
}
.waitlist h2 { max-width: 13ch; font-size: clamp(2.6rem, 7vw, 6.5rem); }
.waitlist-note { max-width: 42ch; color: var(--bone-50); font-size: .95rem; line-height: 1.6; }

.waitlist-form {
  width: min(54rem, 100%);
  margin-top: clamp(3.5rem, 11vh, 8rem);
  margin-left: auto;
}
.waitlist-form label {
  display: block;
  margin-bottom: .9rem;
  color: var(--bone-32);
  text-transform: uppercase;
  font: .62rem/1 var(--mono);
  letter-spacing: .16em;
}
.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--bone-32);
  transition: border-color .35s var(--ease);
}
.field:focus-within { border-bottom-color: var(--bone); }
.field input {
  min-width: 0;
  padding: .6rem 0;
  border: 0;
  outline: none;
  color: var(--bone);
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em;
}
.field input::placeholder { color: rgb(238 231 220 / 22%); }

.form-status {
  min-height: 1.4rem;
  margin-top: 1rem;
  color: var(--oxide-lit);
  font: .75rem/1.4 var(--mono);
}
.form-status[data-tone="error"] { color: #d97b62; }

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2.25rem var(--pad);
  border-top: 1px solid var(--hair-lo);
}
footer p {
  color: var(--bone-32);
  text-transform: uppercase;
  font: .6rem/1.4 var(--mono);
  letter-spacing: .1em;
}
footer p span { color: var(--oxide-lit); padding: 0 .3em; }

/* ── Piece viewer ──────────────────────────────────────────────────────── */

.viewer {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--bone);
  background: var(--stage);
}
.viewer::backdrop { background: rgb(3 3 3 / 92%); backdrop-filter: blur(6px); }
.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.viewer-bar,
.viewer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
}
.viewer-bar { border-bottom: 1px solid var(--hair-lo); }
.viewer-foot { align-items: flex-end; border-top: 1px solid var(--hair-lo); }

.viewer-ref {
  text-transform: uppercase;
  font: .64rem/1 var(--mono);
  letter-spacing: .16em;
  color: var(--oxide-lit);
}
.viewer-close {
  padding: .5rem .9rem;
  border: 1px solid var(--hair);
  background: none;
  cursor: pointer;
  text-transform: uppercase;
  font: .62rem/1 var(--mono);
  letter-spacing: .12em;
  transition: border-color .3s var(--ease);
}
.viewer-close:hover { border-color: var(--bone); }

.viewer-faces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 2rem);
  min-height: 0;
  padding: clamp(1rem, 3vh, 2.5rem) var(--pad);
}
/* No frame around the plate: the mockups carry their own black stage, so a
   figure box even slightly larger than the image reads as a stray rectangle. */
.viewer-faces figure {
  position: relative;
  min-height: 0;
  margin: 0;
  background: transparent;
}
.viewer-faces img { width: 100%; height: 100%; object-fit: contain; }
.viewer-faces figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--bone-32);
  text-transform: uppercase;
  font: .58rem/1 var(--mono);
  letter-spacing: .16em;
}

.viewer-phrase {
  max-width: 26ch;
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}
/* Only worth saying where the two faces don't fit side by side. */
.viewer-hint { display: none; margin-top: .7rem; color: var(--bone-32); font: .62rem/1 var(--mono); letter-spacing: .1em; }
.viewer-nav { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── Desktop-only behaviour ────────────────────────────────────────────── */

/* Hovering the plate previews the front. It never fights the toggle: once a
   piece is turned it is already showing its front, so there is nothing to undo. */
@media (hover: hover) and (pointer: fine) {
  .piece-view:hover .card,
  .piece-view:focus-visible .card { transform: rotateY(360deg); }
  .piece-view:hover ~ .card-turn span:first-child,
  .piece-view:focus-visible ~ .card-turn span:first-child { color: var(--bone); }
  .piece-view:hover ~ .card-turn span:last-child,
  .piece-view:focus-visible ~ .card-turn span:last-child { color: rgb(238 231 220 / 30%); }
}

/* ── Tablet ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .lede-note { margin-left: 0; }
  .waitlist-form { margin-left: 0; }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .nav { padding: .9rem var(--pad); }
  .nav nav { gap: .85rem; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 0 .85rem; font-size: .6rem; }

  .hero { padding-top: 6rem; }
  .hero-film video { object-position: 50% 38%; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 5rem); line-height: .86; }
  .hero h1 .line:nth-child(2) { padding-left: 1.5rem; }
  .hero-outline > span { padding-left: .6rem; }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-cue { display: none; }

  /* One garment at a time — a phone screen is a viewfinder, not a grid. */
  .pieces { grid-template-columns: minmax(0, 1fr); gap: clamp(3rem, 9vh, 5rem); }
  .pieces > .piece:nth-child(even) { margin-top: 0; }
  .card-face { box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 50%); }
  .piece-phrase { font-size: 1.35rem; }

  /* Swipe between the two faces instead of squeezing both in. */
  .viewer-faces {
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .viewer-faces figure { scroll-snap-align: center; }
  .viewer-hint { display: block; }
  .viewer-foot { flex-direction: column; align-items: stretch; gap: .9rem; }
  .viewer-nav > .btn { flex: 1 1 auto; }
  .viewer-nav > [data-join] { flex-basis: 100%; }

  /* Stacked, the wrapper's rule would draw a line under the button. Put it
     back on the input, where it belongs. */
  /* Small enough that "before you name it." holds one line. */
  .manifesto h2 { font-size: clamp(2rem, 9.4vw, 2.6rem); }

  .field { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 0; border-bottom: 0; }
  .field input { padding-bottom: .9rem; border-bottom: 1px solid var(--bone-32); transition: border-color .35s var(--ease); }
  .field:focus-within input { border-bottom-color: var(--bone); }
  .field .btn { width: 100%; }
}

/* Keep the wordmark and primary action intact on compact phones. */
@media (max-width: 360px) {
  .nav { gap: .5rem; }
  .nav .brand { font-size: .72rem; letter-spacing: .22em; }
  .nav-cta { padding-inline: .6rem; font-size: .54rem; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal > span { transform: none; opacity: 1; }
  .piece { opacity: 1; transform: none; }
  .key-light { opacity: .3; }
}
