/* AG10 Bio — v4.5 launch version, Option A "Trace" (v4.3: advisory coverage list reworded, single column; v4.2: footer shows the registered office only; v4.1: registered company details in footer; v4.0: placeholders resolved, privacy page added; v3.4: section backgrounds alternate navy / lighter navy; v3.3: logo v1.3 in header and footer, Drawn point ringed in hero graphic; v3.1: hero graphic beside the text on wide screens; v3.2: hero graphic hidden on portrait phones, where section 02 carries it)
   Dark navy end to end. One line runs down the page linking the numbered sections,
   echoing the sample's path from Drawn to Tested. Sora + Inter, stored locally. */

@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --navy: #0b1220;
  --navy-deep: #070b14;
  --navy-soft: #101a2e;
  --navy-raised: #162238;
  --text: #edf2f8;
  --text-muted: #b4c1d6;
  --accent: #2f7dff;
  --accent-btn: #1b5fe0;
  --accent-btn-hover: #2f7dff;
  --accent-light: #8cb8ff;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(140, 184, 255, 0.4);
  --display: "Sora", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --max: 1180px;
  --radius: 8px;
  --bar-h: 72px;
  --pad: 6.5rem;      /* vertical section padding */
  --rail: 6.5rem;     /* width reserved for the numbered rail */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 0.7em;
  hyphens: none;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.9rem); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 0.45em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
::selection { background: var(--accent-btn); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--accent-btn); color: #fff;
  padding: 0.5rem 0.8rem; z-index: 300; border-radius: 4px;
}
.skip-link:focus { top: calc(var(--header-h) + 0.5rem); color: #fff; }

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-top { position: sticky; top: 0; z-index: 80; }
.site-header {
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto; height: 100%;
  display: flex; align-items: center; gap: 1.75rem;
}
.wordmark { text-decoration: none; color: #fff; margin-right: auto; display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark:hover { color: #fff; }
.wordmark-text { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
/* Logo v1.3: blue "10"; the "o" of Bio is the draw circle, with the line rising at 45 degrees */
.wm-10 { color: var(--accent); margin-left: 0.035em; }
.wm-tail { display: inline-block; width: 1.328em; height: 1.345em; max-width: none; vertical-align: baseline; margin-left: 0.05em; overflow: visible; }
.wm-line { stroke: var(--accent-light); }
.wm-ring { stroke: var(--accent); }
.wm-dot { fill: var(--accent); }

.nav-desktop ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.4rem 0; }
.nav-desktop a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.8rem 1.3rem; border-radius: var(--radius);
  font-family: var(--body); font-weight: 600; font-size: 0.94rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-header, .btn-primary { background: var(--accent-btn); color: #fff; }
.btn-header:hover, .btn-primary:hover { background: #1552c4; color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.38); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 0; position: relative;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 1px; position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.mobile-menu, .mobile-backdrop { display: none; }

/* ---------- Bands (all navy; depth changes instead of white) ---------- */
.section-on-white { background: var(--navy); }
.section-on-tint { background: var(--navy-soft); }
.section-on-navy { background: var(--navy); }
.section, .cta-band { padding: var(--pad) 0; scroll-margin-top: calc(var(--header-h) + 0.75rem); }

/* ---------- Hero ---------- */
.hero {
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 5rem) 0 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(47, 125, 255, 0.2), transparent 60%),
    var(--navy);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: flex; flex-direction: column; gap: 3.5rem; }
.hero-copy { max-width: 60rem; }
.hero h1 { max-width: 17ch; }
.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-light); margin-bottom: 1rem;
}
.hero-tagline { font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; color: #d7e4fa; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.hero-lead { color: var(--text-muted); max-width: 40rem; }
.hero-base { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The trace: Drawn > Transported > Tested */
.hero-visual { width: 100%; }
.trace {
  position: relative; height: clamp(170px, 24vw, 280px);
  color: var(--accent-light);
  background-image:
    linear-gradient(to right, rgba(140, 184, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 184, 255, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.trace-line { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.trace-line path { stroke: currentColor; stroke-width: 2.2; }
.trace-line { animation: trace-draw 1.5s ease-out 0.15s backwards; }
@keyframes trace-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.trace-stop { position: absolute; width: 0; height: 0; }
.trace-stop-1 { left: 10%; top: 78%; }
.trace-stop-2 { left: 50%; top: 50%; }
.trace-stop-3 { left: 90%; top: 22%; }
.trace-node {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px;
  border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px var(--navy);
}
.trace-stop-1 .trace-node {
  left: -16px; top: -16px; width: 32px; height: 32px;
  background: radial-gradient(circle, currentColor 0 5px, var(--navy) 5.5px 100%);
  border: 2px solid currentColor; box-shadow: none;
}
.trace-label {
  position: absolute; left: 16px; top: 12px;
  font-size: clamp(0.66rem, 1.5vw, 0.78rem); font-weight: 600; letter-spacing: 0.14em;
  white-space: nowrap; color: #c5d6f0;
}
.trace-stop-1 .trace-label { left: 26px; top: 16px; }
.trace-stop-3 .trace-label { left: auto; right: 16px; top: auto; bottom: 12px; }

/* ---------- Section intro + numbered rail ---------- */
.section-intro { max-width: 46rem; margin-bottom: 2.75rem; }
.lead { font-size: 1.15rem; color: #d7e0ee; }
.section-index {
  display: inline-grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-light); margin: 0 0 1.1rem;
  font-variant-numeric: tabular-nums;
}
.section-on-white .section-index, .section-on-navy .section-index { background: var(--navy); }
.section-on-tint .section-index { background: var(--navy-soft); }

@media (min-width: 901px) {
  .section > .container, .cta-band > .container { position: relative; padding-left: var(--rail); }
  .section > .container::before, .cta-band > .container::before {
    content: ""; position: absolute; left: 1.3rem; width: 1px;
    top: calc(var(--pad) * -1); bottom: calc(var(--pad) * -1);
    background: var(--line-strong);
  }
  .section-problem > .container::before { top: 1.3rem; }
  .cta-band > .container::before { bottom: auto; height: calc(var(--pad) + 1.3rem); }
  .section-index { position: absolute; left: 0; top: 0; margin: 0; z-index: 1; }
}

/* ---------- Problem ---------- */
.stat-panel {
  display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 2.5rem; row-gap: 1.4rem;
  padding: 2.2rem 0 2rem; margin-bottom: 2.4rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* range strip: the 46–68 band on a 0–100 track */
.stat-panel::before {
  content: ""; grid-column: 1 / -1; height: 10px; border-radius: 5px;
  background:
    linear-gradient(to right, transparent 46%, var(--accent) 46%, var(--accent) 68%, transparent 68%),
    rgba(255, 255, 255, 0.09);
}
.stat-figure {
  font-family: var(--display); font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 600;
  color: #fff; line-height: 0.9; margin: 0; letter-spacing: -0.05em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stat-text { padding-bottom: 0.5rem; }
.stat-caption { font-size: 1.2rem; font-weight: 500; color: #fff; margin-bottom: 0.3rem; max-width: 22ch; line-height: 1.35; }
.stat-source { color: var(--text-muted); font-size: 0.88rem; }

.gap-line { font-size: 1.15rem; max-width: 44rem; margin-bottom: 2.2rem; color: #d7e0ee; }
.closing { margin-top: 2.6rem; max-width: 44rem; font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: #fff; }

/* ---------- Cards: ruled columns, not boxes ---------- */
.card-grid { display: grid; gap: 2.2rem 2.5rem; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.card-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.card { position: relative; padding: 1.5rem 0 0; border-top: 1px solid var(--line); color: var(--text-muted); }
.card::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 2px; background: var(--accent); }
.card h3 { color: #fff; }
.card-kicker {
  font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-light); margin-bottom: 0.7rem; font-variant-numeric: tabular-nums;
}

/* ---------- Approach ---------- */
.approach-body { max-width: 46rem; color: var(--text-muted); }
.approach-body p { margin-bottom: 1em; }
.journey { display: flex; align-items: center; gap: 0.6rem; margin-top: 3.5rem; max-width: 44rem; }
.journey-step { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; min-width: 5.5rem; }
.journey-node { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 5px rgba(140, 184, 255, 0.16); }
.journey-line { flex: 1; height: 2px; background: var(--line-strong); margin-bottom: 1.6rem; }
.journey-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #c5d6f0; }

/* ---------- Team ---------- */
.section-team { background: radial-gradient(ellipse 60% 70% at 0% 100%, rgba(47, 125, 255, 0.14), transparent 60%), var(--navy); }
.team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.founder-card {
  background: rgba(47, 125, 255, 0.1); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 2.4rem 2.2rem; color: #d7e0ee;
}
.founder-card h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; margin-bottom: 0.45em; }
.team-side { display: grid; gap: 2.2rem; }
.coverage-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.coverage-list li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-weight: 500; color: #fff; }

/* ---------- Contact ---------- */
.cta-inner > * { max-width: 44rem; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 16ch; }
.cta-note { color: var(--text-muted); max-width: 36rem; margin-bottom: 1.9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.placeholder-flag { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; color: inherit; }
.site-footer .placeholder-flag { color: #ffd27a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-muted); padding: 3.75rem 0 1.5rem; font-size: 0.92rem; border-top: 1px solid var(--line); }
.footer-wordmark { color: #fff; margin-bottom: 0.7rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.footer-heading { font-family: var(--display); font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 0.8rem; }
.footer-nav ul, .footer-legal ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.footer-nav li, .footer-legal li { padding: 0.15rem 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal p { margin-bottom: 0.6rem; color: #9aa6bc; font-size: 0.86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; font-size: 0.86rem; }
.footer-preview-note { margin: 0.85rem 0 0; font-size: 0.8rem; color: #9aa6bc; }

.mobile-contact-bar { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  :root { --pad: 4.5rem; }
  .nav-desktop, .btn-header { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(7, 11, 20, 0.55); z-index: 90; }
  .mobile-menu:not([hidden]) {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy); z-index: 100;
    padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); overflow: auto;
  }
  .mobile-menu nav { flex: 1; display: flex; flex-direction: column; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
  .mobile-menu li:last-child { margin-top: auto; }
  .mobile-menu a {
    display: block; padding: 1.05rem 0; text-decoration: none; color: #fff;
    font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu a:hover { color: var(--accent-light); }
  .mobile-menu li:last-child a {
    margin-top: 0.8rem; border: 0; background: var(--accent-btn); color: #fff; text-align: center;
    border-radius: var(--radius); padding: 0.9rem 1rem; font-family: var(--body); font-size: 1rem;
  }

  .container, .header-inner { width: min(100% - 2rem, var(--max)); }
  .hero { padding: calc(var(--header-h) + 2.4rem) 0 0; }
  .hero-grid { gap: 2rem; }
  .hero-actions .btn-secondary { display: none; }
  .card-grid.two, .card-grid.three, .team-layout, .footer-grid { grid-template-columns: 1fr; }
  .stat-panel { grid-template-columns: 1fr; align-items: start; row-gap: 1rem; }
  .stat-text { padding-bottom: 0; }
  .footer-bottom { flex-direction: column; }

  .mobile-contact-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 18, 32, 0.9);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .mobile-contact-bar .btn { width: 100%; min-height: 44px; }
  .mobile-contact-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
  body.menu-open .mobile-contact-bar { transform: translateY(110%); opacity: 0; pointer-events: none; }
}
@media (max-width: 480px) {
  .journey-label { font-size: 0.66rem; }
  .journey-step { min-width: 4.6rem; }
  .coverage-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- v3.1: hero graphic beside the copy on landscape / desktop widths ---------- */
@media (min-width: 680px) {
  .hero { padding-bottom: 4.5rem; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
  .hero h1 { font-size: clamp(2.1rem, 4.5vw, 4rem); max-width: none; }
  .trace {
    height: auto; aspect-ratio: 1 / 0.9;
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 75% at center, #000 60%, transparent 100%);
  }
}

/* ---------- v3.2: portrait phones — hero graphic hidden (the same graphic appears in section 02) ---------- */
@media (max-width: 679px) {
  .hero-visual { display: none; }
  .hero { padding-bottom: 3rem; }
}

/* ---------- v3.4: alternate section backgrounds so each section reads as its own page ---------- */
:root { --band-light: #152340; }
.section-problem, .section-where, .cta-band { background: var(--band-light); }
.section-approach { background: var(--navy); }
.section-problem .section-index, .section-where .section-index, .cta-band .section-index { background: var(--band-light); }
.section-approach .section-index { background: var(--navy); }

/* ---------- v4.0: privacy page ---------- */
.legal { background: var(--navy); padding: 4.5rem 0 6rem; }
.legal-inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.3em; }
.legal h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.4em 0 0.6em; }
.legal p { color: #d7e0ee; }
.legal .legal-date { color: var(--text-muted); font-size: 0.92rem; }
.legal .legal-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .legal { padding: 2.8rem 0 4rem; } }

/* ---------- v4.1: registered company details ---------- */
.footer-company { margin: 0.85rem 0 0; font-size: 0.8rem; color: #9aa6bc; max-width: 60rem; }

/* ---------- v4.3: longer advisory lines sit one per row ---------- */
.coverage-list { grid-template-columns: 1fr; }

/* ---------- v4.5: longer statistic caption ---------- */
.stat-caption { max-width: 32ch; font-size: 1.12rem; margin-bottom: 0.5rem; }
