/* ============================================================
   Mad Hatter Doughnuts — dark Wonderland theme
   One continuous fall: a deep void, a few deliberately placed
   glowing objects, mouse + scroll parallax. No cream, no clutter.
   ============================================================ */

:root {
  --void: #0f0716;
  --void-deep: #0a0410;
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(239, 230, 247, 0.14);
  --text: #efe6f7;
  --text-soft: #b9a8cc;
  --ink: #48215a;            /* brand purple */
  --raspberry: #e54b8c;
  --pink: #ff5ecf;
  --teal: #2bb3a3;
  --neon-teal: #4dffd2;
  --gold: #f4b942;
  --lilac: #9b7ede;
  --radius: 22px;
  --font-display: "Fredoka", sans-serif;
  --font-mad: "Fredoka", sans-serif;   /* the logo carries the mad lettering */
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* nebula glow, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(38vmax 30vmax at 80% 8%, rgba(155, 126, 222, 0.18), transparent 70%),
    radial-gradient(34vmax 28vmax at 10% 40%, rgba(229, 75, 140, 0.10), transparent 70%),
    radial-gradient(40vmax 32vmax at 72% 85%, rgba(43, 179, 163, 0.09), transparent 70%);
}

/* sparse starfield */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 150px 110px, rgba(239,230,247,0.55), transparent),
    radial-gradient(2px 2px at 260px 200px, rgba(244,185,66,0.6), transparent),
    radial-gradient(1px 1px at 360px 60px, rgba(255,255,255,0.4), transparent);
  background-size: 420px 360px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.5; } to { opacity: 0.95; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }

a { color: var(--pink); }

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 7, 22, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.brand img { width: 60px; height: 60px; object-fit: contain; transition: transform 0.3s ease; margin: -4px 0; }
.brand:hover img:not(.brand-wordmark) { transform: rotate(-12deg); }
/* the exact logo lettering, extracted from the vector artwork — oversized,
   nearly filling the bar */
.brand img.brand-wordmark { width: auto; height: 56px; margin: -10px 0; }
@media (max-width: 900px) {
  .brand img { width: 42px; height: 42px; }
  .brand img.brand-wordmark { height: 36px; max-width: 54vw; object-fit: contain; }
}

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--neon-teal), var(--lilac), var(--pink));
  background-size: 300% 100%;
  animation: hue-slide 4s linear infinite;
  transition: right 0.25s ease;
}

.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { right: 0; }
.site-nav a:not(.btn)[aria-current="page"],
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}

.toggle-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: transparent;
  border: 2px solid rgba(239, 230, 247, 0.28);
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 42px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.toggle-btn:hover { border-color: var(--neon-teal); color: var(--text); }
/* motion paused = unmissable */
.motion-toggle[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
}
.nav-toggles { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(255, 94, 207, 0.3); }

.btn-primary { background: var(--raspberry); color: #fff; }
.btn-primary:hover { background: var(--pink); }
.btn-secondary { background: var(--teal); color: var(--void); }
.btn-secondary:hover { box-shadow: 0 0 26px rgba(77, 255, 210, 0.3); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2.5px rgba(239, 230, 247, 0.6); }

/* ---------- Scroll progress + reveal ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 100;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--neon-teal));
}

.reveal {
  opacity: 0;
  translate: 0 42px;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1), translate 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Hero ---------- */

.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* asymmetric padding floats the lockup higher — less dead headroom */
  padding: 40px 0 150px;
}

/* neon OPEN sign — appears only during business hours, in the existing gap */
.open-sign {
  display: none;
  position: absolute;
  top: clamp(88px, 12vh, 150px);
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-teal);
  border: 2.5px solid var(--neon-teal);
  border-radius: 14px;
  padding: 8px 22px;
  text-shadow: 0 0 6px var(--neon-teal), 0 0 16px rgba(77, 255, 210, 0.5);
  box-shadow: 0 0 12px rgba(77, 255, 210, 0.4), inset 0 0 10px rgba(77, 255, 210, 0.22);
  animation: sign-flicker 7s linear infinite;
}
.open-sign.on { display: inline-block; }
@keyframes sign-flicker {
  0%, 100% { opacity: 1; }
  4% { opacity: 0.5; }
  6% { opacity: 1; }
  52% { opacity: 1; }
  53% { opacity: 0.65; }
  55% { opacity: 1; }
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  width: clamp(340px, 52vw, 680px);
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(255, 94, 207, 0.28))
          drop-shadow(0 0 46px rgba(155, 126, 222, 0.35));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--line);
  color: var(--text-soft);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-center h1 {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 22px;
  text-wrap: balance;
}
.tilt-word { display: inline-block; transform: rotate(-2.5deg); }
.tilt-word-2 { display: inline-block; transform: rotate(2deg); }
.tilt-word,
.tilt-word-2 {
  background: linear-gradient(90deg, var(--pink), var(--lilac), var(--neon-teal), var(--gold), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-slide 12s linear infinite;
}
@keyframes hue-slide { to { background-position: 300% 0; } }

.hero-center p.lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 54ch;
  margin: 0 auto 32px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.parallax-field {
  position: absolute;
  inset: -10% 0;
  z-index: 1;
  pointer-events: none;
}
.floaty {
  position: absolute;
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(255, 94, 207, 0.25));
}
.floaty.blurred { filter: blur(3px) drop-shadow(0 0 10px rgba(77, 255, 210, 0.25)); opacity: 0.7; }

/* ---------- The vortex ---------- */

.rabbit-hole {
  position: relative;
  padding: 150px 24px;
  overflow: hidden;
}

/* the op-art wormhole canvas, drawn by js/vortex.js.
   The elliptical mask melts every edge into the void — no hard cutoffs. */
.vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  -webkit-mask-image: radial-gradient(130% 68% at 50% 50%, black 36%, transparent 68%);
  mask-image: radial-gradient(130% 68% at 50% 50%, black 36%, transparent 68%);
}

/* The headline breaks the border between hero and vortex — it starts up in
   the hero's empty lower space and falls into the hole (slight scroll lag
   via data-depth on the wrapper). */
.vortex-title-wrap {
  position: relative;
  z-index: 3;
  /* negative top margin climbs into the hero, negative bottom margin lets
     the vortex rise up underneath — the headline straddles both */
  margin: clamp(-210px, -11vw, -70px) auto clamp(-170px, -9vw, -50px);
  padding: 0 16px;
  will-change: transform;
}
.vortex-title {
  text-align: center;
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 1.04;
  color: var(--gold);
  margin: 0 auto;
  max-width: 14ch;
  text-wrap: balance;
  transform: rotate(-2.5deg) skewY(-1deg);
  text-shadow: 0 2px 20px rgba(15, 7, 22, 0.95), 0 0 44px rgba(15, 7, 22, 0.8);
}

.rabbit-hole .hole-panel {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 0 auto 130px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center,
    rgba(15, 7, 22, 0.85), rgba(15, 7, 22, 0.45) 70%, rgba(15, 7, 22, 0));
}
.rabbit-hole .hole-panel:last-child { margin-bottom: 0; }
.rabbit-hole .hole-panel:nth-child(odd) { margin-left: max(8vw, 24px); text-align: left; }
.rabbit-hole .hole-panel:nth-child(even) { margin-right: max(8vw, 24px); margin-left: auto; text-align: right; }
.rabbit-hole h2 {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 12px;
  color: var(--gold);
}
.rabbit-hole p { color: var(--text-soft); font-size: 1.12rem; }
.rabbit-hole .hole-deco {
  position: absolute;
  z-index: 1;
  will-change: transform;
  filter: drop-shadow(0 0 12px rgba(155, 126, 222, 0.3));
}
.neon-pink {
  filter: drop-shadow(0 0 5px var(--pink)) drop-shadow(0 0 18px rgba(255, 94, 207, 0.45));
}
.neon-teal {
  filter: drop-shadow(0 0 5px var(--neon-teal)) drop-shadow(0 0 16px rgba(77, 255, 210, 0.5));
}
.rabbit-hole .hole-deco.big-doughnut {
  filter: drop-shadow(0 18px 44px rgba(15, 7, 22, 0.8)) drop-shadow(0 0 30px rgba(255, 94, 207, 0.22));
}

/* Neon Cheshire cat */
.cheshire {
  position: absolute;
  right: 5%;
  top: 34%;
  width: min(340px, 38vw);
  z-index: 1;
  animation: cheshire-fade 11s ease-in-out infinite;
}
.cheshire .ch-eyes path {
  fill: none;
  stroke: var(--neon-teal);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--neon-teal)) drop-shadow(0 0 16px rgba(77, 255, 210, 0.5));
}
.cheshire .ch-grin path {
  fill: none;
  stroke: var(--pink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px var(--pink)) drop-shadow(0 0 18px rgba(255, 94, 207, 0.45));
}
@keyframes cheshire-fade {
  0%, 100% { opacity: 0.15; }
  45%, 62% { opacity: 1; }
}
@media (max-width: 820px) {
  .cheshire { position: static; width: min(190px, 48vw); margin: 0 auto 70px; display: block; }
  .hero-badge { width: min(86vw, 460px); }
  .hero-full { padding: 24px 0 120px; }
}

/* ---------- Sections ---------- */

.section { padding: 90px 0; position: relative; }
.section-alt { background: rgba(255, 255, 255, 0.03); }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 10px;
}
.section-head p { color: var(--text-soft); font-size: 1.1rem; }

.suits {
  font-size: 1.7rem;
  letter-spacing: 0.6em;
  color: var(--pink);
  margin-bottom: 10px;
  text-shadow: 0 0 6px var(--pink), 0 0 20px rgba(255, 94, 207, 0.5);
}
.suits .s-alt,
.footer-suits .s-alt {
  color: var(--neon-teal);
  text-shadow: 0 0 6px var(--neon-teal), 0 0 20px rgba(77, 255, 210, 0.5);
}

/* ---------- Menu grid ---------- */

.menu-section { margin-bottom: 72px; }

.menu-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  margin-bottom: 6px;
}

.badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--lilac);
  padding: 5px 12px;
  border-radius: 999px;
  transform: rotate(2deg);
}
.badge.badge-teal { background: var(--neon-teal); }
.badge.badge-gold { background: var(--gold); }

.menu-section-blurb { color: var(--text-soft); max-width: 70ch; margin-bottom: 28px; }

.menu-group { margin-bottom: 40px; }

.menu-group-title {
  font-size: 1.05rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-group-title::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.menu-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* clickable cards (homepage teaser) keep card styling, not link styling */
a.menu-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.menu-card h4 { color: var(--text); }

/* anchored menu sections land just below the sticky header */
.menu-section { scroll-margin-top: 90px; }

/* the progress-bar rainbow, circling the card on hover */
@property --card-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@media (hover: hover) {
  .menu-card:hover {
    transform: translateY(-6px);
    border: 1.5px solid transparent;
    background:
      linear-gradient(#1c1322, #1c1322) padding-box,
      conic-gradient(from var(--card-angle),
        var(--pink), var(--gold), var(--neon-teal), var(--lilac), var(--pink)) border-box;
    animation: card-rainbow 3s linear infinite;
    box-shadow: 0 0 26px rgba(255, 94, 207, 0.16);
  }
}
/* touch screens have no hover: scroll.js adds .card-glow to cards
   passing the middle of the viewport */
.menu-card.card-glow {
  transform: translateY(-6px);
  border: 1.5px solid transparent;
  background:
    linear-gradient(#1c1322, #1c1322) padding-box,
    conic-gradient(from var(--card-angle),
      var(--pink), var(--gold), var(--neon-teal), var(--lilac), var(--pink)) border-box;
  animation: card-rainbow 3s linear infinite;
  box-shadow: 0 0 26px rgba(255, 94, 207, 0.16);
}
@keyframes card-rainbow {
  to { --card-angle: 360deg; }
}

.menu-card .card-art {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

.menu-card h4 { font-size: 1.08rem; margin-bottom: 4px; }
.menu-card p { font-size: 0.86rem; color: var(--text-soft); }

.menu-card .price {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  color: var(--neon-teal);
}

.teaser-cta { text-align: center; margin-top: 44px; }

.section-brand { display: block; height: 72px; width: auto; margin: 2px auto 14px; }

/* ---------- Gunther's pride panel ---------- */

.gunthers-band { padding: 90px 24px; }
.gunthers-band > div {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 36px;
  box-shadow: 0 0 44px rgba(155, 126, 222, 0.14);
}
.gunthers-band .gb-kicker {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 18px;
}
.gunthers-band img {
  width: clamp(230px, 34vw, 360px);
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 18px rgba(239, 230, 247, 0.18));
}
.gunthers-band .gb-copy {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 auto 28px;
}
.gunthers-band .btn-gunthers { background: var(--gold); color: var(--void); }

/* ---------- Quote band ---------- */

.quote-band {
  text-align: center;
  padding: 90px 24px;
}
.quote-band blockquote {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  max-width: 30ch;
  margin: 0 auto 10px;
}
.quote-band blockquote .mad { color: var(--gold); display: inline-block; transform: rotate(-3deg); }
.quote-band cite { color: var(--lilac); font-style: normal; font-weight: 700; }

/* ---------- Info / contact ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  align-items: start;
}

.info-card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.info-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--text); }
.info-card p, .info-card li { color: var(--text-soft); }
.info-card ul { list-style: none; }
.info-card li { padding: 4px 0; }
.info-card a { font-weight: 700; }

.map-frame {
  border: 1.5px solid var(--line);
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  filter: saturate(0.85);
}

/* ---------- Story page ---------- */

.story .wrap { max-width: 760px; }
.story p { font-size: 1.12rem; color: var(--text-soft); margin-bottom: 22px; }
.story .drop::first-letter {
  font-family: var(--font-mad);
  font-size: 3em;
  float: left;
  line-height: 0.9;
  padding-right: 10px;
  color: var(--pink);
}

.timeline { list-style: none; margin: 36px 0; }
.timeline li {
  position: relative;
  padding: 0 0 28px 36px;
  border-left: 3px dashed rgba(239, 230, 247, 0.2);
  margin-left: 10px;
}
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -12px; top: 2px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--void);
  box-shadow: 0 0 0 3px var(--gold);
}
.timeline h3 { font-size: 1.2rem; color: var(--text); }
.timeline .year { color: var(--pink); font-weight: 800; }

/* the Nana dedication card: the rainbow circles her box, always */
.dedication {
  margin: 52px auto;
  max-width: 620px;
  text-align: center;
  padding: 42px 34px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(#1c1322, #1c1322) padding-box,
    conic-gradient(from var(--card-angle),
      var(--pink), var(--gold), var(--neon-teal), var(--lilac), var(--pink)) border-box;
  animation: card-rainbow 6s linear infinite;
  box-shadow: 0 0 34px rgba(255, 94, 207, 0.14), 0 0 60px rgba(244, 185, 66, 0.08);
}
.dedication .suits { font-size: 1.7rem; margin-bottom: 8px; }
.dedication h3 {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--gold);
  margin-bottom: 14px;
}
.dedication p { color: var(--text-soft); font-size: 1.08rem; }
.dedication .ded-quote {
  margin-top: 18px;
  font-style: italic;
  color: var(--pink);
  text-shadow: 0 0 10px rgba(255, 94, 207, 0.35);
}

.tenniel { margin: 36px 0; text-align: center; }
.tenniel img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  box-shadow: 0 0 36px rgba(155, 126, 222, 0.2);
  transform: rotate(-1deg);
}
.tenniel figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--void-deep);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  padding: 22px 0 32px;
}

.footer-top { text-align: center; margin-bottom: 22px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

.site-footer h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }

.footer-logo { width: 92px; margin: 0 auto; }

.footer-suits {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.8em;
  color: var(--pink);
  margin-bottom: 16px;
  text-shadow: 0 0 6px var(--pink), 0 0 20px rgba(255, 94, 207, 0.5);
}

.footer-bottom {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(239, 230, 247, 0.45);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  text-align: center;
  padding: 64px 24px 56px;
}
.page-hero h1 {
  font-family: var(--font-mad);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 10px;
}
.page-hero p { color: var(--text-soft); font-size: 1.15rem; max-width: 56ch; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  /* phones: fewer, calmer floaters and tighter vortex pacing */
  .floaty.blurred { display: none; }
  .vortex-title-wrap { margin: -54px auto -30px; }
  .rabbit-hole { padding: 110px 20px; }
  .rabbit-hole .hole-panel { margin-bottom: 90px; padding: 22px 20px; }
  .gunthers-band > div { padding: 40px 22px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #160a1e;
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .rabbit-hole .hole-panel:nth-child(odd),
  .rabbit-hole .hole-panel:nth-child(even) {
    margin-left: auto; margin-right: auto; text-align: center;
  }
}

/* ---------- Reduced motion + the ❚❚ toggle ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after { animation: none; }
  .scroll-cue, .cheshire,
  .hero-center h1 .tilt-word,
  .hero-center h1 .tilt-word-2 { animation: none; }
  .cheshire { opacity: 1; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

html.no-motion *,
html.no-motion *::before,
html.no-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.no-motion .reveal { opacity: 1 !important; translate: 0 0 !important; }
html.no-motion .floaty,
html.no-motion .hole-deco,
html.no-motion .vortex { transform: none !important; }
html.no-motion .cheshire { opacity: 1 !important; }
