:root {
  --navy-950: #081421;
  --navy-900: #0d1c2b;
  --navy-800: #12273a;
  --navy-700: #1b3045;
  --slate-600: #354f65;
  --slate-500: #485866;
  --slate-400: #6c7e8e;
  --ice-300: #a0d9e7;
  --ice-100: #e4f1f6;
  --ice-50: #f3f8fa;
  --teal-600: #0d5b5b;
  --teal-500: #378995;
  --paper: #ffffff;
  --line: #dbe7ec;
  --ok: #1f8a5b;
  --ok-bg: #e3f4ea;
  --warn: #9a6a12;
  --warn-bg: #fbf0d9;
  --muted-bg: #edf1f4;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy-800);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; color: var(--navy-900); }
p { margin: 0; }
ul { margin: 0; padding: 0; }

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-500);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 20, 33, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(160, 217, 231, 0.12);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 24px; }
.brand {
  font-family: var(--font-display); font-weight: 700; color: #fff; text-decoration: none;
  letter-spacing: 0.02em; white-space: nowrap;
}
.brand span { color: var(--ice-300); font-weight: 400; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #1d3a55 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  min-height: min(88vh, 820px); padding-top: 64px; padding-bottom: 64px;
}
.hero .eyebrow { color: var(--ice-300); }
.hero h1 {
  color: #fff; font-weight: 700; font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -0.03em;
  margin-top: 20px;
}
.hero h1 .sub { display: block; font-weight: 300; color: var(--ice-300); }
.hero-tagline {
  margin-top: 28px; font-family: var(--font-display); font-size: 14px; letter-spacing: 0.34em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.78); line-height: 2;
}
.hero-lede { margin-top: 24px; max-width: 520px; color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.hero-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; }
.hero-values li {
  border: 1px solid rgba(160, 217, 231, 0.35); border-radius: 999px; padding: 7px 16px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-100);
}
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: center; }
.hero-visual .frame {
  position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .inset {
  position: absolute; left: -36px; bottom: 36px; width: 46%; border-radius: 14px; overflow: hidden;
  border: 4px solid var(--navy-900); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
}
.hero-visual .inset figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 8px; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(8, 20, 33, 0.85));
}

.stats {
  border-top: 1px solid rgba(160, 217, 231, 0.14);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 28px 24px 32px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(160, 217, 231, 0.14); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: rgba(255, 255, 255, 0.64); }

/* ---------- Career timeline ---------- */
.career { background: var(--ice-50); padding: 88px 0; }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--slate-500); font-size: 17px; }
.timeline { list-style: none; padding: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.timeline li { border-bottom: 1px solid var(--line); }
.timeline a {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: baseline;
  padding: 22px 0; text-decoration: none; transition: padding 0.2s ease;
}
.timeline a:hover { padding-left: 10px; }
.timeline .years { font-family: var(--font-display); font-weight: 600; color: var(--teal-500); font-variant-numeric: tabular-nums; }
.timeline .role { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy-900); }
.timeline .role small { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--slate-500); margin-top: 2px; }
.timeline .org { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-400); white-space: nowrap; }

/* ---------- Chapters ---------- */
.chapter {
  background: var(--navy-900); color: #fff; padding: 96px 0 72px; position: relative; overflow: hidden;
}
.chapter::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(55, 137, 149, 0.22), transparent);
  pointer-events: none;
}
.chapter .eyebrow { color: var(--ice-300); }
.chapter h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.03em; margin-top: 14px; font-weight: 600; }
.chapter p { margin-top: 18px; max-width: 640px; color: rgba(255, 255, 255, 0.72); font-size: 17px; }

/* ---------- Project ---------- */
.project { padding: 96px 0; border-bottom: 1px solid var(--line); }
.project.tint { background: var(--ice-50); }
.project-head { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.project-head.flip > :first-child { order: 2; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.project h3 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin-top: 14px; font-weight: 700; }
.project h3 .partner { display: block; font-size: 0.55em; font-weight: 500; color: var(--teal-500); margin-top: 8px; letter-spacing: 0; }
.project .lede { margin-top: 18px; color: var(--slate-600); font-size: 17px; }
.project .lede + .lede { margin-top: 12px; }
.project-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(13, 28, 43, 0.45); }
.project-img img { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; background: var(--ice-100); color: var(--navy-700); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.chip.live { background: #dff3f5; color: var(--teal-600); }
.chip.done { background: var(--muted-bg); color: var(--slate-600); }
.chip.prod { background: var(--ok-bg); color: var(--ok); }
.chip.paused { background: var(--warn-bg); color: var(--warn); }
.chip.stopped { background: var(--muted-bg); color: var(--slate-400); }

.board-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-800);
  font: 500 13px/1 var(--font-body); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.board-btn:hover { border-color: var(--teal-500); background: var(--ice-50); }
.board-btn svg { width: 16px; height: 16px; }

.block { margin-top: 64px; }
.block-title {
  display: flex; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 24px;
}
.block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tint .card { border-color: #d5e4ea; }
.card h4 { font-size: 18px; font-weight: 700; }
.card h4 + p, .card h4 + ul { margin-top: 10px; }
.card p, .card li { color: var(--slate-500); font-size: 15px; }
.card .num { font-family: var(--font-display); font-weight: 700; color: var(--teal-500); font-size: 14px; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.card .tag { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-500); }

.media-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tint .media-card { border-color: #d5e4ea; }
.media-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.media-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.media-card h4 { font-size: 18px; font-weight: 700; }
.media-card h4 small { display: block; font-size: 13px; font-weight: 500; color: var(--teal-500); margin-top: 4px; }
.media-card p, .media-card li { color: var(--slate-500); font-size: 15px; }

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--teal-500);
}

.caption-img { border-radius: 12px; overflow: hidden; position: relative; }
.caption-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.caption-img figcaption { padding: 12px 2px 0; font-size: 14px; color: var(--slate-500); }
.caption-img figcaption b { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: 15px; }
figure { margin: 0; }

.steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(4, 1fr); }
.steps.s5 { grid-template-columns: repeat(5, 1fr); }
.step { padding: 0 20px 0 0; position: relative; }
.step + .step { padding-left: 20px; border-left: 1px solid var(--line); }
.step h4 { font-size: 17px; font-weight: 700; }
.step h4::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 13px; letter-spacing: 0.12em; color: var(--teal-500); margin-bottom: 8px;
}
.step p, .step li { color: var(--slate-500); font-size: 14.5px; margin-top: 8px; }
.step ul { list-style: none; }
.step li { margin-top: 4px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.pill-list li { background: var(--ice-100); color: var(--navy-700); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; }

.values-strip {
  display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; padding: 22px var(--gutter);
  background: var(--navy-800); color: var(--ice-100); font-family: var(--font-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 64px; border-radius: var(--radius);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.phase .n {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-600); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px;
}
.phase h4 { font-size: 17px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phase p { color: var(--slate-500); font-size: 15px; margin-top: 6px; }

.stat-callout { display: flex; gap: 20px; align-items: baseline; }
.stat-callout b { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--teal-600); letter-spacing: -0.02em; }

.small-note { font-size: 13px; color: var(--slate-400); margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.6); padding: 72px 0 48px; }
.footer .big { font-family: var(--font-display); color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 300; letter-spacing: -0.01em; max-width: 820px; line-height: 1.2; }
.footer .big b { font-weight: 700; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(160, 217, 231, 0.14); font-size: 13px; letter-spacing: 0.08em; }
.footer a { text-decoration: none; color: var(--ice-300); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #060e18;
  display: none; align-items: center; justify-content: center; padding: 56px 16px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 12px; right: 16px; background: none; border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; border-radius: 999px; padding: 8px 16px; font: 500 13px var(--font-body); cursor: pointer;
}
.lightbox .hint { position: absolute; top: 20px; left: 20px; color: rgba(255, 255, 255, 0.6); font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .g5, .g6 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.s5 { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-950); padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .hero-visual .frame { aspect-ratio: 4 / 3; }
  .hero-visual .inset { left: 12px; bottom: 12px; width: 42%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(160, 217, 231, 0.14); }
  .project-head, .split { grid-template-columns: 1fr; gap: 32px; }
  .project-head.flip > :first-child { order: 0; }
  .project-head > .project-img { order: -1; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .timeline a { grid-template-columns: 1fr; gap: 4px; }
  .project { padding: 72px 0; }
}
@media (max-width: 560px) {
  .g4, .g5, .g6 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps.s5 { grid-template-columns: 1fr; }
  .step, .step + .step { padding-left: 0; border-left: 0; }
  .card { padding: 20px; }
}
.caption-img img.natural { aspect-ratio: auto; }

/* ---------- Password gate ---------- */
.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 90% at 85% 10%, #1d3a55 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.gate.checking .gate-card { visibility: hidden; }
.gate-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; color: #fff; }
.gate-card .eyebrow { color: var(--ice-300); }
.gate-card h1 { color: #fff; font-size: 40px; letter-spacing: -0.02em; margin-bottom: 18px; }
.gate-card h1 span { display: block; font-weight: 300; color: var(--ice-300); }
.gate-card label { font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.gate-card input[type="password"] {
  font: 16px var(--font-body); padding: 14px 16px; border-radius: 12px; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(160, 217, 231, 0.3);
}
.gate-card input[type="password"]:focus { outline: 2px solid var(--ice-300); outline-offset: 1px; }
.gate-remember { display: flex; gap: 8px; align-items: center; }
.gate-card button {
  font: 600 15px var(--font-body); padding: 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ice-300); color: var(--navy-900);
}
.gate-card button:disabled { opacity: 0.7; cursor: wait; }
.gate-error { min-height: 1.4em; color: #ffb4a8; font-size: 14px; }
