:root {
  --bg: #08090b;
  --bg-raised: #0e0f12;
  --line: #1c1e22;
  --text: #e8e9eb;
  --text-dim: #7c8087;
  --accent: #0084ff;
  --accent-dim: color-mix(in srgb, var(--accent) 55%, var(--text-dim));
}

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

html {
  height: 100%;
}

body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

.hex-mark {
  position: fixed;
  width: 26vw;
  max-width: 420px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hex-mark.tl {
  top: -6vw;
  left: -6vw;
}

.hex-mark.br {
  bottom: -8vw;
  right: -8vw;
  transform: rotate(18deg);
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 10px 28px;
  font-size: 11px;
}

.footer a {
  color: var(--text-dim);
  opacity: 0.35;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
  opacity: 0.7;
}

.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.snap-container::-webkit-scrollbar {
  width: 4px;
}

.snap-container::-webkit-scrollbar-track {
  background: transparent;
}

.snap-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
  transition: background 0.2s ease;
}

.snap-container::-webkit-scrollbar-thumb:hover {
  background: #3da6ff;
}

.snap-section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 24px;
}

.eyebrow {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.age-block {
  display: flex;
  flex-direction: column;
    align-items: center;
  gap: 10px;
  max-width: 900px;
  text-align: center;
}

.age-line {
  line-height: 1.4;
}

.age-line.primary {
  font-size: clamp(24px, 4.5vw, 58px);
  font-weight: 500;
}

.age-line.secondary {
  font-size: clamp(14px, 2.2vw, 28px);
  font-weight: 400;
  opacity: 0.8;
}

.age-line .num {
  color: var(--accent);
}

.age-line.secondary .num {
  color: var(--accent-dim);
}

.age-sub {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

.scroll-hint {
  position: absolute;
  bottom: 60px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

.unit-label {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unit-value {
  font-size: clamp(40px, 9vw, 108px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.unit-caption {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.unit-index {
  position: absolute;
  top: 100px;
  right: 32px;
  font-size: 11px;
  color: var(--text-dim);
}

.center-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
    font-size: 12px;
  }
  .age-line.primary {
    font-size: clamp(20px, 7vw, 40px);
  }
  .age-line.secondary {
    font-size: clamp(13px, 4vw, 22px);
  }
}
