@import url("https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond/latin-300.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond/latin-400.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond/latin-300-italic.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond/latin-400-italic.css");
@import url("https://cdn.jsdelivr.net/npm/@fontsource/ibm-plex-mono/latin-400.css");

:root {
  --bg: #040907;
  --bg2: #08150f;
  --ink: #e8f0ea;
  --dim: #94a99c;
  --faint: #5d7266;
  --glow: #8ff0b5;
  --ember: #f2c879;
  --line: rgba(143, 240, 181, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--glow); color: var(--bg); }

/* ---------- atmosphere ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: -20vmax; z-index: 0; pointer-events: none; filter: blur(70px); opacity: 0.55; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 60vmax; height: 30vmax; left: 5%; top: 8%; background: radial-gradient(closest-side, rgba(40, 170, 110, 0.34), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vmax; height: 26vmax; right: 0; top: 18%; background: radial-gradient(closest-side, rgba(30, 120, 140, 0.26), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 30%; top: 40%; background: radial-gradient(closest-side, rgba(143, 240, 181, 0.10), transparent); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vmax, 4vmax, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-10vmax, 6vmax, 0) scale(0.9); } }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.spot {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(143, 240, 181, 0.09), transparent 70%);
  transition: opacity 0.6s;
}
@media (hover: none) { .spot { display: none; } }

/* ---------- header ---------- */
header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(4, 9, 7, 0.85), transparent);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink); }
nav.links { display: flex; gap: 30px; }
nav.links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  text-decoration: none; color: var(--dim); position: relative; padding-bottom: 4px; transition: color 0.3s;
}
nav.links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--glow); transition: width 0.4s; }
nav.links a:hover { color: var(--glow); }
nav.links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(22px, 7vw, 120px) 30vh;
}
.eyebrow {
  display: flex; align-items: center; gap: 18px; margin-bottom: 34px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--dim);
}
.eyebrow::before { content: ""; width: 56px; height: 1px; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
h1 {
  font-weight: 300; font-size: clamp(2.7rem, min(7.6vw, 12.5vh), 7rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 14ch;
}
h1 em {
  font-style: italic; font-weight: 300; color: var(--glow);
  text-shadow: 0 0 40px rgba(143, 240, 181, 0.45), 0 0 120px rgba(143, 240, 181, 0.25);
}
.lead { margin-top: 38px; max-width: 34rem; color: var(--dim); font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.cue {
  position: absolute; left: clamp(22px, 7vw, 120px); bottom: 38px; z-index: 5;
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ember);
}
.cue b { display: block; width: 1px; height: 54px; background: linear-gradient(var(--ember), transparent); animation: fall 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes fall { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.horizon { position: absolute; left: 0; right: 0; bottom: -1px; height: 44vh; min-height: 280px; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 55% 60% at 64% 66%, rgba(242, 200, 121, 0.22), rgba(60, 190, 130, 0.14) 38%, transparent 72%), linear-gradient(to top, rgba(20, 70, 48, 0.55), transparent 70%); }
.horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.horizon .fog { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to top, var(--bg) 4%, transparent); }
.lantern { position: absolute; width: 0; height: 0; z-index: 4; }
.lantern::before {
  content: ""; position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 200, 121, 0.55), rgba(242, 200, 121, 0.12) 55%, transparent);
  animation: flicker 4.2s ease-in-out infinite;
}
.lantern::after {
  content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff4d2; box-shadow: 0 0 14px 4px rgba(242, 200, 121, 0.9);
}
@keyframes flicker { 0%, 100% { opacity: 0.85; transform: scale(1); } 22% { opacity: 1; transform: scale(1.08); } 48% { opacity: 0.7; transform: scale(0.95); } 70% { opacity: 0.95; transform: scale(1.04); } }

/* ---------- sections ---------- */
section { position: relative; z-index: 2; padding: clamp(70px, 10vw, 140px) clamp(22px, 7vw, 120px); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--glow); }
.tag span { color: var(--faint); margin-right: 14px; }

.manifesto { display: grid; grid-template-columns: minmax(150px, 1fr) 4fr; gap: clamp(24px, 6vw, 100px); }
.manifesto .tag { position: sticky; top: 110px; align-self: start; }
.manifesto p { font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.22; max-width: 24ch; margin-bottom: 0.9em; }
.manifesto p.big { font-size: clamp(2.2rem, 5.4vw, 5rem); max-width: 14ch; line-height: 1.04; }
.manifesto p.dimmer { color: var(--dim); font-size: clamp(1.15rem, 1.8vw, 1.45rem); max-width: 36rem; line-height: 1.55; }
.manifesto em { color: var(--ember); font-style: italic; }

.constellation .head { margin-bottom: clamp(40px, 7vw, 90px); }
.constellation h2 { font-weight: 300; font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.05; margin-top: 18px; max-width: 18ch; }
.constellation h2 em { color: var(--glow); }
.stars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.card {
  position: relative; padding: 38px 32px 34px; min-height: 340px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(10, 28, 20, 0.7), rgba(4, 9, 7, 0.6));
  backdrop-filter: blur(6px); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.5s, transform 0.6s cubic-bezier(.2, .7, .2, 1);
}
.card:nth-child(2) { margin-top: 56px; }
.card:nth-child(3) { margin-top: 112px; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(143, 240, 181, 0.14), transparent 65%);
}
.card:hover { border-color: rgba(143, 240, 181, 0.5); transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--faint); }
.card h3 { font-weight: 300; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 26px 0 14px; }
.card p { color: var(--dim); font-size: 1.05rem; line-height: 1.5; flex: 1; }
.card .dom { margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.status {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.signal { text-align: center; padding-bottom: clamp(100px, 16vw, 220px); }
.signal h2 { font-weight: 300; font-size: clamp(2.2rem, 6vw, 5.6rem); line-height: 1.04; margin: 22px auto 0; max-width: 16ch; }
.signal h2 em { color: var(--glow); text-shadow: 0 0 50px rgba(143, 240, 181, 0.35); }
.signal p { color: var(--dim); margin: 26px auto 0; max-width: 30rem; }
.mail {
  display: inline-block; margin-top: 44px; font-size: clamp(1.3rem, 3.2vw, 2.4rem); font-style: italic; text-decoration: none;
  color: var(--ink); padding-bottom: 8px; background: linear-gradient(var(--glow), var(--glow)) no-repeat 0 100% / 100% 1px; transition: color 0.4s, background-size 0.5s;
  word-break: break-all;
}
.mail:hover { color: var(--glow); background-size: 0 1px; background-position: 100% 100%; }

footer.foot {
  position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 30px clamp(22px, 7vw, 120px) 40px;
  display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
footer.foot nav { display: flex; gap: 28px; }
footer.foot a { text-decoration: none; transition: color 0.3s; }
footer.foot a:hover { color: var(--glow); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), filter 1.2s ease; transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.load .hero .rv { animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); opacity: 1; transform: none; filter: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.no-js .rv { opacity: 1; transform: none; filter: none; }

/* ---------- legal pages ---------- */
.legal { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; padding: 170px 24px 120px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: none; margin: 18px 0 8px; }
.legal .upd { font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); margin-bottom: 48px; }
.legal h2 { font-weight: 400; font-size: 1.7rem; margin: 2.2em 0 0.4em; color: var(--glow); }
.legal p, .legal li { color: #c3d3c9; font-size: 1.12rem; line-height: 1.7; margin-bottom: 1em; font-weight: 400; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--glow); }
.fill { background: rgba(242, 200, 121, 0.18); color: var(--ember); padding: 0 6px; border-radius: 3px; font-family: var(--mono); font-size: 0.82em; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  body { font-size: 19px; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto .tag { position: static; }
  .stars-grid { grid-template-columns: 1fr; }
  .card:nth-child(2), .card:nth-child(3) { margin-top: 0; }
  .card { min-height: 0; }
}
@media (max-width: 560px) {
  .brand span { letter-spacing: 0.2em; font-size: 10px; }
  nav.links { display: none; }
  .hero { padding-bottom: 38vh; }
  footer.foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
