:root {
  --ink: #09050d;
  --night: #12051c;
  --night-2: #21072f;
  --paper: #fff4e8;
  --ash: #cbbbcf;
  --orange: #ff5b16;
  --gold: #ffb019;
  --violet: #7f20b5;
  --red: #d71920;
  --line: rgba(255,255,255,.18);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--body); overflow-x: hidden; }
body::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 82px;
  padding: 0 clamp(20px, 4vw, 66px); display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(5,2,9,.88), transparent); backdrop-filter: blur(2px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 28px; letter-spacing: .08em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; color: #16071e; background: var(--orange);
  clip-path: polygon(50% 0, 62% 17%, 85% 10%, 82% 33%, 100% 50%, 82% 65%, 86% 91%, 62% 82%, 50% 100%, 38% 82%, 14% 91%, 18% 65%, 0 50%, 18% 33%, 15% 10%, 38% 17%);
  text-shadow: 1px 1px 0 rgba(255,255,255,.25);
}
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.nav-link { position: relative; padding: 12px 2px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #dfd1e2; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 5px; width: 0; height: 2px; background: var(--orange); transform: skewX(-24deg); transition: width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.menu-toggle { display: none; color: var(--paper); background: transparent; border: 1px solid var(--line); padding: 9px 13px; font-weight: 800; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-backdrop { position: absolute; inset: 0; z-index: -3; background: url("backgrounds/hero-background.png") 54% center / cover no-repeat; transform: scale(1.015); }
.hero-vignette { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(6,2,10,.95) 0%, rgba(8,2,14,.78) 25%, rgba(9,3,14,.08) 59%, rgba(6,1,9,.18) 100%), linear-gradient(0deg, rgba(7,2,10,.86), transparent 35%); }
.hero-content { width: min(660px, 84vw); margin-left: clamp(24px, 8vw, 132px); padding-top: 52px; }
.eyebrow { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .19em; color: #f5caa9; }
.eyebrow span { width: 34px; height: 2px; background: var(--orange); box-shadow: 7px 0 0 var(--orange); transform: skewX(-25deg); }
.display-title { position: relative; margin: 0; font-family: var(--display); font-size: clamp(92px, 15vw, 224px); line-height: .72; letter-spacing: -.025em; color: var(--orange); text-shadow: 4px 5px 0 #5d0a24, 9px 11px 0 rgba(0,0,0,.64), 0 0 35px rgba(255,64,8,.24); transform: skewY(-2deg); }
.display-title::before { content: attr(data-text); position: absolute; inset: -3px auto auto 5px; z-index: -1; color: transparent; -webkit-text-stroke: 2px rgba(255,190,62,.55); }
.hero-kicker { margin: 25px 0 13px; font-family: var(--display); font-size: clamp(38px, 5vw, 70px); line-height: .83; letter-spacing: .02em; }
.hero-copy { margin: 0 0 28px; max-width: 460px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #dacbdc; }
.action-row { display: flex; gap: 14px; flex-wrap: wrap; }
.action-row--center { justify-content: center; }
.fang-btn { position: relative; isolation: isolate; min-width: 178px; padding: 17px 26px 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--paper); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-align: center; clip-path: polygon(8% 0, 92% 0, 100% 28%, 95% 73%, 82% 100%, 74% 76%, 63% 100%, 50% 78%, 37% 100%, 26% 76%, 17% 100%, 5% 73%, 0 28%); transition: transform .2s ease, filter .2s ease; }
.fang-btn::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: inherit; clip-path: inherit; }
.fang-btn:hover { transform: translateY(-4px) rotate(-1deg); filter: brightness(1.15) drop-shadow(0 12px 18px rgba(255,65,10,.28)); }
.fang-btn--hot { background: linear-gradient(140deg, #ff7b17, #dd1717); box-shadow: inset 0 0 0 2px #ffae21; }
.fang-btn--dark { background: linear-gradient(140deg, #431055, #16071e); box-shadow: inset 0 0 0 2px #8630a8; }
.scroll-cue { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .2em; color: #d6c8d8; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: pulse 1.8s infinite; }

.section-pad { padding: clamp(100px, 12vw, 180px) clamp(24px, 8vw, 130px); }
.signal { position: relative; min-height: 820px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 7vw; background: radial-gradient(circle at 74% 45%, rgba(117,20,147,.27), transparent 32%), linear-gradient(150deg, #16051f, #08040b 65%); overflow: hidden; }
.signal::before { content: ""; position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 72px 72px; transform: perspective(500px) rotateX(52deg) scale(1.5); transform-origin: bottom; }
.section-number { position: absolute; right: 4vw; top: 50%; translate: 0 -50%; font: 16vw/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); }
h2, .lore-hero h1 { margin: 0 0 24px; font-family: var(--display); font-size: clamp(58px, 7vw, 112px); line-height: .85; letter-spacing: .015em; }
h2 em, .lore-hero h1 em { color: var(--orange); font-style: normal; text-shadow: 3px 4px 0 #591129; }
.signal-copy { position: relative; z-index: 2; max-width: 620px; }
.signal-copy > p:not(.eyebrow) { max-width: 540px; font-size: 18px; line-height: 1.75; color: var(--ash); }
.slash-link { display: inline-flex; gap: 11px; margin-top: 25px; padding-bottom: 7px; border-bottom: 2px solid var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.slash-link:hover span { transform: rotate(45deg); }
.slash-link span { transition: transform .25s ease; }
.signal-orbit { position: relative; aspect-ratio: 1; max-width: 580px; margin-inline: auto; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px solid rgba(255,118,30,.46); border-radius: 50%; }
.orbit-ring--one { inset: 7%; box-shadow: 0 0 50px rgba(222,47,20,.12); animation: orbit 18s linear infinite; }
.orbit-ring--one::before, .orbit-ring--two::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 20px var(--orange); }
.orbit-ring--one::before { left: 11%; top: 10%; }
.orbit-ring--two { inset: 20%; border-style: dashed; border-color: rgba(180,55,214,.55); animation: orbit 13s linear infinite reverse; }
.orbit-ring--two::after { right: 5%; bottom: 19%; background: #a742dd; box-shadow: 0 0 18px #a742dd; }
.orbit-moon { width: 44%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 33% 32%, #ffd36a, #ff6d16 43%, #9b131f 75%); color: #280716; box-shadow: 0 0 85px rgba(255,88,16,.45); }
.orbit-moon b { font: clamp(48px, 6vw, 94px)/.8 var(--display); }
.orbit-moon small { margin-top: 10px; font-weight: 900; font-size: 9px; letter-spacing: .14em; }
.orbit-note { position: absolute; padding-left: 13px; border-left: 2px solid var(--orange); font: 20px/1 var(--display); letter-spacing: .06em; color: #efdce9; }
.orbit-note--a { left: 0; top: 30%; }
.orbit-note--b { right: -2%; bottom: 23%; }

.contract { background: var(--orange); color: var(--ink); }
.contract-card { max-width: 1250px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px 70px; align-items: center; }
.contract .eyebrow { color: #3b1016; }
.contract .eyebrow span { background: var(--ink); box-shadow: 7px 0 0 var(--ink); }
.contract h2 { margin-bottom: 0; }
.contract h2 em { color: var(--paper); text-shadow: 3px 4px 0 #8c1522; }
.ca-display { width: 100%; min-width: 0; padding: 20px 22px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 17px; align-items: center; color: var(--paper); background: var(--ink); border: 0; clip-path: polygon(2% 0, 98% 0, 100% 20%, 98% 84%, 92% 100%, 82% 92%, 72% 100%, 62% 92%, 52% 100%, 42% 92%, 32% 100%, 22% 92%, 12% 100%, 2% 84%, 0 20%); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.ca-display:hover, .ca-display.is-copied { transform: translateY(-4px); background: #24102d; }
.ca-label { color: var(--orange); font: 27px var(--display); }
.ca-display code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; font: 700 14px/1 var(--body); }
.copy-state { font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.microcopy { grid-column: 2; margin: -13px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; }

.finale { min-height: 760px; position: relative; display: grid; place-items: center; isolation: isolate; text-align: center; overflow: hidden; }
.finale-bg { position: absolute; inset: 0; z-index: -2; background: url("backgrounds/lore-background.png") center / cover no-repeat; filter: saturate(.9); }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(7,2,12,.55), rgba(7,2,12,.88)), radial-gradient(circle at center, transparent, #07020c 80%); }
.finale-content { max-width: 900px; padding: 80px 24px; }
.finale .eyebrow { justify-content: center; }
.finale h2 { font-size: clamp(72px, 11vw, 170px); }
.finale p:not(.eyebrow) { margin: -6px 0 30px; font-size: 18px; color: var(--ash); }

footer { min-height: 150px; padding: 32px clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); background: #07020a; color: #8e8191; font-size: 11px; letter-spacing: .08em; }
.brand--footer { color: var(--paper); }

/* lore */
.lore-hero { min-height: 94svh; position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.lore-backdrop { position: absolute; inset: 0; z-index: -2; background: url("backgrounds/lore-background.png") center / cover no-repeat; }
.lore-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0b0310 3%, rgba(8,2,12,.18) 65%), linear-gradient(90deg, rgba(8,2,12,.78), transparent 70%); }
.lore-intro { width: min(900px, 86vw); margin: 0 0 9vh clamp(24px, 8vw, 130px); }
.lore-hero h1 { font-size: clamp(76px, 10vw, 160px); }
.lore-intro .lead { max-width: 650px; font-size: 20px; line-height: 1.6; color: #eaddeb; }
.chapters { background: linear-gradient(145deg, #0b0310, #1b0726 55%, #08030c); }
.chapter { position: relative; max-width: 1120px; min-height: 480px; margin: 0 auto 70px; padding: 75px 8%; display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 40px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(125deg, rgba(116,23,147,.18), rgba(255,81,10,.04)); clip-path: polygon(0 6%, 4% 0, 96% 0, 100% 6%, 100% 94%, 96% 100%, 4% 100%, 0 94%); }
.chapter--reverse { grid-template-columns: 1fr 220px; }
.chapter--reverse .chapter-index { order: 2; }
.chapter-index { font: 180px/.8 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(255,95,20,.75); text-shadow: 0 0 55px rgba(255,68,20,.18); }
.chapter h2 { font-size: clamp(52px, 6vw, 88px); }
.chapter p:not(.eyebrow) { max-width: 650px; font-size: 18px; line-height: 1.75; color: var(--ash); }
.rules { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; background: var(--orange); color: var(--ink); }
.rules .eyebrow { color: #381018; }
.rules .eyebrow span { background: var(--ink); box-shadow: 7px 0 0 var(--ink); }
.rules h2 em { color: var(--paper); }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { min-height: 115px; display: grid; grid-template-columns: 90px 1fr; align-items: center; border-bottom: 2px solid rgba(12,4,16,.28); font: clamp(29px, 3vw, 48px)/1 var(--display); }
.rule-list b { color: var(--paper); text-shadow: 2px 3px 0 #7f1622; }
.lore-cta { min-height: 740px; padding: 100px 24px; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at center, rgba(121,24,158,.38), transparent 40%), #08030c; }
.lore-cta .eyebrow { justify-content: center; }
.lore-cta h2 { font-size: clamp(82px, 12vw, 180px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .2; transform: scaleY(.55); } }

@media (max-width: 900px) {
  .topbar { height: 70px; background: rgba(7,2,10,.86); backdrop-filter: blur(10px); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 18px; right: 18px; top: 68px; padding: 18px; display: none; flex-direction: column; align-items: stretch; gap: 4px; background: #13061c; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 15px; }
  .hero-backdrop { background-position: 62% center; }
  .hero-vignette { background: linear-gradient(90deg, rgba(5,1,8,.88), rgba(5,1,8,.16)), linear-gradient(0deg, rgba(7,2,10,.92), transparent 55%); }
  .hero-content { margin-left: 7vw; padding-top: 105px; align-self: center; }
  .signal { grid-template-columns: 1fr; min-height: auto; }
  .signal-orbit { width: min(85vw, 560px); }
  .contract-card { grid-template-columns: 1fr; }
  .microcopy { grid-column: 1; }
  footer { grid-template-columns: 1fr; gap: 16px; }
  .rules { grid-template-columns: 1fr; }
  .chapter, .chapter--reverse { grid-template-columns: 1fr; }
  .chapter--reverse .chapter-index { order: 0; }
  .chapter-index { font-size: 120px; }
}

@media (max-width: 580px) {
  .brand { font-size: 23px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { min-height: 860px; }
  .hero-backdrop { background-position: 68% center; }
  .hero-content { width: 88vw; margin-left: 6vw; align-self: end; padding-bottom: 112px; }
  .display-title { font-size: clamp(78px, 27vw, 124px); }
  .hero-kicker { font-size: 42px; }
  .hero-copy { max-width: 320px; }
  .action-row { flex-direction: column; align-items: stretch; }
  .fang-btn { width: 100%; }
  .scroll-cue { display: none; }
  .section-pad { padding: 94px 22px; }
  h2 { font-size: 56px; }
  .signal { gap: 40px; }
  .orbit-note { font-size: 15px; }
  .ca-display { grid-template-columns: auto minmax(0,1fr); }
  .copy-state { grid-column: 1 / -1; text-align: center; }
  .finale { min-height: 690px; }
  .finale h2 { font-size: 80px; }
  .lore-hero { min-height: 800px; }
  .lore-backdrop { background-position: 57% center; }
  .lore-intro { margin: 0 22px 65px; width: auto; }
  .lore-hero h1 { font-size: 72px; }
  .lore-intro .lead { font-size: 17px; }
  .chapter { min-height: auto; padding: 55px 25px; margin-bottom: 35px; }
  .chapter-index { font-size: 90px; }
  .chapter h2 { font-size: 50px; }
  .rule-list li { grid-template-columns: 60px 1fr; font-size: 30px; }
  .lore-cta h2 { font-size: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
