:root {
  --bg: #050505;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --faint: #4a4a4a;
  --line: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ---------- Teaser page ---------- */

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 36px clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* One soft glow behind the headline. It breathes very slowly. */
.glow {
  position: absolute;
  left: 50%; top: 52%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 55%, transparent);
  z-index: -1;
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

/* Fine grain so the black does not look flat. */
.stage::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top { display: flex; justify-content: space-between; align-items: center; }
.top .logo img { height: 22px; width: auto; display: block; }
.status {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text);
  animation: pulse 2.4s ease-in-out infinite;
}

.center {
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 900px;
  padding: 60px 0;
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 34px;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
h1 .dim { color: var(--faint); }

.rule {
  width: 56px; height: 1px;
  background: var(--muted);
  margin: 44px auto;
}

.lede {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
  font-weight: 400;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.mail {
  color: var(--text);
  border-bottom: 1px solid var(--faint);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}
.mail:hover { border-color: var(--text); }
.legal-links { display: flex; gap: 24px; }
.legal-links a:hover, .bottom a:hover { color: var(--text); }
.label { display: block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 8px; color: var(--faint); }

/* ---------- Fade-in (runs once on load) ---------- */

.fade {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.4s var(--ease) forwards;
}
.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.45s; }
.d3 { animation-delay: 0.85s; }
.d4 { animation-delay: 1.15s; }
.d5 { animation-delay: 1.5s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; animation: none; }
  .glow, .status .dot { animation: none; }
}

/* ---------- Legal pages ---------- */

.page { max-width: 720px; margin: 0 auto; padding: 36px 24px 80px; }
.page .top { margin-bottom: 90px; }
.page .back { font-size: 0.82rem; color: var(--muted); }
.page .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.legal .date { color: var(--faint); font-size: 0.85rem; margin-bottom: 56px; letter-spacing: 0.04em; }
.legal h2 { font-size: 1.05rem; font-weight: 600; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #b5b5b5; margin-bottom: 12px; font-size: 0.98rem; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); border-bottom: 1px solid var(--faint); }
.page footer {
  margin-top: 90px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 0.82rem; color: var(--muted);
}

@media (max-width: 640px) {
  .stage { padding: 26px 22px; }
  .top .logo img { height: 18px; }
  .status { letter-spacing: 0.16em; }
  .bottom { flex-direction: column; align-items: flex-start; }
}
