:root {
  --ink: #030303;
  --ink-2: #0a0a0a;
  --cream: #f2f2ec;
  --mute: #9a9a92;       /* secondary text on dark */
  --mute-ink: #5c5c56;   /* secondary text on cream */
  --line: rgba(242, 242, 236, 0.16);
  --glow: #c47a2e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.04;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.28) 100%);
}

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.1rem, 3vw, 2rem);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  text-decoration: none;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  transition: opacity 0.35s var(--ease);
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-mark {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-ghost {
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.35s var(--ease);
}

.btn-ghost:hover {
  opacity: 1;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(235, 235, 228, 0.28);
  border-radius: 999px;
  background: rgba(235, 235, 228, 0.06);
  color: var(--cream);
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.btn-pill:hover {
  background: rgba(235, 235, 228, 0.12);
  border-color: rgba(235, 235, 228, 0.5);
  transform: translateY(-1px);
}

.btn-pill:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 3px;
}

.btn-pill-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn-pill-dark:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6.5rem 1.25rem 5.5rem;
  overflow: hidden;
  background: var(--ink);
}

.corner {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(0.68rem, 1.15vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 242, 236, 0.72);
  line-height: 1.45;
  max-width: 12rem;
  opacity: 0;
  animation: fade-meta 1.4s var(--ease) 0.6s forwards;
}

.c-tl { top: 4.6rem; left: clamp(1.1rem, 3vw, 2rem); }
.c-tr { top: 4.6rem; right: clamp(1.1rem, 3vw, 2rem); text-align: right; }
.c-bl { bottom: 2.8rem; left: clamp(1.1rem, 3vw, 2rem); }
.c-br { bottom: 2.8rem; right: clamp(1.1rem, 3vw, 2rem); text-align: right; }

@keyframes fade-meta {
  to { opacity: 1; }
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 0 1.25rem;
}

.character {
  position: relative;
  z-index: 1;
  width: clamp(12.5rem, 36vw, 18rem);
  height: clamp(12.5rem, 36vw, 18rem);
  display: grid;
  place-items: center;
  animation: float 8s var(--ease) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-8px); }
}

/* Soft circular halo only — never a rectangle */
.blob-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 42%,
    rgba(255, 140, 50, 0.4) 0%,
    rgba(232, 120, 40, 0.14) 38%,
    transparent 68%
  );
  filter: blur(22px);
  z-index: 0;
  animation: glow-pulse 7s var(--ease) infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.blob {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0%, #f4f4ef 45%, #e0e0d8 100%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    -14px 4px 36px rgba(255, 140, 50, 0.28),
    inset -14px -18px 28px rgba(0, 0, 0, 0.12),
    inset 12px 14px 22px rgba(255, 255, 255, 0.55);
}

/* ── Pumpkin cursor ─────────────────────────────────────── */

body,
a,
button,
input,
label,
.btn-pill,
.btn-ghost {
  cursor: url("/cursor-pumpkin.svg") 18 20, auto;
}

a:hover,
button:hover,
.btn-pill:hover,
.btn-ghost:hover,
input {
  cursor: url("/cursor-pumpkin.svg") 18 20, pointer;
}

@media (pointer: coarse) {
  body,
  a,
  button,
  input,
  label,
  .btn-pill,
  .btn-ghost {
    cursor: auto;
  }
}

.eye {
  position: absolute;
  top: 37%;
  width: 6.5%;
  height: 6.5%;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  animation:
    blink 6.4s step-end infinite,
    glance 9s var(--ease) infinite;
}

.eye-l { left: 35%; }
.eye-r { right: 35%; left: auto; animation-delay: 0s, 0.08s; }

.mouth {
  position: absolute;
  left: 50%;
  top: 63%;
  width: 24%;
  height: 4.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0a;
  opacity: 0.92;
}

@keyframes blink {
  0%, 88%, 100% { transform: scaleY(1) translateX(0); }
  90%, 93% { transform: scaleY(0.06) translateX(0); }
}

@keyframes glance {
  0%, 40%, 100% { translate: 0 0; }
  48%, 62% { translate: 3px 1px; }
  70%, 82% { translate: -2px 0; }
}

.hero-line {
  position: relative;
  z-index: 3;
  margin: 0.2rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.15rem, 5.4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  color: var(--cream);
}

.hero-line em {
  font-style: italic;
}

.hero-cta {
  position: relative;
  z-index: 3;
  margin-top: 1.65rem;
}

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0 0 1.1rem;
}

.scroll-hint {
  margin: 0 0 0.75rem clamp(1.1rem, 3vw, 2rem);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 242, 236, 0.7);
}

.progress {
  height: 1px;
  background: rgba(242, 242, 236, 0.16);
}

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: rgba(242, 242, 236, 0.85);
  transition: width 0.05s linear;
}

/* ── Manifesto ───────────────────────────────────────────── */

.manifesto {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem;
  background: #0a0a0a;
  color: var(--cream);
}

.manifesto-copy {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.85rem, 4.4vw, 2.7rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.manifesto-copy span {
  display: block;
}

.manifesto-copy span:last-child {
  margin-top: 0.15em;
  font-style: italic;
}

/* ── Close / access ──────────────────────────────────────── */

.close {
  position: relative;
  z-index: 1;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
}

.close-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute-ink);
}

.close-title {
  margin: 0;
  max-width: 26rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 3vw, 2rem);
  background: var(--cream);
  color: var(--mute-ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.foot-meta {
  text-align: right;
}

/* ── Modal ───────────────────────────────────────────────── */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(24rem, 100%);
  padding: 2rem 1.6rem 1.6rem;
  background: #080808;
  border: 1px solid rgba(235, 235, 228, 0.1);
  color: var(--cream);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
}

.modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 0 0.5rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.modal-copy {
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(242, 242, 236, 0.78);
}

.waitlist {
  display: grid;
  gap: 0.7rem;
}

.waitlist input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(235, 235, 228, 0.14);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  outline: none;
}

.waitlist input::placeholder {
  color: #4a4a46;
}

.waitlist input:focus {
  border-color: rgba(235, 235, 228, 0.4);
}

.waitlist button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(235, 235, 228, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.waitlist button:hover {
  background: rgba(235, 235, 228, 0.08);
}

.waitlist button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-note {
  min-height: 1.2rem;
  margin: 0.1rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}

.form-note.ok { color: var(--cream); }
.form-note.err { color: #c06060; }

.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;
}

/* ── Reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1.25s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .character,
  .blob-glow,
  .eye,
  .corner {
    animation: none !important;
  }
  .reveal,
  .corner {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .corner {
    max-width: 7.5rem;
    font-size: 0.52rem;
  }

  .c-bl,
  .c-br {
    bottom: 3.4rem;
  }
}
