:root {
  --navy: #0d2944;
  --navy-2: #12365a;
  --blue: #1f5fa8;
  --blue-2: #2e7bc4;
  --teal: #3fb3c0;
  --aqua: #8fd8d8;
  --cream: #f8f6f2;
  --tint: #eef6f9;
  --ink: #16263a;
  --muted: #5a6b7e;
  --line: #dbe5ec;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(13, 41, 68, .08);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--teal);
  margin-bottom: .8em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  text-decoration: none;
  padding: .85em 1.5em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 95, 168, .25);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 95, 168, .32); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }
.btn-small { padding: .55em 1.1em; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--blue); }
.brand img { width: 34px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6em; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 10vw, 120px) 0 clamp(70px, 10vw, 130px); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); color: var(--navy); max-width: 14ch; }
.accent { background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }

.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--line); max-width: 460px; }
.proof-num { font-family: var(--head); font-weight: 700; font-size: 2.6rem; line-height: 1; background: linear-gradient(120deg, var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.proof-label { font-size: .88rem; color: var(--muted); line-height: 1.4; }

.hero-logo { display: flex; justify-content: center; position: relative; }
.hero-logo::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,179,192,.18), transparent 70%);
  filter: blur(10px);
}
.hero-logo img { position: relative; width: min(100%, 560px); height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo img { animation: none; } }

/* Sections */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.section-dark { background: var(--navy); color: #dce8f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lede { color: #a9bfd3; }
.section-dark .eyebrow { color: var(--aqua); }
.section-tint { background: var(--tint); }

/* Story */
.story-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin: 40px 0 56px; align-items: start; }
.story-text p { font-size: 1.05rem; }
.story-quote {
  background: linear-gradient(145deg, var(--blue), var(--teal));
  color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.story-quote::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
blockquote { margin: 0; font-family: var(--head); font-size: 1.45rem; line-height: 1.3; font-weight: 500; }
.quote-by { margin: 1.2em 0 0; opacity: .85; font-size: .9rem; }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.values { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.values li { padding: 6px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.values li:first-child { border-top: 0; padding-top: 0; }
.values strong { color: var(--ink); }

/* Problem */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 44px 0 60px; }
.stat { background: var(--navy-2); border: 1px solid rgba(143, 216, 216, .18); border-radius: var(--radius); padding: 28px; }
.stat-num { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--aqua); line-height: 1.1; margin-bottom: .3em; }
.stat-label { font-size: .95rem; color: #b6c9da; }
.stat sup a { color: var(--aqua); text-decoration: none; }

.journey-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.journey-steps::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--teal), #e46f5c); }
.journey-steps li { text-align: center; position: relative; padding: 0 6px; }
.j-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); border: 2px solid var(--aqua); display: grid; place-items: center; margin: 0 auto 12px; font-family: var(--head); font-weight: 700; color: var(--aqua); position: relative; }
.journey-steps li:last-child .j-dot { border-color: #e46f5c; color: #f2a597; }
.journey-steps strong { display: block; color: #fff; font-family: var(--head); }
.journey-steps small { color: #9fb5c9; font-size: .85rem; }

/* Simulation */
.sim { margin: 44px 0 70px; }
.sim-controls { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sim-btn { font-family: var(--head); font-weight: 600; font-size: .95rem; border: 0; background: none; padding: .7em 1.3em; border-radius: 999px; cursor: pointer; color: var(--muted); transition: .25s; }
.sim-btn.active { background: var(--navy); color: #fff; }
.sim-btn[data-mode="on"].active { background: linear-gradient(135deg, var(--blue), var(--teal)); }
.sim-stage { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(180deg, #d9eef4, #a8d6e2 60%, #7fbfd2); }
#sim-canvas { display: block; width: 100%; height: clamp(300px, 42vw, 440px); }
.sim-readout { position: absolute; top: 16px; right: 16px; display: flex; gap: 10px; }
.sim-readout > div { background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border-radius: 12px; padding: 10px 14px; min-width: 120px; }
.readout-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.readout-num { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.sim-caption { font-size: .88rem; color: var(--muted); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; transition: transform .25s; }
.step:hover { transform: translateY(-4px); }
.step-art { width: 84px; height: 84px; margin-bottom: 12px; }
.step-art svg { width: 100%; height: 100%; }
.s-blue { fill: var(--blue); }
.s-teal { fill: var(--teal); }
.s-light { fill: #e3f3f6; }
.s-line { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.s-wave { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; }
.s-check { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--head); font-weight: 700; color: var(--line); font-size: 1.6rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

.compare { margin-top: 70px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { font-family: var(--head); font-weight: 600; color: var(--navy); }
td:first-child { font-weight: 600; color: var(--navy); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.hl { background: #e9f6f8; color: var(--blue) !important; font-weight: 600; }
th.hl { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff !important; }

/* Impact */
.impact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin: 40px 0 56px; }
.progress-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.bar-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 14px; margin: 22px 0; }
.bar-label { font-size: .9rem; color: var(--muted); }
.bar { height: 16px; border-radius: 999px; background: #e3edf2; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.bar-goal { background: repeating-linear-gradient(-45deg, var(--aqua) 0 8px, #b5e6e6 8px 16px); }
.bar-val { font-family: var(--head); font-weight: 700; color: var(--navy); }
.small { font-size: .88rem; color: var(--muted); margin: 0; }

.feas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feas-item { background: #fff; border-radius: 14px; padding: 22px; border: 1px solid var(--line); }
.feas-item h4 { color: var(--blue); font-size: 1.05rem; }
.feas-item p { font-size: .9rem; color: var(--muted); margin: 0; }

.sub { margin-top: 10px; margin-bottom: 18px; }
.chips { list-style: none; padding: 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font-size: .9rem; color: var(--navy); }

.audience { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 56px; }
.aud { background: #fff; border-radius: 14px; padding: 22px 16px; text-align: center; border: 1px solid var(--line); }
.aud-emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.aud strong { display: block; font-family: var(--head); color: var(--navy); }
.aud small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; margin-top: 4px; }

.road { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.road::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--line); }
.road li { position: relative; padding-right: 12px; }
.road-dot { display: block; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin-bottom: 14px; position: relative; }
.road .done .road-dot { background: var(--blue); border-color: var(--blue); }
.road .now .road-dot { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 6px rgba(63,179,192,.2); animation: pulse 2s infinite; }
.road strong { display: block; font-family: var(--head); color: var(--navy); }
.road small { color: var(--muted); font-size: .85rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(63,179,192,.05); } }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 56px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.member::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.member-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 0 0 6px var(--tint); }
.member h3 { margin-bottom: .15em; font-size: 1.45rem; }
.role { color: var(--teal); margin: 0; font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.school { color: var(--muted); margin: .3em 0 0; font-size: .9rem; }
.member > p { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--tint); color: var(--blue); border-radius: 999px; padding: .35em .9em; font-size: .82rem; font-weight: 500; }
.canvas-preview img { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s; }
.canvas-preview a:hover img { transform: scale(1.01); }
.canvas-preview p { margin-top: 14px; color: var(--muted); }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.footer-logo { width: 260px; }
.footer-tag { font-family: var(--head); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.footer-text p { color: var(--muted); }
.sources { font-size: .8rem; color: var(--muted); margin-top: 24px; }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources p { margin-bottom: .4em; }
.copy { font-size: .8rem; margin-top: 20px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.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: 960px) {
  .hero-inner, .story-grid, .impact-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { width: min(80%, 380px); }
  .mvv, .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .road { grid-template-columns: 1fr; gap: 20px; }
  .road::before { top: 0; bottom: 0; left: 9px; right: auto; width: 3px; height: auto; }
  .road li { padding-left: 38px; }
  .road-dot { position: absolute; left: 0; top: 2px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--cream); padding: 16px; gap: 14px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .steps, .feas { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr 1fr; }
  .journey-steps { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .journey-steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--aqua), var(--teal), #e46f5c); }
  .journey-steps li { text-align: left; padding-left: 62px; min-height: 46px; }
  .j-dot { position: absolute; left: 0; top: 0; margin: 0; }
  .bar-row { grid-template-columns: 1fr 52px; }
  .bar-label { grid-column: 1 / -1; margin-bottom: -8px; }
  .sim-readout { top: 10px; right: 10px; left: 10px; }
  .sim-readout > div { flex: 1; min-width: 0; padding: 8px 10px; }
  .readout-num { font-size: 1.2rem; }
  .team { grid-template-columns: 1fr; }
  .member { padding: 26px 20px; }
  .member-head { gap: 14px; }
  .avatar { width: 68px; height: 68px; font-size: 1.3rem; }
}

body { overflow-x: clip; }
@media (max-width: 480px) {
  .sim-controls { display: flex; width: 100%; }
  .sim-btn { flex: 1; padding: .7em .6em; font-size: .85rem; }
}

/* Lab */
.lab { margin-top: 70px; }
.lab-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.lab-photo { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lab-photo img { width: 100%; height: auto; }
.lab-photo figcaption { padding: 18px 22px; font-size: .9rem; color: var(--muted); }
.ingredients { display: grid; gap: 16px; }
.ingredient { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.ingredient img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: var(--tint); padding: 6px; }
.ingredient h4 { color: var(--blue); font-size: 1.1rem; margin-bottom: .3em; }
.ingredient p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Team: how we work */
.how-we-work { background: linear-gradient(145deg, var(--blue), var(--teal)); color: #fff; border-radius: var(--radius); padding: 34px; margin: -24px 0 56px; box-shadow: var(--shadow); }
.how-we-work h3 { color: #fff; }
.how-we-work p { margin: 0; max-width: 80ch; font-size: 1.02rem; }

@media (max-width: 960px) {
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ingredient { grid-template-columns: 72px 1fr; gap: 14px; }
  .ingredient img { width: 72px; height: 72px; }
  .how-we-work { padding: 26px 20px; }
}
img.avatar { object-fit: cover; background: var(--tint); }


/* Hero logo: shield image + live-text wordmark (sharp at any size) */
.hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; animation: float 6s ease-in-out infinite; }
.hero-logo .hero-mark img { width: min(64vw, 340px); height: auto; animation: none; }
.hero-word { font-family: var(--head); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em; color: var(--blue); margin-top: 18px; }
.hero-sub { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.72rem, 1.25vw, .98rem); color: #1f7f99; margin-top: 10px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }
@media (max-width: 960px) { .hero-logo .hero-mark img { width: min(56vw, 260px); } }

