@font-face {
  font-family: "DraculitoS_";
  src: url("assets/fonts/DraculitoS_.woff") format("woff"),
    url("assets/fonts/DraculitoS_.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Heavytal";
  src: url("assets/fonts/Heavytal-Personal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060d;
  --bg-deep: #040308;
  --navy: #0c1220;
  --navy-mid: #141b2e;
  --panel: rgba(14, 16, 28, 0.72);
  --moon: #e7eef8;
  --moon-glow: #9bb8d8;
  --moonlight: #8eb4d8;
  --blood: #8e1b2b;
  --blood-bright: #c42338;
  --velvet: #4e0f18;
  --gold: #d4af37;
  --gold-soft: #e4c878;
  --gold-dim: #8a7344;
  --cream: #f3ead8;
  --text: #e8e0d4;
  --text-muted: #9a9084;
  --arc-blue: #1a4d9e;
  --line: rgba(212, 175, 55, 0.28);
  --header-h: 4.5rem;
  --radius: 1.25rem;
  --font-display: "DraculitoS_", "Cinzel", serif;
  --font-horror: "DraculitoS_", "Cinzel", serif;
  --font-heavy: "Heavytal", "Cinzel", serif;
  --font-editorial: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

ul,
ol,
blockquote,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

h1,
h2,
.brand-name,
.hero-ticker,
.beat-label,
.trait-kicker,
.dismiss-line,
.reveal-copy p,
.decree-ticker,
.coffin-title,
.turn-because,
.footer-brand p:first-child {
  font-synthesis: none;
}

::selection {
  background: var(--blood);
  color: var(--cream);
}

.visually-hidden {
  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: 1rem;
  top: -4rem;
  z-index: 10001;
  background: var(--gold);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

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

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

.bat-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bat {
  position: absolute;
  color: rgba(8, 8, 14, 0.72);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4));
  animation: batFly var(--dur, 14s) linear forwards;
  will-change: transform;
}

.bat svg {
  width: 28px;
  height: 16px;
  animation: batFlap 0.28s ease-in-out infinite;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 6, 13, 0.28);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 6, 13, 0.86);
  border-bottom-color: rgba(212, 175, 55, 0.22);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(12, 10, 20, 0.8), 0 0 16px rgba(212, 175, 55, 0.18);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.brand-ticker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
}

.nav-desktop {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav-desktop a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--cream);
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(8, 8, 14, 0.4);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: rgba(6, 5, 12, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1.25rem;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: min(1180px, calc(100% - 0.5rem));
  margin: 0 auto;
}

.mobile-nav a {
  padding: 0.85rem 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  color: var(--cream);
}

.mobile-nav .btn {
  margin-top: 0.85rem;
  text-align: center;
  border-bottom: 0;
  justify-content: center;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s, border-color 0.25s, color 0.25s;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 0.82rem;
}

.btn-x {
  background: linear-gradient(180deg, #c42338 0%, #7a1522 100%);
  color: var(--cream);
  border-color: #e4c878;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(140, 20, 36, 0.35),
    inset 0 1px 0 rgba(255, 220, 180, 0.18);
}

.btn-x:hover,
.btn-x:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 12px 28px rgba(196, 35, 56, 0.45),
    0 0 18px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 220, 180, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.15);
}

.btn-icon {
  display: inline-flex;
}

/* ---------- Shared sections ---------- */

.section-inner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section-head h2,
.community h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

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

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  isolation: isolate;
  overflow: visible;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 78% 18%, rgba(140, 175, 220, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(90, 20, 36, 0.22), transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #07060d 48%, #05040a 100%);
}

.stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #eef4ff;
  opacity: 0.7;
  animation: twinkle var(--tw, 3.4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.moon {
  position: absolute;
  top: 7%;
  right: 11%;
  width: min(28vw, 250px);
  height: min(28vw, 250px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, #f7fbff 0%, #d5e3f2 34%, #9eb6ce 70%, #6d849c 100%);
  box-shadow:
    0 0 30px 8px rgba(200, 220, 245, 0.28),
    0 0 90px 36px rgba(120, 160, 210, 0.18),
    0 0 180px 70px rgba(70, 100, 160, 0.1);
  animation: moonBreathe 8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(110, 128, 148, 0.28);
}

.moon-crater.c1 {
  width: 18%;
  height: 18%;
  top: 28%;
  left: 22%;
}

.moon-crater.c2 {
  width: 10%;
  height: 10%;
  top: 52%;
  left: 58%;
}

.moon-crater.c3 {
  width: 14%;
  height: 12%;
  top: 62%;
  left: 30%;
}

.cloud {
  position: absolute;
  height: 90px;
  border-radius: 50%;
  filter: blur(18px);
  background: rgba(170, 190, 220, 0.09);
  animation: cloudDrift 48s linear infinite;
  will-change: transform;
}

.cloud-a {
  width: 42%;
  top: 16%;
  left: -10%;
}

.cloud-b {
  width: 36%;
  top: 28%;
  right: -8%;
  animation-duration: 62s;
  animation-direction: reverse;
  background: rgba(150, 170, 210, 0.07);
}

.parallax-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.castle {
  position: absolute;
  left: -4%;
  bottom: 6%;
  width: min(70vw, 760px);
  height: auto;
  opacity: 0.88;
  pointer-events: none;
}

.fog {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 38%;
  bottom: -6%;
  pointer-events: none;
  will-change: transform;
}

.fog-back {
  background: radial-gradient(ellipse at 50% 100%, rgba(170, 190, 220, 0.16), transparent 70%);
  animation: fogShift 22s ease-in-out infinite;
}

.fog-mid {
  height: 30%;
  background: radial-gradient(ellipse at 30% 100%, rgba(190, 205, 230, 0.12), transparent 68%);
  animation: fogShift 28s ease-in-out infinite reverse;
}

.fog-front {
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 18, 0.55));
  animation: fogShift 18s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 1rem;
}

.seal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blood-bright);
  box-shadow: 0 0 10px var(--blood-bright);
}

.hero-title-wrap {
  position: relative;
  margin: 0.4rem 0 0.35rem;
}

.crown {
  display: block;
  color: var(--gold);
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.45));
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 9vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.hero-tag {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  color: var(--gold-soft);
  margin: 0.7rem 0 1.1rem;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 26ch;
  margin-bottom: 1.2rem;
}

.hero-ticker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.28);
  animation: candleGlow 3.4s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 0;
  padding: 1.5rem 0.5rem 2.5rem;
}

.hero-glow {
  position: absolute;
  width: 72%;
  height: 55%;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(40, 80, 150, 0.28), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.hero-character {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  overflow: visible;
  animation: lokiFloat 5.6s ease-in-out infinite;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

.hero-character img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

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

.story {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.2), transparent 8%),
    radial-gradient(ellipse at 50% 0%, rgba(90, 20, 36, 0.18), transparent 50%),
    var(--bg);
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    var(--blood) 8%,
    var(--gold) 50%,
    var(--blood) 92%,
    transparent
  );
}

.beat {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: start;
  column-gap: 0.4rem;
  padding: 0.35rem 0 1.8rem;
  position: relative;
}

.beat .wax {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  margin-top: 0.55rem;
}

.beat:nth-child(odd) .beat-copy {
  grid-column: 3;
  text-align: left;
}

.beat:nth-child(even) .beat-copy {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.beat-copy {
  display: grid;
  gap: 0.45rem;
}

.wax {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #e8c878, var(--gold) 40%, var(--blood) 78%);
  box-shadow: 0 0 0 5px var(--bg), 0 0 16px rgba(196, 35, 56, 0.55);
  position: relative;
  z-index: 1;
}

.beat-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  line-height: 1.15;
}

.beat blockquote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--cream);
  line-height: 1.35;
}

.beat-after {
  margin-top: 0.75rem;
  color: var(--gold-soft);
}

.story-turn {
  max-width: 640px;
  margin: 1.5rem auto 0;
  text-align: center;
  padding: 2rem 1.25rem 0;
  border-top: 1px solid var(--line);
}

.turn-not {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.turn-because {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--cream);
}

/* ---------- Vampire identity ---------- */

.vampire {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(26, 77, 158, 0.1), transparent 40%),
    radial-gradient(ellipse at 10% 80%, rgba(90, 16, 28, 0.16), transparent 45%),
    var(--bg-deep);
}

.traits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trait {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 4px 28px 4px 28px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.trait::before,
.trait::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
}

.trait::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.trait::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.trait:hover,
.trait:focus-within {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.12), inset 0 0 24px rgba(196, 35, 56, 0.08);
  transform: translateY(-4px);
}

.ornament {
  display: block;
  color: var(--gold);
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}

.trait-kicker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.08;
}

.trait-line {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.paw-mark {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  width: 34px;
  height: 34px;
  opacity: 0.22;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='20' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='44' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='14' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='42' rx='16' ry='14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='20' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='32' cy='12' rx='7' ry='9'/%3E%3Cellipse cx='44' cy='18' rx='7' ry='9'/%3E%3Cellipse cx='14' cy='30' rx='6' ry='8'/%3E%3Cellipse cx='32' cy='42' rx='16' ry='14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: rotate(-18deg);
  transition: opacity 0.3s;
}

.trait:hover .paw-mark,
.trait:focus-within .paw-mark {
  opacity: 0.45;
}

/* ---------- Not that Loki ---------- */

.notloki {
  padding: clamp(4.5rem, 11vw, 8rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(26, 77, 158, 0.12), transparent 50%),
    var(--bg);
}

.dismiss {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  padding-top: 3.2rem;
}

.dismiss-line {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6.2vw, 4.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(232, 224, 212, 0.38);
  line-height: 1.12;
  position: relative;
}

.dismiss-line::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blood-bright), var(--gold), var(--blood-bright), transparent);
  transform: rotate(-4deg);
  box-shadow: 0 0 10px rgba(196, 35, 56, 0.5);
}

.cat-peek {
  position: absolute;
  width: 150px;
  height: 92px;
  right: 4%;
  top: 0;
  overflow: hidden;
  pointer-events: none;
}

.cat-peek img {
  width: 150px;
  height: auto;
  object-fit: contain;
  transform: translateY(18px);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.reveal-copy p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
}

.reveal-copy p:last-child {
  color: var(--gold-soft);
  margin-top: 0.35rem;
}

/* ---------- Token ---------- */

.token {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.decree {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2.4rem 1.5rem 2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.08), transparent 45%),
    rgba(12, 14, 24, 0.85);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(90, 16, 28, 0.12);
  position: relative;
}

.decree::before,
.decree::after {
  content: "◆";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.7rem;
}

.decree::before {
  top: 0.55rem;
}

.decree::after {
  bottom: 0.55rem;
}

.decree-status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.decree-ticker {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 4rem);
  letter-spacing: 0.12em;
  color: var(--cream);
}

.decree-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.6rem 0 1.4rem;
  color: var(--moonlight);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.arc-mark {
  width: 18px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(142, 180, 230, 0.5));
}

.decree-ca {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.ca-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#contract-address {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(212, 175, 55, 0.28);
  padding: 0.45rem 0.9rem;
  min-width: 8rem;
  word-break: break-all;
}

.copy-btn {
  margin-top: 0.35rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: transparent;
  color: var(--gold-soft);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.copy-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.copy-btn:not(:disabled):hover,
.copy-btn:not(:disabled):focus-visible {
  background: rgba(212, 175, 55, 0.1);
}

.copy-feedback {
  min-height: 1.2em;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
}

/* ---------- Chart ---------- */

.chart {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.coffin {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 14, 24, 0.9), rgba(8, 8, 14, 0.95));
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  min-height: 280px;
  position: relative;
}

.coffin-lid {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  gap: 0.5rem;
}

.coffin-ornament {
  color: var(--gold);
  font-size: 1.4rem;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.coffin-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.coffin-sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.dex-frame-wrap {
  width: 100%;
  min-height: 420px;
}

.dex-frame-wrap iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  background: #0b0e14;
}

/* ---------- Lore ---------- */

.lore {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26, 77, 158, 0.12), transparent 42%),
    var(--bg);
}

.hall-window {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(12, 10, 18, 0.6);
  background: #05040a;
}

.hall-window img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.inscriptions {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.inscription {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.14);
  background: rgba(12, 14, 24, 0.55);
}

.inscription p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--cream);
}

/* ---------- Community ---------- */

.community {
  position: relative;
  padding: clamp(5rem, 12vw, 8.5rem) 0;
  text-align: center;
  overflow: hidden;
}

.community-glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 40%;
  background: radial-gradient(circle, rgba(196, 35, 56, 0.16), transparent 70%);
  pointer-events: none;
}

.community-seal {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(7, 6, 13, 0.85), 0 0 32px rgba(212, 175, 55, 0.28);
  margin: 0 auto 1.6rem;
}

.community-sub {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--text-muted);
  margin: 1.1rem 0 1.8rem;
}

.community-sub span {
  color: var(--gold-soft);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  background: var(--bg-deep);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
}

.footer-brand p:first-child {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.footer-brand p:last-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-x {
  color: var(--gold-soft);
  font-size: 0.88rem;
}

.footer-x:hover,
.footer-x:focus-visible {
  color: var(--cream);
}

.footer-meme {
  width: 100%;
  text-align: center;
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ---------- Animations ---------- */

@keyframes candleGlow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.22);
  }
  50% {
    text-shadow: 0 0 24px rgba(232, 200, 120, 0.55), 0 0 8px rgba(196, 35, 56, 0.25);
  }
}

@keyframes lokiFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes moonBreathe {
  0%,
  100% {
    box-shadow:
      0 0 30px 8px rgba(200, 220, 245, 0.28),
      0 0 90px 36px rgba(120, 160, 210, 0.18),
      0 0 180px 70px rgba(70, 100, 160, 0.1);
  }
  50% {
    box-shadow:
      0 0 40px 14px rgba(220, 235, 255, 0.38),
      0 0 110px 48px rgba(140, 175, 220, 0.24),
      0 0 210px 90px rgba(80, 120, 180, 0.14);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes fogShift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4%);
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(12%);
  }
}

@keyframes batFly {
  from {
    transform: translate3d(-8vw, 0, 0);
  }
  to {
    transform: translate3d(110vw, var(--rise, -40px), 0);
  }
}

@keyframes batFlap {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  50% {
    transform: scaleY(0.72) scaleX(1.08);
  }
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 1.25rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
    width: min(100%, 520px);
  }

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

  .hero-actions {
    justify-content: center;
  }

  .crown {
    display: flex;
    justify-content: center;
  }

  .moon {
    right: 6%;
    top: 4%;
    width: min(34vw, 160px);
    height: min(34vw, 160px);
  }

  .castle {
    opacity: 0.55;
    width: min(90vw, 520px);
  }

  .cloud {
    display: none;
  }

  .traits,
  .inscriptions {
    grid-template-columns: 1fr;
  }

  .cat-peek {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 720px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .hero-character {
    width: min(100%, 100%);
  }

  .timeline::before {
    left: 22px;
    transform: translateX(-50%);
  }

  .beat {
    grid-template-columns: 44px 1fr;
    padding-left: 0;
  }

  .beat .wax {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    margin-top: 0.35rem;
  }

  .beat:nth-child(odd) .beat-copy,
  .beat:nth-child(even) .beat-copy {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .coffin {
    clip-path: none;
    border-radius: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meme {
    text-align: left;
  }
}

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

  .hero-character,
  .hero-ticker,
  .moon,
  .fog,
  .cloud,
  .star,
  .bat,
  .bat svg {
    animation: none !important;
  }

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

  .btn:hover,
  .trait:hover {
    transform: none;
  }
}
