/* ===========================================================================
   Wi-Pie — landing page
   Layout: header / hero (parallax scene) / strip / menu / find / book / list
   =========================================================================== */

/* --- tokens -------------------------------------------------------------- */
:root {
  --ink:        #080c16;
  --ink-2:      #0d1322;
  --ink-3:      #131b2e;
  --line:       rgba(255,255,255,.10);
  --line-2:     rgba(255,255,255,.16);

  --paper:      #f4f1e8;
  --text:       #e9e6de;
  --text-dim:   #9aa3b6;

  --ember:      #ff8a3d;
  --gold:       #ffc857;
  --tomato:     #d64545;
  --basil:      #7fbf5a;

  --wrap:       1180px;
  --r:          14px;
  --r-lg:       22px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --display: "Georgia", "Iowan Old Style", "Times New Roman", serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

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

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

.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: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #1a1206; padding: .6rem 1rem;
  border-radius: 8px; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }

.wrap--split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .wrap--split { grid-template-columns: 1fr 1fr; align-items: center; }
  .wrap--split-rev > *:first-child { order: 0; }
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit; font-weight: 650; font-size: .98rem;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .25s var(--ease), color .18s;
}
.btn:hover { transform: translateY(-2px); color: var(--text); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(180deg, var(--gold), var(--ember));
  border-color: transparent;
  color: #24160a;
  box-shadow: 0 6px 24px -8px rgba(255,138,61,.7);
}
.btn--primary:hover { color: #24160a; box-shadow: 0 12px 32px -10px rgba(255,138,61,.85); }

.btn--ghost { background: rgba(255,255,255,.05); }
.btn--ghost:hover { border-color: var(--gold); }
/* only worth the compositing cost where there is a scene behind it */
.hero .btn--ghost { backdrop-filter: blur(6px); }

.btn--sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* --- nav ----------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1.3rem, 4vw, 2.4rem);
  transition: background .3s var(--ease), backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8,12,22,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav__brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.nav__mark { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.nav__word { font-family: var(--display); font-size: 1.32rem; font-weight: 700; letter-spacing: .01em; }

.nav__links { display: none; gap: 1.9rem; font-size: .96rem; }
@media (min-width: 860px) { .nav__links { display: flex; } }
.nav__links a { position: relative; color: var(--text-dim); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px;
  background: var(--gold); transition: right .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }

.nav__cta { display: none; }
@media (min-width: 860px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: grid; gap: 5px; place-content: center;
  width: 42px; height: 42px; padding: 0;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
}
.nav__toggle span { display: block; width: 18px; height: 1.8px; background: var(--text); transition: .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }
@media (min-width: 860px) { .nav__toggle { display: none; } }

.drawer {
  position: fixed; inset: 68px 0 auto 0; z-index: 99;
  background: rgba(8,12,22,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.3rem, 4vw, 2.4rem) 1.6rem;
}
.drawer nav { display: grid; gap: .3rem; }
.drawer a { padding: .8rem .2rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

/* -- layered illustrated scene -- */
.scene { position: absolute; inset: 0; z-index: 0; }

.scene__layer {
  position: absolute;
  /* oversized so parallax translation never exposes an edge */
  inset: -12%;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scene__sky {
  background:
    radial-gradient(120% 80% at 50% 92%, rgba(255,138,61,.24) 0%, rgba(255,138,61,0) 55%),
    radial-gradient(90% 70% at 78% 12%,  rgba(86,110,190,.30) 0%, rgba(86,110,190,0) 60%),
    linear-gradient(180deg, #060913 0%, #0d1428 42%, #1b2140 72%, #2c2a44 100%);
}

/* the truck and the string lights are placed with CSS, not inside a full-bleed
   viewBox, so they hold their size and their corner at every screen width */
/* NB: the layer these sit in is inset -12%, so it overhangs the hero on every
   side. The percentages below are of that oversized box, which is why "right"
   has to clear ~12% before the truck is even on screen. */
.truck {
  position: absolute;
  right: 14%;
  bottom: 20%;
  width: clamp(250px, 26%, 420px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

.lights {
  position: absolute;
  left: 30%; right: 4%;
  top: 24%;
  width: auto; height: auto;
}

/* Narrow screens: the truck centres and drops to the floor, and the copy lifts
   off it, so the two never share the same band. */
@media (max-width: 900px) {
  .truck { right: 50%; transform: translateX(50%); bottom: 6%; width: clamp(230px, 58%, 340px); }
  .lights { left: 8%; right: 4%; top: 26%; }
}

.scene__haze {
  background: radial-gradient(60% 40% at 50% 76%, rgba(255,169,86,.22), rgba(255,169,86,0) 70%);
  mix-blend-mode: screen;
}

/* Two jobs: cinematic falloff, and guaranteeing the copy has something dark
   behind it no matter what the scene is doing. */
.scene__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(6,9,19,.7) 0%, rgba(6,9,19,0) 30%, rgba(6,9,19,.25) 62%, rgba(6,9,19,.9) 100%);
}
@media (min-width: 900px) {
  .scene__vignette {
    background:
      linear-gradient(96deg, rgba(6,9,19,.9) 0%, rgba(6,9,19,.72) 28%, rgba(6,9,19,.34) 52%, rgba(6,9,19,0) 70%),
      radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%),
      linear-gradient(180deg, rgba(6,9,19,.7) 0%, rgba(6,9,19,0) 34%, rgba(6,9,19,.75) 100%);
  }
}

/* -- WebGL depth hero -- */
.hero__depth { position: absolute; inset: 0; z-index: 1; }
.hero__depth canvas { width: 100%; height: 100%; display: block; }
.hero__depth::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(6,9,19,.7) 0%, rgba(6,9,19,0) 30%, rgba(6,9,19,.92) 100%);
}

/* -- hero copy -- */
.hero__copy {
  position: relative; z-index: 6;
  width: min(100% - 2.6rem, var(--wrap));
  margin: 0 auto;
  padding-bottom: clamp(6rem, 14vh, 10rem);
  max-width: 47rem;
}
@media (max-width: 900px) {
  .hero__copy { padding-bottom: clamp(11rem, 26vh, 15rem); }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.hero__eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
/* On a phone the two halves take a line each, rather than squeezing into
   two narrow columns; the dot between them goes. */
@media (max-width: 520px) {
  .hero__eyebrow { flex-wrap: wrap; row-gap: .35rem; }
  .hero__eyebrow .dot { display: none; }
}

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 5.9rem);
  line-height: .98;
  margin-bottom: 1.3rem;
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
}
.hero__title span { display: block; }
.hero__title .grad {
  background: linear-gradient(96deg, var(--gold) 0%, var(--ember) 52%, var(--tomato) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  color: #cfd4e0; max-width: 34rem; margin-bottom: 2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__hint {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 6; display: grid; justify-items: center; gap: .6rem;
  color: var(--text-dim); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.hero__hint-text { opacity: .75; }
/* there is no cursor to move on a touch screen, and on a narrow one the hint
   lands on top of the truck */
@media (pointer: coarse) { .hero__hint-text { display: none; } }
@media (max-width: 900px) { .hero__hint { display: none; } }
.hero__scroll {
  width: 22px; height: 34px; border: 1px solid var(--line-2); border-radius: 12px;
  position: relative;
}
.hero__scroll::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  border-radius: 2px; background: var(--gold); transform: translateX(-50%);
  animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translate(-50%, -4px); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ===========================================================================
   STRIP
   =========================================================================== */
.strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.strip__list {
  list-style: none; margin: 0 auto; padding: 2.2rem 1.3rem;
  width: min(100% - 2.6rem, var(--wrap));
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem;
  text-align: center;
}
@media (min-width: 720px) { .strip__list { grid-template-columns: repeat(4, 1fr); } }
.strip__list li { display: grid; gap: .25rem; }
.strip__list strong {
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--gold); font-weight: 700;
}
.strip__list span { font-size: .84rem; color: var(--text-dim); letter-spacing: .04em; }

/* ===========================================================================
   SECTIONS
   =========================================================================== */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) 0; position: relative; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }

.section__head { max-width: 42rem; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

.kicker {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: .8rem;
}
.lede { color: var(--text-dim); font-size: 1.06rem; max-width: 38rem; margin-top: 1rem; }

.fineprint { color: #6f7789; font-size: .84rem; margin-top: 2rem; }

.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--text-dim); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 9px; height: 5px; border: 2px solid var(--basil);
  border-top: 0; border-right: 0; transform: rotate(-45deg);
}

/* --- menu grid ----------------------------------------------------------- */
.menu {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 3px;
  background: linear-gradient(90deg, hsl(var(--hue) 90% 58%), transparent 85%);
  opacity: .85;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.9);
}

.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card__name { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.card__slice { color: var(--gold); font-weight: 700; white-space: nowrap; }
.card__per { color: #7d8598; font-weight: 500; font-size: .82rem; }
.card__blurb { color: var(--text-dim); font-size: .95rem; margin: .7rem 0 1.2rem; }
/* no footer to separate from — the card's own padding is the gap */
.card__blurb--last { margin-bottom: 0; }

.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: .84rem; color: #7d8598;
}

.tag {
  display: inline-block; padding: .18rem .6rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
.tag + .tag { margin-left: .35rem; }

/* --- drinks -------------------------------------------------------------- */
.drinks { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.drinks h3 { margin-bottom: 1.2rem; }
.drinks__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: .55rem 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.drinks__list li {
  display: flex; align-items: baseline; gap: .7rem;
  color: var(--text-dim); font-size: .97rem;
}
.drinks__list .fill { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.18); }
.drinks__list .price { color: var(--gold); font-weight: 650; }

/* prices hidden: a leader line pointing at nothing looks like a bug, so the
   list becomes a plain bulleted set instead */
.drinks__list--plain { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.drinks__list--plain li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: .7; flex: none;
}

/* --- schedule ------------------------------------------------------------ */
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.schedule li {
  display: grid; grid-template-columns: auto 1fr auto; gap: .3rem 1.2rem;
  align-items: center;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255,255,255,.03);
}
.schedule__day { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.schedule__place { grid-column: 2; }
.schedule__area { grid-column: 2; font-size: .86rem; color: var(--text-dim); }
.schedule__time { grid-row: 1 / span 2; grid-column: 3; color: var(--gold); font-size: .92rem; white-space: nowrap; }
.schedule__status {
  grid-column: 1; grid-row: 2; font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}
.schedule li[data-status="tentative"] { border-style: dashed; }
.schedule li[data-status="cancelled"] { opacity: .5; }
.schedule li[data-status="cancelled"] .schedule__place { text-decoration: line-through; }

/* --- forms --------------------------------------------------------------- */
.form {
  display: grid; gap: 1rem;
  padding: clamp(1.4rem, 3.4vw, 2.1rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
}
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.form label { display: grid; gap: .4rem; font-size: .88rem; color: var(--text-dim); }
.form .opt { color: #626a7c; font-size: .8rem; }

input, textarea, select {
  width: 100%;
  padding: .78rem .9rem;
  font: inherit;
  font-size: 16px;                 /* keeps iOS from zooming on focus */
  color: var(--text);
  background: rgba(0,0,0,.28);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
input:hover, textarea:hover { border-color: rgba(255,255,255,.28); }
input:focus, textarea:focus { border-color: var(--gold); background: rgba(0,0,0,.4); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--tomato); }
textarea { resize: vertical; }
::placeholder { color: #5d6478; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: .4rem 0 0; font-size: .9rem; min-height: 1.3em; }
.form__status[data-tone="ok"]   { color: var(--basil); }
.form__status[data-tone="bad"]  { color: var(--tomato); }
.form__status[data-tone="busy"] { color: var(--text-dim); }

/* --- closing CTA --------------------------------------------------------- */
.cta {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(255,138,61,.14), transparent 65%),
    var(--ink-3);
  border-top: 1px solid var(--line);
}
.cta p { color: var(--text-dim); max-width: 34rem; margin-inline: auto; }
.cta h2 { margin-bottom: 1rem; }

.signup {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
  margin: 2rem auto 0; max-width: 30rem;
}
.signup input { flex: 1 1 15rem; }
.signup .btn { flex: 0 0 auto; }
.cta .form__status { text-align: center; }
.cta .fineprint { margin-top: 1.2rem; }

/* --- 404 ----------------------------------------------------------------- */
.oops {
  min-height: 78svh;
  display: grid; align-items: center;
  padding: 8rem 0 4rem;
  text-align: center;
  background: radial-gradient(70% 60% at 50% 30%, rgba(255,138,61,.12), transparent 70%);
}
.oops .wrap { max-width: 34rem; }
.oops h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1rem; }
.oops .lede { margin-inline: auto; }
.oops__art { width: clamp(120px, 26vw, 180px); margin-bottom: 2.4rem; }
.oops__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

/* --- giveaway rules ------------------------------------------------------- */
.rules-page { padding: 8rem 0 4rem; }
.rules-page .wrap { max-width: 44rem; }
.rules-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: .6rem; }
.rules-page h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
.rules-page p, .rules-page li { color: var(--text-dim); }
.rules-page p + p { margin-top: .8rem; }
.rules-page ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.rules-page strong { color: var(--text); }
.rules-page a { color: var(--gold); }
.rules-page .blank { color: var(--ember); font-weight: 600; }

/* --- footer -------------------------------------------------------------- */
.footer { padding: 3.4rem 0 2rem; border-top: 1px solid var(--line); background: var(--ink); }
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.footer__brand { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 0; }
.footer__note, .footer p { color: var(--text-dim); font-size: .93rem; margin: .3rem 0; }
.footer__h { color: var(--text); font-weight: 650; font-size: .82rem;
             letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6rem; }
.footer__legal { text-align: center; color: #5c6376; font-size: .8rem; margin: 2.6rem 0 0; }

/* --- hero scene animations ----------------------------------------------- */
/* Referenced from parallax.js, which applies them to the SVG it generates.
   They live here rather than in an injected <style> so the page needs no
   'unsafe-inline' in style-src. */
@keyframes twinkle { 0%, 100% { opacity: .18; } 50% { opacity: .95; } }

@keyframes bulb { 0%, 100% { opacity: 1; } 45% { opacity: .72; } 70% { opacity: .93; } }

@keyframes steam {
  0%   { opacity: 0; transform: translateY(0) scaleX(1); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px) scaleX(1.6); }
}

@keyframes shoot {
  0%, 92% { opacity: 0; transform: translate(0, 0); }
  93%     { opacity: .9; }
  100%    { opacity: 0; transform: translate(-190px, 130px); }
}

/* --- reveal on scroll ---------------------------------------------------- */
/* Gated on .js (set by an inline script in <head>) so that if scripting is off
   or main.js fails to load, nothing is left invisible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

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