:root {
  color-scheme: dark;
  --ink: #f0f3ee;
  --dim: #8c938d;
  --line: rgba(240, 243, 238, .18);
  --acid: #a9ff41;
  --cyan: #36d9ff;
  --violet: #8057ff;
  --mx: 50vw;
  --my: 50vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #050607; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #050607;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  background: radial-gradient(430px circle at var(--mx) var(--my), rgba(91, 255, 166, .08), transparent 60%);
  mix-blend-mode: screen;
}

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

.cursor-aura { display: none; }

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 2rem;
  font-size: .7rem;
  letter-spacing: .18em;
  mix-blend-mode: difference;
}

.wordmark { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .65rem; width: max-content; }
.mark { color: var(--acid); font-size: .9rem; }
.coordinates { display: flex; gap: 1.25rem; font-variant-numeric: tabular-nums; color: #c8cbc8; }
.edition { justify-self: end; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  padding: 7rem 4vw 4.5rem;
  overflow: hidden;
}

.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image {
  z-index: -3;
  background-image: url("assets/chameleon-eye.webp");
  background-size: cover;
  background-position: 58% center;
  transform: scale(1.04);
  animation: breathe 14s ease-in-out infinite alternate;
}
.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,5,6,.92) 0%, rgba(3,5,6,.5) 38%, rgba(3,5,6,.08) 72%),
    linear-gradient(0deg, rgba(3,5,6,.92) 0%, transparent 52%);
}

.eyebrow, .section-index {
  margin: 0 0 1.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--acid);
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(5rem, 14vw, 13.5rem);
  line-height: .72;
  letter-spacing: -.075em;
  font-weight: 800;
}
h1 span { display: block; }
h1 .outline { color: transparent; -webkit-text-stroke: 1px rgba(240,243,238,.75); }

.hero-note {
  position: absolute;
  right: 4vw;
  bottom: 4.8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #c2c7c2;
  font-size: .8rem;
  letter-spacing: .08em;
}
.signal { width: .55rem; height: .55rem; border-radius: 50%; background: var(--acid); box-shadow: 0 0 1.4rem var(--acid); animation: pulse 2s infinite; }
.scroll-mark { position: absolute; right: 2rem; bottom: 1.5rem; height: 3rem; width: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-mark span { display: block; width: 100%; height: 45%; background: var(--ink); animation: scan 2s infinite; }

.section-pad { padding: clamp(6rem, 12vw, 12rem) 6vw; }
.manifesto { min-height: 90svh; position: relative; }
.display-quote {
  max-width: 1500px;
  margin: 0;
  font-size: clamp(2.7rem, 6.5vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 600;
}
.display-quote em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--ink); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .6fr;
  align-items: end;
  gap: 6vw;
  margin-top: 9rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.small-copy { max-width: 27rem; margin: 0; font-size: clamp(1rem, 1.5vw, 1.4rem); line-height: 1.5; }
.muted { color: var(--dim); }
.glyph { justify-self: end; display: flex; align-items: baseline; gap: .2em; color: var(--acid); font-size: clamp(4rem, 9vw, 9rem); line-height: .7; }
.glyph span { font-size: .35em; color: var(--violet); }

.image-chapter { position: relative; min-height: 100svh; overflow: hidden; }
.image-chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,5,6,.9), rgba(3,5,6,.06) 58%, rgba(3,5,6,.35)); }
.image-copy { position: absolute; left: 6vw; bottom: 6rem; z-index: 2; max-width: 65rem; }
.image-copy blockquote { margin: 0; font-size: clamp(2.7rem, 6vw, 6.7rem); line-height: .94; letter-spacing: -.055em; }
.vertical-note { position: absolute; right: 1.5rem; top: 50%; margin: 0; writing-mode: vertical-rl; transform: translateY(-50%); font-size: .62rem; letter-spacing: .28em; }

.fragments {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding-top: 1px;
  padding-bottom: 1px;
  background: var(--line);
}
.fragment {
  position: relative;
  min-height: 42vw;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #050607;
  overflow: hidden;
}
.fragment-wide { grid-column: 1 / -1; min-height: 50svh; }
.fragment-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; letter-spacing: .15em; color: var(--dim); }
.fragment p, .fragment code { max-width: 16ch; margin: 0; font-size: clamp(2.2rem, 5.8vw, 7rem); line-height: .96; letter-spacing: -.045em; }
.fragment code { color: var(--acid); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(2rem, 5vw, 6rem); }
.fragment p.muted { margin-top: 2rem; font-size: clamp(1rem, 1.4vw, 1.35rem); line-height: 1.45; letter-spacing: 0; }
.spectrum { height: 1px; width: 100%; background: linear-gradient(90deg, var(--acid), var(--cyan), var(--violet), #ff466d, var(--acid)); box-shadow: 0 0 5rem 1.5rem rgba(64,216,255,.22); animation: hue 9s linear infinite; }
.chroma { background: radial-gradient(circle at 70% 20%, rgba(64,39,125,.28), transparent 45%), #050607; }

.closing { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.closing h2 { position: relative; z-index: 2; margin: 0; font-size: clamp(4rem, 12vw, 13rem); line-height: .78; letter-spacing: -.075em; }
.closing h2 span { color: transparent; -webkit-text-stroke: 1px rgba(240,243,238,.8); }
.orb { position: absolute; right: 8vw; top: 50%; width: min(34vw, 34rem); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(169,255,65,.35); border-radius: 50%; filter: drop-shadow(0 0 3rem rgba(54,217,255,.14)); }
.orb i { position: absolute; inset: 12%; border: 1px solid rgba(54,217,255,.28); border-radius: 50%; animation: orbit 9s linear infinite; }
.orb i:nth-child(2) { inset: 28%; border-color: rgba(128,87,255,.6); animation-duration: 6s; animation-direction: reverse; }
.orb i:nth-child(3) { inset: 43%; background: var(--acid); border: 0; box-shadow: 0 0 3rem var(--acid); }
.closing-note { position: absolute; bottom: 4rem; right: 6vw; color: var(--dim); font-size: .78rem; letter-spacing: .12em; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.4rem 2rem; border-top: 1px solid var(--line); font-size: .63rem; letter-spacing: .16em; color: var(--dim); }

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

@keyframes grain { 0% { transform: translate(0); } 25% { transform: translate(3%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(4%, 2%); } 100% { transform: translate(-3%, -3%); } }
@keyframes breathe { from { transform: scale(1.04); filter: saturate(.92); } to { transform: scale(1.1); filter: saturate(1.18); } }
@keyframes pulse { 50% { opacity: .25; transform: scale(.75); } }
@keyframes scan { from { transform: translateY(-120%); } to { transform: translateY(240%); } }
@keyframes hue { to { filter: hue-rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg) scaleX(.7); } }

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; padding: 1.1rem; }
  .coordinates { display: none; }
  .edition { font-size: .55rem; }
  .hero { padding: 6rem 1rem 3rem; }
  .hero-image { background-position: 63% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,5,6,.92), rgba(3,5,6,.2) 70%); }
  h1 { font-size: clamp(4.2rem, 23vw, 7.5rem); line-height: .76; }
  .hero-note { position: static; margin-top: 2rem; font-size: .72rem; }
  .section-pad { padding: 6rem 1.1rem; }
  .display-quote { font-size: clamp(2.45rem, 12vw, 4.4rem); }
  .manifesto-grid { grid-template-columns: 1fr; gap: 3.5rem; margin-top: 6rem; }
  .glyph { justify-self: start; }
  .image-chapter { min-height: 86svh; }
  .image-chapter img { object-position: 47% center; }
  .image-copy { left: 1.1rem; right: 2.5rem; bottom: 3rem; }
  .image-copy blockquote { font-size: clamp(2.4rem, 11vw, 4.2rem); }
  .vertical-note { right: .6rem; }
  .fragments { grid-template-columns: 1fr; }
  .fragment-wide { grid-column: auto; }
  .fragment { min-height: 75svh; padding: 1.4rem 1.1rem; }
  .fragment p, .fragment code { font-size: clamp(2.8rem, 13vw, 5rem); }
  .closing h2 { font-size: clamp(4rem, 19vw, 8rem); }
  .orb { right: -12vw; width: 68vw; opacity: .65; }
  .closing-note { left: 1.1rem; right: auto; bottom: 2.5rem; }
  footer { padding: 1.2rem 1.1rem; font-size: .52rem; }
}

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