:root {
  --void: #07050e;
  --navy: #0b0816;
  --ink: #140c22;
  --cream: #f6efe3;
  --cream-dim: #cfc4b4;
  --magenta: #ff2d9b;
  --hot: #ff4ec8;
  --violet: #b56bff;
  --deep: #3b1460;
  --flame: #e040fb;
  --header: 4.25rem;
  --font-display: "Dela Gothic One", "Chakra Petch", system-ui, sans-serif;
  --font-ui: "Chakra Petch", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--void);
  color: var(--cream);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 45, 155, 0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(90, 20, 140, 0.35), transparent 50%),
    var(--void);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--magenta);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.paw-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.paw-print {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  background: var(--magenta);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='18' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='46' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='12' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='44' rx='14' ry='12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='18' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='46' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='12' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='44' rx='14' ry='12'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: paw-fade 1.6s ease forwards;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--header);
  background: #07050ef2;
  border-bottom: 1px solid rgba(255, 45, 155, 0.18);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 45, 155, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.site-nav a {
  color: var(--cream-dim);
  padding: 0.35rem 0.1rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--cream);
}

.nav-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--magenta);
  color: #fff !important;
  padding: 0.48rem 0.95rem !important;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 45, 155, 0.35);
}

.nav-buy:hover {
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 239, 227, 0.16);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.menu-bars {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.menu-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

body.menu-open .menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-bars span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  padding: 1.5rem 0 3rem;
  overflow: hidden;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wisp {
  position: absolute;
  border-radius: 50% 50% 45% 45%;
  filter: blur(16px);
  opacity: 0.55;
  clip-path: ellipse(42% 52% at 50% 58%);
  animation: wisp 7s ease-in-out infinite;
}

.wisp-a {
  width: 180px;
  height: 280px;
  right: 18%;
  top: 12%;
  background: rgba(255, 45, 155, 0.28);
}

.wisp-b {
  width: 120px;
  height: 200px;
  right: 8%;
  bottom: 18%;
  background: rgba(181, 107, 255, 0.28);
  animation-delay: -2.4s;
}

.wisp-c {
  width: 90px;
  height: 160px;
  left: 8%;
  bottom: 10%;
  background: rgba(224, 64, 251, 0.18);
  animation-delay: -4s;
}

.streak-field {
  position: absolute;
  inset: 12% 0 18% 38%;
  background: repeating-linear-gradient(
    -11deg,
    transparent 0 22px,
    rgba(255, 45, 155, 0.05) 22px 24px
  );
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 75%, transparent);
  animation: streaks 14s linear infinite;
}

.hero-paw {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(255, 45, 155, 0.22);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='18' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='46' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='12' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='44' rx='14' ry='12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='18' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='46' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='12' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='44' rx='14' ry='12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-paw-1 { left: 6%; top: 28%; transform: rotate(-18deg); }
.hero-paw-2 { left: 14%; bottom: 22%; transform: rotate(12deg); }
.hero-paw-3 { right: 46%; top: 16%; transform: rotate(24deg); opacity: 0.7; }

.hero-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 10px var(--magenta);
  animation: spark 3.8s ease-in-out infinite;
}

.hero-spark:nth-child(8) { right: 22%; top: 24%; }
.hero-spark:nth-child(9) { right: 12%; top: 58%; animation-delay: -1.1s; width: 4px; height: 4px; }
.hero-spark:nth-child(10) { right: 38%; bottom: 18%; animation-delay: -2s; }

.hero-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem 2rem;
  align-items: center;
  position: relative;
  min-height: calc(100svh - var(--header) - 4rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.4vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero-title .letter {
  display: inline-block;
  transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.hero-title .letter:hover {
  color: var(--magenta);
  transform: translateY(-6px) rotate(-4deg);
  text-shadow: 0 0 18px rgba(255, 45, 155, 0.55);
}

.hero-ticker {
  margin: 0.85rem 0 0;
  font-family: var(--font-ui);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--magenta);
}

.hero-support {
  margin: 1.15rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--cream);
  max-width: 22ch;
}

.hero-bark {
  margin: 0.85rem 0 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 45, 155, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 32px rgba(255, 45, 155, 0.42);
}

.btn-speed {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.16) 10px 12px
  );
  transform: translateX(-110%);
  opacity: 0;
}

.btn-primary:hover .btn-speed {
  animation: speed-run 0.55s ease;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(246, 239, 227, 0.28);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--magenta);
  color: #fff;
}

.btn-x {
  background: #16111f;
  border-color: rgba(181, 107, 255, 0.35);
  color: var(--cream);
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.45rem;
}

.contract {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 1.6rem;
  padding: 0.55rem 0.55rem 0.55rem 0.9rem;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(255, 45, 155, 0.28);
  background: #11091c;
  border-radius: 999px;
}

.contract-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--violet);
}

.contract-value {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--cream);
  overflow-wrap: anywhere;
}

.copy-btn {
  appearance: none;
  border: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-copied {
  background: var(--magenta);
  color: #fff;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.mascot-glow {
  position: absolute;
  width: 72%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 155, 0.42), rgba(90, 20, 140, 0.08) 68%, transparent 75%);
  filter: blur(18px);
  animation: glow-pulse 4.4s ease-in-out infinite;
}

.mascot {
  position: relative;
  width: min(100%, 620px);
  max-height: min(78vh, 720px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(255, 45, 155, 0.28));
  animation: breathe 4.6s ease-in-out infinite;
}

/* Strip */

.howl-strip {
  border-block: 1px solid rgba(255, 45, 155, 0.2);
  background: #0e0818;
  overflow: hidden;
  padding: 0.7rem 0;
}

.howl-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  animation: marquee 28s linear infinite;
}

.howl-track span::after {
  content: " ·";
  color: var(--magenta);
}

/* About */

.about,
.lore,
.identity,
.chart,
.howl {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.section-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--hot);
}

.about-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.05;
  max-width: 16ch;
}

.about-quote span {
  color: var(--magenta);
}

.about-body {
  margin: 1.4rem 0 0;
  max-width: 38ch;
  color: var(--cream-dim);
  font-size: 1.15rem;
}

/* Lore */

.lore {
  padding-top: 2rem;
}

.lore-mega {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.lore-mega-hot {
  color: var(--magenta);
  margin-left: 4vw;
}

.lore-mega-glow {
  color: var(--cream);
  text-shadow: 0 0 28px rgba(255, 45, 155, 0.28);
  margin-left: 8vw;
}

.lore-beats {
  margin-top: 3rem;
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
}

.lore-long {
  max-width: 18ch;
  color: var(--cream-dim);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

.lore-sequence {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.dialog {
  position: relative;
  max-width: 34rem;
  padding: 1.1rem 1.2rem 1.15rem 1.3rem;
  background: #12091d;
  border: 2px solid rgba(246, 239, 227, 0.14);
  border-left: 4px solid var(--magenta);
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

.dialog:nth-child(2) {
  margin-left: min(8vw, 5rem);
}

.dialog:nth-child(3) {
  margin-left: min(16vw, 10rem);
}

.dialog::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  bottom: -10px;
  border: 10px solid transparent;
  border-top-color: #12091d;
}

.dialog-tag {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--violet);
}

.dialog p {
  margin: 0;
}

.lore-close {
  margin-top: 4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.lore-close p {
  margin: 0;
}

.lore-final {
  color: var(--magenta);
}

.reveal {
  opacity: 0;
  transform: translateX(-36px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lore-stack .reveal:nth-child(2) { transition-delay: 0.08s; }
.lore-stack .reveal:nth-child(3) { transition-delay: 0.16s; }
.lore-beats .reveal:nth-child(2) { transition-delay: 0.1s; }
.lore-beats .reveal:nth-child(3) { transition-delay: 0.18s; }
.lore-sequence .reveal:nth-child(2) { transition-delay: 0.1s; }
.lore-sequence .reveal:nth-child(3) { transition-delay: 0.2s; }
.lore-close .reveal:nth-child(2) { transition-delay: 0.08s; }
.lore-close .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Banner */

.cinematic {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.cinematic-frame {
  margin: 0;
  position: relative;
  z-index: 1;
}

.cinematic-frame img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
  object-position: 62% center;
}

.cinematic-sparks {
  pointer-events: none;
  position: absolute;
  inset: -8% 0;
  z-index: 2;
}

.cinematic-sparks span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 10px var(--magenta);
  animation: spark 3.4s ease-in-out infinite;
}

.cinematic-sparks span:nth-child(1) { left: 8%; top: 30%; }
.cinematic-sparks span:nth-child(2) { left: 18%; top: 62%; animation-delay: -0.6s; width: 5px; height: 5px; }
.cinematic-sparks span:nth-child(3) { left: 40%; top: 18%; animation-delay: -1.2s; }
.cinematic-sparks span:nth-child(4) { left: 58%; top: 72%; animation-delay: -0.3s; }
.cinematic-sparks span:nth-child(5) { left: 72%; top: 22%; animation-delay: -1.8s; width: 6px; height: 6px; }
.cinematic-sparks span:nth-child(6) { left: 86%; top: 48%; animation-delay: -2.1s; }
.cinematic-sparks span:nth-child(7) { left: 92%; top: 70%; animation-delay: -0.9s; }
.cinematic-sparks span:nth-child(8) { left: 30%; top: 80%; animation-delay: -1.5s; }

.cinematic-caption {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0.85rem 1rem 1.4rem;
  text-align: center;
  font-family: var(--font-ui);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cream-dim);
}

/* Identity */

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  font-family: var(--font-display);
  line-height: 0.9;
}

.eq-term,
.eq-result {
  font-size: clamp(2.4rem, 8vw, 6.2rem);
}

.eq-result {
  color: var(--magenta);
  text-shadow: 0 0 24px rgba(255, 45, 155, 0.28);
}

.eq-op {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--violet);
}

.identity-line {
  margin: 1.6rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  color: var(--cream-dim);
  max-width: 24ch;
}

/* Chart */

.chart-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.chart-note {
  margin: 0.8rem 0 0;
  max-width: 46ch;
  color: var(--cream-dim);
}

.chart-stage {
  margin-top: 1.8rem;
  min-height: 360px;
  border: 1px solid rgba(255, 45, 155, 0.22);
  background:
    linear-gradient(rgba(255, 45, 155, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(181, 107, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 100%,
    #100818;
  overflow: hidden;
}

.chart-standby {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  padding: 2rem 1rem;
  text-align: center;
}

.chart-standby img {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.4rem;
  filter: drop-shadow(0 0 16px rgba(255, 45, 155, 0.4));
}

.standby-title {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
}

.standby-ca {
  margin: 0 0 0.6rem;
  color: var(--cream-dim);
}

.chart-frame {
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
  display: block;
  background: #0b0816;
}

/* Final CTA */

.howl {
  text-align: center;
  padding-bottom: 4rem;
}

.howl-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5.6rem);
  line-height: 0.95;
}

.howl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 45, 155, 0.18);
  padding: 1.4rem 0 1.8rem;
  background: #080611;
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-footer span {
  display: grid;
  line-height: 1.15;
}

.brand-footer small {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  font-weight: 600;
}

.footer-x {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}

.footer-x:hover {
  color: var(--magenta);
}

#about,
#lore,
#chart,
#howl,
#identity {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

/* Motion */

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.015); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes wisp {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-18px) rotate(6deg); opacity: 0.7; }
}

@keyframes streaks {
  from { background-position: 0 0; }
  to { background-position: -120px 40px; }
}

@keyframes speed-run {
  from { transform: translateX(-110%); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}

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

@keyframes spark {
  0%, 100% { transform: translateY(0) scale(0.7); opacity: 0.25; }
  50% { transform: translateY(-14px) scale(1); opacity: 1; }
}

@keyframes paw-fade {
  0% { opacity: 0; transform: scale(0.6) rotate(var(--rot, -12deg)); }
  25% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1) rotate(var(--rot, -12deg)) translateY(-12px); }
}

@media (min-width: 900px) {
  .equation {
    flex-wrap: nowrap;
    align-items: baseline;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: auto;
    padding: 1.2rem 0 2rem;
  }

  .mascot {
    max-height: min(64vh, 560px);
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1rem 1.1rem;
    background: #0b0816;
    border-bottom: 1px solid rgba(255, 45, 155, 0.22);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid rgba(246, 239, 227, 0.08);
  }

  .nav-buy {
    margin-top: 0.45rem;
    text-align: center;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .mascot {
    width: min(100%, 420px);
    max-height: min(52vh, 420px);
  }

  .hero-support {
    max-width: none;
  }

  .hero-actions,
  .howl-actions {
    display: grid;
  }

  .btn,
  .nav-buy {
    width: 100%;
  }

  .contract {
    width: 100%;
    border-radius: 16px;
  }

  .copy-btn {
    margin-left: auto;
  }

  .lore-mega-hot,
  .lore-mega-glow {
    margin-left: 0;
  }

  .dialog:nth-child(2),
  .dialog:nth-child(3) {
    margin-left: 0;
  }

  .cinematic-frame img {
    height: min(52vh, 420px);
    object-position: 70% center;
  }

  .equation {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .eq-op {
    font-size: 1.6rem;
    margin-left: 0.15rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 2.7rem;
  }

  .lore-mega {
    font-size: 2.8rem;
  }
}

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

  .mascot,
  .mascot-glow,
  .wisp,
  .streak-field,
  .howl-track,
  .cinematic-sparks span,
  .hero-spark,
  .paw-print,
  .btn-speed {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-title .letter:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}