/* ----- design tokens ----- */
:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --surface: #17161443;
  --text: #ececea;
  --text-mute: #8a8985;
  --text-faint: #55534e;
  --line: #26241f;
  --line-2: #1c1a17;
  --accent: #4f98a3; /* Hydra Teal — dark-mode variant */
  --accent-hi: #7cc0cc;
  --accent-glow: rgba(79, 152, 163, 0.28);
  --warm: #d19900;

  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page-max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 6px;
}

/* ----- reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ----- background layers ----- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg__grid {
  position: absolute;
  inset: -1px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 40%, transparent 100%);
  opacity: 0;
  animation: gridFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.bg__glow {
  position: absolute;
  left: 50%;
  top: -20%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  animation: glowIn 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
.bg__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.65'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}

/* Cursor-following spotlight (respects reduced-motion) */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 152, 163, 0.14), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
  will-change: transform;
  filter: blur(30px);
}
.spotlight.is-active {
  opacity: 1;
}

/* ----- layout ----- */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: clamp(20px, 3vw, 32px) var(--gutter);
  max-width: var(--page-max);
  margin: 0 auto;
}

/* ----- header ----- */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 clamp(48px, 8vw, 96px);
}
.hdr__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.hdr__mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}
.hdr__wordmark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hdr__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hdr__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 12px var(--warm);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ----- hero ----- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(16px, 4vw, 40px) 0;
  max-width: 1080px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.hero__eyebrow-num {
  color: var(--accent);
}
.hero__eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--text-faint);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(52px, 9.5vw, 148px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 clamp(24px, 4vw, 40px);
}
.hero__line {
  display: block;
}
.hero__line em {
  font-style: italic;
  color: var(--accent-hi);
  font-family: var(--font-serif);
}
.hero__body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 62ch;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: clamp(48px, 8vw, 88px);
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 152, 163, 0.14);
  animation: pulse 2s ease-in-out infinite;
}
.hero__status-label {
  color: var(--text);
}
.hero__status-sep {
  color: var(--text-faint);
}
.hero__status-detail {
  color: var(--text-mute);
}

/* ----- stats ----- */
.hero__meta {
  width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.stats__cell {
  padding: 20px 24px 0 0;
  border-right: 1px solid var(--line-2);
}
.stats__cell:last-child {
  border-right: 0;
  padding-right: 0;
}
.stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  color: var(--text);
  font-feature-settings: "lnum", "tnum";
}
.stats__num {
  color: var(--text);
}
.stats__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mute);
  margin-top: 4px;
  letter-spacing: 0;
}

/* ----- footer ----- */
.ftr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: clamp(40px, 6vw, 72px) 0 4px;
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 5vw, 56px);
}
.ftr__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ftr__col--right {
  text-align: right;
  align-items: flex-end;
}
.ftr__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ftr__value {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
}
.ftr__link {
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.ftr__link:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent);
}

/* ----- reveal animation ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- keyframes ----- */
@keyframes gridFadeIn {
  to {
    opacity: 1;
  }
}
@keyframes glowIn {
  to {
    opacity: 1;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ----- responsive ----- */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats__cell:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }
  .stats__cell:nth-child(1),
  .stats__cell:nth-child(2) {
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 20px;
  }
  .stats__cell:nth-child(3),
  .stats__cell:nth-child(4) {
    padding-top: 20px;
  }
}
@media (max-width: 720px) {
  .ftr {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ftr__col--right {
    text-align: left;
    align-items: flex-start;
  }
  .hero__cta {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .hero__title {
    font-size: clamp(44px, 12vw, 72px);
  }
  .hero__eyebrow-line {
    width: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .spotlight {
    display: none;
  }
}
