/* Treasure Toes — one stylesheet, no build step.
   Order: fonts · tokens · base · layout helpers · buttons · header · hero + toy · how · builder ·
   collection · strip · grown-ups · waitlist · footer · dialogs · toast · legal pages · motion prefs */

/* ───────────────────────── fonts (self-hosted, OFL; licences in /fonts) ───────────────────────── */
@font-face {
  font-family: "Bagel Fat One";
  src: url("../fonts/bagel-fat-one-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ───────────────────────── tokens ───────────────────────── */
:root {
  --paper: #fff7e6;
  --paper-art: #fdf4e2;      /* the illustrations' own backdrop */
  --paper-deep: #f6e5c2;
  --ink: #16213e;
  --ink-soft: #46506b;
  --ink-raised: #1f2c50;
  --teal: #0a9c9a;
  --teal-deep: #0b5f5a;
  --teal-night: #074440;
  --gold: #f4b532;
  --gold-deep: #c98a0b;
  --gold-pale: #ffd77a;
  --coral: #ff6a55;
  --coral-deep: #c8402c;
  --sun: #f4c231;
  --line: rgb(22 33 62 / 0.16);

  --font-display: "Bagel Fat One", "Cooper Black", "Arial Rounded MT Bold", ui-rounded, sans-serif;
  --font-text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 · 128 */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(4.5rem, 10vw, 9rem);

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.3, 1.25, 0.6, 1);

  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.069, 0.234, 0.438, 0.64, 0.816, 0.951, 1.044, 1.098, 1.119, 1.118, 1.101, 1.078, 1.053, 1.03, 1.012, 0.998, 0.99, 0.986, 0.985, 0.987, 0.989, 0.992, 0.995, 0.998, 1, 1.001, 1.002, 1.002, 1.002, 1.001, 1.001, 1);
    --spring-soft: linear(0, 0.075, 0.24, 0.429, 0.605, 0.751, 0.861, 0.937, 0.985, 1.013, 1.025, 1.028, 1.026, 1.021, 1.016, 1.011, 1.007, 1.004, 1.002, 1);
  }
}

/* ───────────────────────── base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 0.95; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .build :focus-visible, .lockets :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.eyebrow {
  font-weight: 750; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: var(--s-4);
}
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: 999px; font-weight: 700;
}
.skip:focus { top: var(--s-3); }

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.35em;
  border: 2.5px solid var(--btn-edge); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 750; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--btn-edge);
  transition: transform 0.18s var(--spring), box-shadow 0.18s var(--spring), background-color 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-edge); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-edge); transition-duration: 0.06s; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--btn-edge); }
.btn--primary { --btn-bg: var(--coral); }
.btn--primary:hover { --btn-bg: #ff7b67; }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: rgb(255 255 255 / 0.5); }
.btn--quiet {
  border-color: transparent; box-shadow: none; background: none; padding-inline: 0.4em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em;
}
.btn--quiet:hover, .btn--quiet:active { transform: none; box-shadow: none; text-decoration-color: var(--coral); }
.btn--big { min-height: 56px; font-size: 1.08rem; padding-inline: 1.6em; }
.btn--small { min-height: 42px; font-size: 0.95rem; padding: 0.55em 1.1em; }
.btn--block { width: 100%; }
.btn--on-dark { color: var(--paper); }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--paper); padding: 0;
  transition: transform 0.2s var(--spring);
}
.icon-btn:hover { transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }

/* ───────────────────────── ribbon + header ───────────────────────── */
.ribbon {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25em 0.9em;
  padding: 0.55rem var(--gutter); background: var(--ink); color: var(--paper);
  font-size: 0.86rem; font-weight: 600; text-align: center;
}
.ribbon a { color: var(--gold-pale); font-weight: 750; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-stuck { border-bottom-color: var(--ink); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; margin-right: auto; }
.wordmark__mark { width: 40px; height: 40px; flex: none; transition: transform 0.4s var(--spring); }
.wordmark:hover .wordmark__mark { transform: rotate(-12deg) translateY(-2px); }
.wordmark__text { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark__text em, .site-footer__mark em { font-style: normal; color: var(--teal); }

.nav__toggle { display: none; }
.site-header--plain .site-header__inner { justify-content: space-between; }
.nav__list { display: flex; gap: var(--s-1); }
.nav__list a {
  display: block; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  transition: background-color 0.15s;
}
.nav__list a:hover { background: var(--paper-deep); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 46px; padding: 0.3rem 0.45rem 0.3rem 1.1rem;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper);
  font-weight: 750; box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.18s var(--spring), box-shadow 0.18s var(--spring);
}
.cart-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.cart-btn__icon { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.cart-btn__count {
  display: grid; place-items: center; min-width: 32px; height: 32px; padding-inline: 0.4rem;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.92rem;
}
.cart-btn.has-items .cart-btn__count { background: var(--coral); color: var(--ink); }
.cart-btn.bump .cart-btn__count { animation: bump 0.5s var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* ───────────────────────── hero ───────────────────────── */
.hero { position: relative; padding-block: clamp(1rem, 2.5vw, 2rem) clamp(3.5rem, 8vw, 7rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-areas: "title toy" "copy toy";
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.hero__title { grid-area: title; position: relative; z-index: 2; padding-top: clamp(1rem, 4vw, 3.5rem); }
.hero__toy { grid-area: toy; position: relative; }
.hero__copy { grid-area: copy; position: relative; z-index: 2; max-width: 36rem; }

.hero h1 {
  font-size: clamp(3.6rem, 1.2rem + 7.6vw, 8.6rem);
  line-height: 0.84;
  letter-spacing: -0.025em;
  margin-right: -12%;
  padding-bottom: 0.14em;
}
.squiggle { position: relative; display: inline-block; color: var(--teal); }
.squiggle::after {
  content: ""; position: absolute; left: 2%; right: 8%; bottom: -0.1em; height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 C 22 2, 38 2, 52 10 S 84 18, 102 9 S 138 1, 154 10 S 186 16, 198 7' fill='none' stroke='%23ff6a55' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem); line-height: 1.5; margin-top: var(--s-5); max-width: 38ch; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.fineprint { margin-top: var(--s-5); font-size: 0.92rem; color: var(--ink-soft); font-weight: 550; }
.fineprint strong { color: var(--ink); }

/* ───────────────────────── the toy ───────────────────────── */
.toy {
  --lock-x: 67.99%;
  --lock-y: 34.07%;
  --lock-d: 17%;
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  margin-top: clamp(0rem, 2vw, 1.5rem);
}
.toy__coin {
  position: absolute; left: 54%; top: 47%; width: 108%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 63%, rgb(255 255 255 / 0.35) 63.4% 64.2%, transparent 64.6%),
    radial-gradient(circle at 34% 28%, #ffd877 0%, var(--gold) 42%, #eba51f 100%);
  box-shadow: inset 0 0 0 clamp(8px, 1.6vw, 16px) #e9a01a, inset 0 -18px 40px rgb(160 90 0 / 0.18);
}
.toy__sock { position: relative; aspect-ratio: 995 / 1274; rotate: -5deg; touch-action: pan-y; }
.toy__under {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 16px 14px rgb(22 33 62 / 0.28));
  user-select: none; -webkit-user-drag: none;
}

/* the lid: hinged on its top edge, flips up and back */
.toy__lid {
  position: absolute; left: 51.16%; top: 23.7%; width: 33.67%; height: 10.68%;
  transform-origin: 50% 4%;
  transform-style: preserve-3d;
  transform: perspective(600px) rotateX(0deg);
  z-index: 2;
  pointer-events: none;
}
.toy__lid-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.toy__lid-face--front { filter: drop-shadow(0 5px 3px rgb(4 40 36 / 0.45)); }
.toy__lid-face--back { transform: rotateX(180deg) scaleY(-1); filter: brightness(0.66) saturate(0.9); }
.toy[data-state="open"] .toy__lid { transform: perspective(600px) rotateX(136deg); }

/* the treasure lives in a layer clipped at the pocket front's top edge, so it rises out of the pocket */
.toy__mouth {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  clip-path: inset(-80% -80% 69.4% -80%);
}
.toy__treasure {
  position: absolute; left: 67.9%; top: 30.6%; width: 25%;
  transform: translate(-50%, 6%) scale(0.8);
  filter: drop-shadow(0 10px 10px rgb(22 33 62 / 0.3));
}
.toy[data-state="open"] .toy__treasure { transform: translate(-50%, -111%) scale(1.25) rotate(-6deg); }
.toy[data-state="open"] .toy__mouth { clip-path: inset(-80% -80% 69.4% -80%); }

.toy__burst {
  position: absolute; left: 67.9%; top: 19%; width: 60%; aspect-ratio: 1;
  translate: -50% -50%; z-index: 3; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg stroke='%23ff6a55' stroke-width='7' stroke-linecap='round'%3E%3Cpath d='M0-62V-88'/%3E%3Cpath d='M44-44 62-62' /%3E%3Cpath d='M62 0H88'/%3E%3Cpath d='M44 44 62 62'/%3E%3Cpath d='M-44 44-62 62'/%3E%3Cpath d='M-62 0H-88'/%3E%3Cpath d='M-44-44-62-62'/%3E%3C/g%3E%3Cg fill='%23f4b532'%3E%3Cpath d='M74-30l4 9 9 4-9 4-4 9-4-9-9-4 9-4z'/%3E%3Cpath d='M-80 24l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

/* the Locket: a real button. Rest positions are pure CSS; motion between them is WAAPI (js/toy.js). */
.toy__locket {
  position: absolute; left: var(--lock-x); top: var(--lock-y); width: var(--lock-d); aspect-ratio: 1;
  padding: 0; border: 0; border-radius: 50%; background: none; z-index: 5;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 2px rgb(4 40 36 / 0.45));
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
  transition: filter 0.2s;
}
.toy__locket img { width: 100%; height: 100%; border-radius: 50%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.toy__locket:hover { filter: drop-shadow(0 6px 5px rgb(4 40 36 / 0.4)); }
.toy__locket:active { cursor: grabbing; }
.toy__locket:focus-visible { outline: 4px solid var(--ink); outline-offset: 4px; border-radius: 50%; }
.toy[data-state="closed"] .toy__locket:not(:active) { animation: nudge 4.8s 2.2s infinite; }
@keyframes nudge {
  0%, 84%, 100% { transform: translate(-50%, -50%) rotate(0); }
  87% { transform: translate(-50%, -54%) rotate(-9deg); }
  90% { transform: translate(-50%, -50%) rotate(6deg); }
  93% { transform: translate(-50%, -51%) rotate(-3deg); }
}
.toy[data-state="open"] .toy__locket {
  transform: translate(-50%, -50%) translate(178%, -62%) rotate(18deg) scale(1.08);
  filter: drop-shadow(0 16px 10px rgb(22 33 62 / 0.3));
  cursor: pointer;
}

.toy__hint {
  position: absolute; left: 84%; top: 39%; z-index: 4; pointer-events: none;
  font-family: var(--font-display); font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); color: var(--ink);
  rotate: 8deg; white-space: nowrap;
  transition: opacity 0.25s, translate 0.3s var(--ease-out);
}
.toy__hint span { display: block; background: var(--paper); padding: 0.1em 0.45em 0.15em; border-radius: 10px; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.toy__hint svg {
  position: absolute; left: -48%; top: 58%; width: 60px; height: 46px; rotate: 64deg; scale: -1 1;
  fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.toy[data-state="open"] .toy__treasure { animation: bob 2.8s 1.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5%; } }
.toy__coinfx {
  position: absolute; left: 67.9%; top: 19%; width: 6%; aspect-ratio: 1; z-index: 6; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 55%, var(--gold-deep));
  border: 2px solid var(--ink);
}
.toy.has-peeked .toy__hint, .toy[data-state="open"] .toy__hint { opacity: 0; translate: 0 8px; }

.toy__card {
  position: absolute; left: -14%; bottom: 3%; z-index: 6; width: min(290px, 72%);
  padding: var(--s-5) var(--s-5) var(--s-4);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink);
  rotate: -3deg; transform-origin: 70% 0%;
}
.toy__card::before { /* tag hole */
  content: ""; position: absolute; right: 18px; top: 16px; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--ink); background: var(--gold);
}
.toy__card:focus { outline: none; }
.toy__card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.toy__found { font-weight: 800; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep); }
.toy__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-top: 0.25rem; padding-right: 1.2rem; }
.toy__joke { margin-top: 0.5rem; font-size: 1rem; line-height: 1.4; font-weight: 550; }
.toy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.toy.is-secret .toy__card { background: var(--ink); color: var(--paper); border-color: var(--gold); box-shadow: 0 6px 0 var(--gold-deep); }
.toy.is-secret .toy__found { color: var(--gold-pale); }
.toy.is-secret .toy__card .btn--quiet { color: var(--paper); }
.toy.is-secret .toy__card :focus-visible { outline-color: var(--gold); }

/* treasure log */
.log { position: relative; z-index: 2; margin: clamp(1.75rem, 4vw, 2.75rem) auto 0; width: min(100%, 470px); }
.log__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); border-bottom: 2.5px solid var(--ink); padding-bottom: var(--s-2); }
.log__title { font-size: 1.35rem; }
.log__count { font-weight: 750; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.log__slots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: var(--s-3); }
.log__slot {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background-color: var(--paper-deep);
  box-shadow: inset 0 0 0 2px rgb(22 33 62 / 0.12);
}
.log__slot::before {
  content: ""; position: absolute; inset: 9%;
  background: url("../assets/img/treasure-sprite.webp") no-repeat;
  background-size: 400% 400%;
  background-position: var(--sx) var(--sy);
  filter: brightness(0); opacity: 0.13;
}
.log__slot.is-found { background-color: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }
.log__slot.is-found::before { filter: none; opacity: 1; }
.log__slot.is-new { animation: slot-pop 0.7s var(--spring); }
@keyframes slot-pop { 0% { transform: scale(0.4); } 100% { transform: scale(1); } }
.log__slot--secret { grid-column: span 1; background: var(--ink) url("../assets/img/locket-golden-128.webp") center / 100% no-repeat; box-shadow: 0 0 0 2.5px var(--gold); }
.log__slot--secret::before { display: none; }
.log__goal { margin-top: var(--s-3); font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.log__goal img { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin-right: 0.4rem; }
.log__reset { margin-top: var(--s-1); padding: 0; border: 0; background: none; font-size: 0.85rem; font-weight: 650; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 0.2em; }

/* ───────────────────────── how it works ───────────────────────── */
.how { position: relative; padding-block: var(--section); background: var(--paper); border-top: 2.5px solid var(--ink); }
.how .wrap { position: relative; }
.section-head { max-width: 46rem; }
.how .section-head h2 { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); }
.steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.step:nth-child(2) { margin-top: clamp(3rem, 9vw, 8rem); }
.step:nth-child(3) { margin-top: clamp(6rem, 18vw, 16rem); }
.step__art {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 10px var(--gold), 0 0 0 13px var(--ink), 0 14px 0 13px var(--ink);
  margin: 13px 13px var(--s-7);
  background: var(--paper-art);
}
.step__art > img { width: 100%; height: 100%; object-fit: cover; }
.step--stash .step__art > img { object-position: 46% 50%; scale: 1.25; }
.step__text { position: relative; padding-left: 3.6rem; max-width: 22rem; }
.step__num {
  position: absolute; left: 0; top: -0.2rem;
  font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--coral);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.step h3 { font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.6rem); margin-bottom: 0.4rem; }
.step p { font-weight: 500; }

.lockshot {
  position: absolute; inset: 0;
  background: url("../assets/img/sock-teal-lg.webp") no-repeat;
  background-size: 250% auto;
  background-position: 86% 26%;
}
.lockshot__locket {
  position: absolute; left: 50%; top: 52%; width: 40%; aspect-ratio: 1;
  translate: -50% -50%;
  background: url("../assets/img/locket-padlock-320.webp") center / contain no-repeat;
  filter: drop-shadow(0 6px 4px rgb(4 40 36 / 0.45));
}
.step--lock.is-in .lockshot__locket { animation: stick 0.9s 0.2s var(--spring) both; }
@keyframes stick {
  0% { transform: translateY(-70%) scale(1.35) rotate(-24deg); opacity: 0; filter: drop-shadow(0 30px 16px rgb(4 40 36 / 0.25)); }
  45% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

.fan { position: absolute; inset: 0; background: var(--coral); }
.fan img { position: absolute; width: 44%; left: 50%; top: 50%; filter: drop-shadow(0 6px 3px rgb(22 33 62 / 0.35)); transition: transform 0.8s var(--spring); }
.fan img:nth-child(1) { transform: translate(-50%, -50%) rotate(-8deg); }
.fan img:nth-child(2) { transform: translate(-50%, -50%) rotate(4deg); }
.fan img:nth-child(3) { transform: translate(-50%, -50%) rotate(-2deg); }
.step--swap.is-in .fan img:nth-child(1) { transform: translate(-112%, -36%) rotate(-16deg); }
.step--swap.is-in .fan img:nth-child(2) { transform: translate(-50%, -78%) rotate(6deg); transition-delay: 0.08s; }
.step--swap.is-in .fan img:nth-child(3) { transform: translate(12%, -30%) rotate(14deg); transition-delay: 0.16s; }

.how__path {
  position: absolute; inset: clamp(9rem, 18vw, 15rem) var(--gutter) auto; width: calc(100% - var(--gutter) * 2); height: 70%;
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0.45;
  pointer-events: none; z-index: 0;
}

/* ───────────────────────── builder ───────────────────────── */
.build {
  position: relative; padding-block: var(--section);
  background: var(--teal-deep); color: var(--paper);
  border-block: 2.5px solid var(--ink);
}
.build .eyebrow { color: var(--gold-pale); }
.build__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "stage head" "stage form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 5vw, 5rem);
}
.build__head { grid-area: head; }
.build__intro { margin-top: var(--s-4); max-width: 34rem; font-weight: 500; }
.build__stage { grid-area: stage; position: relative; align-self: start; position: sticky; top: 96px; min-height: 520px; display: grid; place-items: center; padding-block: var(--s-6) var(--s-8); }
.stage__rug {
  position: absolute; inset: 4% -2% 10%; border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px var(--ink), 0 14px 0 3px var(--ink);
}
.stage__rug::after {
  content: ""; position: absolute; inset: 5%; border-radius: 50%;
  border: 3px dashed rgb(22 33 62 / 0.18);
}
.pair { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; width: 100%; padding-top: 4%; }
.pair__sock {
  position: relative; width: min(49%, 330px); aspect-ratio: 995 / 1274;
  padding: 0; border: 0; background: none; border-radius: 30px;
  transition: transform 0.4s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.pair__sock--left { margin-right: -5%; transform: rotate(-6deg); z-index: 1; }
.pair__sock--right { transform: rotate(5deg) translateY(4%); }
.pair__sock--right .pair__img { transform: scaleX(-1); }
.pair__img { width: 100%; height: 100%; filter: drop-shadow(0 12px 10px rgb(22 33 62 / 0.25)); pointer-events: none; }
.pair__sock.wiggle { animation: wiggle 0.55s var(--spring); }
@keyframes wiggle { 0% { translate: 0 0; } 30% { translate: 0 -5%; } 100% { translate: 0 0; } }
.pair__locket {
  position: absolute; left: 67.99%; top: 34.07%; width: 17%; aspect-ratio: 1; translate: -50% -50%;
  filter: drop-shadow(0 3px 2px rgb(4 40 36 / 0.45));
  pointer-events: none;
}
.pair__sock--right .pair__locket { left: 32.01%; }
.pair__locket img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pair__locket::after { /* "you're editing this one" ring */
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  border: 3px dashed var(--coral); opacity: 0; scale: 0.8;
  transition: opacity 0.2s, scale 0.35s var(--spring);
}
.pair__sock.is-active .pair__locket::after { opacity: 1; scale: 1; animation: spin 9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.pair__sock:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.stage__extra {
  position: absolute; right: 2%; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 0.3rem 1rem 0.3rem 0.35rem; font-weight: 750; font-size: 0.9rem; box-shadow: 0 3px 0 var(--ink);
  rotate: -3deg; white-space: nowrap;
}
.stage__extra img { width: 64px; height: 32px; object-fit: cover; border-radius: 999px; }
.stage__shared {
  position: absolute; left: 4%; top: 2%; z-index: 2; rotate: -4deg;
  background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px;
  padding: 0.25rem 0.7rem; font-weight: 800; font-size: 0.85rem;
}

.builder { grid-area: form; margin-top: var(--s-6); }
.opt { border: 0; padding: 0; margin: 0 0 var(--s-6); min-width: 0; }
.opt__label { display: flex; align-items: baseline; gap: var(--s-3); padding: 0; margin-bottom: var(--s-3); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.opt__value, .opt__hint { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.95rem; color: rgb(255 247 230 / 0.78); }

/* radio-card helpers: the input is visually hidden, the label is the target */
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }

.swatches { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.swatch { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.swatch span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.18);
  transition: transform 0.3s var(--spring);
}
.swatch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; transition: border-color 0.15s; }
.choice input:checked + .swatch::after, .swatch:has(input:checked)::after { border-color: var(--paper); }
.swatch:has(input:checked) span { transform: scale(0.86); }
.swatch:hover span { transform: scale(1.08); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.sizes { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.size {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; min-height: 58px;
  padding: 0.35rem 0.9rem; border-radius: 14px; border: 2.5px solid rgb(255 247 230 / 0.45);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.size b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1; }
.size small { font-size: 0.8rem; font-weight: 650; opacity: 0.85; }
.size:hover { border-color: var(--paper); }
.size:has(input:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.size:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-bottom: var(--s-4); }
.side {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.8rem 0.4rem 0.45rem; min-height: 58px;
  border-radius: 999px; border: 2.5px solid rgb(255 247 230 / 0.45);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.side img { width: 42px; height: 42px; flex: none; }
.side span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.side small { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.side b { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side:hover { border-color: var(--paper); }
.side:has(input:checked) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.side:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }

.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2) var(--s-1); }
.pick { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.35rem 0.1rem 0.4rem; border-radius: 14px; text-align: center; }
.pick img { width: min(56px, 100%); aspect-ratio: 1; transition: transform 0.35s var(--spring); filter: drop-shadow(0 3px 2px rgb(0 0 0 / 0.3)); }
.pick span { font-size: 0.72rem; font-weight: 700; line-height: 1.15; }
.pick:hover img { transform: translateY(-3px) rotate(-6deg); }
.pick:has(input:checked) { background: rgb(255 247 230 / 0.14); box-shadow: inset 0 0 0 2.5px var(--paper); }
.pick:has(input:checked) img { transform: scale(1.06); }
.pick:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick--secret span { color: var(--gold-pale); }

.builder__buy { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; padding-top: var(--s-5); border-top: 2px solid rgb(255 247 230 / 0.25); }
.builder__price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; display: flex; align-items: baseline; gap: 0.4rem; }
.builder__price small { font-family: var(--font-text); font-size: 0.95rem; font-weight: 650; opacity: 0.8; }
.builder__note { margin-top: var(--s-3); font-weight: 600; color: var(--gold-pale); max-width: 30rem; }
.builder__more { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.build .btn--ghost { --btn-fg: var(--paper); --btn-edge: var(--paper); box-shadow: 0 4px 0 rgb(0 0 0 / 0.35); }
.build .btn--ghost:hover { --btn-bg: rgb(255 247 230 / 0.12); box-shadow: 0 6px 0 rgb(0 0 0 / 0.35); }
.build .btn--quiet { color: var(--paper); }
.build .btn--primary { --btn-edge: var(--ink); }

/* ───────────────────────── the collection ───────────────────────── */
.lockets { padding-block: var(--section); background: var(--ink); color: var(--paper); }
.lockets__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6) clamp(2rem, 6vw, 6rem); align-items: end; }
.lockets__head h2 { font-size: clamp(3rem, 1.5rem + 6.5vw, 7.5rem); line-height: 0.85; }
.lockets__intro { display: grid; gap: var(--s-3); max-width: 34rem; font-weight: 500; }
.lockets__rarity { color: rgb(255 247 230 / 0.78); font-size: 0.95rem; }

.shelf {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.specimen { position: relative; display: grid; justify-items: start; }
.specimen__disc {
  position: relative; width: min(100%, 176px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none; rotate: var(--tilt, 0deg);
  transition: transform 0.45s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.specimen__disc img { width: 100%; height: 100%; filter: drop-shadow(0 8px 0 rgb(0 0 0 / 0.35)); transition: filter 0.3s; }
.specimen__disc:hover { transform: translateY(-6px) rotate(-6deg) scale(1.03); }
.specimen__disc:active { transform: translateY(2px) scale(0.97); transition-duration: 0.08s; }
.specimen__disc:focus-visible { outline-offset: 6px; border-radius: 50%; }
.specimen__flag {
  position: absolute; right: -6%; top: 2%; z-index: 1;
  display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 0.5rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink);
  font-weight: 800; font-size: 0.82rem; box-shadow: 0 3px 0 rgb(0 0 0 / 0.4);
  transform: scale(0.6); opacity: 0;
  transition: transform 0.35s var(--spring), opacity 0.15s, background-color 0.15s;
}
.specimen__disc:hover .specimen__flag, .specimen__disc:focus-visible .specimen__flag { transform: scale(1); opacity: 1; }
.specimen__disc[aria-pressed="true"] .specimen__flag { transform: scale(1); opacity: 1; background: var(--gold); }
.specimen__disc[aria-pressed="true"] img { filter: drop-shadow(0 8px 0 rgb(0 0 0 / 0.35)) drop-shadow(0 0 0 var(--gold)); }
.specimen__disc[aria-pressed="true"]::before {
  content: ""; position: absolute; inset: -7%; border-radius: 50%; border: 3px solid var(--gold);
}
.specimen h3 { margin-top: var(--s-4); font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); }
.specimen__tier {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.45rem;
  font-weight: 800; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.specimen__tier::before { content: ""; width: 0.75em; height: 0.75em; border-radius: 50%; background: currentColor; }
.specimen[data-tier="everyday"] .specimen__tier { color: #9fd9d3; }
.specimen[data-tier="shiny"] .specimen__tier { color: var(--coral); }
.specimen[data-tier="rare"] .specimen__tier { color: var(--gold); }
.specimen[data-tier="rare"] .specimen__tier::before { background: none; width: auto; height: auto; content: "★"; font-size: 1.1em; letter-spacing: 0; }
.specimen p { margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.4; color: rgb(255 247 230 / 0.82); max-width: 18rem; }

/* rare discs get a slow foil glint */
.specimen[data-tier="rare"] .specimen__disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.55) 48%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  background-position: 120% 0;
  mix-blend-mode: soft-light;
  animation: glint 5s 1s infinite;
}
@keyframes glint { 0%, 70% { background-position: 120% 0; } 100% { background-position: -60% 0; } }

.offers { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-5); margin-top: clamp(3.5rem, 7vw, 6rem); }
.offer {
  position: relative; display: grid; gap: var(--s-4); align-content: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 26px; background: var(--ink-raised);
  box-shadow: inset 0 0 0 2px rgb(255 247 230 / 0.12);
}
.offer h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.5em; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.offer__price { color: var(--gold); }
.offer p { margin-top: var(--s-2); color: rgb(255 247 230 / 0.84); max-width: 32rem; }
.offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.pack-slots { display: flex; gap: var(--s-3); }
.pack-slots li {
  position: relative; width: 76px; aspect-ratio: 1; border-radius: 50%;
  border: 2.5px dashed rgb(255 247 230 / 0.4);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; color: rgb(255 247 230 / 0.35);
}
.pack-slots li.is-filled { border-color: transparent; }
.pack-slots li img { position: absolute; inset: 0; width: 100%; height: 100%; animation: drop-in 0.5s var(--spring); }
@keyframes drop-in { 0% { transform: translateY(-30%) scale(1.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.offer--mystery { grid-template-columns: auto 1fr; column-gap: var(--s-5); }
.offer--mystery .offer__actions { grid-column: 1 / -1; }
.mystery-disc {
  width: 96px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2d3d6a, #121a33);
  box-shadow: inset 0 0 0 7px var(--gold), inset 0 0 0 10px #a86f06, 0 6px 0 rgb(0 0 0 / 0.35);
  rotate: -8deg;
  animation: wobble 3.6s ease-in-out infinite;
}
.mystery-disc span { font-family: var(--font-display); font-size: 3rem; color: var(--gold); line-height: 1; translate: 0 -2px; }
@keyframes wobble { 0%, 100% { rotate: -8deg; } 50% { rotate: 6deg; } }
.noscript { margin-top: var(--s-6); }

/* ───────────────────────── backpack strip ───────────────────────── */
.strip { padding-block: var(--section); background: var(--sun); border-block: 2.5px solid var(--ink); overflow: clip; }
.strip .eyebrow { color: var(--ink); }
.strip__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.strip__copy h2 { font-size: clamp(3.2rem, 1.6rem + 7vw, 8.2rem); line-height: 0.84; margin-bottom: var(--s-6); }
.strip__copy p { max-width: 32rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); font-weight: 550; }
.strip__copy p + p { margin-top: var(--s-4); }
.strip__art {
  justify-self: center; width: min(100%, 430px);
  border-radius: 999px 999px 28px 28px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
  rotate: 3deg; background: var(--paper-art);
}
.strip__art img { width: 100%; }

/* ───────────────────────── grown-ups ───────────────────────── */
.grownups { padding-block: var(--section); background: var(--paper); }
.grownups__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); gap: var(--s-7) clamp(2rem, 6vw, 6rem); align-items: start; }
.grownups__head { position: sticky; top: 110px; }
.grownups__head h2 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
.grownups__head p:last-child { margin-top: var(--s-4); color: var(--ink-soft); font-weight: 550; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.fact { padding-block: var(--s-5) var(--s-6); border-top: 2.5px solid var(--ink); }
.fact--wide { grid-column: 1 / -1; }
.fact dt { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.05; margin-bottom: var(--s-2); }
.fact dd { margin: 0; font-weight: 500; }
.fact--wide dd { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); max-width: 46rem; }

/* ───────────────────────── waitlist ───────────────────────── */
.waitlist {
  position: relative; overflow: clip;
  background: var(--paper-art);
  border-top: 2.5px solid var(--ink);
  min-height: clamp(520px, 52vw, 760px);
  display: grid; align-items: center;
}
.waitlist__art { position: absolute; inset: 0; }
.waitlist__art img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.waitlist .wrap { position: relative; }
.waitlist__copy { max-width: 33rem; padding-block: var(--s-9); }
.waitlist__copy h2 { width: max-content; max-width: min(46rem, 90vw); }
.waitlist__copy h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); margin-bottom: var(--s-5); }
.waitlist__copy > p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); font-weight: 550; max-width: 30rem; }

.waitlist-form { margin-top: var(--s-5); }
.waitlist-form__row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.waitlist-form input {
  flex: 1 1 15rem; min-width: 0; min-height: 56px; padding: 0 1.2rem;
  border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 600; box-shadow: inset 0 3px 0 rgb(22 33 62 / 0.08);
}
.waitlist-form input::placeholder { color: #666d82; }
.waitlist-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.waitlist-form input[aria-invalid="true"] { border-color: var(--coral-deep); }
.waitlist-form .btn { min-height: 56px; }
.waitlist-form__note { margin-top: var(--s-3); font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.waitlist-form__note:empty, .waitlist-form__status:empty { display: none; }
.waitlist-form__status {
  margin-top: var(--s-3); padding: 0.75rem 1rem; border-radius: 14px;
  background: var(--ink); color: var(--paper); font-weight: 600;
}
.waitlist-form__status.is-error { background: var(--coral-deep); }

/* ───────────────────────── footer ───────────────────────── */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--s-8) var(--s-7); }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: var(--s-6) var(--s-7); align-items: end; }
.site-footer__mark { font-family: var(--font-display); font-size: clamp(3.2rem, 1.5rem + 8vw, 9rem); line-height: 0.85; letter-spacing: -0.02em; }
.site-footer__mark em { color: var(--gold); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-weight: 700; }
.site-footer__links a { text-decoration-color: var(--gold); }
.site-footer__small { grid-column: 1 / -1; max-width: 48rem; font-size: 0.9rem; color: rgb(255 247 230 / 0.75); border-top: 1.5px solid rgb(255 247 230 / 0.2); padding-top: var(--s-5); }

/* ───────────────────────── dialogs ───────────────────────── */
dialog { padding: 0; border: 0; color: var(--ink); background: none; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(22 33 62 / 0.5); }
dialog[open]::backdrop { animation: fade 0.25s ease-out; }
dialog.is-closing::backdrop { animation: fade 0.2s ease-in reverse forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw);
  background: var(--paper); border-left: 3px solid var(--ink);
}
.drawer[open] { animation: drawer-in 0.42s var(--spring-soft); }
.drawer.is-closing { animation: drawer-out 0.22s ease-in forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-out { from { transform: none; } to { transform: translateX(100%); } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 2.5px solid var(--ink); }
.drawer__head h2 { font-size: 2.1rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-2) var(--s-5); overscroll-behavior: contain; }
.drawer__empty { text-align: center; padding: var(--s-8) var(--s-4); display: grid; justify-items: center; gap: var(--s-2); }
.drawer__empty-title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.drawer__empty .btn { margin-top: var(--s-4); }
.drawer__foot { padding: var(--s-4) var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); border-top: 2.5px solid var(--ink); background: var(--paper-deep); }
.drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; font-size: 1.1rem; }
.drawer__subtotal strong { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.drawer__note { margin: var(--s-1) 0 var(--s-4); font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }

.line { display: grid; grid-template-columns: 84px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1.5px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__thumb { position: relative; width: 84px; height: 84px; border-radius: 18px; background: var(--paper-deep); overflow: hidden; }
.line__sock { position: absolute; left: 4%; top: 6%; width: 70%; aspect-ratio: 995 / 1274; rotate: -6deg; }
.line__sock img:first-child { width: 100%; height: 100%; }
.line__sock-lk { position: absolute; left: 68%; top: 34%; width: 22%; translate: -50% -50%; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.3)); }
.line__thumb .lk { position: absolute; width: 40%; filter: drop-shadow(0 2px 1px rgb(0 0 0 / 0.3)); }
.line__thumb .lk--corner { right: 4%; bottom: 6%; width: 38%; }
.line__thumb--pack .lk:nth-child(1) { left: 6%; top: 10%; rotate: -10deg; }
.line__thumb--pack .lk:nth-child(2) { right: 6%; top: 14%; rotate: 8deg; }
.line__thumb--pack .lk:nth-child(3) { left: 30%; bottom: 6%; }
.line__thumb--mystery { display: grid; place-items: center; background: var(--ink); }
.line__thumb--mystery span { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); }
.line__top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.line__name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.05; }
.line__price { font-weight: 800; font-variant-numeric: tabular-nums; }
.line__meta { margin-top: 0.3rem; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; line-height: 1.4; }
.line__controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 38px; border: 0; background: none; font-size: 1.25rem; font-weight: 800; line-height: 1; }
.qty button:hover { background: var(--paper-deep); }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.line__remove { border: 0; background: none; padding: 0.3rem; font-size: 0.88rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; color: var(--ink-soft); }

.modal {
  margin: auto; width: min(520px, calc(100vw - 2rem));
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink);
}
.modal[open] { animation: pop-in 0.45s var(--spring); }
.modal.is-closing { animation: pop-out 0.18s ease-in forwards; }
@keyframes pop-in { from { transform: scale(0.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop-out { to { transform: scale(0.92); opacity: 0; } }
.modal__inner { position: relative; padding: clamp(1.75rem, 4vw, 2.5rem); display: grid; gap: var(--s-4); justify-items: start; }
.modal__x { position: absolute; right: 1rem; top: 1rem; }
.modal h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.7rem); padding-right: 3rem; }
.modal p { font-weight: 520; }
.modal .waitlist-form { margin-top: var(--s-2); width: 100%; }
.modal__body { display: grid; gap: var(--s-3); width: 100%; }
.waitlist__closed { margin-top: var(--s-6); display: grid; gap: var(--s-5); justify-items: start; max-width: 30rem; padding: var(--s-5); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.waitlist__closed p { font-weight: 520; }
.modal .eyebrow { margin-bottom: 0; color: var(--coral-deep); }

/* ───────────────────────── toast ───────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 60;
  max-width: calc(100vw - 2rem); padding: 0.85rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; box-shadow: 0 5px 0 var(--gold-deep);
  translate: -50% 160%; opacity: 0; pointer-events: none;
  transition: translate 0.45s var(--spring), opacity 0.2s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ───────────────────────── legal pages ───────────────────────── */
.legal { padding-block: var(--s-8) var(--s-9); }
.legal__inner { max-width: 44rem; }
.legal__draft {
  display: inline-block; margin-bottom: var(--s-5); padding: 0.3rem 0.8rem; border-radius: 10px; rotate: -2deg;
  background: var(--gold); border: 2.5px solid var(--ink); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.legal h1 { font-size: clamp(2.8rem, 1.8rem + 4vw, 5rem); margin-bottom: var(--s-5); }
.legal h2 { font-size: 1.7rem; margin-top: var(--s-7); margin-bottom: var(--s-3); }
.legal p, .legal li { font-weight: 500; }
.legal p + p { margin-top: var(--s-3); }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.legal__updated { color: var(--ink-soft); font-weight: 600; }
.notfound { padding-block: var(--s-9); display: grid; gap: var(--s-5); justify-items: start; }
.notfound h1 { font-size: clamp(3.2rem, 2rem + 6vw, 7rem); line-height: 0.9; }
.notfound img { width: 140px; rotate: -10deg; }

/* ───────────────────────── reveal-on-scroll (only when JS is running) ───────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--spring-soft); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1100px) {
  .nav__list a { padding-inline: 0.6rem; font-size: 0.92rem; }
  .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .offers { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .site-header__inner { gap: var(--s-3); }
  .nav { order: 3; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem;
    border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 750;
  }
  .nav__list {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
    flex-direction: column; gap: 0; padding: var(--s-2);
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink);
  }
  .nav__list a { padding: 0.9rem 1rem; font-size: 1.1rem; }
  .nav:not(.is-open) .nav__list { display: none; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "toy" "copy"; grid-template-rows: auto; }
  .hero h1 { margin-right: 0; font-size: clamp(3.4rem, 1rem + 11vw, 6.4rem); }
  .hero__title { padding-top: var(--s-2); }
  .hero__copy { max-width: none; }
  .lede { max-width: 40ch; }
  .toy { width: min(84%, 430px); margin-top: var(--s-6); }
  .toy__card { left: -10%; bottom: 2%; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); max-width: 520px; margin-inline: auto; }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(2) { padding-left: 12%; }
  .step:nth-child(3) { padding-right: 12%; }
  .how__path { display: none; }

  .build__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "form"; }
  .build__stage { position: relative; top: 0; min-height: 0; margin-top: var(--s-5); }
  .picker { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .lockets__head { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
  .grownups__grid { grid-template-columns: 1fr; }
  .grownups__head { position: static; }
}

@media (max-width: 640px) {
  .ribbon { font-size: 0.8rem; }
  .ribbon__more { display: none; }
  .wordmark__text { font-size: 1.3rem; }
  .wordmark__mark { width: 34px; height: 34px; }
  .cart-btn__label { display: none; }
  .cart-btn__icon { display: block; }
  .cart-btn { padding: 0.3rem 0.35rem 0.3rem 0.7rem; gap: 0.35rem; }
  .strip__art { width: min(78%, 330px); }
  .pair__sock { width: 50%; }
  .toy { width: 80%; }
  .toy__card { left: -9%; bottom: -2%; width: 74%; padding: var(--s-4) var(--s-4) var(--s-3); border-radius: 18px; }
  .toy__name { font-size: 1.35rem; }
  .toy__joke { font-size: 0.92rem; margin-top: 0.3rem; }
  .toy__actions { margin-top: var(--s-3); gap: var(--s-1) var(--s-2); }
  .toy__actions .btn--small { min-height: 38px; padding: 0.45em 0.9em; font-size: 0.88rem; }
  .toy__hint { left: 78%; top: 42%; }
  .log__slots { gap: 5px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
  .specimen__disc { width: min(100%, 150px); }
  .picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sides { grid-template-columns: 1fr; }
  .offer--mystery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .waitlist { display: block; min-height: 0; }
  .waitlist__art { position: relative; height: 300px; }
  .waitlist__art img { object-position: 78% 40%; }
  .waitlist__copy { padding-block: var(--s-6) var(--s-8); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .stage__extra { right: auto; left: 50%; translate: -50% 0; width: max-content; }
}

@media (max-width: 360px) {
  .hero h1 .nowrap { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .specimen[data-tier="rare"] .specimen__disc::after { display: none; }
}
