:root {
  --bg: #04060c;
  --bg-2: #070b16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.09);
  --ink: #eef2fb;
  --muted: #9aa7bf;
  --muted-2: #6b788f;
  --accent: #6db4ff;      /* ice blue */
  --amber: #ffb765;
  --maxw: 1160px;
  --radius: 16px;
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 50% -10%, #0b1226 0%, var(--bg) 55%, #020308 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Starfield canvas fixed behind everything */
#starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 18px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}
.nav img { height: 22px; opacity: .95; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.9rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid var(--panel-border); padding: 9px 18px; border-radius: 999px;
  color: var(--ink) !important; font-size: 0.85rem;
  transition: border-color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(109,180,255,0.08); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px; position: relative;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  opacity: 0.5; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 60%, transparent 100%);
}
.hero-inner { max-width: 820px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem); margin: 22px 0 8px;
  background: linear-gradient(180deg, #fff 30%, #b9c6e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: var(--muted);
  font-weight: 300; max-width: 640px; margin-top: 14px;
}
.hero .subline { color: var(--muted-2); margin-top: 22px; max-width: 560px; font-size: 0.98rem; }
.cta-row { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  padding: 14px 28px; border-radius: 999px; font-size: 0.95rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; background: transparent;
  font-family: inherit; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #9ecbff);
  color: #04101f; box-shadow: 0 8px 30px rgba(109,180,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(109,180,255,0.4); }
.btn-ghost { border-color: var(--panel-border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(109,180,255,0.06); }

/* ---------- SECTIONS ---------- */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* problem grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: rgba(109,180,255,0.4); transform: translateY(-4px); background: rgba(109,180,255,0.04); }
.card .num { color: var(--accent); font-size: 0.8rem; letter-spacing: .2em; font-weight: 600; }
.card h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* insight / neutrality — big statement band */
.band {
  background: linear-gradient(160deg, rgba(109,180,255,0.06), rgba(255,255,255,0.01));
  border: 1px solid var(--panel-border); border-radius: 24px; padding: 60px;
}
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 20px; max-width: 780px; }
.band p { color: var(--muted); max-width: 680px; font-size: 1.05rem; margin-bottom: 14px; }
.pull { color: var(--ink); font-weight: 500; }

/* facility */
.facility-figure {
  background: #f4f6fb; border-radius: var(--radius); padding: 20px; border: 1px solid var(--panel-border);
}
.facility-figure figcaption { color: #33405c; font-size: 0.8rem; margin-top: 10px; text-align: center; letter-spacing: .04em; }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.spec-list li { display: flex; gap: 16px; align-items: flex-start; }
.spec-list .k { color: var(--accent); font-weight: 600; min-width: 92px; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.spec-list .v { color: var(--muted); font-size: 0.96rem; }
.spec-list .v strong { color: var(--ink); font-weight: 500; }

/* pedigree logos row */
.pedigree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pedigree .card h3 { color: var(--accent); font-size: 1rem; letter-spacing: .02em; }

/* phases timeline */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.phase { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 26px; position: relative; }
.phase .p-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.phase h3 { font-size: 1.05rem; margin-bottom: 8px; }
.phase p { color: var(--muted); font-size: 0.9rem; }
.phase .risk { margin-top: 14px; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* tenant classes */
.tenants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* CTA / contact */
.contact { text-align: center; }
.contact .band { padding: 72px 60px; }
.contact h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; }
.contact p { margin: 0 auto 32px; }

/* footer */
footer { border-top: 1px solid var(--panel-border); padding: 50px 0 60px; color: var(--muted-2); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
footer img { height: 26px; opacity: .8; margin-bottom: 16px; }
.footer-legal { max-width: 520px; font-size: 0.82rem; line-height: 1.7; }
.footer-legal strong { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- SUB-PAGE ELEMENTS ---------- */
.page-hero {
  padding: 170px 0 60px; position: relative;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 860px; margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 40%, #b9c6e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 720px; }
.page-hero .backlink { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 26px; display: inline-block; }
.page-hero .backlink:hover { color: var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--panel-border); vertical-align: top; }
.spec-table th { color: var(--accent); font-weight: 600; font-size: 0.9rem; width: 34%; }
.spec-table td { color: var(--muted); font-size: 0.95rem; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(109,180,255,0.03); }

.core-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.core-list .card .tag { color: var(--muted-2); font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; }

.step-list { counter-reset: step; display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.step { display: flex; gap: 22px; align-items: flex-start; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  min-width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600; flex-shrink: 0;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

.note {
  font-size: 0.85rem; color: var(--muted-2); border-left: 2px solid var(--panel-border);
  padding-left: 16px; margin-top: 20px; max-width: 720px;
}

.media-full { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-border); margin: 8px 0; }
.media-full img { width: 100%; display: block; }

/* responsive */
@media (max-width: 900px) {
  .grid-4, .phases { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .pedigree, .tenants, .core-list { grid-template-columns: 1fr; }
  .spec-table th { width: 40%; }
  .band, .contact .band { padding: 40px 26px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 12px;
    background: rgba(7,11,22,0.97); border: 1px solid var(--panel-border); border-radius: 14px;
    padding: 18px 22px; gap: 18px; backdrop-filter: blur(12px);
  }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}
