/* ===== Design tokens ===== */
:root {
  --navy-950: #050b1a;
  --navy-900: #081430;
  --navy-800: #0d1f47;
  --navy-700: #16306a;
  --brand-blue: #1f4fae;
  --sky: #4aa3ec;
  --teal: #3cc6c4;
  --teal-soft: #8fe3e1;
  --pink: #e0458f;
  --ink: #e8eef9;
  --ink-dim: #a7b4cf;
  --ink-mute: #7685a6;
  --line: rgba(143, 227, 225, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --grad: linear-gradient(120deg, var(--sky), var(--teal));
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;

  /* Semantic theme tokens (dark default) */
  --bg: var(--navy-950);
  --bg-2: var(--navy-900);
  --bg-rgb: 5, 11, 26;
  --surface: var(--navy-800);
  --surface-2: var(--navy-700);
  --heading: #ffffff;
  --on-accent: #050b1a;
  --tint: rgba(255, 255, 255, 0.04);
  --ghost-border: rgba(255, 255, 255, 0.28);
  --card-bg: linear-gradient(170deg, rgba(22,48,106,.45), rgba(8,20,48,.4));
  --footer-bg: #030713;
  --fig-bg: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-dim); }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal); color: var(--on-accent); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem var(--font-head); letter-spacing: .02em;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
}
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(60, 198, 196, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(60, 198, 196, .8); }
.btn-ghost { border-color: var(--ghost-border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-soft); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(var(--bg-rgb), .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 52px; width: auto; display: block; }
.site-footer .brand-logo { height: 60px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 1.25rem var(--font-head); letter-spacing: .14em; color: var(--heading); }
.brand-sub { font: 500 .58rem var(--font-head); letter-spacing: .5em; color: var(--teal); margin-top: 4px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.main-nav a:not(.btn) { font: 500 .92rem var(--font-head); color: var(--ink-dim); position: relative; padding: .3rem 0; transition: color .2s; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.main-nav a:not(.btn):hover, .main-nav a.active, .main-nav a[aria-current="page"]:not(.btn) { color: var(--heading); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after, .main-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.main-nav .btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(60,198,196,.6); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--header-h); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb),.96) 0%, rgba(var(--bg-rgb),.75) 40%, rgba(var(--bg-rgb),.2) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/hero-dna.png") right center / cover no-repeat;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 600; max-width: 15ch; color: var(--heading); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 54ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }


.scroll-cue { position: absolute; bottom: 2rem; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ghost-border); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Sections ===== */
.section { padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.section-tag {
  font: 600 .78rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
  display: inline-flex; align-items: center; gap: .7rem;
}
.section-tag::before { content: ""; width: 28px; height: 2px; background: var(--grad); }
.section-head { max-width: 820px; margin-bottom: 3.5rem; }
.section-sub { font-size: 1.1rem; }
.lead { font-size: 1.2rem; color: var(--ink); }
.lead strong { color: var(--heading); }

/* About */
.about { background: radial-gradient(ellipse at 90% 10%, rgba(31,79,174,.25), transparent 55%), var(--bg); }
.about-grid { display: grid; grid-template-columns: minmax(0, 860px); }

/* Platform */
.platform { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.modality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-bottom: 4rem; }
.modality-card { padding: 2.4rem; transition: transform .35s, border-color .35s, box-shadow .35s; position: relative; overflow: hidden; }
.modality-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(60,198,196,.7), transparent 40%, transparent 60%, rgba(224,69,143,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.modality-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.modality-card:hover::before { opacity: 1; }
.modality-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(74,163,236,.12); color: var(--sky); margin-bottom: 1.4rem; }
.modality-icon svg { width: 34px; height: 34px; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.checks li { padding-inline-start: 1.8rem; position: relative; color: var(--ink); font-size: .95rem; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .4em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* How it works — illustrated flow */
.how { margin-top: 1rem; }
.how-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.how-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; color: var(--heading); }
.how-head p { margin: 0; max-width: 46ch; }
.how-flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.2rem;
  counter-reset: step;
}
.how-step { position: relative; display: flex; flex-direction: column; }
.how-step:not(:last-child)::after {
  content: ""; position: absolute; top: 105px; right: -1.75rem; width: 1.3rem; height: 1.3rem;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12M12 5l7 7-7 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12M12 5l7 7-7 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateX(4px); } }
.how-fig {
  margin: 0 0 1.1rem; height: 230px; padding: .9rem; border-radius: var(--radius);
  background: var(--fig-bg); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden; position: relative;
  box-shadow: 0 18px 40px -22px rgba(31,79,174,.55);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.how-fig::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(31,79,174,.08); pointer-events: none; }
.how-fig img { position: absolute; inset: .9rem; width: calc(100% - 1.8rem); height: calc(100% - 1.8rem); max-width: none; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.how-step:hover .how-fig { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(60,198,196,.6); }
.how-step:hover .how-fig img { transform: scale(1.05); }
.how-step .step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .7rem;
  font: 600 .95rem var(--font-head); color: var(--on-accent); background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(60,198,196,.7);
}
.how-step h4 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--heading); }
.how-step p { margin: 0; font-size: .92rem; }
.how-step .tag { display: inline-block; margin-top: .7rem; font: 500 .74rem var(--font-head); letter-spacing: .06em; color: var(--teal-soft); padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); }

.modular { margin-top: 3.5rem; padding: 2rem; border-radius: 24px; border: 1px solid var(--line); background: var(--tint); }
.modular-title { display: flex; align-items: center; gap: 1rem; font: 600 .82rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-soft); margin: 0 0 1.5rem; }
.modular-title::before, .modular-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.modular-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ind-card { display: flex; align-items: center; gap: 1.1rem; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.ind-card:hover { transform: translateY(-4px); border-color: rgba(60,198,196,.45); }
.ind-card img { width: 120px; height: 68px; object-fit: contain; border-radius: 12px; background: var(--fig-bg); padding: .3rem; flex: none; }
.ind-card h5 { font: 600 1.05rem var(--font-head); margin: 0 0 .3rem; color: var(--heading); }
.ind-card p { margin: .35rem 0 0; font-size: .8rem; color: var(--ink-mute); }

@media (max-width: 1100px) {
  .how-flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.2rem; padding-bottom: 1rem; margin-inline: -1.5rem; padding-inline: 1.5rem; scrollbar-width: thin; }
  .how-step { flex: 0 0 min(260px, 78vw); scroll-snap-align: start; }
  .how-step:not(:last-child)::after { display: none; }
  .modular-grid { grid-template-columns: 1fr; }
}

/* Pipeline */
.pipeline { background: var(--bg-2); }
.pipeline-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.pt-row { display: grid; grid-template-columns: 1.4fr 1.1fr 1.1fr 1fr; gap: 1rem; padding: 1.25rem 1.8rem; align-items: center; border-top: 1px solid var(--line); transition: background .25s; }
.pt-row:not(.pt-head):hover { background: rgba(60,198,196,.06); }
.pt-head { border-top: 0; background: linear-gradient(90deg, var(--surface-2), var(--surface)); font: 600 .78rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-soft); }
.pt-program { font: 600 1rem var(--font-head); color: var(--heading); display: flex; align-items: center; gap: .7rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-teal { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.dot-pink { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.chip { display: inline-block; font: 600 .78rem var(--font-head); padding: .3rem .8rem; border-radius: 999px; background: rgba(60,198,196,.12); color: var(--teal-soft); border: 1px solid rgba(60,198,196,.3); }
.chip-pink { background: rgba(224,69,143,.12); color: #f4a3c8; border-color: rgba(224,69,143,.35); }
.fine-print { font-size: .82rem; color: var(--ink-mute); margin-top: 1.4rem; }

/* Team */
.team { background: radial-gradient(ellipse at 10% 0%, rgba(60,198,196,.10), transparent 50%), var(--bg); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.person-card {
  padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card-bg);
  display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s;
}
.person-card:hover { transform: translateY(-6px); border-color: rgba(60,198,196,.45); box-shadow: var(--shadow); }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; display: block; margin-bottom: 1.3rem;
  object-fit: cover; object-position: center; background: var(--surface);
  border: 3px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 0 5px rgba(60,198,196,.10), 0 12px 30px -10px rgba(60,198,196,.6);
  transition: transform .35s;
}
.person-card:hover .avatar { transform: scale(1.05); }
.person-card h3 { margin-bottom: .2rem; color: var(--heading); }
.role { font: 500 .88rem var(--font-head); letter-spacing: .06em; color: var(--teal); text-transform: uppercase; margin-bottom: 1.1rem; }
.creds { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .45rem; flex: 1; }
.creds li { font-size: .93rem; color: var(--ink-dim); padding-inline-start: 1rem; position: relative; }
.creds li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }
.orgs { display: flex; flex-wrap: wrap; gap: .45rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.orgs span { font: 500 .72rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); padding: .25rem .65rem; border-radius: 6px; background: var(--tint); }

/* Investors */
.investors { background: var(--bg); }
.invest-panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem); border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(130deg, #0f2a66 0%, #0b3d63 50%, #0b5560 100%);
  border: 1px solid rgba(143,227,225,.25);
  box-shadow: 0 40px 80px -30px rgba(31,79,174,.5);
}
.invest-panel::after { content: ""; position: absolute; inset: 0; background: url("assets/hero-dna.png") right center / cover; opacity: .12; mix-blend-mode: screen; pointer-events: none; }
.invest-copy { position: relative; z-index: 1; }
.invest-copy p { color: var(--ink-dim); }
.invest-copy .section-tag { color: var(--teal-soft); }
.invest-points { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.invest-points li { padding-inline-start: 1.6rem; position: relative; color: var(--ink); }
.invest-points li::before { content: "→"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 700; }
.invest-points strong { color: var(--heading); }
.invest-visual { position: relative; z-index: 1; display: grid; place-items: center; aspect-ratio: 1; max-width: 320px; margin-inline: auto; width: 100%; }
.invest-visual img { filter: drop-shadow(0 0 24px rgba(60,198,196,.6)); animation: float 6s ease-in-out infinite; }
.orbit { position: absolute; inset: 0; }
.orbit span { position: absolute; inset: 0; border: 1px solid rgba(143,227,225,.25); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit span::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.orbit span:nth-child(2) { inset: 14%; animation-duration: 12s; animation-direction: reverse; }
.orbit span:nth-child(2)::after { background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.orbit span:nth-child(3) { inset: 28%; animation-duration: 8s; }
.orbit span:nth-child(3)::after { background: var(--sky); box-shadow: 0 0 14px var(--sky); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Contact */
.contact { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-card { padding: 1.6rem 1.8rem; margin-top: 2rem; }
.contact-card h3 { font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.contact-card p { margin: 0; color: var(--ink); }
.contact-form { padding: 2.2rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; font: 500 .85rem var(--font-head); color: var(--ink-dim); letter-spacing: .03em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--font-body); color: var(--ink);
  background: rgba(var(--bg-rgb),.6); border: 1px solid rgba(143,227,225,.18); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(60,198,196,.15); }
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: var(--pink); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--teal-soft); }
.form-status.err { color: #f4a3c8; }

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.site-footer nav a { font: 500 .9rem var(--font-head); color: var(--ink-dim); transition: color .2s; }
.site-footer nav a:hover { color: var(--teal-soft); }
.footer-legal { padding-top: 1.6rem; }
.footer-legal p { font-size: .8rem; color: var(--ink-mute); margin-bottom: .4rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .orbit span, .invest-visual img, .scroll-cue span, .how-step::after { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid, .contact-grid, .invest-panel { grid-template-columns: 1fr; gap: 2.5rem; }
  .modality-grid { grid-template-columns: 1fr; }
  .invest-visual { max-width: 220px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(var(--bg-rgb),.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .4s ease; visibility: hidden;
  }
  .main-nav.open { clip-path: inset(0); visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.8rem 1.5rem 2rem; }
  .site-header.menu-open { background: rgba(var(--bg-rgb),.97); }
}
@media (max-width: 720px) {
  .pt-head { display: none; }
  .pt-row { grid-template-columns: 1fr 1fr; padding: 1.3rem; }
  .pt-program { grid-column: 1 / -1; }
  .pt-row [data-label]::before { content: attr(data-label); display: block; font: 600 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .2rem; }
  .field-row { grid-template-columns: 1fr; }
    }

/* ===== Mission panel keeps its dark feature-band look in both themes ===== */
.invest-panel { --heading: #ffffff; --ink: #e8eef9; --ink-dim: #c9d6ee; --teal-soft: #8fe3e1; --teal: #3cc6c4; color: var(--ink); }

/* ===== Theme switch ===== */
.header-actions { display: flex; align-items: center; gap: .9rem; }
.theme-toggle {
  position: relative; width: 62px; height: 32px; padding: 0; border-radius: 999px; cursor: pointer; flex: none;
  border: 1px solid var(--line); background: var(--tint);
  transition: background .3s, border-color .3s;
}
.theme-toggle:hover { border-color: rgba(60,198,196,.55); }
.theme-toggle .tt-icon { position: absolute; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--ink-mute); transition: color .3s, opacity .3s; }
.theme-toggle .tt-sun { left: 9px; }
.theme-toggle .tt-moon { right: 9px; }
.theme-toggle .tt-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 4px 12px -2px rgba(60,198,196,.7);
  display: grid; place-items: center; color: var(--on-accent);
  transition: transform .45s cubic-bezier(.5,1.6,.4,1);
}
.theme-toggle .tt-knob svg { width: 14px; height: 14px; }
.theme-toggle .tt-knob .k-sun { display: none; }
[data-theme="dark"] .theme-toggle .tt-knob { transform: translateX(30px); }
[data-theme="light"] .theme-toggle .tt-knob .k-sun { display: block; }
[data-theme="light"] .theme-toggle .tt-knob .k-moon { display: none; }
[data-theme="dark"] .theme-toggle .tt-moon, [data-theme="light"] .theme-toggle .tt-sun { opacity: 0; }

/* Logo variants */
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* View-transition circular reveal when switching themes */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ===== Light theme ===== */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fd;
  --bg-2: #eaf1fa;
  --bg-rgb: 245, 248, 253;
  --surface: #ffffff;
  --surface-2: #dde8f6;
  --heading: #0b1d45;
  --ink: #1f2d4d;
  --ink-dim: #4a5878;
  --ink-mute: #69779a;
  --sky: #2f7fd0;
  --teal: #13a3a1;
  --teal-soft: #0d7a78;
  --line: rgba(31, 79, 174, 0.14);
  --glass: rgba(255, 255, 255, 0.75);
  --tint: rgba(13, 31, 71, 0.04);
  --ghost-border: rgba(13, 31, 71, 0.25);
  --card-bg: linear-gradient(170deg, #ffffff, #f1f6fd);
  --footer-bg: #e7eef8;
  --shadow: 0 24px 50px -24px rgba(16, 42, 94, 0.28);
}
[data-theme="light"] .hero-bg {
  background:
    linear-gradient(90deg, rgba(245,248,253,.97) 0%, rgba(245,248,253,.85) 42%, rgba(245,248,253,.1) 78%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("assets/hero-dna.png") right center / cover no-repeat;
}
[data-theme="light"] .site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(16,42,94,.35); }
[data-theme="light"] .person-card, [data-theme="light"] .modality-card { box-shadow: 0 14px 34px -24px rgba(16,42,94,.35); }
[data-theme="light"] .chip-pink { color: #b3245f; }
[data-theme="light"] .form-status.err { color: #b3245f; }
[data-theme="light"] .about { background: radial-gradient(ellipse at 90% 10%, rgba(74,163,236,.16), transparent 55%), var(--bg); }

/* Smooth color changes when theme flips (no view-transition fallback) */
body, .section, .site-footer, .pt-head {
  transition-property: background-color, color, border-color;
  transition-duration: .4s;
}

/* ===== Privacy policy page ===== */
.page-policy .site-header, .page-sub .site-header { background: rgba(var(--bg-rgb), .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(60,198,196,.18), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(74,163,236,.16), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("assets/hero-dna.png") right center / cover no-repeat; opacity: .14; -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
[data-theme="light"] .page-hero::after { opacity: .1; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; color: var(--heading); margin-bottom: .4em; }
.page-hero-lead { font-size: 1.15rem; max-width: 60ch; }
.policy-updated { font: 500 .85rem var(--font-head); letter-spacing: .06em; color: var(--teal-soft); margin: 0; }
.breadcrumb { display: flex; gap: .6rem; align-items: center; font: 500 .85rem var(--font-head); color: var(--ink-mute); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-dim); transition: color .2s; }
.breadcrumb a:hover { color: var(--teal-soft); }
.breadcrumb [aria-current] { color: var(--teal-soft); }

.policy { padding-top: clamp(3rem, 6vw, 4.5rem); }
.policy-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; align-items: start; }
.policy-toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.policy-toc-title { font: 600 .75rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.policy-toc ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line); display: grid; gap: .15rem; counter-reset: toc; }
.policy-toc a { display: block; padding: .35rem .6rem; margin-left: calc(-1rem - 1px); padding-left: 1rem; border-left: 2px solid transparent; font-size: .9rem; color: var(--ink-dim); transition: color .2s, border-color .2s; }
.policy-toc a:hover { color: var(--heading); }
.policy-toc a.active { color: var(--teal-soft); border-left-color: var(--teal); }

.policy-body { padding: clamp(1.8rem, 4vw, 3.2rem); max-width: 820px; }
.policy-body section { scroll-margin-top: calc(var(--header-h) + 1.5rem); padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.policy-body section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.policy-body h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--heading); display: flex; align-items: center; gap: .7rem; }
.policy-body h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--grad); flex: none; }
.policy-body p, .policy-body li, .policy-body dd { font-size: 1rem; line-height: 1.75; }
.policy-body strong { color: var(--heading); }
.policy-body a { color: var(--teal-soft); text-decoration: underline; text-underline-offset: 3px; }
.policy-body ul { margin: 0 0 1em; padding-left: 1.2rem; color: var(--ink-dim); }
.policy-body li { margin-bottom: .35rem; }
.policy-body li::marker { color: var(--teal); }
.policy-list { margin: 0 0 1.2rem; display: grid; gap: .3rem; }
.policy-list dt { font: 600 1rem var(--font-head); color: var(--heading); margin-top: .9rem; }
.policy-list dd { margin: 0; color: var(--ink-dim); padding-left: 1rem; border-left: 2px solid var(--line); }
.policy-address { margin-top: 1rem; padding: 1.1rem 1.4rem; border-radius: 14px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); line-height: 1.6; }
.site-footer nav a[aria-current="page"] { color: var(--teal-soft); }
.form-consent { font-size: .82rem; color: var(--ink-mute); margin: 0; }
.form-consent a { color: var(--teal-soft); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; gap: 2rem; }
  .policy-toc { position: static; }
  .policy-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* ===== Contact form: Formspree states ===== */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn { position: relative; }
.btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.contact-form.is-sending .btn-spinner { display: inline-block; }
.contact-form.is-sending .btn { cursor: progress; opacity: .85; transform: none; }
.btn:disabled { pointer-events: none; }
.form-status.pending { color: var(--ink-dim); }

/* ===== Language switcher ===== */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; height: 32px; padding: 0 .7rem 0 .6rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--ink-dim);
  font: 600 .78rem var(--font-head); letter-spacing: .06em; cursor: pointer; white-space: nowrap;
  transition: border-color .3s, color .3s, background .3s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: rgba(60,198,196,.55); color: var(--heading); }
.lang-globe { width: 16px; height: 16px; color: var(--teal); flex: none; }
.lang-caret { width: 10px; height: 10px; flex: none; transition: transform .25s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-switch.is-loading .lang-globe { animation: spin 1s linear infinite; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60;
  min-width: 230px; margin: 0; padding: .4rem; list-style: none;
  background: rgba(var(--bg-rgb), .96); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease;
}
[dir="rtl"] .lang-menu { transform-origin: top left; }
.lang-menu.open { opacity: 1; transform: none; }
.lang-option {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "native check" "local check";
  align-items: center; column-gap: .8rem; text-align: start;
  padding: .55rem .8rem; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer;
  font: 500 .95rem var(--font-body); transition: background .15s, color .15s;
}
.lang-option:hover, .lang-option:focus-visible { background: var(--tint); color: var(--heading); outline: none; box-shadow: inset 0 0 0 1px var(--line); }
.lang-native { grid-area: native; justify-self: start; unicode-bidi: isolate; }
.lang-local { grid-area: local; justify-self: start; font-size: .74rem; color: var(--ink-mute); }
.lang-local:empty { display: none; }
.lang-check { grid-area: check; width: 16px; height: 16px; color: var(--teal); opacity: 0; }
.lang-option[aria-checked="true"] { color: var(--teal-soft); }
.lang-option[aria-checked="true"] .lang-check { opacity: 1; }
@media (max-width: 560px) {
  .header-actions { gap: .55rem; }
  .lang-btn .lang-caret { display: none; }
  .lang-btn { padding: 0 .55rem; }
}
@media (max-width: 380px) { .lang-code { display: none; } }

/* Hide the page for a moment while a non-English dictionary loads (failsafe in i18n.js) */
html.i18n-loading body { opacity: 0; }
body { transition: opacity .2s ease; }

/* Privacy page: note that the English policy governs */
.policy-lang-note { margin: 1rem 0 0; max-width: 62ch; font-size: .88rem; padding: .7rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); color: var(--ink-dim); }
.policy-lang-note:empty { display: none; }

/* ===== Script-specific typography ===== */
/* Outfit / Inter cover Latin only; give other scripts a matching sans-serif and natural spacing */
html:lang(zh) { --font-head: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(ja) { --font-head: "Outfit", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; --font-body: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
html:lang(ar) { --font-head: "Noto Sans Arabic", "Outfit", "Segoe UI", Tahoma, sans-serif; --font-body: "Noto Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif; }
html:lang(hi) { --font-head: "Outfit", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; --font-body: "Inter", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; }
html:lang(zh) h1, html:lang(ja) h1, html:lang(zh) h2, html:lang(ja) h2 { line-height: 1.3; letter-spacing: 0; }
html:lang(zh) .hero h1, html:lang(ja) .hero h1 { max-width: 16em; }
html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3, html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { line-height: 1.4; }
html:lang(ar) .hero h1, html:lang(hi) .hero h1 { max-width: 18ch; }
/* Arabic letters join, so tracking must stay at zero */
html:lang(ar) *, html:lang(ar) *::before { letter-spacing: 0 !important; }
/* Longer translations (e.g. German) need room in the pill buttons */
.btn { text-align: center; }

/* ===== Right-to-left (Arabic) ===== */
[dir="rtl"] .theme-toggle { direction: ltr; } /* keep the sun/moon switch geometry */
[dir="rtl"] .hero-bg { transform-origin: center; scale: -1 1; } /* put the DNA artwork behind the open side */
[dir="rtl"] .main-nav a:not(.btn)::after { transform-origin: right; }
[dir="rtl"] .how-step:not(:last-child)::after { right: auto; left: -1.75rem; animation-name: nudge-rtl; }
@keyframes nudge-rtl { 0%, 100% { transform: scaleX(-1); } 50% { transform: scaleX(-1) translateX(4px); } }
[dir="rtl"] .how-step:not(:last-child)::after { transform: scaleX(-1); }
[dir="rtl"] .invest-points li::before { content: "←"; }
[dir="rtl"] .pt-head { background: linear-gradient(270deg, var(--surface-2), var(--surface)); }
[dir="rtl"] .contact-form .btn { justify-self: start; }
[dir="rtl"] .skip-link { left: auto; right: -999px; }
[dir="rtl"] .skip-link:focus { right: 1rem; }

/* ===== Multi-page layout ===== */
.page-sub .page-hero h1 { max-width: 24ch; }
.page-sub .page-hero + .section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.page-sub .about-copy .lead { font-size: 1.25rem; line-height: 1.75; }
.site-footer nav a[aria-current="page"] { color: var(--teal-soft); }

/* Home: overview cards linking to each page */
.overview { background: radial-gradient(ellipse at 90% 10%, rgba(31,79,174,.22), transparent 55%), var(--bg); }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.ov-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem 1.7rem; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.ov-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
[dir="rtl"] .ov-card::before { transform-origin: right; }
.ov-card:hover { transform: translateY(-6px); border-color: rgba(60,198,196,.45); box-shadow: var(--shadow); }
.ov-card:hover::before, .ov-card:focus-visible::before { transform: scaleX(1); }
.ov-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem; color: var(--sky); background: rgba(74,163,236,.12); }
.ov-icon svg { width: 24px; height: 24px; }
.ov-card h3 { color: var(--heading); margin-bottom: .5rem; }
.ov-card p { font-size: .95rem; flex: 1; }
.ov-more { font: 600 .88rem var(--font-head); color: var(--teal); margin-top: .6rem; transition: color .2s; }
.ov-card:hover .ov-more { color: var(--teal-soft); }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .overview-grid { grid-template-columns: 1fr; } }

/* Home: contact call-to-action band */
.cta-section { padding-top: 0; background: var(--bg); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3rem); border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(74,163,236,.14), rgba(60,198,196,.12)), var(--surface);
}
.cta-band h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--heading); margin-bottom: .4rem; }
.cta-band p { margin: 0; max-width: 60ch; }
