:root {
  --acid: #dfff88;
  --acid-bright: #caff00;
  --ink: #07122f;
  --ink-deep: #020617;
  --paper: #f5ffd9;
  --cyan: #00eaff;
  --blue: #1238ff;
  --pink: #ff28e2;
  --violet: #7a18ff;
  --white: #fbfff2;
  --line-dark: rgba(7, 18, 47, .22);
  --line-light: rgba(245, 255, 217, .24);
  --header-h: 72px;
  --page-pad: clamp(24px, 3.1vw, 60px);
  --mx: 50%;
  --my: 50%;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--ink-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink-deep);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  cursor: none;
}

button,
a { font: inherit; }

button { cursor: none; }

a { color: inherit; }

::selection {
  color: var(--paper);
  background: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

#spore-field,
.noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#spore-field { z-index: 50; opacity: .7; }

.noise {
  z-index: 60;
  opacity: .04;
  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='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor-orb {
  position: fixed;
  z-index: 999;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  border: 1px solid var(--cyan);
  background: color-mix(in srgb, var(--cyan) 25%, transparent);
  box-shadow: 0 0 18px var(--cyan);
  transform: translate3d(-40px, -40px, 0);
  pointer-events: none;
  transition: width .2s ease, height .2s ease, background .2s ease;
  mix-blend-mode: difference;
}

.cursor-orb.is-large {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--pink) 28%, transparent);
}

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--page-pad);
  color: var(--current-fg, var(--ink));
  mix-blend-mode: difference;
}

.wordmark,
.nav-links a,
.social-links a {
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
}

.wordmark-dot {
  width: 11px;
  height: 11px;
  background: var(--paper);
  box-shadow: 7px 0 0 rgba(245, 255, 217, .55), 0 7px 0 rgba(245, 255, 217, .25);
}

.nav-links,
.social-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 46px); }

.nav-links a,
.social-links a { position: relative; opacity: .62; transition: opacity .2s ease; }

.nav-links a::after,
.social-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.social-links a:hover { opacity: 1; }

.nav-links a:hover::after,
.nav-links a.is-active::after,
.social-links a:hover::after { transform: scaleX(1); }

.social-links { justify-self: end; gap: 18px; }

.chapter-rail {
  position: fixed;
  z-index: 90;
  right: 18px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--paper);
  transform: translateY(-50%);
  mix-blend-mode: difference;
}

.rail-readout {
  writing-mode: vertical-rl;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.rail-dots { display: flex; flex-direction: column; gap: 8px; }

.rail-dots a {
  width: 5px;
  height: 16px;
  background: rgba(245, 255, 217, .3);
  transition: height .25s ease, background .25s ease;
}

.rail-dots a.is-active { height: 38px; background: var(--paper); }

.screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 680px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.is-light { background: var(--paper); color: var(--ink); }
.is-dark { background: var(--ink-deep); color: var(--paper); }
.is-acid { background: var(--acid); color: var(--ink); }

.background-media {
  position: absolute;
  z-index: -3;
  inset: -3%;
  background-position: center;
  background-size: cover;
  transform: translate3d(calc((var(--mx) - 50%) * -.025), calc((var(--my) - 50%) * -.025), 0) scale(1.03);
  transition: transform .15s linear;
}

.background-media--light {
  background-image: linear-gradient(90deg, rgba(245,255,217,.04), rgba(245,255,217,.42)), url("assets/margin-light.png");
  filter: saturate(.9) contrast(.92) brightness(1.05);
}

.background-media--dark {
  background-image: linear-gradient(90deg, rgba(2,6,23,.96) 0%, rgba(2,6,23,.58) 50%, rgba(2,6,23,.16) 100%), url("assets/margin-dark.png");
  filter: saturate(1.05) contrast(1.03);
}

.hero-grid,
.states-grid,
.contact-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: clamp(72px, 10vw, 192px) clamp(72px, 10vw, 192px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 78%);
}

.hero-grid { opacity: .28; }

.corner-label {
  position: absolute;
  z-index: 4;
  top: calc(var(--header-h) + 20px);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.corner-label--left { left: var(--page-pad); }
.corner-label--right { right: var(--page-pad); }

.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 18% auto auto var(--page-pad);
  width: min(66vw, 1240px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: clamp(.68rem, .7vw, .82rem);
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 20px;
  height: 8px;
  background: currentColor;
  box-shadow: 6px 0 0 var(--pink), 12px 0 0 var(--cyan);
}

.eyebrow--light { color: var(--paper); }

p { overflow-wrap: anywhere; }

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  line-height: .82;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-copy h1 {
  font-size: clamp(5.2rem, 12.7vw, 15.25rem);
  letter-spacing: -.095em;
}

.hero-copy h1 span { display: block; }
.hero-copy h1 span:last-child { margin-left: 32%; color: transparent; -webkit-text-stroke: clamp(2px, .24vw, 5px) var(--ink); }

.hero-bottomline {
  display: flex;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 86px);
  margin-top: 18px;
  margin-left: 1%;
}

.hero-bottomline p {
  margin: 0;
  max-width: 230px;
  font-size: clamp(1rem, 1.35vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.ca-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: clamp(180px, 15vw, 280px);
  padding: 15px 17px;
  color: var(--paper);
  border: 0;
  border-radius: 0;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--pink);
  font-size: clamp(.8rem, .85vw, 1rem);
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ca-button:hover,
.ca-button:focus-visible { transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--cyan); }
.ca-button:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--pink); }

.copy-icon { font-size: 1.5em; }

.hero-character-wrap {
  position: absolute;
  z-index: 3;
  right: clamp(2%, 5vw, 8%);
  bottom: clamp(1%, 2vh, 4%);
  width: min(49vw, 850px);
  aspect-ratio: 1;
  transform: translate(var(--tilt-x, 0), var(--tilt-y, 0));
  transition: transform .2s ease;
}

.hero-character {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(20, 15, 145, .22));
  image-rendering: auto;
}

.character-shadow {
  position: absolute;
  z-index: 1;
  left: 23%;
  right: 20%;
  bottom: 5%;
  height: 8%;
  background: rgba(9, 15, 70, .22);
  filter: blur(20px);
  border-radius: 50%;
  animation: shadow-pulse 4s ease-in-out infinite;
}

.character-float { animation: character-float 5s ease-in-out infinite; transform-origin: 50% 58%; }

.character-float.glitch-hit {
  animation: glitch-hit .26s steps(2, end), character-float 5s .26s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(6, 18, 47, .2);
  border-radius: 50%;
  animation: orbit-spin 15s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--pink);
  top: 15%;
  left: 7%;
  box-shadow: 0 0 18px var(--pink);
}

.orbit--one { inset: 13%; }
.orbit--two { inset: 3%; animation-duration: 21s; animation-direction: reverse; border-style: dashed; }
.orbit--two::after { background: var(--cyan); top: 78%; left: 87%; box-shadow: 0 0 18px var(--cyan); }

.scroll-prompt {
  position: absolute;
  z-index: 4;
  right: var(--page-pad);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .66rem;
  font-weight: 900;
}

.scroll-line {
  position: relative;
  width: 70px;
  height: 1px;
  background: var(--ink);
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: translateX(-100%);
  animation: scan 1.8s ease-in-out infinite;
}

.origin-title-wrap {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: var(--page-pad);
  width: 48%;
}

.origin-title-wrap h2,
.states-heading h2,
.roadmap-heading h2,
.contact-copy h2 {
  font-size: clamp(4.4rem, 8.4vw, 10rem);
  letter-spacing: -.075em;
}

.origin-character {
  position: absolute;
  z-index: 2;
  right: 3%;
  top: 7%;
  width: min(58vw, 980px);
  aspect-ratio: 1;
  transform: translate(var(--tilt-x, 0), var(--tilt-y, 0)) rotate(-5deg);
}

.mischief-character {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 45px rgba(0, 234, 255, .3));
}

.echo {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(0, 234, 255, .32);
  transform: rotate(12deg);
}

.echo--one { animation: echo-ping 3s ease-out infinite; }
.echo--two { animation: echo-ping 3s 1.5s ease-out infinite; border-color: rgba(255, 40, 226, .28); }

.lore-card {
  position: absolute;
  z-index: 4;
  left: var(--page-pad);
  bottom: 7%;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: clamp(18px, 2.3vw, 42px);
  width: min(63vw, 1110px);
  padding: clamp(20px, 2vw, 36px);
  border: 1px solid var(--line-light);
  background: rgba(2, 6, 23, .66);
  backdrop-filter: blur(18px);
}

.lore-number {
  color: var(--cyan);
  font-family: monospace;
  font-size: .72rem;
  letter-spacing: .15em;
}

.lore-card > p {
  margin: 0;
  font-size: clamp(.88rem, 1.03vw, 1.18rem);
  line-height: 1.5;
}

.lore-card footer {
  grid-column: 2 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lore-card footer span { opacity: .55; }
.lore-card footer strong { color: var(--acid); }

.vertical-note {
  position: absolute;
  right: 20px;
  bottom: 14%;
  writing-mode: vertical-rl;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: .45;
}

.states-screen { background: #eefabf; }

.states-grid {
  opacity: .42;
  background-size: 8vw 8vw;
  mask-image: radial-gradient(circle at 45% 55%, #000, transparent 72%);
}

.states-heading {
  position: absolute;
  z-index: 4;
  top: 14%;
  left: var(--page-pad);
  width: 50%;
}

.states-heading h2 { font-size: clamp(4rem, 7.1vw, 8.5rem); }

.mood-stage {
  position: absolute;
  z-index: 3;
  left: 39%;
  top: 15%;
  width: min(47vw, 800px);
  aspect-ratio: 1;
  transform: translate(var(--tilt-x, 0), var(--tilt-y, 0));
}

.mood-character {
  position: absolute;
  z-index: 3;
  inset: 6%;
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(14, 24, 95, .2));
  transition: opacity .18s ease, transform .42s cubic-bezier(.2,.8,.2,1), filter .42s ease;
  animation: character-float 4.7s ease-in-out infinite;
}

.mood-character.is-switching { opacity: 0; transform: scale(.75) rotate(8deg); filter: blur(8px) saturate(2); }

.scanner-ring {
  position: absolute;
  border: 1px solid rgba(7, 18, 47, .24);
  border-radius: 50%;
  animation: orbit-spin 18s linear infinite;
}

.scanner-ring::before,
.scanner-ring::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.scanner-ring::before { left: 50%; top: -5px; width: 1px; height: 11px; }
.scanner-ring::after { top: 50%; left: -5px; width: 11px; height: 1px; }
.scanner-ring--outer { inset: 0; border-style: dashed; }
.scanner-ring--inner { inset: 13%; animation-direction: reverse; animation-duration: 12s; border-color: rgba(255, 40, 226, .4); }

.mood-index {
  position: absolute;
  z-index: 0;
  right: 1%;
  bottom: -8%;
  color: rgba(7, 18, 47, .06);
  font-family: var(--display);
  font-size: clamp(10rem, 24vw, 28rem);
  line-height: 1;
}

.mood-console {
  position: absolute;
  z-index: 5;
  right: var(--page-pad);
  bottom: 7%;
  width: min(34vw, 560px);
  padding: clamp(18px, 2vw, 34px);
  border: 1px solid var(--line-dark);
  background: rgba(245, 255, 217, .78);
  backdrop-filter: blur(16px);
}

.mood-tabs { display: flex; border-bottom: 1px solid var(--line-dark); }

.mood-tab {
  flex: 1;
  padding: 10px 6px 14px;
  color: var(--ink);
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .42;
  transition: opacity .2s ease, border-color .2s ease;
}

.mood-tab span { display: block; margin-bottom: 5px; font-family: monospace; font-size: .62rem; }
.mood-tab:hover,
.mood-tab.is-active { opacity: 1; border-color: var(--pink); }

.mood-copy { min-height: 140px; padding: 24px 0 18px; }
.mood-quote { margin: 0 0 12px; font-family: var(--display); font-size: clamp(1.45rem, 2vw, 2.4rem); line-height: 1; }
.mood-detail { margin: 0; max-width: 42ch; font-size: .91rem; }

.spec-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line-dark); }
.spec-list div { padding-top: 13px; }
.spec-list dt { margin-bottom: 4px; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; opacity: .5; }
.spec-list dd { margin: 0; font-size: .72rem; font-weight: 800; text-transform: uppercase; }

.roadmap-screen {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(30px, 6vw, 120px);
  align-items: center;
  padding: calc(var(--header-h) + 30px) var(--page-pad) 40px;
}

.roadmap-glow {
  position: absolute;
  z-index: -1;
  width: 70vw;
  height: 70vw;
  left: -28vw;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,58,255,.34), rgba(255,40,226,.09) 38%, transparent 68%);
  filter: blur(20px);
  animation: glow-breathe 8s ease-in-out infinite;
}

.roadmap-heading { align-self: start; padding-top: 10vh; }
.roadmap-heading h2 { margin-bottom: 30px; }
.roadmap-heading > p:last-child { max-width: 340px; margin: 0; font-size: clamp(.98rem, 1.15vw, 1.3rem); opacity: .65; }

.roadmap-list {
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  min-height: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: .7fr 1fr 1.25fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  opacity: .55;
  transition: opacity .25s ease, padding .25s ease, background .25s ease;
}

.roadmap-item:hover { opacity: 1; padding-left: 18px; background: rgba(255,255,255,.025); }
.roadmap-item.is-complete,
.roadmap-item.is-current { opacity: 1; }

.roadmap-meta { display: flex; flex-direction: column; gap: 4px; font-size: .59rem; letter-spacing: .13em; }
.roadmap-meta em { color: var(--cyan); font-style: normal; font-weight: 900; }
.roadmap-item.is-current .roadmap-meta em { color: var(--acid); }
.roadmap-item h3 { font-size: clamp(1.6rem, 2.6vw, 3.1rem); letter-spacing: -.06em; }
.roadmap-item p { margin: 0; font-size: clamp(.78rem, .9vw, 1rem); opacity: .74; }

.phase-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-light);
  color: var(--acid);
  font-family: monospace;
  font-weight: 800;
}

.phase-mark--pulse { background: var(--acid); box-shadow: 0 0 0 0 rgba(202,255,0,.7); animation: phase-pulse 1.8s ease-out infinite; }

.contact-grid { opacity: .3; }

.contact-character {
  position: absolute;
  z-index: 1;
  right: -6%;
  bottom: -12%;
  width: min(60vw, 980px);
  filter: drop-shadow(0 24px 28px rgba(9, 20, 90, .22));
}

.contact-copy {
  position: absolute;
  z-index: 3;
  top: 16%;
  left: var(--page-pad);
  width: min(58vw, 1050px);
}

.contact-copy h2 { font-size: clamp(5.2rem, 10vw, 12rem); }

.contact-note {
  max-width: 430px;
  margin: 30px 0;
  font-size: clamp(.96rem, 1.15vw, 1.28rem);
  font-weight: 600;
}

.contact-actions { width: min(56vw, 900px); border-top: 1px solid var(--line-dark); }

.big-link {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  padding: 17px 10px 17px 0;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  text-decoration: none;
  text-align: left;
  font-size: clamp(.85rem, 1vw, 1.05rem);
  font-weight: 900;
  letter-spacing: .09em;
  transition: padding .22s ease, background .22s ease, color .22s ease;
}

.big-link strong { font-size: .67em; letter-spacing: .16em; }
.big-link:hover,
.big-link:focus-visible { padding-left: 16px; color: var(--paper); background: var(--ink); }

.site-footer {
  position: absolute;
  z-index: 4;
  right: var(--page-pad);
  bottom: 24px;
  left: var(--page-pad);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-footer a { text-decoration: none; }

.copy-toast {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 24px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--blue);
  box-shadow: 8px 8px 0 var(--pink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 28px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

.reveal--late { transition-delay: .14s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes character-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(.86); opacity: .25; }
  50% { transform: scaleX(1); opacity: .12; }
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

@keyframes scan {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

@keyframes glitch-hit {
  0% { transform: translate(0); filter: hue-rotate(0); }
  20% { transform: translate(-11px, 4px); filter: hue-rotate(80deg); }
  40% { transform: translate(9px, -3px); clip-path: inset(18% 0 52% 0); }
  60% { transform: translate(-5px, 3px); clip-path: inset(58% 0 10% 0); }
  100% { transform: translate(0); clip-path: inset(0); }
}

@keyframes echo-ping {
  0% { opacity: 0; transform: scale(.74) rotate(12deg); }
  25% { opacity: .6; }
  100% { opacity: 0; transform: scale(1.2) rotate(18deg); }
}

@keyframes glow-breathe {
  0%, 100% { transform: scale(.9); opacity: .7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes phase-pulse {
  100% { box-shadow: 0 0 0 18px rgba(202,255,0,0); }
}

@media (max-width: 1100px) {
  .hero-copy { width: 77vw; }
  .hero-character-wrap { width: min(54vw, 720px); right: 0; }
  .origin-character { right: -9%; width: 66vw; }
  .lore-card { width: 70vw; }
  .mood-stage { left: 34%; width: 54vw; }
  .mood-console { width: 41vw; }
  .roadmap-screen { grid-template-columns: .72fr 1.28fr; gap: 35px; }
}

@media (max-width: 800px) {
  html { scroll-snap-type: y proximity; }
  body, button { cursor: auto; }
  .cursor-orb, .nav-links, .chapter-rail, .corner-label { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .screen { min-height: 720px; height: auto; padding-bottom: 80px; }

  .hero-screen { min-height: 100svh; }
  .hero-copy { position: relative; inset: auto; width: 100%; padding: 16vh var(--page-pad) 0; }
  .hero-copy h1 { font-size: clamp(4.2rem, 17.8vw, 8rem); }
  .hero-copy h1 span:last-child { margin-left: 0; }
  .hero-character-wrap { width: 83vw; max-width: 610px; right: -15vw; bottom: 6vh; opacity: .94; }
  .hero-bottomline { position: relative; z-index: 5; align-items: flex-start; flex-direction: column; margin-top: 20px; margin-left: 0; gap: 22px; }
  .scroll-prompt, .corner-label--right { display: none; }

  .origin-screen { min-height: 1000px; }
  .origin-title-wrap { top: 11%; width: 90%; }
  .origin-title-wrap h2, .states-heading h2, .roadmap-heading h2, .contact-copy h2 { font-size: clamp(4rem, 18vw, 7rem); }
  .origin-character { top: 24%; right: -18%; width: 96vw; }
  .lore-card { grid-template-columns: auto 1fr; width: calc(100% - 2 * var(--page-pad)); bottom: 5%; }
  .lore-card > p:last-of-type { grid-column: 2; }
  .lore-card footer { grid-column: 1 / -1; }

  .states-screen { min-height: 1120px; }
  .states-heading { top: 9%; width: 88%; }
  .mood-stage { left: 4%; top: 29%; width: 92vw; }
  .mood-console { right: var(--page-pad); bottom: 4%; width: calc(100% - 2 * var(--page-pad)); }

  .roadmap-screen { display: block; min-height: 1080px; padding-top: calc(var(--header-h) + 60px); }
  .roadmap-heading { padding-top: 0; }
  .roadmap-heading h2 { margin-bottom: 18px; }
  .roadmap-list { height: 540px; margin-top: 50px; }
  .roadmap-item { grid-template-columns: .65fr 1.15fr 1.3fr auto; }

  .contact-screen { min-height: 960px; }
  .contact-copy { top: 12%; width: calc(100% - 2 * var(--page-pad)); }
  .contact-actions { width: 100%; }
  .contact-character { right: -27%; bottom: -3%; width: 105vw; opacity: .58; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  :root { --header-h: 62px; --page-pad: 20px; }
  .social-links { gap: 12px; }
  .social-links a, .wordmark { font-size: .64rem; }
  .hero-copy { padding-top: 18vh; }
  .hero-copy h1 { font-size: clamp(4rem, 17.8vw, 6.5rem); }
  .hero-character-wrap { width: 103vw; right: -31vw; bottom: 8vh; }
  .hero-bottomline p { max-width: 180px; }
  .origin-screen { min-height: 1060px; }
  .origin-character { top: 23%; right: -25%; width: 110vw; }
  .lore-card { grid-template-columns: 1fr; }
  .lore-number { display: none; }
  .lore-card > p:last-of-type { grid-column: auto; }
  .lore-card footer { grid-column: auto; flex-direction: column; gap: 6px; }
  .states-screen { min-height: 1100px; }
  .mood-stage { top: 31%; left: -2%; width: 104vw; }
  .mood-tabs { overflow-x: auto; }
  .mood-tab { min-width: 100px; }
  .mood-copy { min-height: 150px; }
  .spec-list { gap: 10px; }
  .spec-list dd { font-size: .62rem; }
  .roadmap-screen { min-height: 1180px; }
  .roadmap-list { height: 680px; }
  .roadmap-item { grid-template-columns: .55fr 1fr auto; align-content: center; }
  .roadmap-item p { grid-column: 2 / -1; }
  .contact-screen { min-height: 900px; }
  .contact-copy h2 { font-size: clamp(4rem, 21vw, 6.5rem); }
  .contact-character { width: 125vw; right: -45%; }
  .site-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
