:root {
  --paper: #f9f4eb;
  --ink: #1a1c1c;
  --acid: #b9ff27;
  --blue: #1454ff;
  --orange: #ff7a1a;
  --muted: #b7b2aa;
  --line: rgba(26, 28, 28, 0.2);
  --page-pad: clamp(1.25rem, 2.6vw, 3.5rem);
  --nav-height: 4rem;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

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

::selection {
  background: var(--acid);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.sr-only {
  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: fixed;
  z-index: 1001;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--acid);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

/* Loader: a compact mark expands into a tiled field, mirroring the reference's intro rhythm. */
.loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: visibility 0s linear 900ms, opacity 600ms cubic-bezier(0.77, 0, 0.18, 1) 300ms;
}

.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(249, 244, 235, 0.08) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(249, 244, 235, 0.08) 50%, transparent 50.2%);
  background-size: 9vw 9vw;
  opacity: 0;
  animation: loaderField 1.5s cubic-bezier(0.65, 0, 0.35, 1) 650ms both;
}

.loader-grid {
  position: relative;
  z-index: 2;
  width: min(24rem, 62vw);
  aspect-ratio: 8 / 3;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.35rem;
}

.loader-grid i {
  display: block;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
  animation: tileIn 1.15s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.loader-grid i:nth-child(3n) {
  border-radius: 0;
  background: var(--acid);
}

.loader-grid i:nth-child(4n) {
  border-radius: 50% 50% 0 0;
  background: var(--blue);
}

.loader-grid i:nth-child(n + 9) { animation-delay: 70ms; }
.loader-grid i:nth-child(n + 17) { animation-delay: 140ms; }
.loader-grid i:nth-child(2n) { animation-delay: 210ms; }

.loader-meta {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: 2rem;
  left: var(--page-pad);
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(249, 244, 235, 0.34);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.is-ready .loader {
  visibility: hidden;
  opacity: 0;
}

@keyframes tileIn {
  0% { transform: scale(0) rotate(-90deg); }
  58% { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes loaderField {
  0% { opacity: 0; transform: scale(0.72); }
  65% { opacity: 1; }
  100% { opacity: 0.4; transform: scale(1.1); }
}

/* Fixed navigation */
.topbar {
  position: fixed;
  z-index: 100;
  top: 1.1rem;
  right: var(--page-pad);
  left: var(--page-pad);
  height: var(--nav-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  background: rgba(26, 28, 28, 0.94);
  border: 1px solid rgba(249, 244, 235, 0.16);
  color: var(--paper);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.top-actions,
.external {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  transform: rotate(0deg);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.brand-mark i {
  display: block;
  background: var(--paper);
  border-radius: 50%;
}

.brand-mark i:nth-child(2) { border-radius: 50% 50% 0 50%; background: var(--acid); }
.brand-mark i:nth-child(3) { border-radius: 0; background: var(--blue); }

.nav-links {
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
}

.nav-links a,
.external {
  position: relative;
  padding: 0.55rem 0;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}

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

.top-actions {
  gap: 0.9rem;
}

.external {
  gap: 0.35rem;
}

.external b {
  color: var(--acid);
}

.ca-button {
  min-width: 6.8rem;
  height: 2.85rem;
  padding: 0 1rem;
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

.ca-button:hover {
  background: var(--orange);
}

/* Cursor and vertical progress */
.cursor {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  pointer-events: none;
  border: 1px solid rgba(185, 255, 39, 0.85);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.75);
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease, background 180ms ease;
  mix-blend-mode: difference;
}

.cursor span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--paper);
}

.cursor.is-visible { opacity: 1; }
.cursor.is-hovering { width: 3.25rem; height: 3.25rem; background: rgba(185, 255, 39, 0.5); }

.section-rail {
  position: fixed;
  z-index: 80;
  right: 1rem;
  top: 50%;
  display: grid;
  gap: 0.3rem;
  transform: translateY(-50%);
}

.section-rail a {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(249, 244, 235, 0.8);
  border: 1px solid rgba(26, 28, 28, 0.22);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.62rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
  transition: width 220ms ease, background 220ms ease;
}

.section-rail a.is-active {
  width: 3.4rem;
  background: var(--acid);
}

/* Shared stage language */
.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  overflow: clip;
  contain: paint;
  isolation: isolate;
}

.section-label,
.eyebrow,
.character-tag,
.signal-note,
figcaption,
.road-card > div,
.road-card small,
footer {
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.section-label {
  display: inline-block;
  font-size: clamp(0.7rem, 0.7vw, 0.82rem);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  translate: 0 0.75rem;
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-visible .reveal {
  opacity: 1;
  translate: 0 0;
}

.is-visible .reveal:nth-child(2) { transition-delay: 80ms; }
.is-visible .reveal:nth-child(3) { transition-delay: 150ms; }
.is-visible .reveal:nth-child(4) { transition-delay: 220ms; }

.js-parallax {
  --parallax-x: 0px;
  --parallax-y: 0px;
  will-change: transform;
}

/* Hero */
.hero {
  min-height: max(100svh, 48rem);
  padding: calc(var(--nav-height) + 6rem) var(--page-pad) 5rem;
  background: var(--ink);
  color: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 72% 47%, rgba(185, 255, 39, 0.22), transparent 20%),
    radial-gradient(circle at 84% 73%, rgba(20, 84, 255, 0.35), transparent 24%),
    linear-gradient(110deg, transparent 48%, rgba(249, 244, 235, 0.035) 48% 49%, transparent 49%);
}

.hero-pattern {
  position: absolute;
  z-index: -2;
  top: 15%;
  right: -5vw;
  width: min(54vw, 66rem);
  aspect-ratio: 1;
  opacity: 0.22;
  background:
    radial-gradient(circle, var(--paper) 0 18%, transparent 19%) 0 0 / 10% 10%,
    conic-gradient(from 90deg, var(--acid) 0 25%, transparent 0 100%) 5% 5% / 20% 20%;
  filter: contrast(1.5);
  -webkit-mask-image: radial-gradient(circle at center, #000 0 58%, transparent 78%);
  mask-image: radial-gradient(circle at center, #000 0 58%, transparent 78%);
  animation: patternDrift 16s linear infinite;
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(51rem, 64vw);
  padding-top: 0.8rem;
  border-top: 1px solid rgba(249, 244, 235, 0.34);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-title {
  position: relative;
  z-index: 4;
  width: min-content;
  margin: clamp(2.5rem, 8vh, 6rem) 0 0;
  font-size: clamp(5.2rem, 11.2vw, 13.5rem);
  font-weight: 900;
  letter-spacing: -0.095em;
  line-height: 0.72;
  text-transform: uppercase;
}

.title-line {
  display: block;
  overflow: hidden;
  overflow: clip;
  white-space: nowrap;
}

.title-line--outline {
  margin-left: 0.16em;
  color: transparent;
  -webkit-text-stroke: max(1px, 0.012em) var(--paper);
}

.title-line .glyph {
  display: inline-block;
  transform: translateY(38%) rotate(1deg);
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-visible .title-line .glyph {
  transform: translateY(0) rotate(0);
}

.title-line .glyph:nth-child(2n) { transition-delay: 35ms; }
.title-line .glyph:nth-child(3n) { transition-delay: 70ms; }
.title-line .glyph:nth-child(5n) { transition-delay: 105ms; }

.hero-copy {
  position: absolute;
  z-index: 4;
  bottom: 4.2rem;
  left: var(--page-pad);
  width: min(29rem, 33vw);
  display: flex;
  align-items: end;
  gap: 2rem;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.35rem);
  font-weight: 700;
  line-height: 1.18;
}

.round-link {
  flex: 0 0 auto;
  width: 7rem;
  height: 7rem;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding: 1rem;
  background: var(--acid);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  transition: border-radius 280ms ease, background 280ms ease;
}

.round-link b {
  justify-self: end;
  font-size: 1.25rem;
}

.round-link:hover {
  border-radius: 20% 50% 34% 50%;
  background: var(--orange);
}

.hero-character {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 4rem);
  bottom: -8vh;
  width: min(34vw, 38rem);
  max-height: 82%;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0);
}

.hero-character img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: saturate(1.04) contrast(1.02);
  animation: duckFloat 5.6s ease-in-out infinite;
}

.character-aura {
  position: absolute;
  z-index: 1;
  inset: 24% 1% 9%;
  background: var(--blue);
  border-radius: 50%;
  filter: blur(5rem);
  opacity: 0.22;
  animation: auraPulse 4s ease-in-out infinite;
}

.character-tag {
  position: absolute;
  z-index: 4;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(249, 244, 235, 0.36);
  background: rgba(26, 28, 28, 0.86);
  font-size: 0.64rem;
  font-weight: 700;
  backdrop-filter: blur(7px);
}

.tag-one { top: 30%; right: -2%; transform: rotate(4deg); }
.tag-two { top: 55%; left: -8%; transform: rotate(-6deg); color: var(--acid); }

.scroll-ticker {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.1rem;
  overflow: hidden;
  background: var(--acid);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 2.1rem;
  white-space: nowrap;
}

.scroll-ticker div {
  width: max-content;
  animation: marquee 20s linear infinite;
}

.scroll-ticker span { display: inline-block; }

@keyframes marquee { to { transform: translateX(-33.333%); } }
@keyframes patternDrift { to { transform: rotate(360deg) scale(1.01); } }
@keyframes duckFloat { 0%, 100% { transform: translateY(0) rotate(-0.2deg); } 50% { transform: translateY(-0.38rem) rotate(0.25deg); } }
@keyframes auraPulse { 0%, 100% { transform: scale(0.94); opacity: 0.15; } 50% { transform: scale(1.01); opacity: 0.22; } }

/* Lore: photographic scene + dotted morph window. */
.lore {
  min-height: max(100svh, 56rem);
  padding: calc(var(--nav-height) + 5.5rem) var(--page-pad) 4rem;
  background: var(--paper);
}

.scene-backdrop {
  position: absolute;
  z-index: -4;
  inset: -3%;
  background-position: center;
  background-size: cover;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.04);
  will-change: transform;
}

.archive-backdrop {
  background-image: url("assets/archive-room.webp");
}

.paper-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(249, 244, 235, 0.98) 0 39%, rgba(249, 244, 235, 0.64) 59%, rgba(249, 244, 235, 0.18)),
    linear-gradient(0deg, rgba(249, 244, 235, 0.28), transparent 65%);
}

.lore-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--nav-height) - 9.5rem);
  display: grid;
  grid-template-columns: 0.95fr 0.75fr 1.3fr;
  grid-template-rows: auto 1fr;
  gap: 2.2rem clamp(1.5rem, 4vw, 5rem);
  align-items: start;
}

.lore-heading {
  position: relative;
  z-index: 4;
  grid-column: 1 / 3;
}

.lore-heading h2,
.signals-head h2,
.roadmap-head h2,
.follow-copy h2 {
  margin: 1.2rem 0 0;
  font-size: clamp(4rem, 7.3vw, 9.2rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.82;
  text-transform: uppercase;
}

.lore-heading h2 em,
.follow-copy h2 em {
  color: var(--blue);
  font-style: normal;
}

.lore-copy {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 32rem;
}

.lore-copy p {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 1vw, 1.2rem);
  line-height: 1.35;
}

.lore-copy .lead {
  margin-top: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.morph-frame {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  width: min(31vw, 37rem);
  margin: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0.75rem solid var(--ink);
  box-shadow: 0.75rem 0.75rem 0 rgba(20, 84, 255, 0.88);
  transform: rotate(0.4deg);
  contain: paint;
}

.morph-frame::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  border: 1px solid rgba(249, 244, 235, 0.28);
  pointer-events: none;
}

.morph-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(0.72);
  transform: scale(1.05);
  transition: filter 450ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-frame:hover img {
  filter: grayscale(0) contrast(1.04) brightness(1);
  transform: scale(1);
}

.halftone {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    radial-gradient(circle, rgba(185, 255, 39, 0.95) 0 1.5px, transparent 1.8px) 0 0 / 9px 9px,
    var(--ink);
  mix-blend-mode: screen;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(circle 21rem at var(--spot-x) var(--spot-y), transparent 0 20%, #000 68%);
  mask-image: radial-gradient(circle 21rem at var(--spot-x) var(--spot-y), transparent 0 20%, #000 68%);
  transition: opacity 300ms ease;
}

.morph-frame:hover .halftone { opacity: 0.55; }

.morph-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.25rem 0.2rem;
  color: var(--paper);
  font-size: 0.57rem;
  line-height: 1.35;
}

.sneak-duck {
  position: absolute;
  z-index: 1;
  right: 31vw;
  bottom: -6%;
  width: min(22vw, 26rem);
  max-height: 58%;
  pointer-events: none;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(-2deg);
  filter: drop-shadow(0 1.5rem 1.2rem rgba(26, 28, 28, 0.28));
}

/* Signals */
.signals {
  min-height: max(100svh, 52rem);
  padding: calc(var(--nav-height) + 5.5rem) var(--page-pad) 5rem;
  background: var(--ink);
  color: var(--paper);
}

.signal-backdrop { background-image: url("assets/signal-pool.webp"); }

.signals::after {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 28, 28, 0.94), rgba(26, 28, 28, 0.36) 52%, rgba(26, 28, 28, 0.78));
}

.signal-grid,
.follow-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(circle, var(--acid) 1px, transparent 1.6px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle 35rem at var(--pointer-x) var(--pointer-y), #000, transparent 75%);
  mask-image: radial-gradient(circle 35rem at var(--pointer-x) var(--pointer-y), #000, transparent 75%);
}

.signal-spotlight {
  position: absolute;
  z-index: -2;
  top: var(--pointer-y);
  left: var(--pointer-x);
  width: 38rem;
  height: 38rem;
  background: rgba(185, 255, 39, 0.14);
  border-radius: 50%;
  filter: blur(4rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.signals-head {
  position: relative;
  z-index: 2;
  max-width: 74rem;
}

.signals-head h2 {
  max-width: 12ch;
}

.principles {
  position: absolute;
  z-index: 4;
  right: var(--page-pad);
  bottom: 5rem;
  left: 37%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(249, 244, 235, 0.42);
  border: 1px solid rgba(249, 244, 235, 0.42);
}

.principle {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-height: 18rem;
  padding: 1.2rem;
  background: rgba(26, 28, 28, 0.88);
  backdrop-filter: blur(16px);
  transform: perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  overflow: hidden;
  contain: paint;
  transform-style: preserve-3d;
  transition: background 260ms ease, color 260ms ease, opacity 720ms ease, translate 720ms ease, transform 160ms ease;
}

.principle:hover {
  background: var(--acid);
  color: var(--ink);
}

.principle > span {
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.principle h3 {
  margin: clamp(2rem, 7vh, 5rem) 0 0.65rem;
  font-size: clamp(2rem, 3.1vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.principle p {
  max-width: 24ch;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}

.signal-note {
  position: absolute;
  z-index: 3;
  left: var(--page-pad);
  bottom: 5rem;
  width: min(26rem, 30vw);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(249, 244, 235, 0.44);
  background: rgba(26, 28, 28, 0.7);
  font-size: 0.62rem;
  backdrop-filter: blur(10px);
}

.signal-note b {
  height: 2px;
  background: var(--acid);
  transform-origin: left;
  animation: signalScan 1.8s ease-in-out infinite;
}

@keyframes signalScan { 0%, 100% { transform: scaleX(0.1); } 50% { transform: scaleX(1); } }

/* Roadmap as a physical deck */
.roadmap {
  min-height: max(100svh, 58rem);
  padding: calc(var(--nav-height) + 5.5rem) var(--page-pad) 4rem;
  background: var(--paper);
}

.roadmap::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 6.25vw 100%,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 6.25vw;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

.roadmap-head {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  column-gap: 2rem;
  align-items: end;
}

.roadmap-head .section-label,
.roadmap-head h2 { grid-column: 1; }

.roadmap-head h2 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.roadmap-head p {
  grid-column: 2;
  grid-row: 2;
  max-width: 29ch;
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.road-cards {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: clamp(0.65rem, 1.2vw, 1.5rem);
  margin: clamp(3rem, 6vh, 5.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.road-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --fan-rot: calc((var(--card-index) - 1.5) * 0.4deg);
  min-height: clamp(18rem, 34vh, 25rem);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  box-shadow: 0.4rem 0.4rem 0 var(--blue);
  transform: perspective(1000px) rotateZ(var(--fan-rot)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: color 250ms ease, background 250ms ease, box-shadow 250ms ease, transform 160ms ease, opacity 720ms ease, translate 720ms ease;
}

.road-card:nth-child(2) { box-shadow: 0.4rem 0.4rem 0 var(--orange); }
.road-card:nth-child(3) { box-shadow: 0.4rem 0.4rem 0 var(--acid); }
.road-card:nth-child(4) { box-shadow: 0.4rem 0.4rem 0 var(--blue); }

.road-card:hover {
  z-index: 4;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 0.6rem 0.6rem 0 var(--orange);
}

.road-card > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.6rem;
}

.road-card h3 {
  margin: auto 0 0.7rem;
  font-size: clamp(2rem, 3.1vw, 4.1rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.road-card p {
  min-height: 4.2em;
  margin: 0 0 1rem;
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  line-height: 1.25;
}

.road-card small {
  font-size: 0.55rem;
}

.road-stamp {
  position: absolute;
  z-index: 2;
  right: 3vw;
  top: 21%;
  padding: 0.7rem 1rem;
  border: 4px solid var(--orange);
  color: var(--orange);
  font-family: "Courier New", monospace;
  font-size: clamp(0.85rem, 1.35vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  transform: rotate(3deg);
}

/* Final callout */
.follow {
  min-height: max(100svh, 55rem);
  padding: calc(var(--nav-height) + 5.5rem) var(--page-pad) 6rem;
  background: var(--acid);
}

.follow::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 80% 55%, rgba(20, 84, 255, 0.95), transparent 31%),
    linear-gradient(118deg, transparent 55%, rgba(249, 244, 235, 0.35) 55% 56%, transparent 56%);
}

.follow-grid {
  z-index: -1;
  opacity: 0.23;
  background-image: radial-gradient(circle, var(--ink) 1.5px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(circle 40rem at 72% 56%, #000, transparent 78%);
  mask-image: radial-gradient(circle 40rem at 72% 56%, #000, transparent 78%);
}

.follow-copy {
  position: relative;
  z-index: 3;
  width: min(61vw, 66rem);
}

.follow-copy h2 {
  font-size: clamp(4.6rem, 8.2vw, 10rem);
}

.follow-copy h2 em { color: var(--paper); }

.follow-copy p {
  max-width: 35ch;
  margin: 1.7rem 0 0;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 800;
  line-height: 1.22;
}

.joy-duck {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 5rem;
  width: min(30vw, 34rem);
  max-height: 66%;
  pointer-events: none;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(1deg);
  filter: drop-shadow(0 2rem 1.4rem rgba(26, 28, 28, 0.28));
  animation: joyBounce 3.4s ease-in-out infinite;
}

.follow-actions {
  position: absolute;
  z-index: 6;
  right: var(--page-pad);
  bottom: 5.3rem;
  left: var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.big-link {
  min-height: 4.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-right: 2px solid var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease;
}

.big-link:last-child { border-right: 0; }
.big-link:hover { background: var(--ink); color: var(--paper); }
.big-link b { font-size: 0.75rem; letter-spacing: 0.08em; }

.big-link--copy {
  background: transparent;
  text-align: left;
  cursor: pointer;
}

footer {
  position: absolute;
  z-index: 7;
  right: var(--page-pad);
  bottom: 1.25rem;
  left: var(--page-pad);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.58rem;
  font-weight: 700;
}

@keyframes joyBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.35rem; }
}

.toast {
  position: fixed;
  z-index: 950;
  right: var(--page-pad);
  bottom: 2rem;
  min-width: 13rem;
  padding: 1rem 1.2rem;
  background: var(--orange);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(1.2rem) rotate(2deg);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

@media (max-width: 1180px) {
  :root { --page-pad: clamp(1rem, 2.5vw, 2rem); }

  .nav-links { gap: 1.1rem; }
  .top-actions { gap: 0.6rem; }
  .external { font-size: 0.58rem; }

  .hero-character { width: min(39vw, 36rem); right: 1vw; }
  .hero-copy { width: min(33rem, 43vw); }

  .lore-grid { grid-template-columns: 1fr 0.7fr 1.1fr; }
  .morph-frame { width: min(34vw, 34rem); }
  .sneak-duck { right: 30vw; width: 25vw; }

  .principles { left: 28%; }
  .signal-note { width: 25%; }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
  }

  .nav-links { justify-content: end; }
  .nav-links a:nth-child(2) { display: none; }
  .external { display: none; }
  .section-rail { display: none; }

  .hero-title { font-size: clamp(4.6rem, 13.5vw, 8rem); }
  .hero-character { width: min(42vw, 31rem); right: -1vw; }
  .tag-one { right: 3%; }

  .lore { min-height: 75rem; }
  .lore-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .lore-heading { grid-column: 1 / -1; }
  .lore-copy { grid-column: 1; grid-row: 2; align-self: start; }
  .morph-frame { grid-column: 2; grid-row: 2; width: 100%; }
  .sneak-duck { right: 5vw; bottom: -8%; width: 34vw; }

  .principles { left: var(--page-pad); }
  .signal-note { display: none; }

  .roadmap { min-height: 69rem; }
  .roadmap-head { grid-template-columns: 1fr; }
  .roadmap-head p { grid-column: 1; grid-row: auto; margin-top: 1rem; }
  .road-cards { grid-template-columns: repeat(2, 1fr); }
  .road-card { min-height: 16rem; }
  .road-stamp { top: 30%; }

  .follow-copy { width: 70%; }
  .joy-duck { width: min(39vw, 29rem); right: -1vw; bottom: 5rem; }
  .follow-actions { grid-template-columns: 1fr 1fr; }
  .big-link--copy { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
  .big-link:nth-child(2) { border-right: 0; }
}

@media (max-width: 680px) {
  :root { --nav-height: 3.4rem; }

  .topbar { top: 0.6rem; padding-left: 0.75rem; }
  .brand > span:last-child { display: none; }
  .brand-mark { width: 1.55rem; height: 1.55rem; }
  .nav-links { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .top-actions { grid-column: 3; }
  .ca-button { min-width: 6rem; height: 2.35rem; padding: 0 0.7rem; }

  .hero {
    min-height: 57rem;
    padding-top: 7rem;
  }

  .eyebrow { width: 100%; font-size: 0.58rem; }
  .eyebrow span:last-child { display: none; }
  .hero-title { margin-top: 3.4rem; font-size: clamp(3.8rem, 16vw, 5.8rem); line-height: 0.78; }
  .title-line--outline { margin-left: 0; }
  .hero-character { right: -12vw; bottom: 2rem; width: min(58vw, 23rem); opacity: 0.82; }
  .character-tag { display: none; }
  .hero-copy { right: auto; bottom: 3.9rem; width: 62%; display: block; }
  .hero-copy p { font-size: 0.95rem; }
  .round-link { width: 5.6rem; height: 5.6rem; margin-top: 1.2rem; }

  .lore {
    min-height: 105rem;
    padding-top: 6.5rem;
  }
  .paper-wash { background: linear-gradient(rgba(249, 244, 235, 0.94), rgba(249, 244, 235, 0.55)); }
  .lore-grid { display: block; }
  .lore-heading h2,
  .signals-head h2,
  .roadmap-head h2,
  .follow-copy h2 { font-size: clamp(3.6rem, 16vw, 6rem); }
  .lore-copy { margin-top: 2.2rem; }
  .morph-frame { width: calc(100% - 1rem); margin: 3rem 0 0; box-shadow: 0.8rem 0.8rem 0 var(--blue); }
  .sneak-duck { right: -8vw; bottom: -2rem; width: 55vw; opacity: 0.78; }

  .signals {
    min-height: 78rem;
    padding-top: 6.5rem;
  }
  .signals-head h2 { font-size: clamp(3.5rem, 15.5vw, 6rem); }
  .principles {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    margin-top: 5rem;
  }
  .principle { min-height: 12rem; }
  .principle h3 { margin-top: 2.2rem; }

  .roadmap {
    min-height: 62rem;
    padding-top: 6.5rem;
  }
  .roadmap-head h2 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .road-stamp { top: 22%; right: -1rem; font-size: 0.85rem; border-width: 3px; }
  .road-cards {
    width: calc(100% + var(--page-pad) * 2);
    margin-left: calc(var(--page-pad) * -1);
    grid-template-columns: repeat(4, minmax(78vw, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem var(--page-pad) 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .road-cards::-webkit-scrollbar { display: none; }
  .road-card { min-height: 23rem; scroll-snap-align: center; transform: none; }

  .follow {
    min-height: 66rem;
    padding-top: 6.5rem;
  }
  .follow-copy { width: 100%; }
  .follow-copy h2 { font-size: clamp(3.7rem, 14vw, 5.6rem); }
  .follow-copy p { width: 75%; }
  .joy-duck { width: 56vw; right: -15vw; bottom: 9rem; opacity: 0.68; }
  .follow-actions { bottom: 4.5rem; grid-template-columns: 1fr; }
  .big-link { min-height: 3.8rem; border-right: 0; border-bottom: 2px solid var(--ink); }
  .big-link:nth-child(2) { border-bottom: 0; }
  .big-link--copy { grid-column: auto; border-top: 2px solid var(--ink); border-bottom: 0; }
  footer span:nth-child(2) { display: none; }
}

@media (pointer: coarse) {
  .cursor { display: none; }
  .signal-grid,
  .follow-grid {
    -webkit-mask-image: radial-gradient(circle 35rem at 72% 55%, #000, transparent 75%);
    mask-image: radial-gradient(circle 35rem at 72% 55%, #000, transparent 75%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .cursor { display: none; }
  .reveal { opacity: 1; translate: 0; }
  .title-line .glyph { transform: none; }
}
