/* prpl waitlist. Colour chapters: every section is one flat field, butted to the next. */

:root {
  /* brand colours, taken from the logo, the labels and the green photoshoot */
  --paper: #E8E3D2;      /* the cream of the logo type, exactly */
  --ink: #15160F;        /* the label black */
  --olive: #30341C;      /* the logo ground */
  --green: #3E6521;      /* the photoshoot wall */
  --green-deep: #26421A;
  --leaf: #B8CC8E;       /* accent ink on the dark fields */
  --studio: #ECECEC;     /* the grey behind every product photo */
  --t1: #1C3110;         /* ritual tints, dark to light */
  --t2: #2B4A19;
  --t3: #3F6624;
  --t4: #A7BE86;
  --error: #FFD7C2;

  --accent: var(--green);

  /* type: Switzer for everything, Outfit only for the wordmark */
  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Outfit", "Switzer", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.5rem, 7.2vw, 11.5rem);

  /* space */
  --m: 28px;
  --gap: 20px;
  --section-pad: clamp(96px, 12vw, 180px);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

@media (max-width: 899px) {
  :root {
    --step-display: 14vw;
    --step-head: 2.25rem;
    --step-lead: 1.25rem;
    --step-body: 1.0625rem;
    --step-small: 0.875rem;
  }
}
@media (max-width: 767px) {
  :root { --m: 16px; --gap: 12px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: block; flex: none; width: 1.25em; height: 1.25em; }

.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; /* taste-skill-ignore: screen-reader-only box, not a rule */
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: var(--m); }

/* ---------- shared pieces ---------- */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: calc(var(--step-lead) * 1.3);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  transition: transform var(--t-press) var(--ease-out);
}
.wordmark:active { transform: scale(0.96); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-weight: 500; font-size: var(--step-body); line-height: 1;
  text-decoration: none; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn--accent { background: var(--accent); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--green-deep); }
  .btn--ink:hover { background: var(--olive); }
  .btn--paper:hover { background: #fff; }
}

.lines .line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.lines .line > span { display: block; }

/* ======================================================================
   1. HERO: two fields meet at a waterline that cuts through the headline
   ====================================================================== */
.hero {
  --seam: 50%;
  position: relative;
  height: 100svh;
  min-height: 600px;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero { --seam: 100%; }
}
.hero__water {
  position: absolute; left: 0; right: 0; bottom: 0; top: var(--seam);
  background: var(--green);
  z-index: 0;
}

.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--m);
}

.bar__right { display: flex; align-items: center; gap: 6px; }

/* the ice photograph fills the right half, edge to edge */
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  margin: 0; overflow: hidden; z-index: 1;
  background: var(--green-deep);
}
.hero__photo img {
  position: absolute; left: 0; top: -6%;
  width: 100%; height: 112%; max-width: none;
  object-fit: cover; object-position: 50% 56%;
}

.hero__title {
  --fs: var(--step-display);
  position: absolute; left: 4vw; right: calc(50% + 2vw); z-index: 2;
  top: calc(50% - 1.5em);
  margin: 0;
  font-size: var(--fs);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-align: left;
}
/* Each line is painted with two flat colours split at the waterline:
   ink above, paper below. --split is the height of the ink part. */
.wl {
  --ink-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%2315160F'/%3E%3C/svg%3E");
  --paper-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23E8E3D2'/%3E%3C/svg%3E");
  --split: 46%;
  padding-bottom: 0.2em;            /* room for the tails of y and g */
  margin-bottom: -0.2em;
  background-image: var(--ink-fill), var(--paper-fill);
  background-size: 100% var(--split), 100% 100%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; /* taste-skill-ignore: two flat colours split at the waterline, not a gradient */
  background-clip: text; /* taste-skill-ignore: as above */
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.wl--sky { --split: 100%; }

.hero__foot {
  position: absolute; z-index: 2;
  left: 4vw; bottom: 40px;
  width: min(36ch, 40vw);
  display: flex; flex-direction: column; gap: 40px;
}
.hero__count { color: var(--paper); }
.count__label { font-size: var(--step-body); font-weight: 500; }
.count__nums { display: flex; flex-wrap: nowrap; gap: 0 clamp(16px, 2.2vw, 30px); margin-top: 10px; white-space: nowrap; }
.count__part { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 2.1ch; }
.count__n {
  display: inline-block;
  font-size: min(var(--step-head), 4.2vw); font-weight: 600; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.count__u { font-size: var(--step-small); }
html:not(.js) .count__nums { display: none; }
.hero__lede {
  font-size: var(--step-lead);
  line-height: 1.35;
  color: var(--paper);
  text-wrap: balance;
}

/* Stacked hero: phones, and tablets held upright */
@media (max-width: 899px), (orientation: portrait) and (max-width: 1366px) {
  .hero { --seam: 40%; min-height: 640px; }
  .hero__title { top: calc(40% - 1.5em); left: var(--m); right: var(--m); text-align: center; }
  .hero__photo { top: 48%; bottom: calc(env(safe-area-inset-bottom) + 118px); left: 0; right: 0; width: auto; }
  .hero__photo img { object-position: 50% 78%; } /* on phones, close in on the bottles in the box */
  .hero__foot { display: contents; }
  .hero__lede {
    position: absolute; z-index: 2;
    left: var(--m); right: var(--m); bottom: calc(env(safe-area-inset-bottom) + 28px);
    width: auto; max-width: 30ch;
    font-size: var(--step-body); line-height: 1.45;
  }
  .hero__count {
    position: absolute; z-index: 2; left: var(--m); right: var(--m);
    top: calc(var(--m) + 54px);
    color: var(--ink); text-align: center;
  }
  .hero__count .count__nums { margin-top: 6px; }
  .hero__count .count__part { gap: 3px; }
  .hero__count .count__nums { justify-content: center; }
  .hero__count .count__part { align-items: center; }
  .hero__count .count__n { font-size: var(--step-head); }
  .bar .btn { min-height: 42px; padding: 0 14px; }
}
@media (min-width: 900px) and (max-width: 1366px) and (orientation: portrait) {
  .hero__title { --fs: 13vw; }
  .hero__photo { bottom: calc(env(safe-area-inset-bottom) + 140px); }
  .hero__lede { font-size: var(--step-lead); max-width: 34ch; }
  .bar .btn { min-height: 48px; padding: 0 22px; }
}

/* hero load: the water rises, the photograph comes up with it, the lines rise out of their masks */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lines [data-line] {
    transform: translateY(105%);
    animation: line-up 1000ms var(--ease-out) forwards;
    animation-delay: calc(var(--i) * 120ms + 380ms);
  }
  .js .hero__photo { clip-path: inset(100% 0 0 0); animation: photo-rise 1800ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards; }
  .js .hero__photo img { scale: 1.14; animation: photo-settle 2800ms var(--ease-soft) 160ms forwards; }
  .js .hero__lede, .js .hero__count, .js .bar { opacity: 0; animation: fade-up 800ms var(--ease-out) forwards; animation-delay: 1150ms; }
  .js .hero__count { --y: 14px; animation-delay: 1000ms; }
  .js .bar { animation-delay: 200ms; }
  .js .hero__lede { --y: 14px; }
}
@keyframes line-up { to { transform: none; } }
@keyframes photo-rise { to { clip-path: inset(0 0 0 0); } }
@keyframes photo-settle { to { scale: 1; } }
@keyframes fade-up { from { opacity: 0; translate: 0 var(--y, 0); } to { opacity: 1; translate: 0 0; } }

/* ======================================================================
   2. THE WORD: a three-step staircase on the logo's olive
   ====================================================================== */
.word {
  position: relative;
  min-height: 100svh;
  background: var(--olive);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20vw;
  grid-template-rows: 1fr auto;
  column-gap: 4vw;
  padding: 120px var(--m) var(--m) 4vw;
}
.word__main { align-self: center; }
.word__title {
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.word__title .line:nth-child(2) { padding-left: 12vw; color: var(--leaf); }
.word__statement {
  margin-top: 48px;
  padding-left: 24vw;
  max-width: calc(24vw + 31ch);
  font-size: var(--step-lead);
  line-height: 1.35;
  text-wrap: pretty;
}
.word__photos { display: grid; gap: 16px; align-self: center; }
.frame { overflow: hidden; aspect-ratio: 3 / 2; background: var(--green-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.word__note {
  grid-column: 1 / -1;
  margin-top: 64px;
  font-size: var(--step-small);
  line-height: 1.5;
}
@media (max-width: 899px) {
  .word { grid-template-columns: 1fr; grid-template-rows: none; padding: 112px var(--m) 32px; }
  .word__title .line:nth-child(2) { padding-left: 10vw; }
  .word__statement { padding-left: 20vw; max-width: none; margin-top: 32px; }
  .word__photos { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
  .word__note { margin-top: 40px; }
}

/* ======================================================================
   3. TURN IT AROUND: a square plate and spare text, on the shoot green
   ====================================================================== */
.show {
  min-height: 92svh;
  background: var(--green);
  color: var(--paper);
  padding: var(--section-pad) var(--m);
}
.show__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.show__stage { display: flex; flex-direction: column; gap: 18px; }
.show__plate {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-height: 82svh;
  background: var(--studio);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.show__plate:active { cursor: grabbing; }
.show__plate:focus-visible { outline-color: var(--paper); }
.show__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* the 3D bottle: no grey plate, the bottle stands straight on the green */
.show__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 700ms var(--ease-out);
  touch-action: none; cursor: grab;
}
.show__canvas:active { cursor: grabbing; }
.show__plate.is-3d { background: transparent; overflow: visible; }
.show__plate.is-3d .show__canvas { opacity: 1; }
.show__plate.is-3d .show__img { opacity: 0; visibility: hidden; transition: opacity 400ms ease, visibility 0s linear 400ms; }
.show__views { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.show__views button {
  min-height: 40px; padding: 0 14px;
  font-size: var(--step-body);
  color: var(--paper);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.show__views button:active { transform: scale(0.96); }
.show__views button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.show__hint { margin-left: auto; font-size: var(--step-small); color: var(--paper); }

.show__side {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-width: 0;
}
.show__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.show__tabs [role="tab"] {
  min-height: 44px; padding: 0 16px;
  font-size: var(--step-body); font-weight: 500;
  color: var(--paper);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.show__tabs [role="tab"]:active { transform: scale(0.96); }
.show__tabs [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .show__tabs [role="tab"][aria-selected="false"]:hover,
  .show__views button[aria-pressed="false"]:hover { background: var(--green-deep); }
}

.show__panels { display: grid; flex: 1; align-content: center; }
.product { grid-area: 1 / 1; max-width: 40rem; }
.product + .product { margin-top: 64px; }
.product__name {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}
.product__size { margin-top: 14px; font-size: var(--step-body); }
.face { margin-top: 40px; display: grid; gap: 18px; }
.product__desc { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.product__fact { max-width: 46ch; }
.product__fact strong, .product__ingredients strong { font-weight: 600; margin-right: 0.35em; }
.product__ingredients { font-size: var(--step-small); line-height: 1.55; max-width: 62ch; }

.show__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 72px; padding: 0 20px;
  font-size: var(--step-body); font-weight: 500; text-decoration: none; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.cell:active { transform: scale(0.98); }
.cell--turn { background: var(--green-deep); color: var(--paper); }
.cell--go { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cell--turn:hover { background: var(--t1); }
  .cell--go:hover { background: #fff; }
}

/* with script: one bottle, one face at a time */
.js .product { visibility: hidden; opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 420ms; }
.js .product + .product { margin-top: 0; }
.js .product.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity 520ms var(--ease-out) 80ms, transform 620ms var(--ease-out) 80ms, visibility 0s; }
.js .face { display: none; }
.js .face.is-on { display: grid; animation: face-in 460ms var(--ease-out); }
@keyframes face-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.show__tabs, .show__views, .cell--turn { display: none; }
.js .show__tabs, .js .show__views { display: flex; }
.js .cell--turn { display: flex; }
html:not(.js) .show__actions { grid-template-columns: 1fr; }
@media (hover: none) { .show__hint { display: none; } }

@media (max-width: 899px) {
  .show { padding: 96px var(--m); }
  .show__grid { grid-template-columns: 1fr; gap: 28px; }
  .show__stage { max-width: 560px; }
  .show__side { gap: 28px; }
  .show__tabs { gap: 2px; }
  .show__tabs [role="tab"] { padding: 0 10px; min-height: 42px; }
  .show__actions { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .product__name { max-width: none; }
  .face { margin-top: 24px; }
}

/* ======================================================================
   4. RITUAL: an accordion of four tints, dark to light
   ====================================================================== */
.ritual {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  padding: var(--section-pad) var(--m);
  display: flex; flex-direction: column; justify-content: center;
}
.ritual__intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  align-items: end;
  margin-bottom: 64px;
}
.ritual__title {
  grid-column: 1 / span 6;
  font-size: var(--step-head); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em;
}
.ritual__text { grid-column: 7 / span 5; font-size: var(--step-body); max-width: 46ch; }

.acc { display: flex; height: clamp(440px, 58svh, 560px); }
.acc__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--tint);
  color: var(--tint-ink);
  overflow: hidden;
  transition: flex-grow 520ms var(--ease-in-out);
}
.acc__panel.is-open { flex-grow: 5.2; }
.acc__head { margin: 0; font: inherit; }
.acc__tab {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 26px 22px;
  color: inherit;
  text-align: left;
  transition: opacity var(--t-ui) ease;
}
.acc__tab span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .acc__panel:not(.is-open) .acc__tab:hover span { transform: rotate(180deg) translateX(4px); }
}
.acc__panel.is-open .acc__tab { opacity: 0; visibility: hidden; pointer-events: none; }
.acc__body:focus { outline: none; }
.acc__body:focus-visible { outline: 3px solid var(--tint-ink); outline-offset: -6px; }
.acc__body {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr);
  padding: 32px;
  min-width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.acc__panel.is-open .acc__body { opacity: 1; visibility: visible; transition: opacity 500ms ease 260ms, visibility 0s; }
.acc__copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.acc__name { font-size: var(--step-head); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.acc__product { font-weight: 600; margin-bottom: 8px; }
.acc__how { max-width: 32ch; }
.acc__img {
  justify-self: center; align-self: end;
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%; height: 100%; max-width: none;
  object-fit: cover;
  scale: 1.08;
  transition: scale 1400ms var(--ease-soft) 120ms;
}
.acc__panel.is-open .acc__img { scale: 1; }

@media (max-width: 899px) {
  .ritual { padding: 96px var(--m); }
  .ritual__intro { grid-template-columns: 1fr; row-gap: 20px; margin-bottom: 40px; }
  .ritual__title, .ritual__text { grid-column: 1; }
  .acc { flex-direction: column; height: auto; }
  .acc__panel { flex: none; display: grid; grid-template-rows: 64px 0fr; transition: grid-template-rows 480ms var(--ease-in-out); }
  .acc__panel.is-open { grid-template-rows: 64px 1fr; }
  .acc__tab { position: relative; inset: auto; height: 64px; align-items: center; padding: 0 18px; }
  .acc__tab span { writing-mode: horizontal-tb; transform: none; }
  .acc__panel.is-open .acc__tab { opacity: 1; visibility: visible; pointer-events: none; }
  .acc__head { display: block; }
  .acc__body { position: relative; inset: auto; min-width: 0; min-height: 0; overflow: hidden; padding: 0 18px; grid-template-columns: 1fr 34%; gap: 12px; }
  .acc__panel.is-open .acc__body { padding-bottom: 18px; }
  .acc__name { display: none; }
  .acc__img { position: static; width: 100%; height: 100%; min-height: 190px; max-height: 240px; scale: 1; }
}

/* ======================================================================
   6. THE WAITLIST: one row of tiles, the accent one in the middle
   ====================================================================== */
.join {
  min-height: 100svh;
  background: var(--ink);
  display: flex; align-items: center;
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.join__row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr);
  gap: 12px;
  margin: 0 -2vw;
  width: calc(100% + 4vw);
}
.tile { min-height: 520px; }
.tile--photo { overflow: hidden; background: var(--green-deep); }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.tile--flat { background: var(--olive); }
.tile--main {
  background: var(--accent);
  color: var(--paper);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-content: start; /* the countdown band sits flush on the top edge */
}
/* the same countdown, as a darker band across the top of the form tile */
.join__timer {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 32px;
  margin: -48px -48px 0; padding: 26px 48px 24px;
  background: var(--green-deep); color: var(--paper);
}
.join__timer .count__nums { margin-top: 0; }
.join__timer .count__n { font-size: calc(var(--step-lead) * 1.45); }
.join__title { font-size: var(--step-head); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.join__text { margin-top: 16px; max-width: 44ch; }
.join__count { margin-top: 10px; font-weight: 600; color: var(--leaf); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: var(--step-body); font-weight: 500; }
.field input, .field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 0;
  font-size: var(--step-body);
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.field input::placeholder { color: #6B6A60; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__phone { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px; }
.field__phone select {
  width: 100%; padding: 0 30px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2315160F' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field__err { min-height: 0; font-size: var(--step-small); font-weight: 500; color: var(--error); }
.field__err:empty { display: none; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen spam trap, not a rule */
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form__submit { min-height: 58px; padding: 0 30px; position: relative; }
.form__submit[aria-busy="true"] { pointer-events: none; }
.form__submit[aria-busy="true"] span { opacity: 0.7; }
.form__fine { font-size: var(--step-small); }
.form__status { grid-column: 1 / -1; font-weight: 500; }
.form__status:empty { display: none; }

.done { align-self: center; outline: none; }
.done__title { font-size: var(--step-head); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.done__line { margin-top: 18px; font-size: var(--step-lead); color: var(--leaf); }
.done__text { margin-top: 18px; max-width: 40ch; }
.done__share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.done__follow { margin-top: 36px; display: grid; gap: 12px; }
.done__follow p { font-weight: 500; }
.done__share .btn { min-height: 54px; text-decoration: none; }
.form__fine a { color: inherit; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) > * { animation: fade-up 700ms var(--ease-out) both; --y: 18px; }
  .done:not([hidden]) > *:nth-child(2) { animation-delay: 90ms; }
  .done:not([hidden]) > *:nth-child(3) { animation-delay: 180ms; }
  .form.is-leaving { animation: form-out 360ms var(--ease-out) forwards; }
}
@keyframes form-out { to { opacity: 0; translate: 0 -10px; } }

@media (max-width: 767px) {
  .join { padding: 72px 0; }
  .join__timer { margin: -28px calc(-1 * var(--m)) 0; padding: 20px var(--m); flex-direction: column; align-items: flex-start; }
  .join__row { grid-template-columns: 1fr 1fr; margin: 0; width: 100%; gap: 10px; }
  .tile--main { grid-column: 1 / -1; grid-row: 1; padding: 28px var(--m) 32px; gap: 28px; }
  .tile--photo, .tile--flat { min-height: 0; height: 140px; grid-row: 2; }
  .tile--main { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
}

/* ======================================================================
   7. FOOTER: the name first, on the logo's olive
   ====================================================================== */
.foot {
  min-height: 90svh;
  background: var(--olive);
  color: var(--paper);
  padding: 40px var(--m) var(--m);
  display: flex; flex-direction: column;
}
.foot__mark {
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: calc((100vw - 2 * var(--m)) / 1.7);
  line-height: 0.8;
  letter-spacing: -0.03em;
  margin-left: -0.045em;
  overflow: hidden;
  padding-bottom: 0.12em;
}
.foot__mark span { display: block; }
.foot__row {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  margin-top: 72px;
}
.foot__connect { grid-column: 1 / span 6; display: grid; gap: 36px; align-content: start; justify-items: start; }
.foot__follow { display: grid; gap: 14px; }
.foot__follow p { font-size: var(--step-body); }
.foot__follow strong { font-weight: 600; color: var(--leaf); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: #3E4427; color: var(--paper);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.social .ico { width: 24px; height: 24px; }
.social:active { transform: scale(0.94); }
.social:focus-visible { outline-color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .social:hover { background: var(--leaf); color: var(--ink); } }
.socials--on-green .social { background: var(--green-deep); }
@media (hover: hover) and (pointer: fine) { .socials--on-green .social:hover { background: var(--paper); color: var(--ink); } }

.foot__cols { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.foot__cols ul { display: grid; gap: 10px; }
.foot__cols a, .foot__legal a {
  font-size: var(--step-body); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .foot__cols a:hover, .foot__legal a:hover { text-decoration-color: currentColor; }
}
.foot__legal {
  margin-top: auto; padding-top: 96px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: var(--step-small);
}
.foot__legal a { font-size: var(--step-small); white-space: nowrap; }
.foot__legal p a { margin-left: 0.6em; }
@media (max-width: 767px) {
  .foot { min-height: 0; padding-top: 28px; }
  .foot__row { grid-template-columns: 1fr; row-gap: 40px; margin-top: 40px; }
  .foot__connect, .foot__cols { grid-column: 1; }
  .foot__legal { padding-top: 64px; flex-direction: column; gap: 10px; }
}

/* ---------- floating action, shown between the hero and the form ---------- */
.float-cta {
  position: fixed; right: var(--m); bottom: calc(var(--m) + env(safe-area-inset-bottom)); z-index: 20;
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  font-weight: 500; text-decoration: none;
  opacity: 0; translate: 0 16px; pointer-events: none; visibility: hidden;
  transition: opacity 300ms var(--ease-out), translate 400ms var(--ease-out), visibility 0s linear 400ms, background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.float-cta.is-shown { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.float-cta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .float-cta:hover { background: var(--green); } }

/* ======================================================================
   Section entrances. Hidden states only apply with script and motion on.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 700ms var(--ease-out), translate 900ms var(--ease-out);
    transition-delay: calc(var(--d, 0) * 85ms);
  }
  .js .is-in [data-reveal] { opacity: 1; translate: 0 0; }

  .js [data-reveal="stair"] { translate: -40px 0; transition-duration: 800ms, 1100ms; }
  .js .is-in [data-reveal="stair"] { translate: 0 0; }

  .js [data-reveal="line"] { opacity: 1; translate: 0 105%; transition: translate 1000ms var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
  .js .is-in [data-reveal="line"] { translate: 0 0; }

  .js [data-reveal="shutter"] { opacity: 1; translate: 0 0; clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); transition-delay: calc(var(--d, 0) * 85ms); }
  .js [data-reveal="shutter"] img { scale: 1.14; transition: scale 1600ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 85ms); }
  .js .is-in [data-reveal="shutter"] { clip-path: inset(0); }
  .js .is-in [data-reveal="shutter"] img { scale: 1; }

  .js [data-reveal="settle"] { translate: 0 0; scale: 0.96; transition: opacity 800ms var(--ease-out), scale 1100ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 85ms); }
  .js .is-in [data-reveal="settle"] { scale: 1; }

  .js [data-reveal="drop"] { translate: 0 -60px; rotate: 0deg; transition: opacity 600ms var(--ease-out), translate 1000ms var(--ease-out), rotate 1200ms var(--ease-out), scale 220ms var(--ease-out); transition-delay: calc(var(--d, 0) * 120ms); }
  .js .is-in [data-reveal="drop"] { translate: 0 0; rotate: var(--r, 0deg); }
  .js .is-in [data-reveal="drop"].is-settled { transition: rotate 220ms var(--ease-out), scale 220ms var(--ease-out); transition-delay: 0s; }

  .js [data-reveal="rise-big"] { opacity: 1; translate: 0 70%; transition: translate 1300ms var(--ease-out); }
  .js .is-in [data-reveal="rise-big"] { translate: 0 0; }

  /* the one moving picture: a slow breath on the ice tile */
  .tile--photo img { animation: breathe 14s ease-in-out infinite alternate; }
}
@keyframes breathe { from { scale: 1; } to { scale: 1.09; } }

/* ======================================================================
   Small pages: privacy and 404
   ====================================================================== */
.doc-page { min-height: 100svh; display: flex; flex-direction: column; }
.bar--static { position: static; }
.doc { padding: 64px var(--m) 120px; max-width: calc(46rem + 2 * var(--m)); }
.doc__title { font-size: var(--step-head); font-weight: 600; line-height: 0.98; letter-spacing: -0.035em; }
.doc__lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; }
.doc h2 { margin-top: 48px; font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.doc h2 + p { margin-top: 10px; }
.doc a { text-underline-offset: 0.2em; }
.doc__date { margin-top: 64px; font-size: var(--step-small); }
.lost { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding: 0 var(--m) 18svh; }
.lost__title { font-size: var(--step-display); font-weight: 600; line-height: 0.95; letter-spacing: -0.045em; }
.lost__text { font-size: var(--step-lead); }
