/* ═══════════════════════════════════════════════════════════════
   THE GROWTH ARCHIVE — coming soon
   Self-contained: this page is the whole of the main branch, so it
   carries its own tokens rather than pulling in the full site CSS.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Matched to the mascot clip's baked-in background so the video's square
     edge is invisible against the page. Change one, change the other. */
  --ivory:      #F8F0E7;
  --ivory-deep: #EFE6D9;
  --card:       #FCF7F0;
  --ink:        #14110F;
  --ink-soft:   #3B3530;
  --muted:      #7C756B;

  /* Lifted off the mascot's antenna and boot glow, so the accent and the
     character read as one thing rather than two palettes sharing a page. */
  --violet:      #8B6FE8;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --violet-lift: rgba(167, 139, 250, 0.22);

  /* Kept for validation only — errors shouldn't be the brand colour. */
  --accent:     #9C3D26;

  --rule:       rgba(20, 17, 15, 0.12);
  --rule-soft:  rgba(20, 17, 15, 0.06);

  --serif: "Canela", "Editorial New", "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Neue Haas Grotesk", "Suisse Int'l", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --r-lg: clamp(14px, 2vw, 30px);

  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
  --glide: cubic-bezier(0.32, 0.72, 0.25, 1);

  /* Same paper as the main site: opaque greyscale noise, contrast
     stretched around a near-white mean so it reads without greying. */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.6' intercept='-0.38'/%3E%3CfeFuncG type='linear' slope='2.6' intercept='-0.38'/%3E%3CfeFuncB type='linear' slope='2.6' intercept='-0.38'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: clamp(0px, 0.9vw, 13px);
  min-height: 100vh;
  background: var(--ivory-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(0.95rem, 0.3vw + 0.88rem, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, fieldset, legend, figure { margin: 0; padding: 0; }
fieldset { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--ink); color: var(--ivory); }

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.17;
  mix-blend-mode: multiply;
  background-image: var(--paper);
}

/* ── Sheet ─────────────────────────────────────────────────── */
.sheet {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 2 * clamp(0px, 0.9vw, 13px));
  padding: clamp(2rem, 6vh, 4rem) var(--pad);
  background: var(--ivory);
  border-radius: var(--r-lg);
  overflow: clip;
}

/* Deliberately no second grain layer here. The fixed .grain sits above
   everything including the video, so page and clip receive exactly one
   identical pass — a second pass on the sheet only would darken the page
   relative to the video and bring the square edge back. */

/* Mascot beside the copy on desktop, stacked above it on small screens.
   Two columns keep the whole page inside one viewport. */
.inner {
  position: relative;
  z-index: 1;
  width: min(100%, 62rem);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  text-align: left;
}

.col { min-width: 0; }

/* ── Mascot ────────────────────────────────────────────────── */
.bot {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 23rem;
}

/* The clip does the waving — no CSS transform on the character. Rotating
   the whole body read as a shiver rather than a greeting. */
.bot__vid {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: transparent;

  /* The clip's background is matched to the page, but video compositing
     applies a slightly different colour transform than the source pixels,
     which leaves a faint square. Feathering the border dissolves it.
     Bands are sized off the mascot's actual bounds in frame — it reaches
     5% from the top and 6.7% from the bottom, so Y stays tight. */
  --fadeY: 3.5%;
  --fadeX: 9%;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--fadeY), #000 calc(100% - var(--fadeY)), transparent 100%),
    linear-gradient(to right,  transparent 0, #000 var(--fadeX), #000 calc(100% - var(--fadeX)), transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, transparent 0, #000 var(--fadeY), #000 calc(100% - var(--fadeY)), transparent 100%),
    linear-gradient(to right,  transparent 0, #000 var(--fadeX), #000 calc(100% - var(--fadeX)), transparent 100%);
          mask-composite: intersect;
}

.js .bot__vid {
  opacity: 0;
  animation: botIn 1.1s var(--ease) 0.15s forwards;
}

@keyframes botIn {
  from { opacity: 0; transform: translateY(1rem) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ── Wordmark ──────────────────────────────────────────────── */
.mark { display: flex; margin-bottom: clamp(1.1rem, 3vh, 1.75rem); }

.mark img { width: min(clamp(180px, 26vw, 290px), 26vh); }

.js .mark img {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.4rem) scale(1.03);
  animation: markIn 1.5s var(--ease) 0.1s forwards;
}

@keyframes markIn {
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

/* Timed reveal, matching the site's cover */
.js [data-step] {
  opacity: 0;
  transform: translateY(0.9rem);
  animation: riseIn 1.2s var(--ease) forwards;
}
/* The gap before line two is the brief's "(pause)". */
.js [data-step="1"] { animation-delay: 0.50s; }
.js [data-step="2"] { animation-delay: 1.35s; }
.js [data-step="3"] { animation-delay: 1.85s; }
.js [data-step="4"] { animation-delay: 2.20s; }
.js [data-step="5"] { animation-delay: 2.55s; }
.js [data-step="6"] { animation-delay: 2.90s; }

@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ── Cover lines ───────────────────────────────────────────────
   A tinted strip rather than three stacked lines: same words, a third
   of the height on a phone, and it carries the mascot's violet. */
.say {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.12em 0.75em;
  width: fit-content;
  margin-bottom: clamp(1rem, 2.4vh, 1.4rem);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  background: var(--violet-soft);
  border: 1px solid rgba(167, 139, 250, 0.16);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.74rem, 1.15vw, 0.86rem);
  line-height: 1.3;
  letter-spacing: 0.012em;
  color: var(--ink-soft);
}

.say__key {
  font-style: normal;
  font-size: 0.92em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ── Lede ──────────────────────────────────────────────────── */
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 clamp(1.35rem, 3.5vh, 2rem);
}
.lede span { display: block; font-style: normal; color: var(--ink); }

/* ── Offer ─────────────────────────────────────────────────── */
.offer {
  padding-top: clamp(1.25rem, 3.5vh, 2rem);
  border-top: 1px solid var(--rule);
}

.offer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: #5B32DF;
  background: rgba(139, 111, 232, 0.16);
  border: 1px solid rgba(139, 111, 232, 0.35);
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(139, 111, 232, 0.16);
  margin-bottom: clamp(0.6rem, 1.5vh, 0.95rem);
  transition: transform 0.3s var(--glide), box-shadow 0.3s var(--glide);
  animation: eyebrowBlink 2.2s infinite ease-in-out;
}

@keyframes eyebrowBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 2px 12px rgba(139, 111, 232, 0.16);
    border-color: rgba(139, 111, 232, 0.35);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 4px 20px rgba(139, 111, 232, 0.45);
    border-color: rgba(139, 111, 232, 0.7);
  }
}

.offer__eyebrow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 111, 232, 0.25);
}

/* Echo of the antenna light. */
.offer__eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #5B32DF;
  text-indent: 0;
  flex: none;
  box-shadow: 0 0 8px rgba(91, 50, 223, 0.7);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 6px rgba(91, 50, 223, 0.6); }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px rgba(91, 50, 223, 0.9); }
}

.offer__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 5.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.004em;
  margin-bottom: clamp(0.85rem, 2vh, 1.25rem);
  text-wrap: balance;
}

.offer__desc {
  max-width: 46ch;
  margin: 0 0 clamp(1.25rem, 3vh, 1.85rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── CTA ───────────────────────────────────────────────────── */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: clamp(0.76rem, 1.3vw, 0.86rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  isolation: isolate;
  transition: color 0.4s var(--glide);
}

/* Accent 2 of 2 — the CTA carries the mascot's violet. */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--violet-soft);
  transition: background 0.4s var(--glide), transform 0.4s var(--glide);
}

.js .cta::before { animation: breathe 3.4s ease-in-out 2.6s infinite; }

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50%      { opacity: 1;    transform: scale(1); }
}

.cta:hover { color: var(--violet); }
.cta:hover::before { background: var(--violet-lift); animation-play-state: paused; }

.cta__arrow { transition: transform 0.45s var(--glide); }
.cta:hover .cta__arrow { transform: translateX(4px); }

.cta--solid {
  width: 100%;
  justify-content: center;
  color: var(--ivory);
  margin-top: 0.5rem;
}
.cta--solid::before { background: var(--ink); animation: none; opacity: 1; }
.cta--solid:hover { color: var(--ivory); }
.cta--solid:hover::before { background: #2A2420; }
.cta--solid[disabled] { cursor: default; opacity: 0.55; }

/* ── Gate ──────────────────────────────────────────────────── */
.gate {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  padding-top: clamp(1.5rem, 4vh, 2.25rem);
  border-top: 1px solid var(--rule);
  text-align: left;
}
.gate[hidden] { display: none; }

.js .gate:not([hidden]) { animation: gateIn 0.7s var(--ease); }
@keyframes gateIn { from { opacity: 0; transform: translateY(-0.6rem); } }

.gate__form { display: grid; gap: clamp(0.9rem, 2.2vh, 1.25rem); }

.gate__intro {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--ink);
  text-align: center;
}

.field { display: grid; gap: 0.4rem; }

.field label,
.choice legend {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--card);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s var(--glide);
}
.field input:focus { border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--accent); }

.prefixed { position: relative; display: flex; align-items: center; }
.prefixed__at {
  position: absolute;
  left: 1rem;
  color: var(--muted);
  pointer-events: none;
}
.prefixed input { padding-left: 2.05rem; }

.err {
  min-height: 1em;
  font-size: 0.72rem;
  color: var(--accent);
}

.choice { display: grid; gap: 0.55rem; }
.choice legend { margin-bottom: 0.15rem; }

.choice__opts { display: flex; gap: 0.6rem; }

.choice__opts label {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--card);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s var(--glide), background 0.3s var(--glide), color 0.3s var(--glide);
}
.choice__opts input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.choice__opts label:hover { border-color: var(--muted); }
.choice__opts input:checked + span { color: var(--ivory); }
.choice__opts label:has(input:checked) { background: var(--ink); border-color: var(--ink); }
.choice__opts label:has(input:focus-visible) { outline: 1.5px solid var(--accent); outline-offset: 2px; }

.gate__fine {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ── Done ──────────────────────────────────────────────────── */
.done { text-align: center; }
.done[hidden] { display: none; }

.done__head {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}
.done__sub { font-size: 0.88rem; color: var(--muted); }
.done__sub a { border-bottom: 1px solid currentColor; }
.done__sub a:hover { color: var(--accent); }

/* ── Foot ──────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .mark img,
  .js .bot__vid,
  .js [data-step] { opacity: 1; clip-path: none; transform: none; animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Below two columns the mascot sits above the copy, everything centred. */
@media (max-width: 860px) {
  .inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    text-align: center;
    width: min(100%, 34rem);
  }
  .bot { max-width: 15rem; margin: 0 auto clamp(0.25rem, 1.5vh, 1rem); }
  .mark { justify-content: center; }
  .mark img { width: min(clamp(190px, 46vw, 260px), 22vh); }
  .lede,
  .offer__desc { margin-inline: auto; }
  .say { margin-inline: auto; justify-content: center; }
  .gate { text-align: left; }
  .gate__intro { text-align: center; }
}

@media (max-width: 480px) {
  .bot { max-width: 12.5rem; }
  .choice__opts { gap: 0.5rem; }
  .cta { width: 100%; justify-content: center; }
}
