/* Monsterfy — liquorice ground, macaron fields, one bubblegum accent. */
:root {
  --ground: #131211;
  --surface: #1e1c1b;
  --surface-2: #2a2726;
  --ink: #fbf4ee;
  --ink-2: #c7bdb5;
  --accent: #ff8cb5;
  --on-accent: #1a0f14;
  --mint: #a6e9cf;
  --lemon: #ffe07a;
  --pumpkin: #ff7a2f;
  --on-field: #131211;

  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --m: clamp(16px, 2.8vw, 40px);
  --section: clamp(104px, 12vw, 200px);

  --fs-xl: clamp(44px, 7.6vw, 132px);
  --fs-l: clamp(38px, 6vw, 96px);
  --fs-m: clamp(22px, 2.3vw, 32px);
  --fs-body: 18px;
  --fs-s: 15px;

  /* the squishy's slow rebound: quick in, long settle with a little overshoot */
  --rebound: cubic-bezier(0.16, 1.45, 0.3, 1);
  --rise: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

/* ———————————————————— buttons: press squashes, release rebounds slowly ———————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink);
  font: 700 var(--fs-body) / 1 var(--text);
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform 900ms var(--rebound), background-color 160ms, color 160ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: scale(1.03, 0.97); }
.btn:active { transform: scale(1.08, 0.86); transition-duration: 90ms; }
.btn:disabled { background: var(--surface); color: #77706b; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 19px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-s); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ink { background: var(--on-field); color: var(--ink); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }

/* ———————————————————— bar ———————————————————— */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding-inline: var(--m);
  background: var(--ground);
}
.wordmark { font: 400 28px/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.bar-links { display: flex; gap: 28px; margin-left: auto; }
.bar-links a { font-weight: 600; font-size: var(--fs-s); text-decoration: none; color: var(--ink-2); transition: color 160ms; }
.bar-links a:hover { color: var(--ink); }

/* ———————————————————— hero: the tool itself ———————————————————— */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "copy copy copy copy copy copy copy stage stage stage stage stage"
    "tool tool tool tool tool tool tool stage stage stage stage stage";
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  padding-top: clamp(24px, 3vw, 48px);
}
.hero-copy { grid-area: copy; }
.stage-wrap { grid-area: stage; margin: 0; align-self: start; }
.hero-tool { grid-area: tool; padding-top: 40px; }

.hero h1 { font-size: var(--fs-xl); line-height: 0.92; max-width: 9.5em; }
.lede { margin-top: 32px; max-width: 34em; font-size: var(--fs-m); line-height: 1.3; font-weight: 500; }

.stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--mint);
  overflow: hidden;
  transition: background-color 300ms;
}
.stage[data-drag='on'] { background: var(--lemon); }
.stage-wrap figcaption { margin-top: 14px; font-size: var(--fs-s); color: var(--ink-2); }

.squeeze {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.squeeze img {
  width: 86%;
  transform-origin: 50% 89%;
  transition: transform 2200ms var(--rebound);
  pointer-events: none;
}
.squeeze:hover img { transform: scale(1.02, 0.98); transition-duration: 600ms; }
.squeeze.is-pressed img { transform: scale(1.22, 0.66); transition: transform 140ms cubic-bezier(0.3, 0, 0.6, 1); }
.squeeze:focus-visible { outline-offset: -6px; outline-color: var(--on-field); }

.stage-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.stage video.stage-media { object-fit: cover; }
.stage[data-state='working'] #stage-photo { filter: blur(6px) saturate(0.6) brightness(0.8); transform: scale(1.04); }
#stage-photo { transition: filter 800ms, transform 800ms var(--rise); }

.stage-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 12px;
  padding: 20px 24px 24px;
  background: var(--ground);
  font-weight: 700;
}
.progress { display: block; height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--accent); transform-origin: left; transform: scaleX(0.02); transition: transform 900ms linear; }
.sound { position: absolute; top: 16px; right: 16px; }

/* the tool panels */
.panel { display: grid; gap: 28px; max-width: 640px; }
.panel-title { font-size: var(--fs-m); line-height: 1.1; outline: none; }
.upload-row, .go-row, .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hint { font-size: var(--fs-s); color: var(--ink-2); max-width: 30em; }

.choice { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice legend { padding: 0; margin-bottom: 12px; font-weight: 700; }
.option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  transition: background-color 200ms, color 200ms, transform 900ms var(--rebound);
}
.option:active { transform: scale(1.03, 0.94); transition-duration: 90ms; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option img { width: 56px; height: 56px; flex: none; border-radius: 12px; }
.option span { font-size: var(--fs-s); line-height: 1.35; color: var(--ink-2); }
.option strong { display: block; font-size: var(--fs-body); color: var(--ink); }
.option:hover { background: var(--surface-2); }
.option:has(input:checked) { color: var(--on-field); }
.option:has(input:checked) span, .option:has(input:checked) strong { color: var(--on-field); }
.option-mint:has(input:checked) { background: var(--mint); }
.option-lemon:has(input:checked) { background: var(--lemon); }
.option-pumpkin:has(input:checked) { background: var(--pumpkin); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

.status { margin-top: 24px; min-height: 1.55em; font-weight: 600; }
.status.is-error { color: var(--accent); }
.status button { margin-left: 12px; }
#turnstile:not(:empty) { margin-top: 16px; }

/* ———————————————————— shared section head ———————————————————— */
.styles, .videos, .who, .faq { margin-top: var(--section); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
  align-items: end; margin-bottom: clamp(48px, 5vw, 80px);
}
.section-head h2 { grid-column: 1 / 7; font-size: var(--fs-l); line-height: 0.95; }
.statement { grid-column: 7 / 13; font-size: var(--fs-m); line-height: 1.3; font-weight: 500; max-width: 26em; }

/* ———————————————————— styles: two whole fields ———————————————————— */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.field {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 40px;
  padding: clamp(40px, 5vw, 80px) var(--m) clamp(56px, 6vw, 96px);
  color: var(--on-field);
}
.field-mint { background: var(--mint); }
.field-lemon { background: var(--lemon); }
.field > img { width: min(100%, 460px); justify-self: center; }
.field-copy { display: grid; gap: 20px; justify-items: start; max-width: 34em; }
.field h3 { font-size: var(--fs-l); line-height: 0.95; }

/* ———————————————————— videos: loop beside its frames ———————————————————— */
.scene {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px;
  align-items: center;
}
.scene-loop { grid-column: 1 / 7; }
.scene-loop img { width: 100%; }
.scene-copy { grid-column: 8 / 13; display: grid; gap: 24px; }
.scene-flip .scene-copy { grid-column: 1 / 6; grid-row: 1; }
.scene-flip .scene-loop { grid-column: 7 / 13; grid-row: 1; }
.scene h3 { font-size: var(--fs-l); line-height: 0.95; }
.pumpkin-field { margin-top: var(--section); padding-block: clamp(56px, 7vw, 120px); background: var(--pumpkin); color: var(--on-field); }

.film { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.film li { display: grid; gap: 8px; }
.film img { width: 100%; border-radius: 10px; }
.film span { font-size: var(--fs-s); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ———————————————————— who: a list set big ———————————————————— */
.who h2 { font-size: var(--fs-l); line-height: 0.95; margin-bottom: clamp(40px, 5vw, 72px); }
.who-list { margin: 0; display: grid; gap: clamp(36px, 4vw, 56px); }
.who-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: baseline; }
.who-row dt { grid-column: 1 / 8; font: 400 var(--fs-l) / 0.95 var(--display); letter-spacing: -0.02em; }
.who-row dd { grid-column: 8 / 13; margin: 0; }
.tone-mint { color: var(--mint); }
.tone-lemon { color: var(--lemon); }
.tone-pumpkin { color: var(--pumpkin); }

/* ———————————————————— faq ———————————————————— */
.faq h2 { font-size: var(--fs-l); line-height: 0.95; margin-bottom: clamp(40px, 5vw, 72px); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 56px) 32px; }
.qa { display: grid; gap: 12px; align-content: start; max-width: 36em; }
.qa h3 { font-size: var(--fs-m); line-height: 1.1; }

/* ———————————————————— footer: the name, full width ———————————————————— */
.foot { margin-top: var(--section); padding-bottom: 40px; }
.foot-name {
  font: 400 17.4vw / 0.8 var(--display);
  letter-spacing: -0.03em;
  color: var(--accent);
  text-align: center;
  padding-bottom: 0.06em;
  overflow: hidden;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 32px; font-size: var(--fs-s); color: var(--ink-2); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ———————————————————— entrances (only with JS, never hiding content without it) ———————————————————— */
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--rise) var(--d, 0ms), transform 900ms var(--rise) var(--d, 0ms);
}

/* ———————————————————— tablet & phone ———————————————————— */
@media (max-width: 1000px) {
  .bar-links { display: none; }
  .bar-cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage" "tool"; row-gap: 32px; }
  .hero-tool { padding-top: 0; }
  .stage-wrap { max-width: 640px; }
  .section-head { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .section-head h2, .statement { grid-column: 1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .scene, .scene-flip { grid-template-columns: minmax(0, 1fr); }
  .scene-loop, .scene-copy, .scene-flip .scene-copy, .scene-flip .scene-loop { grid-column: 1; grid-row: auto; }
  .scene-flip .scene-loop { grid-row: 1; }
  .scene-loop { max-width: 560px; }
  .who-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .who-row dt, .who-row dd { grid-column: 1; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wordmark { font-size: 24px; }
  .bar { height: 60px; gap: 12px; }
  .lede { margin-top: 20px; }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .btn-lg { width: 100%; }
  .film { gap: 6px; }
  .film img { border-radius: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .js [data-rise] { opacity: 1; transform: none; }
  .squeeze.is-pressed img { transform: scale(1.06, 0.94); }
}

/* ———————————————————— privacy, terms, 404 ———————————————————— */
.doc { max-width: 820px; padding-top: clamp(32px, 5vw, 72px); }
.doc h1 { font-size: var(--fs-l); line-height: 0.95; }
.doc .lede { margin: 28px 0 56px; }
.doc h2 { font-size: var(--fs-m); line-height: 1.1; margin: 48px 0 12px; }
.doc p + p { margin-top: 14px; }
.doc a { color: var(--accent); }
.lost {
  min-height: calc(100vh - 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
}
.lost img { width: 100%; max-width: 440px; justify-self: center; }
.lost h1 { font-size: var(--fs-l); line-height: 0.95; }
.lost .lede { margin: 24px 0 36px; }
@media (max-width: 760px) { .lost { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 24px; } .lost img { max-width: 260px; } }
