/* NULLTONE — v5: posters printed on a live signal field */
:root {
  --ink: #08090a;
  --ink-2: #0d0f10;
  --bone: #ede9e3;
  --muted: #8e8e86;
  --lime: #d8ff3e;
  --coral: #ff6a3d;
  --line: rgba(237, 233, 227, 0.14);
  --line-strong: rgba(237, 233, 227, 0.3);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
p { margin: 0; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: var(--ink);
  padding: 0.75rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- signal --
   The WebGL field is a fixed layer behind the entire page. The camera flies
   through it as you scroll, so the background is one continuous scene rather
   than a hero decoration. */
.gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
}

/* a thin meter at the very top: scroll position, lit by scroll speed */
.signal {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 130; pointer-events: none;
  background: rgba(237, 233, 227, 0.07);
  opacity: calc(0.5 + 0.5 * var(--v, 0));
  transition: opacity 0.2s linear;
}
.signal__fill {
  display: block; height: 100%; width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), color-mix(in srgb, var(--lime) 60%, var(--coral)));
}

/* pointer reticle: a lagging instrument ring, fine pointers only */
.reticle {
  position: fixed; top: 0; left: 0;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  z-index: 997; pointer-events: none;
  opacity: 0;
  transition: width 0.22s var(--ease), height 0.22s var(--ease),
    margin 0.22s var(--ease), opacity 0.3s var(--ease);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .reticle { opacity: 1; } }
.reticle::before,
.reticle::after {
  content: ""; position: absolute; border: 1px solid rgba(216, 255, 62, 0.7);
}
.reticle::before { inset: 0; }
.reticle::after { inset: 6px; border-color: rgba(216, 255, 62, 0.3); }
.reticle.is-hot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.reticle.is-hot::before { border-color: var(--lime); }

.grain {
  position: fixed; inset: 0; z-index: 999;
  pointer-events: none; opacity: 0.04;
  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='0.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.95rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand img { border-radius: 6px; }
.brand span {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone); opacity: 0.72;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { opacity: 1; color: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.55rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--bone);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--solid { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--solid:hover { background: var(--bone); border-color: var(--bone); transform: translateY(-2px); }
.btn:hover { border-color: var(--lime); color: var(--lime); }
.btn--sm { padding: 0.6rem 0.95rem; font-size: 0.625rem; letter-spacing: 0.16em; }

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 85% at 50% 42%, transparent 30%, rgba(8, 9, 10, 0.5) 72%, rgba(8, 9, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.5) 0%, rgba(8, 9, 10, 0.12) 26%, rgba(8, 9, 10, 0.34) 64%, rgba(8, 9, 10, 0.96) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(1.25rem, 3vh, 2.5rem);
  padding: clamp(5.75rem, 12vh, 7.5rem) var(--pad) clamp(2rem, 5vh, 3.25rem);
}
.eyebrow {
  display: block;
  color: var(--bone);
  margin-bottom: clamp(1rem, 2vh, 1.75rem);
}
.hero-wordmark {
  align-self: center;
  font-size: clamp(3rem, 20.5vw, 16.5rem);
  line-height: 0.84;
  letter-spacing: 0.02em;
  margin: 0;
  transform: translate3d(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -9px), 0);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark { transform: none; transition: none; }
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: end;
  padding-top: clamp(1.1rem, 2.5vh, 1.6rem);
  border-top: 1px solid var(--line);
}
.hero-tag {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.1vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero-side { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.hero-blurb { color: var(--muted); max-width: 38ch; font-size: 0.975rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero-hint {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.hero-hint::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 10px var(--lime);
  animation: hint 2.8s var(--ease) infinite;
}
@keyframes hint { 50% { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .hero-hint::before { animation: none; } }

/* A single veil sits over the field once you leave the hero. Sections stay
transparent, so there are no panel seams and the field reads continuously
behind every title — dimmed enough that body copy keeps its contrast. */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--ink);
  opacity: calc(var(--veil, 0) * 0.8);
}

main, .site-footer { position: relative; z-index: 2; }
.section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
  border-bottom: 1px solid var(--line);
  max-width: 1440px;
  margin: 0 auto;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head .mono { color: var(--lime); }
.section-head h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.9;
}

/* Listen */
.listen {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.listen-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  min-height: clamp(14rem, 20vw, 16rem);
  background: rgba(8, 9, 10, 0.82);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.listen-name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: 0.015em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  margin-top: auto;
}
.listen-note { color: var(--muted); font-size: 0.875rem; max-width: 26ch; }
.listen-go { color: var(--bone); }
.listen-card:hover { background: var(--lime); color: var(--ink); }
.listen-card:hover .mono,
.listen-card:hover .listen-note { color: rgba(8, 9, 10, 0.72); }
.listen-card--book .listen-name { font-size: clamp(0.95rem, 1.35vw, 1.15rem); }

/* About */
.statement {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 24ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-wrap: balance;
}
.about {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
  padding-top: clamp(1.4rem, 2.5vw, 1.9rem);
  border-top: 1px solid var(--line);
}
.about-mark {
  width: clamp(72px, 7vw, 104px);
  height: auto;
}
.about-copy { display: flex; flex-direction: column; gap: 1rem; }
.about-copy p { color: #bcb8b0; max-width: 62ch; font-size: clamp(1rem, 1.35vw, 1.1rem); }

/* Book */
.section--book { border-bottom: 0; }
.book-mail {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 5.6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--line-strong);
  width: fit-content; max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.book-mail:hover { color: var(--lime); border-color: var(--lime); }

/* 404 */
.section--404 { padding-top: clamp(7rem, 16vh, 10rem); }
.err-note { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, 1.35vw, 1.1rem); }
.err-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Footer */
.site-footer {
  padding: clamp(2rem, 4vw, 3rem) var(--pad) 1.75rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-word {
  font-family: var(--display);
  font-size: clamp(2.8rem, 17.4vw, 15rem);
  line-height: 0.86;
  letter-spacing: 0.035em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  text-transform: uppercase;
  user-select: none;
}
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer-row a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-row a:hover { color: var(--lime); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .listen { grid-template-columns: 1fr 1fr; }
  .hero-bottom { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .hero, .hero-inner { min-height: 100svh; }
  .hero-wordmark { font-size: clamp(2.7rem, 19vw, 6.5rem); letter-spacing: 0.015em; }
  .hero-tag { font-size: clamp(1.5rem, 6.6vw, 2.2rem); }
  .listen { grid-template-columns: 1fr; }
  .listen-card { min-height: 0; }
  .listen-name { font-size: 1.35rem; }
  .listen-card--book .listen-name { font-size: 1.1rem; }
  .about { grid-template-columns: 1fr; }
  .section-head h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .book-mail { font-size: clamp(1.2rem, 6.4vw, 2.2rem); }
  .reticle { display: none; }
}
