/* ==========================================================================
   KiddoCalendar — landing page
   "Warm paper, night ink." Riso-print shapes, a display serif, one warm accent.

   Colour lives here once, as a token. Never write a raw colour below the
   :root block — change the role, and every section follows.
   ========================================================================== */

/* ── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVar";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Ground and ink */
  --paper:      #FAF4EC;
  --paper-2:    #F3E8DA;
  --sand:       #E7D8C4;
  --ink:        #1A1A2E;   /* the app's accent — this page belongs to it */
  --ink-2:      #26263F;
  --ink-soft:   #55556E;
  --on-ink:     #F6EFE5;
  --on-ink-dim: #BDB6C7;

  /* Accents */
  --apricot:     #FF7A45;
  --apricot-ink: #B0421B;  /* apricot legible as TEXT on paper (6.3:1) */
  --blue:        #4A6FE3;
  --blue-ink:    #3350BE;
  --moss:        #3F7D62;
  --moss-ink:    #376D55;  /* moss legible as TEXT on paper (5.5:1) */
  --ok-on-ink:   #8FE0BB;  /* the same two message roles, on a dark ground */
  --err-on-ink:  #FFB39A;
  --card:        #FFFFFF;  /* the raised surfaces: preview, form, week grid */
  --on-colour:   #FFFFFF;  /* text that sits on a saturated fill */
  --apricot-hi:  #FF8C5C;  /* button hover (ink on it is 7.4:1) */
  --placeholder: #767066;  /* 4.9:1 on the white field */

  /* Roles */
  --rule:      #E0D0BA;
  --rule-dark: rgba(246,239,229,.16);
  --focus:     #1A1A2E;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "InterVar", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Space and shape */
  --wrap: 1180px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --sec: clamp(4.5rem, 9vw, 8rem);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(26,26,46,.06);
  --shadow:    0 14px 40px -18px rgba(26,26,46,.30);
  --shadow-lg: 0 34px 80px -30px rgba(26,26,46,.40);

  --ease: cubic-bezier(.22,.68,.32,1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

/* ── Accessibility ─────────────────────────────────────────────────────── */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.join :where(a, button, input):focus-visible,
.problem :where(a, button, input):focus-visible { outline-color: var(--apricot); }

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 100; background: var(--ink); color: var(--on-ink);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ── Layout ────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ── Riso grain: the print texture, one fixed layer ────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='160' height='160' filter='url(%23n)' opacity='.34'/></svg>");
}

/* ── Type ──────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 120;
  font-weight: 640;
  font-size: clamp(3rem, 1.4rem + 7.4vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.2rem); line-height: 1.0; }
.display--sm { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; }

.display em {
  font-style: italic;
  font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 140;
  color: var(--apricot-ink);
}
.problem .display em, .join .display em, .dream .display em { color: var(--apricot); }

.eyebrow {
  font-size: .8125rem; font-weight: 650; letter-spacing: .14em;
  text-transform: uppercase; color: var(--apricot-ink);
  margin-bottom: 1.1rem;
}
.eyebrow--light { color: var(--apricot); }

.lede {
  font-size: clamp(1.0625rem, .98rem + .5vw, 1.3125rem);
  line-height: 1.55; color: var(--ink-soft); max-width: 34ch;
  text-wrap: pretty;
}
.lede--light { color: var(--on-ink-dim); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: 1rem 1.6rem; border: 0; border-radius: 999px;
  font-weight: 650; font-size: 1rem; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease);
}
.btn--primary {
  background: var(--apricot); color: var(--ink);   /* ink on apricot — 7.9:1 */
  box-shadow: 0 10px 24px -12px rgba(255,122,69,.9);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--apricot-hi); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: .62rem 1.15rem; font-size: .9375rem; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 236, .84);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--rule); }

.nav__inner {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: .85rem var(--gut);
  display: flex; align-items: center; gap: 1.5rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 24;
  font-weight: 700; font-size: 1.22rem; letter-spacing: -.02em;
  margin-right: auto;
}
.wordmark__mark { width: 30px; height: 30px; flex: none; }
.wordmark__text em { font-style: italic; color: var(--apricot-ink); }

.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  text-decoration: none; font-size: .9375rem; font-weight: 500;
  color: var(--ink-soft); position: relative; padding-block: .25rem;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--apricot); transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 860px) { .nav__links { display: none; } }

/* ── 1. HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.hero__shapes {
  position: absolute; inset: -12% -10% auto -10%; height: 130%;
  z-index: 0; pointer-events: none;
  mix-blend-mode: multiply;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.hero__riso { width: 100%; height: 100%; filter: blur(.3px); }

.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* One column puts the copy on top of the colour. Drop the shapes to the lower
     band, behind the opaque preview card, so no body text sits on apricot. */
  .hero__shapes { inset: auto -14% 0 -14%; height: 42%; }
}

.hero__copy .lede { margin-top: 1.6rem; max-width: 40ch; }

/* ── Waitlist form ─────────────────────────────────────────────────────── */
.waitlist { margin-top: 2.4rem; max-width: 34rem; }
.waitlist__row {
  display: flex; gap: .55rem; padding: .45rem;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.waitlist__row:focus-within { border-color: var(--ink); box-shadow: var(--shadow); }

.waitlist__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none;
  padding: .85rem 1.1rem; font-size: 1rem; border-radius: 999px;
}
.waitlist__input::placeholder { color: var(--placeholder); }
.waitlist__input:focus-visible { outline-offset: -2px; }

.waitlist__note { margin-top: .85rem; font-size: .875rem; color: var(--ink-soft); }
.waitlist--light .waitlist__note { color: var(--on-ink-dim); }

.waitlist__msg {
  margin-top: .85rem; font-size: .9375rem; font-weight: 550;
  min-height: 0; opacity: 0; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.waitlist__msg.is-shown { opacity: 1; transform: none; }
.waitlist__msg.is-error { color: var(--apricot-ink); }
.waitlist__msg.is-ok { color: var(--moss-ink); }
.waitlist--light .waitlist__msg.is-error { color: var(--err-on-ink); }
.waitlist--light .waitlist__msg.is-ok { color: var(--ok-on-ink); }

.waitlist.is-done .waitlist__row { display: none; }
.waitlist.is-done .waitlist__note { display: none; }
.waitlist.is-done .waitlist__msg {
  font-family: var(--display); font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.7rem); line-height: 1.25;
  margin-top: 0;
}

@media (max-width: 520px) {
  .waitlist__row { flex-direction: column; border-radius: var(--r-lg); padding: .5rem; }
  .waitlist__input { padding: .95rem 1rem; }
  .waitlist__row .btn { width: 100%; }
}

/* ── Hero product preview ──────────────────────────────────────────────── */
.hero__preview { perspective: 1400px; }

.preview {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
  padding: 1.15rem; will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) rotate(-1.4deg);
}
.preview__head {
  display: flex; align-items: center; gap: .55rem;
  padding: .15rem .35rem .95rem;
  border-bottom: 1px dashed var(--rule); margin-bottom: .9rem;
}
.preview__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--apricot); flex: none; }
.preview__title {
  font-size: .8125rem; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}

.acard {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem .75rem; border-radius: var(--r-md);
  transition: background-color .25s var(--ease);
}
.acard + .acard { margin-top: .2rem; }
.acard:hover { background: var(--paper); }

.acard__glyph { width: 40px; height: 40px; flex: none; border-radius: 12px; position: relative; }
.acard__glyph--arc  { background: var(--moss); }
.acard__glyph--arc::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50% 50% 0 0;
  background: var(--paper);
}
.acard__glyph--pill { background: var(--blue); }
.acard__glyph--pill::after {
  content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 12px;
  border-radius: 999px; background: var(--paper);
}
.acard__glyph--dots { background: var(--apricot); }
.acard__glyph--dots::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 13px 15px, var(--paper) 4px, transparent 4.5px),
    radial-gradient(circle at 27px 25px, var(--paper) 4px, transparent 4.5px);
}

.acard__body { min-width: 0; flex: 1; }
.acard__body h3 {
  font-size: .96rem; font-weight: 640; letter-spacing: -.01em; line-height: 1.3;
}
.acard__meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .42rem; }
.chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  padding: .2rem .5rem; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft);
}
.acard__check {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  border: 2px solid var(--rule); position: relative;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.acard__check::after {
  content: ""; position: absolute; left: 5px; top: 7px;
  width: 9px; height: 5px; border: 2px solid var(--ink);
  border-top: 0; border-right: 0; transform: rotate(-45deg) scale(.4);
  opacity: 0; transition: opacity .3s var(--ease) .1s, transform .3s var(--ease) .1s;
}
.is-visible .acard__check {
  background: var(--apricot); border-color: var(--apricot);
  transition-delay: calc(.55s + var(--i) * .16s);
}
.is-visible .acard__check::after {
  opacity: 1; transform: rotate(-45deg) scale(1);
  transition-delay: calc(.68s + var(--i) * .16s);
}

.preview__foot {
  margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--rule);
  font-size: .875rem; font-weight: 600; color: var(--blue-ink);
}
.preview__label {
  margin-top: .9rem; text-align: center;
  font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── 2. THE PROBLEM ────────────────────────────────────────────────────── */
.problem {
  background: var(--ink); color: var(--on-ink);
  padding-block: var(--sec); position: relative; overflow: hidden;
}
.problem__inner {
  display: grid; gap: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 900px) { .problem__inner { grid-template-columns: 1fr; } }
.problem .lede { margin-top: 1.5rem; max-width: 42ch; }

.scatter { position: relative; min-height: 340px; }
@media (max-width: 900px) { .scatter { min-height: 300px; } }
/* Absolute scatter needs room it does not have on a phone: the right-hand
   fragments ran off the edge. Let them flow, and keep the tilt. */
@media (max-width: 640px) {
  .scatter {
    position: static; min-height: 0; margin-top: 2.5rem;
    display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start;
  }
  .frag { position: static; max-width: 100%; }
}

.frag {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-block; max-width: 15rem;
  padding: .7rem 1rem; border-radius: 4px 12px 10px 12px;
  background: var(--paper); color: var(--ink);
  font-size: .9375rem; font-weight: 550; line-height: 1.35;
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r));
  box-shadow: 0 16px 30px -18px rgba(0,0,0,.7);
  will-change: transform;
}
.frag small { display: block; font-weight: 500; opacity: .6; font-size: .8em; }
.frag--muted { background: var(--sand); color: var(--ink-soft); }

/* ── 3. WHAT IT IS ─────────────────────────────────────────────────────── */
.what { padding-block: var(--sec); background: var(--paper); }

.statement {
  font-family: var(--display);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 90;
  font-weight: 480;
  font-size: clamp(1.7rem, 1rem + 2.9vw, 3.15rem);
  line-height: 1.16; letter-spacing: -.022em;
  max-width: 21ch; text-wrap: pretty;
}
.statement em {
  font-style: normal; font-weight: 750; color: var(--apricot-ink);
  font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 120;
}
.statement__tail {
  display: block; margin-top: 1.4rem;
  font-family: var(--body); font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  font-weight: 500; line-height: 1.5; color: var(--ink-soft);
  letter-spacing: normal;
}

.mech { margin-top: clamp(3rem, 6vw, 5rem); }
.mech__svg { width: 100%; height: auto; }
.mech__sources rect { fill: var(--sand); }
.mech__gate path { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.mech__out rect { fill: var(--apricot); }
.mech__out rect:nth-child(2) { fill: var(--blue); }
.mech__out rect:nth-child(3) { fill: var(--moss); }
.mech__flow {
  fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round;
  stroke-dasharray: 5 7; opacity: .45;
}
.mech__flow--out { stroke-dasharray: none; stroke-width: 3.5; opacity: 1; }
.mech__label {
  font-family: var(--body); font-size: 15px; font-weight: 600;
  fill: var(--ink-soft); letter-spacing: .01em;
}
/* SVG text scales with the viewBox: at phone width 15 user units render at
   about 6px. Enlarge in user units so the rendered size stays readable. */
@media (max-width: 700px) {
  .mech__label { font-size: 30px; }
  .mech__flow { stroke-width: 4; }
  .mech__gate path { stroke-width: 5; }
}

/* the diagram assembles itself once, on entry */
.mech__sources rect, .mech__out rect, .mech__gate path {
  opacity: 0; transform: translateY(10px); transform-box: fill-box; transform-origin: center;
}
.is-visible .mech__sources rect { animation: pop .5s var(--ease) forwards; }
.is-visible .mech__sources rect:nth-child(2) { animation-delay: .05s; }
.is-visible .mech__sources rect:nth-child(3) { animation-delay: .1s; }
.is-visible .mech__sources rect:nth-child(4) { animation-delay: .15s; }
.is-visible .mech__sources rect:nth-child(5) { animation-delay: .2s; }
.is-visible .mech__sources rect:nth-child(6) { animation-delay: .25s; }
.is-visible .mech__sources rect:nth-child(7) { animation-delay: .3s; }
.is-visible .mech__sources rect:nth-child(8) { animation-delay: .35s; }
.is-visible .mech__gate path { animation: pop .5s var(--ease) .45s forwards; }
.is-visible .mech__out rect { animation: pop .55s var(--ease) .7s forwards; }
.is-visible .mech__out rect:nth-child(2) { animation-delay: .82s; }
.is-visible .mech__out rect:nth-child(3) { animation-delay: .94s; }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }

/* ── 4. HOW IT WORKS ───────────────────────────────────────────────────── */
.how { padding-block: var(--sec); background: var(--paper-2); }
.how .display--md { margin-bottom: clamp(3rem, 6vw, 5rem); }

.steps { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }

.step {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.step--flip .step__copy { order: 2; }
@media (max-width: 820px) {
  .step, .step--flip { grid-template-columns: 1fr; }
  .step--flip .step__copy { order: 0; }
}

.step__num {
  display: block; font-family: var(--display);
  font-variation-settings: "SOFT" 20, "WONK" 1, "opsz" 144;
  font-size: 3.4rem; font-weight: 300; line-height: 1;
  color: var(--apricot); margin-bottom: .6rem;
}
.step__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 45, "WONK" 1, "opsz" 72;
  font-weight: 640; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem);
  line-height: 1.1; letter-spacing: -.022em; margin-bottom: .9rem;
}
.step__copy p { color: var(--ink-soft); max-width: 36ch; font-size: 1.05rem; }

.step__art {
  background: var(--paper); border-radius: var(--r-lg);
  border: 1px solid var(--rule); box-shadow: var(--shadow);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.art { width: 100%; height: auto; }
.art__card { fill: var(--card); stroke: var(--rule); stroke-width: 1.5; }
.art__cap {
  font-family: var(--body); font-size: 15px; font-weight: 600; fill: var(--ink-soft);
}
.art__dot { fill: var(--apricot); }
.art__dot--b { fill: var(--blue); }
.art__track { fill: var(--sand); }
.art__fill { fill: var(--apricot); }
.art__ring { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-dasharray: 7 6; }
.art__pin { fill: var(--ink); }
/* The list is ranked: each row down carries a little less weight. */
.art__row { fill: var(--sand); }
.art__row--2 { fill: var(--paper-2); }
.art__row--3 { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.art__line { fill: var(--ink); opacity: .22; }
.art__bullet { fill: var(--apricot); }
.art__bullet--b { fill: var(--blue); }
.art__bullet--c { fill: var(--moss); }
.art__grid path { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.art__event { fill: var(--apricot); }
.art__event--b { fill: var(--blue); }
.art__tick { opacity: 0; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* each step's art assembles as it arrives */
.draw, .draw-w, .draw-r { opacity: 0; }
.is-visible .draw   { animation: pop .5s var(--ease) .15s forwards; }
.is-visible .draw-w { animation: grow .6s var(--ease) .25s forwards; transform-box: fill-box; transform-origin: left center; }
.is-visible .draw-r { animation: spin .7s var(--ease) .35s forwards; transform-box: fill-box; transform-origin: center; }
.is-visible .art__dot--b { animation-delay: .3s; }
.is-visible .art__row--2 { animation-delay: .4s; }
.is-visible .art__row--3 { animation-delay: .55s; }
.is-visible .art__event--b { animation-delay: .5s; }
.is-visible .art__tick { animation: pop .4s var(--ease) .7s forwards; }
@keyframes grow { from { opacity: 0; transform: scaleX(.1); } to { opacity: 1; transform: scaleX(1); } }
@keyframes spin { from { opacity: 0; transform: rotate(-90deg) scale(.5); } to { opacity: 1; transform: rotate(0) scale(1); } }

/* ── 5. THE DREAM MOMENT ───────────────────────────────────────────────── */
.dream {
  padding-block: var(--sec);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--sand) 100%);
}
.dream__inner {
  display: grid; gap: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
}
@media (max-width: 960px) { .dream__inner { grid-template-columns: 1fr; } }
.dream .lede { margin-top: 1.5rem; color: var(--ink-soft); }

.week__grid {
  display: grid; gap: .4rem;
  grid-template-columns: repeat(5, minmax(0, .74fr)) repeat(2, minmax(0, 1.4fr));
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 1rem .75rem 1.25rem; min-height: 270px;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.week__col { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.week__col--end { background: var(--paper); border-radius: var(--r-sm); }
.week__day {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); text-align: center; padding: .4rem 0 .25rem;
}

.week__ev {
  display: block; margin-inline: .22rem; padding: .5rem .45rem;
  border-radius: 8px; color: var(--ink); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.94);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(.35s + var(--i) * .18s);
}
.is-visible .week__ev { opacity: 1; transform: none; }
.week__ev b {
  display: block; font-size: .76rem; font-weight: 700; line-height: 1.2;
  overflow-wrap: break-word; hyphens: auto;
}
.week__ev span { display: block; font-size: .68rem; opacity: .75; margin-top: .15rem; }
.week__ev--a { background: var(--apricot); }
.week__ev--b { background: var(--blue-ink); color: var(--on-colour); }
.week__ev--c { background: var(--moss); color: var(--on-colour); }

@media (max-width: 620px) {
  .week__grid { grid-template-columns: repeat(5, minmax(0, .6fr)) repeat(2, minmax(0, 1.55fr)); gap: .2rem; padding: .75rem .4rem 1rem; min-height: 200px; }
  .week__ev { margin-inline: .1rem; padding: .35rem .25rem; }
  .week__ev b { font-size: .66rem; }
  .week__ev span { display: none; }
}

/* ── 6. VOICES (placeholder) ───────────────────────────────────────────── */
.voices { padding-block: var(--sec); background: var(--paper); }
.voices__note {
  margin-top: 1.1rem; max-width: 46ch; color: var(--ink-soft); font-size: 1rem;
}
.voices__note strong { color: var(--apricot-ink); }

.quotes {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.quote {
  position: relative; padding: 2.4rem 1.6rem 1.6rem;
  border: 2px dashed var(--rule); border-radius: var(--r-lg);
  background: rgba(243, 232, 218, .55);
  background: color-mix(in srgb, var(--paper-2) 55%, transparent);
}
.quote__tag {
  position: absolute; top: -.72rem; left: 1.5rem;
  background: var(--sand); color: var(--ink-soft);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 999px;
}
.quote blockquote p {
  font-family: var(--display);
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 40;
  font-style: italic; font-weight: 450;
  font-size: 1.16rem; line-height: 1.4; color: var(--ink-soft);
}
.quote__who {
  margin-top: 1.1rem; font-size: .8125rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); opacity: .7;
}

/* ── 7. FINAL CTA ──────────────────────────────────────────────────────── */
.join {
  position: relative; overflow: hidden;
  background: var(--ink-2); color: var(--on-ink);
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.join__shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.join__shapes svg { width: 100%; height: 100%; }
.join__inner { position: relative; z-index: 1; text-align: center; }
.join .lede { margin: 1.4rem auto 0; max-width: 38ch; }
.join .waitlist { margin-inline: auto; }
.join .waitlist__note, .join .waitlist__msg { text-align: center; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-ink); padding-block: 2.5rem; }
.foot__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  justify-content: space-between;
}
.foot .wordmark { margin-right: 0; font-size: 1.1rem; }
.foot .wordmark__text em { color: var(--apricot); }
.foot__contact a { color: var(--on-ink); text-decoration-color: var(--apricot); text-underline-offset: 4px; }
.foot__ph { display: block; font-size: .75rem; color: var(--on-ink-dim); opacity: .75; }
.foot__copy { font-size: .875rem; color: var(--on-ink-dim); }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Reduced motion: show the end state, move nothing ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .draw, .draw-w, .draw-r, .mech__sources rect, .mech__out rect, .mech__gate path,
  .week__ev { opacity: 1; transform: none; }
  .preview { transform: rotate(-1.4deg); }
  .hero__shapes, .week__grid { transform: none; }
  .grain { display: none; }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .nav, .grain, .hero__shapes, .join__shapes { display: none; }
  .reveal { opacity: 1; transform: none; }
  body { background: var(--card); }
}
