/* ==========================================================================
   Wingit V2 — "Electric Beauty"
   Beauty as self-expression and personal ritual. Cobalt as the brand's
   signature, tangerine for energy, butter for warmth; the hand-drawn kit
   carries the natural character over from V1.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; 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: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; 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: "Figtree"; src: url("../assets/fonts/figtree-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --cobalt: #2B3BD6;        /* primary — logo, CTAs, hero, footer */
  --cobalt-deep: #1C2799;   /* hover, pressed */
  --cobalt-tint: #E3E6FF;
  --tangerine: #FF6B2C;     /* secondary — energy; never text on light */
  --tangerine-deep: #E8561A;
  --butter: #FFE27A;        /* accent — highlights on cobalt/ink */
  --butter-soft: #FFF3C7;   /* alternate section background */
  --petal: #F6A6B2;
  --leaf: #5E9E57;

  /* Neutrals */
  --paper: #FBF6EC;         /* main background */
  --paper-2: #F3ECDC;
  --ink: #16143D;           /* primary text */
  --ink-2: #3C3A66;
  --ink-3: #5A5880;         /* secondary text (6.2:1 on paper) */
  --line: #DDD4C0;
  --line-strong: #16143D;

  /* Feedback */
  --success: #1F7A45;
  --error: #C0231B;
  --focus: #16143D;

  /* Illustration ink */
  --ill-ink: #1C1A3F;
  --ill-w: 2.4;

  /* Type */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --t-hero: clamp(3.6rem, 1.4rem + 9.4vw, 9.6rem);
  --t-h2: clamp(2.4rem, 1.3rem + 4.2vw, 5rem);
  --t-manifesto: clamp(2rem, 1.1rem + 3.6vw, 4.4rem);
  --t-h3: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  --t-lede: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-label: 0.78rem;

  /* Space & layout */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 3rem);
  --max: 1320px;

  /* Shape */
  --r-sm: 10px; --r-md: 18px; --r-lg: 32px; --r-pill: 999px;
  --border: 2px solid var(--line-strong);

  /* Motion */
  --ease: cubic-bezier(.2, .9, .25, 1);
  --fast: 150ms; --med: 380ms; --slow: 800ms;

  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-dark, .hero, .clean, .footer, .bar { --focus: var(--butter); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; top: -60px; left: var(--sp-4); z-index: 100; background: var(--ink); color: var(--paper); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--sp-4); }

/* ---------- Type primitives ---------- */
.label { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--t-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin-bottom: var(--sp-5); }
.label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 2px var(--ink) inset; }
.label--light { color: var(--butter); }
.label--ink { color: var(--ink); }
.label--ink::before { background: var(--butter); }

.h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: var(--t-h2); line-height: .92; letter-spacing: -.025em;
  font-variation-settings: "opsz" 96; text-wrap: balance; max-width: 15ch;
}
.h2 em, .hero__title em, .join__title em, .shelf__title em, .footer__line em {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%;
  letter-spacing: -.01em; color: var(--cobalt);
}
.h2--light { color: var(--paper); }
.h2--light em { color: var(--butter); }

.pill { display: inline-flex; align-items: center; gap: var(--sp-2); padding: .4rem .9rem; border-radius: var(--r-pill); font-size: var(--t-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--ink); }
.pill--butter { background: var(--butter); color: var(--ink); }

/* ---------- Wordmark (flower replaces the dot of the second i) ---------- */
.wordmark, .footer__mark {
  font-family: var(--display); font-weight: 800; font-stretch: 85%; letter-spacing: -.035em;
  line-height: 1; color: var(--cobalt); white-space: nowrap; display: inline-block;
}
.wordmark { font-size: 2.05rem; }
.wordmark--light { color: var(--paper); }
.wm-i { position: relative; display: inline-block; }
.wm-dot { position: absolute; left: 50%; top: .06em; width: .15em; height: .15em; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.wm-flower { position: absolute; left: 50%; top: -.14em; width: .4em; height: .4em; max-width: none; transform: translateX(-50%) rotate(-12deg); overflow: visible; --ill-w: 1.4; transition: transform var(--slow) var(--ease); }
a:hover .wm-flower { transform: translateX(-50%) rotate(60deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 54px; padding: 0 1.6rem; border-radius: var(--r-pill);
  border: 2px solid var(--ink); font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--primary { background: var(--cobalt); color: var(--paper); }
.btn--primary:hover { background: var(--cobalt-deep); }
.btn--hot { background: var(--tangerine); color: var(--ink); }
.btn--hot:hover { background: var(--butter); }
.btn--sm { min-height: 44px; padding: 0 1.2rem; font-size: .95rem; box-shadow: 0 3px 0 var(--ink); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .btn__label::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .6em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; gap: .4em; margin-top: var(--sp-6); font-weight: 700; color: var(--cobalt); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--ink); }
.link-arrow span { transition: transform var(--fast) var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Announcement bar ---------- */
.bar { background: var(--ink); color: var(--paper); font-size: var(--t-small); }
.bar p { padding: .55rem var(--gutter); display: flex; justify-content: center; align-items: center; gap: .5rem; flex-wrap: wrap; text-align: center; }
.bar a { color: var(--butter); font-weight: 700; text-underline-offset: 3px; }
.bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tangerine); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid transparent; transition: border-color var(--med); }
.header.is-scrolled { border-bottom-color: var(--ink); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); }
.nav__brand { text-decoration: none; padding-top: 6px; }
.nav__menu { display: flex; align-items: center; gap: var(--sp-6); }
.nav__links { display: flex; gap: var(--sp-2); }
.nav__links a { display: block; padding: .45rem .85rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background var(--fast), color var(--fast); }
.nav__links a:hover { background: var(--butter-soft); }
.nav__links a[aria-current="true"] { background: var(--cobalt); color: var(--paper); }
.nav__toggle { display: none; }

@media (max-width: 979px) {
  .nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--butter); cursor: pointer; }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative; transition: transform var(--med) var(--ease), background var(--fast); }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: var(--sp-5);
    padding: var(--sp-4) var(--gutter) var(--sp-6); background: var(--cobalt); border-bottom: 2px solid var(--ink);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility 0s linear var(--med);
    --focus: var(--butter);
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { color: var(--paper); font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2rem; letter-spacing: -.02em; padding: .5rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nav__links a:hover, .nav__links a[aria-current="true"] { background: none; color: var(--butter); }
  .nav__menu .btn { background: var(--tangerine); color: var(--ink); min-height: 54px; }
}

/* ---------- Motion primitives ---------- */
.enter { animation: enter 760ms var(--ease) both; }
.hero__title.enter { animation-delay: 70ms; }
.hero__lede.enter { animation-delay: 140ms; }
.inline-form.enter { animation-delay: 200ms; }
.hero__tags.enter { animation-delay: 260ms; }
.hero__stage.enter { animation-delay: 120ms; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { background: var(--cobalt); color: var(--paper); position: relative; overflow: hidden; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0; }
.hero__grid { display: grid; gap: var(--sp-6); align-items: end; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--sp-5); } }
.hero__grid > * { min-width: 0; }
.hero__copy { padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.hero__title {
  margin-top: var(--sp-5);
  font-family: var(--display); font-weight: 800; font-stretch: 75%;
  font-size: var(--t-hero); line-height: .84; letter-spacing: -.035em; font-variation-settings: "opsz" 96;
}
.hero__title em { color: var(--butter); font-size: 1.06em; letter-spacing: -.02em; }
.hero__lede { margin-top: var(--sp-5); max-width: 33rem; font-size: var(--t-lede); color: rgba(251,246,236,.9); }
.hero__lede strong { color: var(--butter); font-weight: 700; }

.inline-form { margin-top: var(--sp-6); max-width: 32rem; }
.inline-form__row { display: flex; gap: 6px; padding: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-pill); box-shadow: 6px 6px 0 var(--ink); }
.inline-form__row:has(input:focus-visible) { outline: 3px solid var(--butter); outline-offset: 3px; }
.inline-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; color: var(--ink); font-size: 1rem; outline: none; }
.inline-form input::placeholder { color: var(--ink-3); }
.inline-form .btn { min-height: 48px; box-shadow: none; border-width: 2px; }
.inline-form .btn:hover { transform: none; box-shadow: none; }
.inline-form[data-state="error"] .inline-form__row { border-color: var(--error); }
.hero .form-msg { color: rgba(251,246,236,.85); }
.hero .form-msg[data-tone="error"] { color: var(--butter); }
.hero .form-msg[data-tone="success"] { color: var(--butter); }
.hero .form-msg a { color: var(--paper); }
@media (max-width: 479px) {
  .inline-form__row { flex-direction: column; border-radius: var(--r-md); }
  .inline-form input { min-height: 48px; }
}

.form-msg { margin-top: var(--sp-3); min-height: 1.4em; font-size: var(--t-small); }
.form-msg[data-tone="error"] { color: var(--error); font-weight: 600; }
.form-msg[data-tone="success"] { color: var(--success); font-weight: 600; }

.hero__tags { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero__tags li { padding: .35rem .85rem; border: 1.5px solid rgba(251,246,236,.55); border-radius: var(--r-pill); font-size: var(--t-small); font-weight: 600; }

/* Hero stage: oval vanity mirror on a shelf, framed so nothing is cropped by accident */
.hero__stage { position: relative; width: min(100%, 560px); aspect-ratio: 1 / 1.08; justify-self: center; }
.hero__mirror {
  position: absolute; left: 18%; right: 14%; top: 4%; bottom: 13%;
  background: var(--butter); border: 3px solid var(--ink); border-radius: 50% / 42%;
  overflow: hidden; box-shadow: 10px 10px 0 var(--cobalt-deep);
}
.hero__mirror::after { content: ""; position: absolute; inset: 10px; border-radius: inherit; border: 2px solid rgba(22,20,61,.25); pointer-events: none; }
.hero__mirror img { position: absolute; left: 50%; bottom: -4%; width: 118%; max-width: none; transform: translateX(-46%); }
.hero__sprig { position: absolute; left: -2%; top: 10%; width: 34%; --ill-w: 2.2; transform: rotate(-8deg); }
.hero__shelf {
  position: absolute; left: 0; right: 0; bottom: 0; height: 14%;
  background: var(--tangerine); border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0;
}
.obj { position: absolute; bottom: 100%; --ill-w: 2.4; }
.obj--perfume { left: 4%; width: 17%; margin-bottom: -2px; }
.obj--lipstick { left: 21%; width: 6.5%; margin-bottom: -2px; }
.obj--jar { right: 5%; width: 17%; margin-bottom: -2px; }
.obj--bloom { right: 18%; width: 26%; margin-bottom: -10px; }
.badge { position: absolute; right: -1%; top: 0; width: 26%; animation: turn 22s linear infinite; }
.badge circle { fill: var(--tangerine); stroke: var(--ink); stroke-width: 2.5; }
.badge text { font-family: var(--display); font-weight: 800; font-size: 12.2px; letter-spacing: .14em; fill: var(--ink); }
.badge use { --ill-w: 1.6; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 979px) {
  .hero__stage { width: min(100%, 460px); }
  .hero__copy { padding-bottom: 0; }
}

/* ---------- IDEA ---------- */
.idea { padding-block: var(--section); }
.manifesto {
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: var(--t-manifesto); line-height: 1.02; letter-spacing: -.025em; color: var(--ink-3);
  max-width: 22ch; text-wrap: pretty;
}
.manifesto__turn { display: block; margin-top: .35em; color: var(--ink); }
.manifesto mark {
  background: var(--cobalt); color: var(--paper); padding: 0 .16em; border-radius: .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.manifesto mark:nth-of-type(2) { background: var(--tangerine); color: var(--ink); }
.manifesto mark:nth-of-type(3) { background: var(--butter); color: var(--ink); }

.shelf { margin-top: clamp(3rem, 2rem + 4vw, 6rem); background: var(--butter-soft); border: var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); position: relative; }
.shelf__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.shelf__title { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -.01em; }
.shelf__title em { font-size: 1.1em; }
.shelf__hint { font-size: var(--t-small); color: var(--ink-3); }
.shelf__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.5rem, .2rem + 1.6vw, 2rem); padding-bottom: var(--sp-5); border-bottom: 6px solid var(--ink); border-radius: 0 0 4px 4px; }
.shelf__row li { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.face {
  position: relative; width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--skin); border: 2.5px solid var(--ink); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8.5px var(--ink);
  cursor: pointer; transition: transform var(--med) var(--ease);
}
.face::before { /* compact hinge */
  content: ""; position: absolute; left: 50%; top: -15px; width: 22%; height: 8px; transform: translateX(-50%); border-radius: 3px; background: var(--butter); border: 2px solid var(--ink);
}
.face__dab { position: absolute; left: 50%; top: 50%; width: 44%; height: 28%; border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; background: #B9835A; border: 1.5px solid rgba(22,20,61,.35); transform: translate(-50%,-50%) rotate(-14deg); }
.face:hover, .face:focus-visible, .shelf__row li.is-active .face { transform: translateY(-8px) rotate(-4deg); }
.verdict { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, .85rem + .7vw, 1.5rem); line-height: 1.1; text-align: center; color: var(--ink-3); transition: color var(--med), transform var(--med) var(--ease); }
.shelf__row li:hover .verdict, .shelf__row li:focus-within .verdict, .shelf__row li.is-active .verdict { color: var(--cobalt); transform: scale(1.06); }
.shelf__row li:nth-child(3) .verdict { color: var(--cobalt); }
.shelf__foot { margin-top: var(--sp-5); max-width: 40rem; color: var(--ink-2); }
.shelf__foot em { font-family: var(--serif); font-size: 1.15em; }
@media (max-width: 599px) {
  .face { box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink); }
  .face::before { top: -11px; height: 6px; }
  .verdict { font-size: .95rem; }
}

/* ---------- HOW ---------- */
.how { background: var(--butter-soft); border-block: var(--border); padding-block: var(--section); }
.how__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 980px) { .how__grid { grid-template-columns: .9fr 1.1fr; gap: var(--sp-9); align-items: start; } .how__head { position: sticky; top: calc(var(--header-h) + 3rem); } }
.ritual { border-top: var(--border); }
.ritual__step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3) var(--sp-5); align-items: start; padding-block: var(--sp-6); border-bottom: var(--border); position: relative; }
@media (min-width: 640px) { .ritual__step { grid-template-columns: 5.5rem 1fr 7.5rem; align-items: center; } }
.ritual__n {
  font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(4rem, 3rem + 3vw, 6rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px var(--cobalt); transition: color var(--med);
}
.ritual__step:hover .ritual__n { color: var(--cobalt); }
.ritual__step h3 { font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -.01em; margin-bottom: var(--sp-2); }
.ritual__step p { color: var(--ink-2); max-width: 32rem; }
.ritual__art { width: 7.5rem; justify-self: end; --ill-w: 2; }
.ritual__art--tall { width: 2.6rem; justify-self: center; }
.ritual__art--duo { display: flex; align-items: end; gap: 6px; }
.ritual__art--duo svg:first-child { width: 3.2rem; }
.ritual__art--duo svg:last-child { width: 3.6rem; }
@media (max-width: 639px) { .ritual__art { display: none; } }

/* ---------- CLEAN ---------- */
.clean { background: var(--ink); color: var(--paper); padding-block: var(--section); overflow: hidden; }
.clean__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 980px) {
  .clean__grid { grid-template-columns: 1.2fr .8fr; grid-template-areas: "copy art" "rules art"; column-gap: var(--sp-9); row-gap: var(--sp-7); }
  .clean__copy { grid-area: copy; } .clean__art { grid-area: art; align-self: center; } .rules { grid-area: rules; }
}
.clean__grid > * { min-width: 0; }
.clean .h2 { max-width: 13ch; }
.clean__lede { margin-top: var(--sp-5); max-width: 32rem; color: rgba(251,246,236,.82); font-size: var(--t-lede); }
.clean__art { position: relative; width: min(100%, 400px, 76vw); justify-self: center; aspect-ratio: 1; border-radius: 50%; background: var(--tangerine); border: 3px solid var(--paper); overflow: hidden; }
.clean__art img { position: absolute; left: 50%; bottom: -6%; width: 104%; max-width: none; transform: translateX(-48%); }
.rules { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rules li { padding: var(--sp-5); border: 2px solid rgba(251,246,236,.25); border-radius: var(--r-md); transition: border-color var(--med), transform var(--med) var(--ease); }
.rules li:hover { border-color: var(--butter); transform: translateY(-4px); }
.rules__k { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: 1.1rem; color: var(--ink); background: var(--butter); border-radius: var(--r-pill); padding: .1rem .6rem; }
.rules h3 { margin-top: var(--sp-4); font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 1.35rem; line-height: 1.15; }
.rules p { margin-top: var(--sp-2); color: rgba(251,246,236,.78); font-size: .98rem; }

/* ---------- WORLD (posters) ---------- */
.world { padding-block: var(--section); }
.world__head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 980px) { .world__head { grid-template-columns: 1.4fr 1fr; align-items: end; } .world__head .label { grid-column: 1 / -1; margin-bottom: 0; } }
.world__aside { color: var(--ink-3); font-size: var(--t-lede); max-width: 26rem; }
.posters { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .posters { grid-template-columns: repeat(3, 1fr); } .poster:nth-child(2) { margin-top: var(--sp-8); } }
.poster {
  --bg: var(--cobalt); --fg: var(--paper); --win: var(--butter);
  background: var(--bg); color: var(--fg); border: var(--border); border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-6); box-shadow: 8px 8px 0 var(--ink);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.poster:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 12px 12px 0 var(--ink); }
.poster--tang { --bg: var(--tangerine); --fg: var(--ink); --win: var(--petal); }
.poster--butter { --bg: var(--butter); --fg: var(--ink); --win: var(--cobalt); }
.poster__k { font-size: var(--t-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.poster__word { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: clamp(3.6rem, 2.4rem + 3.4vw, 6rem); line-height: .85; letter-spacing: -.04em; margin: var(--sp-2) 0 var(--sp-5); }
.poster__window { position: relative; aspect-ratio: 4 / 4.2; background: var(--win); border: var(--border); border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; margin-bottom: var(--sp-5); }
.poster__window img { position: absolute; left: 50%; bottom: -3%; width: 96%; max-width: none; transform: translateX(-50%); }
.poster--tang .poster__window img { width: 104%; bottom: -8%; }
.poster__window--still .still__sprig { position: absolute; left: 6%; bottom: -2%; width: 54%; --ill-w: 2; --petal: #FFE27A; --petal-shade: #F2C94A; --pollen: #FF6B2C; }
.poster__window--still .still__bottle { position: absolute; right: 14%; bottom: 7%; width: 30%; --ill-w: 2.2; }
.poster__window--still .still__bottle--b { right: 40%; width: 22%; bottom: 6%; --cap: #F6A6B2; --cap-shade: #E98597; --glass: #FFF3C7; --liquid: #FFE27A; }
.poster__window--still::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8%; background: var(--tangerine); border-top: 2px solid var(--ink); }
.poster__window--still svg { z-index: 1; }
.poster__pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; margin-bottom: var(--sp-3); }
.poster p:last-child { font-size: .98rem; opacity: .92; }

/* ---------- PREVIEW ---------- */
.preview { padding-block: var(--section); background: var(--paper-2); border-top: var(--border); overflow: hidden; }
.preview__grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 980px) { .preview__grid { grid-template-columns: 1fr 1fr; } }
.preview__grid > * { min-width: 0; }
.preview__copy > p:not(.label):not(.concept) { margin-top: var(--sp-5); max-width: 32rem; color: var(--ink-2); font-size: var(--t-lede); }
.concept { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); align-items: baseline; max-width: 30rem; color: var(--ink-2); font-size: var(--t-small); }
.concept__chip { flex: none; padding: .15rem .6rem; border-radius: var(--r-pill); background: var(--butter); border: 2px solid var(--ink); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.devices { position: relative; height: clamp(520px, 30vw + 320px, 640px); width: 100%; max-width: 560px; justify-self: center; }
.devices::before { content: ""; position: absolute; left: 50%; top: 50%; width: 86%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: var(--tangerine); border: var(--border); }
.device { position: absolute; width: min(56%, 270px); aspect-ratio: 9 / 18.6; padding: 9px; border-radius: 40px; background: var(--ink); box-shadow: 10px 10px 0 rgba(22,20,61,.25); }
.device--a { left: 2%; top: 4%; transform: rotate(-5deg); z-index: 2; }
.device--b { right: 2%; bottom: 2%; transform: rotate(5deg); }
.device__screen { height: 100%; border-radius: 32px; background: var(--paper); padding: 30px 16px 16px; overflow: hidden; display: flex; flex-direction: column; font-size: .82rem; }
.ui-k { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ui-h { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.7rem; line-height: 1; letter-spacing: -.02em; margin: 6px 0 16px; }
.ui-list { display: grid; gap: 8px; }
.ui-list li { display: flex; gap: 10px; align-items: center; padding: 10px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.ui-list b { display: block; font-size: .85rem; }
.ui-list small { color: var(--ink-3); font-size: .72rem; }
.ui-sw { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); }
.ui-sw--scent { background: radial-gradient(circle at 50% 45%, var(--petal) 0 35%, var(--butter) 36%); }
.ui-due { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px; border-top: 2px dashed var(--ink); }
.ui-due b { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.ui-cta { display: block; text-align: center; padding: 12px; border-radius: var(--r-pill); background: var(--cobalt); color: var(--paper); font-weight: 700; border: 2px solid var(--ink); }
.ui-notes li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1.5px solid var(--line); font-size: .78rem; }
.ui-notes b { font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-3); }
.ui-notes b.is-kept { background: var(--cobalt); color: var(--paper); }
.ui-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
.devices__sticker { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-4deg); background: var(--butter); border: 2px solid var(--ink); border-radius: var(--r-pill); padding: .35rem 1rem; font-weight: 800; font-family: var(--display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 599px) {
  .devices { height: 480px; }
  .device { width: 62%; border-radius: 30px; padding: 7px; }
  .device__screen { border-radius: 24px; padding: 20px 11px 11px; font-size: .74rem; }
  .ui-h { font-size: 1.25rem; margin-bottom: 10px; }
  .ui-list li { padding: 7px; gap: 7px; }
  .ui-sw { width: 26px; height: 26px; }
  .ui-notes li { grid-template-columns: 10px 1fr; font-size: .7rem; padding: 7px 0; }
  .ui-notes b { grid-column: 2; justify-self: start; }
  .ui-dot { width: 10px; height: 10px; }
}

/* ---------- STORY ---------- */
.story { padding-block: var(--section); background: var(--butter-soft); border-block: var(--border); }
.story__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 980px) { .story__grid { grid-template-columns: .8fr 1.2fr; gap: var(--sp-9); align-items: start; } .story__grid > header { position: sticky; top: calc(var(--header-h) + 3rem); } }
.story__sprig { width: min(60%, 220px); margin-top: var(--sp-6); --ill-w: 2.2; }
.story__quotes { display: grid; gap: var(--sp-7); }
.quote blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-indent: -.4em; }
.quote blockquote p::before { content: "“"; color: var(--cobalt); }
.quote blockquote p::after { content: "”"; color: var(--cobalt); }
.quote figcaption { margin-top: var(--sp-4); max-width: 36rem; color: var(--ink-2); padding-left: var(--sp-4); border-left: 4px solid var(--cobalt); }
.quote--alt figcaption { border-left-color: var(--tangerine); }
.quote figcaption b { color: var(--ink); }
.story__close { font-size: var(--t-lede); max-width: 36rem; padding: var(--sp-5); background: var(--paper); border: var(--border); border-radius: var(--r-md); }
.story__close strong { color: var(--cobalt); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 980px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: var(--sp-9); } }
.qa { border: var(--border); border-radius: var(--r-md); background: #fff; margin-bottom: var(--sp-3); transition: background var(--fast); }
.qa[open] { background: var(--cobalt-tint); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.2; border-radius: var(--r-md); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: 1.2rem; transition: transform var(--med) var(--ease), background var(--fast); }
.qa summary:hover::after { background: var(--tangerine); color: var(--ink); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 var(--sp-5) var(--sp-5); max-width: 40rem; color: var(--ink-2); }

/* ---------- JOIN ---------- */
.join { background: var(--tangerine); border-top: var(--border); padding-block: var(--section); overflow: hidden; }
.join__grid { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 980px) { .join__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.join__grid > * { min-width: 0; }
.join__title { font-family: var(--display); font-weight: 800; font-stretch: 75%; font-size: var(--t-h2); line-height: .9; letter-spacing: -.03em; max-width: 12ch; }
.join__title em { color: var(--ink); font-size: 1.04em; }
.join__copy > p:not(.label) { margin-top: var(--sp-5); max-width: 28rem; font-size: var(--t-lede); color: var(--ink); }
.join__still { position: relative; height: 190px; margin-top: var(--sp-6); max-width: 420px; }
.join__still::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--butter); border: 2px solid var(--ink); border-radius: 8px; }
.join__compact { position: absolute; left: 4%; bottom: 14px; width: 34%; transform: rotate(-6deg); --compact: #2B3BD6; --ill-w: 2.2; }
.join__lip { position: absolute; left: 42%; bottom: 14px; width: 10%; --case: #2B3BD6; --ill-w: 2.2; }
.join__bloom { position: absolute; right: 0; bottom: 8px; width: 46%; --ill-w: 2; }
@media (max-width: 979px) { .join__still { display: none; } }

.card-form { background: var(--paper); border: var(--border); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 12px 12px 0 var(--cobalt); }
.field { margin: 0 0 var(--sp-5); padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; padding: 0; margin-bottom: var(--sp-2); font-weight: 700; font-size: .95rem; }
.req { color: var(--cobalt); }
.opt { font-weight: 500; color: var(--ink-3); font-size: .82rem; margin-left: 4px; }
.field input, .field select { width: 100%; min-height: 52px; padding: 0 var(--sp-4); border: 2px solid var(--ink); border-radius: var(--r-sm); background: #fff; transition: box-shadow var(--fast); }
.field select { appearance: none; padding-right: var(--sp-7); background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus { outline: none; box-shadow: 0 0 0 4px var(--butter); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px rgba(192,35,27,.15); }
.field__err { margin-top: var(--sp-2); color: var(--error); font-size: var(--t-small); font-weight: 600; }
.field__err:empty { display: none; }
.field-row { display: grid; gap: 0 var(--sp-4); }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips legend { width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--sp-4); border: 2px solid var(--ink); border-radius: var(--r-pill); font-weight: 600; background: #fff; transition: background var(--fast), color var(--fast); }
.chip span::before { content: "+"; font-weight: 800; }
.chip:hover span { background: var(--butter-soft); }
.chip input:checked + span { background: var(--cobalt); color: var(--paper); }
.chip input:checked + span::before { content: "✓"; }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.card-form .form-msg { font-size: .95rem; }
.card-form__fine { font-size: .82rem; color: var(--ink-3); }
.card-form[data-state="success"] .field, .card-form[data-state="success"] .field-row, .card-form[data-state="success"] .chips, .card-form[data-state="success"] button[type="submit"] { display: none; }
.card-form[data-state="success"] .form-msg { margin: 0 0 var(--sp-5); font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer { background: var(--cobalt); color: var(--paper); border-top: var(--border); }
.footer__sky { position: relative; padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); text-align: center; overflow: hidden; }
.footer__line { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: clamp(1.15rem, 1rem + .6vw, 1.6rem); letter-spacing: -.01em; padding-inline: var(--gutter); }
.footer__line em { color: var(--butter); font-size: 1.1em; }
.footer__mark { display: block; color: var(--paper); font-size: clamp(5.5rem, 1.5rem + 17vw, 17rem); line-height: .9; letter-spacing: -.045em; margin-top: var(--sp-5); margin-bottom: clamp(-7rem, -1rem - 6vw, -2rem); position: relative; z-index: 1; }
.footer__mark .wm-flower { --ill-w: 2.4; }
.scene { width: 100%; height: auto; overflow: visible; position: relative; z-index: 2; }
.scene .ledge-top { fill: #FFF3C7; stroke: var(--ill-ink); stroke-width: 2.4; stroke-linejoin: round; }
.scene .ledge-front { fill: #F5D98F; stroke: var(--ill-ink); stroke-width: 2.4; stroke-linejoin: round; }
.scene .ledge-line { fill: none; stroke: var(--ill-ink); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.scene use { --ill-w: 2.4; }
.scene--compact { display: none; }
@media (max-width: 759px) { .scene--wide { display: none; } .scene--compact { display: block; } .footer__mark { margin-bottom: -1.2rem; } }

.footer__bar { background: var(--ink); border-top: var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); padding-block: var(--sp-6); }
.footer__brand { text-decoration: none; }
.footer__brand .wordmark { font-size: 1.8rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--t-small); font-weight: 600; }
.footer__links a { text-decoration: none; color: rgba(251,246,236,.85); }
.footer__links a:hover { color: var(--butter); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { font-size: var(--t-small); color: rgba(251,246,236,.65); }

/* ---------- Version switcher (review aid) ---------- */
.versions { position: fixed; right: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-size: .8rem; font-weight: 700; }
.versions__k { padding: 0 .5rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
.versions a { padding: .3rem .7rem; border-radius: var(--r-pill); text-decoration: none; }
.versions a:hover { background: var(--butter-soft); }
.versions a[aria-current="page"] { background: var(--cobalt); color: var(--paper); }

@media (max-width: 599px) { .versions { right: 8px; bottom: 8px; font-size: .72rem; } .versions__k { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .badge { animation: none; }
}
