:root {
  --bg: #0a0c0f;
  --bg-panel: rgba(13, 16, 20, 0.76);
  --ink: #e9ecef;
  --ink-soft: #9aa3ad;
  --ink-faint: #6b7480;
  --accent: #d1974f;
  --accent-hover: #b87f3c;
  --accent-2: #5b8fae;
  --border: #262b32;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Newsreader", Georgia, serif; margin: 0; text-wrap: balance; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the 3d scene sits fixed behind everything; page content scrolls on top of it */
#graph-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: linear-gradient(to bottom, rgba(20, 16, 13, 0.85), transparent);
  pointer-events: none;
}
.site-header a { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Newsreader", serif;
  font-size: 18px;
  color: var(--ink);
}
.brand svg { flex: none; }

.header-cta {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

#label-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.graph-label {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  transition: opacity 0.5s ease;
  will-change: transform, opacity;
}

main { position: relative; z-index: 1; }

.stage {
  min-height: 300vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
}
.stage:first-of-type { min-height: 100vh; }

.stage--left { justify-content: flex-start; }
.stage--right { justify-content: flex-end; }

.hero-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-content h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; color: var(--ink); }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 460px; }

.scroll-cue {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.scroll-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 36px 38px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: opacity, transform;
}
.card-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card--teal .card-eyebrow { color: var(--accent-2); }
.card h2 { font-size: 25px; line-height: 1.25; color: var(--ink); }
.card p { font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); }
.card .card-note {
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.transform-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.transform-points div {
  font-size: 14.5px;
  color: var(--ink);
  padding-left: 16px;
  border-left: 2px solid var(--accent-2);
}

.closing {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg) 18%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 80px 8vw 48px;
}
.closing h2 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); }
.closing p { font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; }
.closing-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 13px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.closing-cta:hover { background: var(--accent-hover); color: var(--ink); }
.closing-mail { font-size: 14px; color: var(--ink-faint); }
.closing-foot {
  width: 100%;
  max-width: 1100px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}

.legal {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 140px 8vw 80px;
}
.legal h1 { font-size: clamp(30px, 4vw, 40px); color: var(--ink); }
.legal h2 { font-size: 19px; color: var(--ink); margin-top: 40px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.legal ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; margin: 8px 0; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-hover); }
.legal-updated { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

.legal-foot {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 8vw 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-faint);
}
.legal-foot a { color: var(--ink-faint); }
.legal-foot a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .stage { padding: 0 6vw; justify-content: center !important; }
  .card { max-width: 100%; padding: 28px 26px; }
  .site-header { padding: 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
}
