/* =========================================================
   NICK'S HEAD — v0.1
   Mobile-first one-pager. No framework, no build step.
   ========================================================= */

@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/Unbounded-Variable-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Onest';
  src: url('assets/fonts/Onest-Variable-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd60a;
  --pink: #ff5ca8;
  --blue: #4cc9f0;
  --lime: #c6ff4a;
  --ink: #0b0b0b;
  --cream: #fff7e6;
  --white: #ffffff;
  --ink-70: rgba(11, 11, 11, 0.7);
  --ink-55: rgba(11, 11, 11, 0.55);
  --ink-35: rgba(11, 11, 11, 0.35);
  --ink-15: rgba(11, 11, 11, 0.15);
  --cream-70: rgba(255, 247, 230, 0.72);
  --cream-45: rgba(255, 247, 230, 0.45);
  --cream-20: rgba(255, 247, 230, 0.2);
  --border: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-sticker: cubic-bezier(0.2, 1.4, 0.4, 1);
  --header-h: 64px;
  --gutter: 20px;
}

@media (min-width: 720px) {
  :root {
    --header-h: 72px;
    --gutter: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --gutter: 40px;
  }
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--ink);
  color: var(--yellow);
}

:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 3px;
}

.section--ink :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

/* ---------- utilities ---------- */

.container {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--gutter) * 2), 1180px);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  visibility: hidden;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  visibility: visible;
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.eyebrow--light {
  color: var(--cream);
}

.section--ink .eyebrow {
  color: var(--cream);
}

.hl {
  display: inline-block;
  padding: 0 0.08em;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 0.96;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}

.hl--hero {
  padding: 0 0.12em 0.04em;
  border-width: 4px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2deg);
  font-size: 0.94em;
}

/* ---------- buttons / stickers ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 20px;
  border: var(--border);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out),
    background 0.15s, color 0.15s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
}

.btn--sm {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 10px;
}

.btn--full {
  width: 100%;
}

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 3px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.site-header.is-scrolled {
  background: var(--cream);
  border-bottom-color: var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - (var(--gutter) * 2), 1180px);
  height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand__word {
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.header__nav a {
  position: relative;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__hire-short {
  display: inline;
}

.header__hire-full {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--cream);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 8px);
  background: var(--yellow);
  overflow: clip;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(11, 11, 11, 0.14) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding-top: 4px;
  padding-bottom: 20px;
}

.hero__scene {
  position: relative;
  display: flex;
  justify-content: center;
  height: clamp(260px, 50vw, 300px);
  order: 1;
}

.hero__copy {
  position: relative;
  z-index: 3;
  order: 2;
  max-width: 660px;
}

.hero__title {
  margin: 10px 0 16px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(2.2rem, 10.4vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero__title .line {
  display: block;
}

.hero__sub {
  max-width: 38ch;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.45;
  color: var(--ink-70);
}

.hero__pick {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.hero__pick-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--ink-35);
}

.doors {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.door {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 11px 12px;
  background: var(--cream);
  color: var(--ink);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.door:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.door:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.door__num {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

.door__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.door__title {
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.door__desc {
  font-size: 10px;
  line-height: 1.25;
  color: var(--ink-55);
}

.door__arrow {
  margin-left: auto;
  font-size: 18px;
  line-height: 1;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* spider */

.spider {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: clamp(178px, 39vw, 300px);
  height: 100%;
}

/* Temporary test: third generated head (smiling, head-only). */
.hero--head3 .spider {
  width: clamp(162px, 36vw, 285px);
}

.hero--head3 .sticker--organic {
  display: none;
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero--head3 .spider {
    width: 235px;
  }
}

.spider__thread {
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  z-index: 0;
  width: 2px;
  height: 220px;
  background: var(--ink);
  transform: translateX(-50%) scaleY(1);
  transform-origin: top;
}

.spider__body {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  color: var(--ink);
  animation: spider-bob 5s ease-in-out infinite;
}

.spider__body::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  z-index: 4;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.spider__legs {
  position: absolute;
  top: 5%;
  left: -45%;
  z-index: 0;
  width: 190%;
  max-width: none;
  height: auto;
  overflow: visible;
}

.spider__head {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(11, 11, 11, 0.12));
}

.sticker--organic {
  position: absolute;
  right: -8%;
  bottom: 5%;
  z-index: 5;
  padding: 7px 10px;
  font-size: 8px;
  transform: rotate(8deg);
}

/* intro timeline */

.intro .hero__title .line {
  opacity: 0;
  animation: line-in 0.65s var(--ease-sticker) forwards;
}

.intro .hero__title .line:nth-child(1) {
  animation-delay: 0.48s;
}

.intro .hero__title .line:nth-child(2) {
  animation-delay: 0.6s;
}

.intro .hero__title .line:nth-child(3) {
  animation-delay: 0.72s;
}

.intro .hero__sub {
  opacity: 0;
  animation: fade-up 0.55s 0.95s var(--ease-out) forwards;
}

.intro .hero__pick {
  opacity: 0;
  animation: fade-up 0.5s 1.05s var(--ease-out) forwards;
}

.intro .doors .door {
  opacity: 0;
  animation: fade-up 0.5s var(--ease-out) forwards;
}

.intro .doors .door:nth-child(1) {
  animation-delay: 1.08s;
}

.intro .doors .door:nth-child(2) {
  animation-delay: 1.16s;
}

.intro .doors .door:nth-child(3) {
  animation-delay: 1.24s;
}

.intro .hero__note {
  opacity: 0;
  animation: fade-up 0.5s 1.38s var(--ease-out) forwards;
}

.intro .spider__body {
  animation: spider-drop 1.1s var(--ease-out) both, spider-bob 4.5s 1.2s ease-in-out infinite;
}

.intro .spider__thread {
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  animation: thread-grow 0.5s var(--ease-out) forwards;
}

.intro .sticker--organic {
  opacity: 0;
  animation: sticker-pop 0.5s 1.3s var(--ease-sticker) forwards;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 11px 0;
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group span:nth-child(even) {
  color: var(--yellow);
}

.marquee--yellow {
  background: var(--yellow);
  color: var(--ink);
  border-top-color: var(--ink);
  border-bottom: var(--border);
}

.marquee--yellow .marquee__group span:nth-child(even) {
  color: var(--pink);
}

/* ---------- section base ---------- */

.section {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
  overflow: clip;
  isolation: isolate;
}



.section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section--pink {
  background: var(--pink);
}

.section--pink::before {
  background-image: radial-gradient(circle, rgba(11, 11, 11, 0.12) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.section--blue {
  background: var(--blue);
}

.section--blue::before {
  background-image: linear-gradient(rgba(11, 11, 11, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
}

.section--lime {
  background: var(--lime);
}

.section--lime::before {
  background-image: radial-gradient(circle, rgba(11, 11, 11, 0.12) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
  opacity: 0.45;
}

.section--ink {
  background: var(--ink);
  color: var(--cream);
}

.section--ink::before {
  background: radial-gradient(circle at 86% 18%, rgba(255, 214, 10, 0.13), transparent 42%),
    radial-gradient(circle at 8% 82%, rgba(255, 92, 168, 0.09), transparent 40%);
  opacity: 1;
}

.section-head {
  max-width: 900px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-title {
  margin: 12px 0 18px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(1.95rem, 6.8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 56ch;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.5;
  color: var(--ink-70);
}

.section--ink .section-lede {
  color: var(--cream-70);
}

/* ---------- products ---------- */

.product-stage {
  display: grid;
  gap: 22px;
  align-items: center;
}

.magician-wrap {
  position: relative;
}

.magician {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(380px, 46vw, 440px);
}

.magician__spot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(260px, 40vw, 340px);
  height: clamp(260px, 40vw, 340px);
  background: rgba(255, 247, 230, 0.3);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.magician__head {
  position: absolute;
  bottom: 42%;
  z-index: 2;
  width: clamp(150px, 22vw, 180px);
  height: auto;
  filter: drop-shadow(6px 8px 0 rgba(11, 11, 11, 0.12));
}

.magician__hat {
  position: absolute;
  bottom: 20px;
  z-index: 3;
  width: clamp(180px, 26vw, 230px);
  height: 150px;
  transform-origin: bottom center;
}

.hat__crown {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 78%;
  height: 120px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px 8px 2px 2px;
  transform: translateX(-50%);
  box-shadow: inset 8px 0 0 rgba(255, 255, 255, 0.08);
}

.hat__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 22px;
  background: var(--pink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.hat__band::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: -12px;
  width: 30px;
  height: 22px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  transform: rotate(8deg);
}

.hat__brim {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100%;
  height: 36px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 6px 0 rgba(11, 11, 11, 0.15);
}

.magician__arms {
  position: absolute;
  bottom: 112px;
  z-index: 4;
  width: min(100%, 380px);
  color: var(--ink);
}

.magician__bubble {
  position: absolute;
  top: 12px;
  right: 0;
  z-index: 6;
  padding: 7px 10px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 12px 12px 12px 2px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: rotate(6deg);
}

.spark {
  position: absolute;
  z-index: 5;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.spark--1 {
  top: 18%;
  left: 4%;
}

.spark--2 {
  top: 8%;
  right: 16%;
  font-size: 18px;
}

.spark--3 {
  top: 42%;
  right: 2%;
  font-size: 32px;
}

.spark--4 {
  top: 54%;
  left: 0;
  font-size: 16px;
}

.js .magician__head {
  transform: translateY(18px);
  transition: transform 0.9s var(--ease-sticker);
}

.js .magician.is-visible .magician__head {
  transform: translateY(0);
}

.js .magician__hat {
  transform: rotate(0);
  transition: transform 0.7s 0.15s var(--ease-sticker);
}

.js .magician.is-visible .magician__hat {
  transform: rotate(-4deg);
}

.js .magician__bubble {
  opacity: 0;
  transform: rotate(6deg) scale(0.8);
  transition: opacity 0.35s 0.45s, transform 0.45s 0.45s var(--ease-sticker);
}

.js .magician.is-visible .magician__bubble {
  opacity: 1;
  transform: rotate(6deg) scale(1);
}

.js .spark {
  opacity: 0;
  transform: scale(0.4);
}

.js .magician.is-visible .spark {
  animation: spark-pop 0.55s var(--ease-sticker) forwards;
}

.js .magician.is-visible .spark--1 {
  animation-delay: 0.55s;
}

.js .magician.is-visible .spark--2 {
  animation-delay: 0.7s;
}

.js .magician.is-visible .spark--3 {
  animation-delay: 0.85s;
}

.js .magician.is-visible .spark--4 {
  animation-delay: 1s;
}

/* product card */

.product-card {
  position: relative;
  padding: clamp(16px, 3vw, 26px);
  background: var(--cream);
  border: var(--border);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1deg);
}

.product-card__flag {
  position: absolute;
  top: -14px;
  right: 16px;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.product-card__main {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.book {
  position: relative;
  width: 100%;
  aspect-ratio: 0.72;
  overflow: hidden;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 3px 8px 8px 3px;
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.35);
  transform: perspective(700px) rotateY(-13deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover .book {
  transform: perspective(700px) rotateY(0) rotateX(0);
}

.book::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent);
}

.book::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.book__front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 9px 8px 8px 12px;
}

.book__brand {
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book__sun {
  align-self: flex-end;
  width: 46px;
  height: 46px;
  margin: 14px 0 8px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.book__title {
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(9px, 2.4vw, 13px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.book__sub {
  margin-top: auto;
  font-size: 5.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book__bottom {
  margin-top: 5px;
  padding-top: 4px;
  border-top: 2px solid var(--ink);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card__info h3 {
  margin-bottom: 6px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(14px, 2.4vw, 20px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.product-card__sub {
  margin-bottom: 9px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-70);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 10.5px;
  line-height: 1.3;
}

.check-list li::before {
  content: '✓';
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.product-card__meta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.product-card__meta span {
  margin: 0 3px;
  opacity: 0.5;
}

.product-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.product-card__note {
  margin-top: 8px;
  font-size: 9px;
  line-height: 1.3;
  color: var(--ink-55);
}

/* ---------- product scene switcher ---------- */

.scene-switcher {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 20px;
  padding: 10px 12px;
  background: rgba(255, 247, 230, 0.62);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.scene-switcher__label {
  flex: 1 0 100%;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.scene-switcher__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scene-tab {
  min-height: 34px;
  padding: 7px 9px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.scene-tab:hover {
  transform: translateY(-1px);
}

.scene-tab.is-active {
  background: var(--ink);
  color: var(--cream);
}

.scene-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 470px;
}

.scene-panel {
  width: 100%;
}

.scene-panel[hidden] {
  display: none;
}

/* ---------- vending machine ---------- */

.vending {
  position: relative;
  width: min(100%, 330px);
  margin-inline: auto;
  padding-top: 24px;
}

.vending__sign {
  position: relative;
  z-index: 5;
  width: 86%;
  margin: 0 auto -12px;
  padding: 8px 10px 6px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center;
  transform: rotate(-2deg);
}

.vending__sign strong {
  display: block;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.vending__sign span {
  display: block;
  margin-top: 3px;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.vending__body {
  position: relative;
  z-index: 2;
  padding: 12px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 18px 18px 10px 10px;
  box-shadow: 8px 8px 0 var(--ink);
}

.vending__glass {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #c9f1ff;
  border: 3px solid var(--ink);
  border-radius: 10px;
}

.vending__glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 72px,
    rgba(11, 11, 11, 0.16) 72px 74px
  );
}

.vending__shelves {
  position: absolute;
  inset: 18px 12px 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vending__shelves span {
  position: relative;
  display: block;
  height: 4px;
  background: rgba(11, 11, 11, 0.25);
  border-radius: 2px;
}

.vending__shelves span::before,
.vending__shelves span::after {
  content: '';
  position: absolute;
  top: -14px;
  width: 22px;
  height: 14px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 1px 2px 0 rgba(11, 11, 11, 0.15);
}

.vending__shelves span::before {
  left: 7px;
}

.vending__shelves span::after {
  right: 7px;
  background: var(--yellow);
}

.vending__head {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 135px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(3px 4px 0 rgba(11, 11, 11, 0.18));
}

.vending__sticker {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  padding: 5px 7px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.vending__shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 24%,
    rgba(255, 255, 255, 0.42) 34%,
    transparent 46%
  );
}

.vending__panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--ink);
  border-radius: 8px;
  color: var(--cream);
}

.vending__coin {
  width: 10px;
  height: 18px;
  border: 2px solid var(--cream);
  border-radius: 2px;
}

.vending__price {
  margin-right: auto;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.vending__button {
  padding: 7px 12px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--cream);
  border-radius: 999px;
  box-shadow: 2px 2px 0 rgba(255, 247, 230, 0.35);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.vending__tray {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 62px;
  margin-top: 8px;
  padding: 8px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.vending__tray-label {
  position: absolute;
  top: 5px;
  left: 8px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: uppercase;
}

.vending__mini-book {
  width: 34px;
  height: 46px;
  background: var(--yellow);
  border: 2px solid var(--cream);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  transform: rotate(-6deg);
}

.vending__legs {
  display: flex;
  justify-content: center;
  gap: 96px;
  margin-top: -4px;
}

.vending__legs span {
  width: 16px;
  height: 20px;
  background: var(--ink);
  border-radius: 0 0 4px 4px;
}

.vending__bubble {
  position: absolute;
  top: 28px;
  right: -4px;
  z-index: 6;
  padding: 6px 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 10px 10px 10px 2px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transform: rotate(6deg);
}

.vending__spark {
  position: absolute;
  z-index: 6;
  font-size: 20px;
  line-height: 1;
}

.vending__spark--1 {
  top: 42%;
  left: -8px;
}

.vending__spark--2 {
  top: 22%;
  right: -4px;
  font-size: 13px;
}

.scene-panel.is-active .vending__head {
  animation: vending-bob 5s ease-in-out infinite;
}

.scene-panel.is-active .vending__mini-book {
  animation: tray-book 5s ease-in-out infinite;
}

.scene-panel.is-active .vending__button {
  animation: push-button 5s ease-in-out infinite;
}

/* ---------- jack-in-the-box ---------- */

.jackbox {
  position: relative;
  width: min(100%, 330px);
  height: 440px;
  margin-inline: auto;
}

.jackbox__head-wrap {
  position: absolute;
  bottom: 220px;
  left: 50%;
  z-index: 4;
  width: clamp(140px, 18vw, 160px);
  transform: translateX(-50%);
}

.jackbox__head {
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 5px 0 rgba(11, 11, 11, 0.15));
}

.jackbox__spring {
  position: absolute;
  bottom: 169px;
  left: 50%;
  z-index: 3;
  width: 60px;
  height: 55px;
  color: var(--ink);
  transform: translateX(-50%);
}

.jackbox__box {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 2;
  width: 250px;
  height: 145px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 12px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: translateX(-50%);
}

.jackbox__box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 24px;
  background: repeating-linear-gradient(
    45deg,
    var(--yellow) 0 8px,
    var(--ink) 8px 16px
  );
  border-bottom: 3px solid var(--ink);
  border-radius: 8px 8px 0 0;
}

.jackbox__label {
  position: absolute;
  top: 44px;
  left: 16px;
  width: 130px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.jackbox__crank {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 42px;
  height: 42px;
  background: var(--pink);
  border: 4px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}

.jackbox__crank::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 10px;
  background: var(--ink);
  border-radius: 5px;
  transform: translateY(-50%) rotate(30deg);
  transform-origin: left center;
}

.jackbox__lid {
  position: absolute;
  bottom: 168px;
  left: 50%;
  z-index: 1;
  width: 190px;
  height: 18px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 6px;
  transform: translateX(-55%) rotate(-24deg);
  transform-origin: center bottom;
}

.jackbox__bubble {
  position: absolute;
  top: 16px;
  right: 0;
  z-index: 6;
  padding: 7px 9px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px 10px 10px 2px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(6deg);
}

.jackbox__star {
  position: absolute;
  z-index: 5;
  font-size: 22px;
  line-height: 1;
}

.jackbox__star--1 {
  top: 54px;
  left: 4px;
}

.jackbox__star--2 {
  top: 30px;
  right: 32px;
  font-size: 14px;
}

.jackbox__star--3 {
  top: 120px;
  left: 0;
  font-size: 12px;
}

.scene-panel.is-active .jackbox__head-wrap {
  animation: jack-bob 4.5s ease-in-out infinite;
}

.scene-panel.is-active .jackbox__spring {
  animation: jack-spring 4.5s ease-in-out infinite;
  transform-origin: bottom center;
}

.scene-panel.is-active .jackbox__crank {
  animation: jack-crank 7s linear infinite;
}

.scene-panel.is-active .jackbox__lid {
  animation: jack-lid 4.5s ease-in-out infinite;
}

.scene-panel.is-active .jackbox__bubble {
  animation: bubble-bob 4.5s ease-in-out infinite;
}

/* ---------- pop-up book ---------- */

.popup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 380px);
  height: 400px;
  margin-inline: auto;
  padding-bottom: 24px;
}

.popup__book {
  position: relative;
  width: 100%;
  height: 240px;
  transform: perspective(900px) rotateX(16deg) rotateZ(-2deg);
  transform-origin: center bottom;
}

.popup__book::before {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -8px;
  left: -6px;
  z-index: 0;
  height: 205px;
  background: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 10px 10px 14px 14px;
  transform: skewY(-1deg);
}

.popup__page {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 50%;
  height: 190px;
  background: var(--cream);
  border: 4px solid var(--ink);
}

.popup__page--left {
  left: 0;
  border-radius: 10px 2px 2px 10px;
  transform: skewY(5deg);
}

.popup__page--right {
  right: 0;
  border-radius: 2px 10px 10px 2px;
  transform: skewY(-5deg);
}

.popup__page-label {
  position: absolute;
  top: 18px;
  left: 16px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.popup__page--right .popup__page-label {
  right: 14px;
  left: auto;
  text-align: right;
}

.popup__page::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 24px;
  left: 18px;
  height: 46px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0.16) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.7;
}

.popup__spine {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 6px;
  height: 190px;
  background: var(--ink);
  transform: translateX(-50%);
}

.popup__spring {
  position: absolute;
  bottom: 100px;
  left: 50%;
  z-index: 4;
  width: 75px;
  height: 75px;
  color: var(--ink);
  transform: translateX(-50%);
}

.popup__head-wrap {
  position: absolute;
  bottom: 135px;
  left: 50%;
  z-index: 5;
  width: clamp(130px, 16vw, 150px);
  transform: translateX(-50%);
}

.popup__head {
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 5px 0 rgba(11, 11, 11, 0.15));
}

.popup__bubble {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 6;
  padding: 6px 8px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 9px 9px 9px 2px;
  box-shadow: 2px 2px 0 rgba(255, 247, 230, 0.3);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(4deg);
}

.popup__star {
  position: absolute;
  z-index: 6;
  font-size: 20px;
  line-height: 1;
}

.popup__star--1 {
  top: 30px;
  left: 10%;
}

.popup__star--2 {
  top: 70px;
  right: 6%;
  font-size: 12px;
}

.scene-panel.is-active .popup__book {
  animation: popup-book 5s ease-in-out infinite;
}

.scene-panel.is-active .popup__head-wrap {
  animation: popup-rise 5s ease-in-out infinite;
}

.scene-panel.is-active .popup__spring {
  animation: popup-spring 5s ease-in-out infinite;
  transform-origin: bottom center;
}

.scene-panel.is-active .popup__bubble {
  animation: bubble-bob 5s ease-in-out infinite;
}

/* scene keyframes */

@keyframes vending-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes tray-book {
  0%,
  68%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  76% {
    transform: translateY(-10px) rotate(0);
  }
  84% {
    transform: translateY(0) rotate(-6deg);
  }
}

@keyframes push-button {
  0%,
  78%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  83% {
    transform: rotate(-2deg) scale(0.92);
  }
  88% {
    transform: rotate(-2deg) scale(1);
  }
}

@keyframes jack-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  45% {
    transform: translateX(-50%) translateY(-9px);
  }
  55% {
    transform: translateX(-50%) translateY(-9px);
  }
}

@keyframes jack-spring {
  0%,
  100% {
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    transform: translateX(-50%) scaleY(1.1);
  }
}

@keyframes jack-crank {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes jack-lid {
  0%,
  100% {
    transform: translateX(-55%) rotate(-24deg);
  }
  50% {
    transform: translateX(-55%) rotate(-29deg);
  }
}

@keyframes bubble-bob {
  0%,
  100% {
    transform: translateY(0) rotate(6deg);
  }
  50% {
    transform: translateY(-4px) rotate(4deg);
  }
}

@keyframes popup-book {
  0%,
  100% {
    transform: perspective(900px) rotateX(16deg) rotateZ(-2deg);
  }
  50% {
    transform: perspective(900px) rotateX(13deg) rotateZ(-1deg);
  }
}

@keyframes popup-rise {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes popup-spring {
  0%,
  100% {
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    transform: translateX(-50%) scaleY(1.12);
  }
}

/* mini products */

.product-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mini-product {
  position: relative;
  padding: 16px;
  background: rgba(255, 247, 230, 0.62);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.mini-product__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
}

.mini-product__icon svg {
  width: 18px;
  height: 18px;
}

.mini-product__soon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-product h3 {
  margin-bottom: 6px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.mini-product p {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-70);
}

/* waitlist */

.waitlist {
  position: relative;
  display: grid;
  gap: 20px;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 8px 8px 0 rgba(11, 11, 11, 0.2);
}

.waitlist::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 214, 10, 0.18) 1.3px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.6;
}

.waitlist > * {
  position: relative;
  z-index: 1;
}

.waitlist .eyebrow {
  color: var(--yellow);
}

.waitlist h3 {
  margin: 8px 0;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.waitlist__copy p:not(.eyebrow) {
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--cream-70);
}

.waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--cream);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.35);
}

.waitlist-form .btn {
  width: 100%;
}

.form-status {
  min-height: 15px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--yellow);
}

.form-note {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.3;
  color: rgba(255, 247, 230, 0.45);
}

/* ---------- about ---------- */

.about {
  display: grid;
  gap: 28px;
}

.about__intro p:not(.section-lede) {
  max-width: 54ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-70);
}

.about__scene {
  position: relative;
}

.museum {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 8px 96px;
}

.museum__spot {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 90%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 247, 230, 0.62), transparent 65%);
  filter: blur(2px);
  transform: translateX(-50%);
}

.museum__frame {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  margin-inline: auto;
  padding: 12px;
  background: var(--cream);
  border: 14px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(11, 11, 11, 0.22);
  transform: rotate(-2deg);
}

.museum__mat {
  padding: 10px 10px 8px;
  background: var(--white);
  border: 2px solid var(--ink);
}

.museum__mat img {
  width: 100%;
  height: auto;
}

.museum__label {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.museum__plaque {
  position: relative;
  z-index: 3;
  width: min(100%, 260px);
  margin: 20px auto 0;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(11, 11, 11, 0.2);
  text-align: center;
  transform: rotate(1.5deg);
}

.museum__plaque strong {
  display: block;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.museum__plaque span {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-70);
}

.museum__guard {
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 4;
  width: 74px;
  color: var(--ink);
}

.museum__rope {
  position: absolute;
  bottom: 24px;
  left: 8%;
  z-index: 3;
  width: 84%;
  color: var(--ink);
}

.sticker--touch {
  position: absolute;
  top: 14px;
  right: -4px;
  z-index: 6;
  padding: 6px 9px;
  background: var(--yellow);
  font-size: 8px;
  transform: rotate(8deg);
}

.facts {
  border-top: 3px solid var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px solid rgba(11, 11, 11, 0.3);
}

.fact dt {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.fact dd {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.quote-sticker {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--cream);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(13px, 2.2vw, 18px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ---------- projects ---------- */

.projects {
  display: grid;
  gap: 24px;
}

.projects__copy .section-title {
  margin-bottom: 10px;
  color: var(--cream);
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.82;
}

.sticker--soon {
  margin: 6px 0 18px;
  padding: 10px 18px;
  background: var(--yellow);
  font-size: clamp(13px, 2.4vw, 20px);
  transform: rotate(-4deg);
  box-shadow: 5px 5px 0 rgba(255, 247, 230, 0.25);
}

.projects__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 247, 230, 0.5);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.projects__scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.sign {
  position: relative;
  z-index: 3;
  width: min(100%, 340px);
  transform: rotate(2deg);
}

.sign__board {
  position: relative;
  padding: 18px 18px 20px;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(255, 247, 230, 0.18);
}

.sign__small {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.sign__board strong {
  display: block;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.sign__arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 26px;
  font-weight: 700;
  transform: rotate(-8deg);
}

.sign__post {
  display: block;
  width: 14px;
  height: 46px;
  margin-inline: auto;
  background: var(--ink);
  border: 3px solid var(--cream);
  border-top: 0;
}

.tumbleweed {
  position: absolute;
  bottom: 24px;
  left: 12%;
  z-index: 2;
  width: 170px;
  height: 170px;
  pointer-events: none;
}

.tumbleweed__ball {
  position: relative;
  width: 100%;
  height: 100%;
  animation: tumble-spin 2.8s linear infinite;
}

.tumbleweed__scribble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--cream);
  opacity: 0.85;
}

.tumbleweed__head {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-8deg);
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.5));
}

.js .tumbleweed {
  left: 0;
  animation: tumble-roll 16s linear infinite;
  animation-play-state: paused;
}

.js .tumbleweed__ball {
  animation-play-state: paused;
}

#projects.is-visible .tumbleweed,
#projects.is-visible .tumbleweed__ball {
  animation-play-state: running;
}

.dust {
  position: absolute;
  bottom: 8px;
  left: 24px;
  width: 10px;
  height: 10px;
  background: var(--cream);
  border-radius: 50%;
  opacity: 0;
}

.dust--2 {
  left: 60px;
  width: 7px;
  height: 7px;
}

.dust--3 {
  left: 96px;
  width: 5px;
  height: 5px;
}

.js #projects.is-visible .dust {
  animation: dust-puff 16s infinite;
}

.js #projects.is-visible .sign {
  animation: sign-wobble 16s ease-in-out infinite;
}

.js #projects.is-visible .dust--2 {
  animation-delay: 0.2s;
}

.js #projects.is-visible .dust--3 {
  animation-delay: 0.4s;
}

/* ---------- team ---------- */

.team-grid {
  display: grid;
  gap: 14px;
}

.head-card {
  position: relative;
  padding: 16px;
  overflow: hidden;
  background: var(--cream);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.head-card__stage {
  position: relative;
  height: 260px;
  margin-bottom: 12px;
}

.head-card__halo {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 168px;
  height: 168px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  transform: translateX(-50%);
}

.head-card__halo--pink {
  background: var(--pink);
}

.head-card__halo--blue {
  background: var(--blue);
}

.head-card__halo--yellow {
  background: var(--yellow);
}

.head-card__num {
  position: absolute;
  top: 0;
  right: 2px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  opacity: 0.1;
}

.head-card__bubble {
  position: absolute;
  top: 4px;
  left: 0;
  z-index: 5;
  max-width: 112px;
  padding: 6px 8px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 12px 12px 12px 2px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-3deg);
}

.head-card__icon {
  position: absolute;
  top: 6px;
  right: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
}

.head-card__icon svg {
  width: 17px;
  height: 17px;
}

.head-card__body {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 200px;
  color: var(--ink);
  overflow: visible;
  transform: translateX(-50%);
}

.head-card__head-wrap {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 140px;
  transform: translateX(-50%);
}

.head-card__head {
  width: 100%;
  height: auto;
}

.js .head-card__head-wrap {
  animation: head-bob 5s ease-in-out infinite;
}

.head-card:nth-child(2) .head-card__head-wrap {
  animation-delay: -1.4s;
}

.head-card:nth-child(3) .head-card__head-wrap {
  animation-delay: -2.8s;
}

.head-card:hover .head-card__head-wrap {
  animation: none;
  transform: translateX(-50%) rotate(-3deg);
}

.head-card__info {
  position: relative;
  z-index: 4;
}

.head-card__role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.head-card__desc {
  margin: 6px 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.head-card--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 26px 18px;
  background: rgba(255, 247, 230, 0.45);
  border-style: dashed;
  box-shadow: none;
  text-align: center;
}

.head-card__question {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  background: var(--cream);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.head-card--cta h3 {
  margin: 6px 0 8px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.head-card--cta .head-card__desc {
  max-width: 30ch;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}

.footer__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(40px, 6vw, 80px);
}

.footer__top {
  max-width: 820px;
}

.footer__top h2 {
  margin: 12px 0 16px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.footer__top p:not(.eyebrow) {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream-70);
}

.footer__doors {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.footer-door {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  grid-template-areas:
    'num title arrow'
    'num desc arrow';
  align-items: center;
  gap: 1px 10px;
  padding: 12px 14px;
  background: transparent;
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 16px;
  font: inherit;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.footer-door:hover {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--cream);
  transform: translate(-2px, -2px);
}

.footer-door span {
  grid-area: num;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.5;
}

.footer-door strong {
  grid-area: title;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.footer-door em {
  grid-area: desc;
  overflow: hidden;
  font-size: 10px;
  font-style: normal;
  opacity: 0.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-door b {
  grid-area: arrow;
  justify-self: end;
  font-size: 18px;
  font-weight: 400;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 30px 0 24px;
  padding-top: 20px;
  border-top: 2px solid var(--cream-20);
}

.footer__email {
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(14px, 2.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.footer__email:hover {
  color: var(--yellow);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__socials a {
  text-decoration: none;
}

.footer__socials a:hover {
  color: var(--yellow);
}

.footer__legal {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.footer__legal a {
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--cream);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--cream-20);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 247, 230, 0.45);
}

.footer__head {
  position: absolute;
  right: -20px;
  bottom: -70px;
  z-index: 1;
  display: none;
  width: 220px;
  height: auto;
  opacity: 0.95;
  transform: rotate(7deg);
  pointer-events: none;
}

/* ---------- dialogs ---------- */

.dialog {
  position: fixed;
  inset: 0;
  width: min(92vw, 620px);
  max-height: min(88dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.25);
}

.dialog::backdrop {
  background: rgba(11, 11, 11, 0.62);
}

.dialog[open] {
  animation: dialog-in 0.25s var(--ease-out) both;
}

.dialog__inner {
  position: relative;
  padding: clamp(22px, 4vw, 38px);
}

.dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 26px;
  line-height: 1;
}

.dialog__close:hover {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.dialog .eyebrow {
  color: var(--ink-55);
}

.dialog__title {
  margin: 10px 40px 14px 0;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.dialog__lede {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-70);
}

.dialog__note {
  margin-top: 16px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--ink-55);
}

.service-list {
  margin: 20px 0;
  border-top: 2px solid var(--ink);
}

.service {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 2px solid rgba(11, 11, 11, 0.18);
}

.service__num {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.45;
}

.service__body h3 {
  margin-bottom: 4px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.service__body p {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-70);
}

.service__meta {
  grid-column: 2;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.contact-grid {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 11px 14px;
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
}

.contact-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.contact-btn span {
  font-size: 15px;
}

.access-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.access-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--white);
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.access-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.access-card__price {
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.access-card__price span {
  font-family: 'Onest', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.access-card__soon {
  padding: 4px 7px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--pink {
  background: var(--pink);
  color: var(--ink);
}

.access-card h3 {
  margin-bottom: 6px;
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.access-card > p {
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-70);
}

.check-list--small li {
  font-size: 10px;
}

.access-card .btn {
  margin-top: auto;
}

.access-card .check-list {
  margin-bottom: 14px;
}

.dialog-product {
  display: grid;
  gap: 20px;
}

.dialog-book {
  position: relative;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 0.72;
  margin-inline: auto;
  overflow: hidden;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 3px 8px 8px 3px;
  box-shadow: 6px 6px 0 rgba(11, 11, 11, 0.3);
  transform: rotate(-3deg);
}

.dialog-book .book__front {
  padding: 12px 10px 10px 15px;
}

.dialog-book .book__brand {
  font-size: 6px;
}

.dialog-book .book__sun {
  width: 54px;
  height: 54px;
  margin: 18px 0 10px;
}

.dialog-book .book__title {
  font-size: 13px;
}

.dialog-book .book__sub {
  font-size: 6px;
}

.dialog-book .book__bottom {
  font-size: 5.5px;
}

.chapter-list {
  margin: 16px 0;
  border-top: 2px solid var(--ink);
}

.chapter-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.18);
  font-size: 12px;
  line-height: 1.3;
}

.chapter-list li span {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.45;
}

.dialog-product__meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-70);
}

.dialog-product__meta span {
  margin: 0 3px;
  opacity: 0.5;
}

.dialog-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dialog--menu {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  background: var(--yellow);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: clamp(24px, 5vw, 56px);
}

.menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(30px, 8vh, 80px);
  border-top: 3px solid var(--ink);
}

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 3px solid var(--ink);
  font-family: 'Unbounded', 'Arial Black', sans-serif;
  font-size: clamp(2.2rem, 9vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.menu__nav a span {
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.45;
}

.menu__nav a:hover {
  color: var(--pink);
}

.menu__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 13px;
}

.dialog__close--menu {
  top: max(14px, env(safe-area-inset-top));
  right: var(--gutter);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  background: var(--ink);
  color: var(--cream);
  border: 3px solid var(--cream);
  border-radius: 16px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes spider-drop {
  from {
    transform: translateY(-130%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes spider-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
}

@keyframes thread-grow {
  from {
    transform: translateX(-50%) scaleY(0);
  }
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sticker-pop {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(9deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(8deg);
  }
}

@keyframes spark-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.15) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes head-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 255, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(198, 255, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 255, 74, 0);
  }
}

@keyframes tumble-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tumble-roll {
  0% {
    transform: translateX(-60px) translateY(0);
  }
  48% {
    transform: translateX(46vw) translateY(-12px);
  }
  100% {
    transform: translateX(calc(100vw + 220px)) translateY(0);
  }
}

@keyframes sign-wobble {
  0%,
  54%,
  100% {
    transform: rotate(2deg);
  }
  58% {
    transform: rotate(5deg);
  }
  61% {
    transform: rotate(0deg);
  }
  64% {
    transform: rotate(3deg);
  }
}

@keyframes dust-puff {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.4) translateY(0);
  }
  15% {
    opacity: 0.5;
  }
  30% {
    opacity: 0;
    transform: scale(1.5) translateY(-18px);
  }
  100% {
    opacity: 0;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- tablet ---------- */

@media (min-width: 560px) {
  .product-card__actions {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .access-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-product {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
  }

  .dialog-book {
    margin-inline: 0;
  }
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__doors {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (min-width: 720px) {
  .scene-switcher {
    flex-wrap: nowrap;
  }

  .scene-switcher__label {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .waitlist {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .waitlist-form__row {
    flex-direction: row;
  }

  .waitlist-form .btn {
    width: auto;
    flex: 0 0 auto;
  }

  .footer__contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__socials {
    justify-content: flex-end;
  }
}

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .header__nav {
    display: flex;
  }

  .header__hire-full {
    display: inline;
  }

  .header__hire-short {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 32px;
  }

  .hero__scene {
    order: 2;
    height: min(64vh, 560px);
  }

  .hero__copy {
    order: 1;
    max-width: 700px;
  }

  .hero__title {
    font-size: clamp(3.3rem, 5.05vw, 5.6rem);
  }

  .product-stage {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
  }

  .scene-stage {
    min-height: 470px;
  }

  .vending {
    width: min(100%, 380px);
  }

  .vending__glass {
    height: 235px;
  }

  .vending__head {
    top: 8px;
    width: 150px;
  }

  .product-card__main {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }

  .about {
    grid-template-columns: 0.95fr 1.05fr;
    grid-template-areas:
      'scene intro'
      'scene details';
    gap: 24px 56px;
    align-items: start;
  }

  .about__intro {
    grid-area: intro;
  }

  .about__scene {
    grid-area: scene;
  }

  .about__details {
    grid-area: details;
  }

  .projects {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
  }

  .projects__scene {
    min-height: 380px;
  }

  .footer__inner {
    padding-bottom: 16px;
  }
}

@media (min-width: 1200px) {
  .footer__head {
    right: -10px;
    bottom: -56px;
    display: block;
    width: 200px;
  }

  .footer__inner {
    padding-right: 210px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .spider {
    width: 250px;
  }

  .spider__legs {
    left: -35%;
    width: 170%;
  }
}

@media (min-width: 1060px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .doors {
    grid-template-columns: repeat(3, 1fr);
  }

  .door {
    flex-direction: column;
    align-items: flex-start;
    min-height: 150px;
    padding: 14px;
  }

  .door__num {
    align-self: flex-start;
    margin-top: 0;
  }

  .door__text {
    margin-top: auto;
  }

  .door__arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
  }
}

/* ---------- small mobile dialogs ---------- */

@media (max-width: 719px) {
  .dialog {
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .dialog__inner {
    padding-bottom: calc(clamp(22px, 4vw, 38px) + env(safe-area-inset-bottom));
  }

  .menu__inner {
    padding-bottom: calc(clamp(24px, 5vw, 56px) + env(safe-area-inset-bottom));
  }

  .dialog--menu {
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .dialog__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 359px) {
  .section-title {
    font-size: 1.7rem;
  }

  .projects__copy .section-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 899px) {
  .spider__legs {
    top: -12%;
  }

  .spider__leg--bottom {
    display: none;
  }

  .header__nav {
    display: none;
  }

  .header__hire-full {
    display: none;
  }

  .header__hire-short {
    display: inline;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .marquee__track {
    animation: none !important;
  }

  .js .tumbleweed,
  .js .tumbleweed__ball,
  .tumbleweed,
  .tumbleweed__ball {
    animation: none !important;
  }

  .tumbleweed,
  .js .tumbleweed {
    left: 30%;
    transform: translateX(-50%);
  }

  .tumbleweed__ball {
    transform: none;
  }

  .dust {
    display: none;
  }
}
