/* GeoIntellex website
   Layout idea: every page opens "above the waterline" in deep navy, then reads downward
   like a site investigation log: depth labels, measured vs interpreted, nothing overstated. */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts). No third-party font requests. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2-variations"), url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }

:root {
  /* Brand colours (from the website brief) */
  --navy: #102B40;
  --navy-deep: #0A1D2C;
  --teal: #006C73;
  --mist: #EEF5F6;
  --white: #FFFFFF;

  /* Supporting tokens */
  --ink: #102B40;            /* body text on light */
  --ink-soft: #3D5868;       /* secondary text on light, 7:1 on white */
  --line: #CFDFE2;           /* hairlines on light */
  --signal: #6FD0D6;         /* data accent, used on dark only */
  --on-dark: #E6F0F2;        /* body text on navy */
  --on-dark-soft: #A9C0C8;   /* secondary text on navy, 7.6:1 */
  --line-dark: rgba(169, 192, 200, 0.22);

  /* Strata (from the logo) */
  --stratum-1: #1E797F;
  --stratum-2: #4D7379;
  --stratum-3: #6A6055;
  --stratum-4: #5E4635;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.75rem);
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.65rem);
  --step-4: clamp(2.35rem, 1.5rem + 3.6vw, 4.25rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 4px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible, .section :focus-visible { outline-color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: var(--step-1); font-stretch: 105%; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; max-width: 65ch; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.on-dark .eyebrow, .eyebrow--dark { color: var(--signal); }

.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.on-dark { color: var(--on-dark); }
.on-dark .muted { color: var(--on-dark-soft); }
.mono { font-family: var(--font-mono); font-size: 0.85em; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--white); --btn-bd: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { --btn-bg: #00565C; --btn-bd: #00565C; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--signal { --btn-bg: var(--signal); --btn-fg: var(--navy); --btn-bd: var(--signal); }
.btn--signal:hover { --btn-bg: #9BE2E6; --btn-bd: #9BE2E6; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(230, 240, 242, 0.55); }
.btn--ghost-dark:hover { --btn-bg: rgba(255,255,255,0.08); --btn-bd: var(--white); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--navy); --btn-bd: var(--white); }
.btn--white:hover { --btn-bg: var(--mist); --btn-bd: var(--mist); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.text-link:hover .arrow { transform: translateX(3px); }
.text-link .arrow { transition: transform .18s ease; }
.on-dark .text-link { color: var(--signal); }

/* ---------- Status tags (state encoded in form) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal); border: 1px solid currentColor; border-radius: 2px;
  padding: 4px 9px 4px 8px; line-height: 1.2; white-space: nowrap; width: fit-content;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.tag--dev::before { background: currentColor; }                 /* In development: filled */
.tag--explore::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); } /* Exploring: half */
.tag--consider { border-style: dashed; }                          /* Under consideration */
.tag--potential { color: var(--ink-soft); }                        /* Potential application */
.tag--future { color: var(--ink-soft); border-style: dashed; }    /* Future direction */
.tag--future::before { border-style: dotted; }
.on-dark .tag { color: var(--signal); }
.on-dark .tag--potential, .on-dark .tag--future { color: var(--on-dark-soft); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-solid {
  background: rgba(10, 29, 44, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { width: 146px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) {
  color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 10px 14px; border-radius: var(--radius); position: relative;
}
.site-nav a:not(.btn):hover { color: var(--white); background: rgba(255,255,255,0.06); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--white); }
.site-nav a[aria-current="page"]:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--signal);
}
.site-nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: transparent; color: var(--white); border: 1.5px solid rgba(230,240,242,0.5);
  border-radius: var(--radius); padding: 9px 14px; font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-word { width: 124px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 8px var(--gutter) 24px;
    box-shadow: 0 1px 0 var(--line-dark), 0 24px 40px rgba(0,0,0,0.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .site-nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line-dark); border-radius: 0; font-size: 1.05rem; }
  .site-nav a[aria-current="page"]:not(.btn)::after { left: 4px; right: auto; width: 28px; bottom: 8px; }
  .site-nav .btn { margin: 20px 0 0; }
  .site-header.menu-open { background: var(--navy-deep); }
}

/* ---------- Image slots (drop-in images over designed fallback art) ---------- */
.slot {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--navy); isolation: isolate;
}
.slot > canvas.slot-art, .slot > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.slot > img { object-fit: cover; z-index: 1; }
.slot.is-empty > img { visibility: hidden; }
.slot-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: rgba(230,240,242,0.86); background: rgba(10,29,44,0.72);
  padding: 4px 8px; border-radius: 2px; display: none;
}
.slot.is-empty .slot-label { display: block; }
.slot-caption {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); background: rgba(10,29,44,0.6); padding: 3px 7px; border-radius: 2px;
}
.slot.is-empty .slot-caption { display: none; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: var(--on-dark);
  background: var(--navy-deep);
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(150px, 16vw, 210px);
  overflow: hidden; isolation: isolate;
}
.hero-sky { position: absolute; inset: 0; z-index: -2; }
.hero-sky svg { width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,29,44,0.9) 0%, rgba(10,29,44,0.72) 38%, rgba(10,29,44,0.18) 72%, rgba(10,29,44,0.05) 100%),
    linear-gradient(180deg, rgba(10,29,44,0.55) 0%, rgba(10,29,44,0) 22%, rgba(10,29,44,0) 70%, #0F2B42 100%);
}
.hero-inner { display: grid; gap: 28px; max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.6rem); }
.hero h1 .accent { color: var(--signal); }
.hero .lead { color: var(--on-dark); max-width: 58ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--on-dark-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; background: var(--signal); border-radius: 50%; }

/* ---------- Cross-section (waterline to 50 m below seabed) ---------- */
.xsec { position: relative; background: linear-gradient(180deg, transparent 0, transparent 96px, #0F2B42 96px); color: var(--on-dark); margin-top: -96px; z-index: 1; }
.xsec-figure { margin: 0; position: relative; }
.xsec-svg { width: 100%; height: auto; display: block; }
.xsec-intro {
  position: absolute; z-index: 2; top: 120px; left: 0; right: 0; pointer-events: none;
}
.xsec-intro .wrap > div { max-width: 470px; pointer-events: auto; }
.xsec-intro h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); color: var(--white); margin-top: 14px; }
.xsec-intro p { margin-top: 14px; color: var(--on-dark); }
.xsec-legend {
  background: var(--navy-deep); border-top: 1px solid var(--line-dark);
  padding: 18px 0 22px;
}
.legend-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--on-dark-soft); letter-spacing: 0.02em;
}
.legend-list li { display: inline-flex; align-items: center; gap: 10px; }
.legend-key { width: 26px; height: 12px; flex-shrink: 0; }
.legend-note { margin-top: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--on-dark-soft); opacity: 0.85; max-width: none; }

@media (max-width: 760px) {
  .xsec { margin-top: -72px; background: linear-gradient(180deg, transparent 0, transparent 72px, #0F2B42 72px); }
  .xsec-intro { position: static; padding: 96px 0 8px; }
  .xsec-intro .wrap > div { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { display: grid; gap: 16px; max-width: 720px; }
.section--navy h2, .section--navy h3 { color: var(--white); }

/* Numbered focus columns (01, 02, 03 follow the workflow order) */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.focus-item { padding: 32px 32px 8px 0; display: grid; gap: 16px; align-content: start; }
.focus-item + .focus-item { padding-left: 32px; border-left: 1px solid var(--line); }
.focus-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); letter-spacing: 0.06em; }
.focus-glyph { width: 76px; height: 76px; }
.focus-item h3 { font-size: 1.35rem; }
.focus-item p { color: var(--ink-soft); }
@media (max-width: 900px) {
  .focus-grid { grid-template-columns: 1fr; }
  .focus-item, .focus-item + .focus-item { padding: 28px 0; border-left: 0; }
  .focus-item + .focus-item { border-top: 1px solid var(--line); }
}

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split-copy { display: grid; gap: 20px; align-content: start; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
}

/* Definition list for terms of art */
.terms { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.terms div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; color: var(--navy); padding-top: 2px; }
.terms dd { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 520px) { .terms div { grid-template-columns: 1fr; gap: 4px; } }

/* Workflow steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 52px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; z-index: 1;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--white);
  background: var(--teal); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
}
.steps li::after { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }
.on-dark .steps li::before { background: var(--signal); color: var(--navy); }
.on-dark .steps li::after { background: var(--line-dark); }
.on-dark .steps p { color: var(--on-dark-soft); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::after { top: 44px; left: 18px; right: auto; bottom: -28px; width: 1px; height: auto; }
}

/* CTA band */
.cta {
  background: var(--teal); color: var(--white); position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 8vw, 104px) 0;
}
.cta-contours { position: absolute; inset: 0; z-index: -1; opacity: 0.22; }
.cta-contours svg { width: 100%; height: 100%; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta h2 { color: var(--white); }
.cta p { color: #E2F1F2; margin-top: 18px; }
.cta .btn-row { margin-top: 32px; }
.audience { border-left: 1px solid rgba(255,255,255,0.35); padding-left: clamp(20px, 3vw, 36px); }
.audience h3 { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #CDEBEC; }
.audience ul { list-style: none; margin-top: 14px; display: grid; gap: 0; }
.audience li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-weight: 500; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .audience { border-left: 0; padding-left: 0; } }

/* ---------- Inner page head ---------- */
.page-head {
  position: relative; background: var(--navy); color: var(--on-dark); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 88px);
}
.page-head-lines { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }
.page-head-lines svg { width: 100%; height: 100%; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head-copy { display: grid; gap: 22px; align-content: start; }
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); }
.page-head .lead { color: var(--on-dark); }
.page-head .slot { box-shadow: 0 30px 60px rgba(0,0,0,0.3); }
.page-head--compact .page-head-grid { grid-template-columns: 1fr; }
.page-head--compact .page-head-copy { max-width: 820px; }
@media (max-width: 900px) { .page-head-grid { grid-template-columns: 1fr; } }

/* Inputs, methods, outputs */
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; }
.pipe-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; display: grid; gap: 14px; align-content: start; }
.pipe-col--accent { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.pipe-col--accent h3 { color: var(--white); }
.pipe-col h3 { font-size: 1.3rem; }
.pipe-col ul { list-style: none; display: grid; gap: 0; }
.pipe-col li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.98rem; }
.pipe-col--accent li { border-top-color: var(--line-dark); }
.pipe-col li small { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); margin-top: 2px; }
.pipe-col--accent li small { color: var(--on-dark-soft); }
.pipe-arrow { display: grid; place-items: center; width: 44px; color: var(--teal); }
.pipe-arrow svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { width: auto; height: 44px; transform: rotate(90deg); }
}

/* Feature rows (technology focus areas) */
.feature-rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.feature-copy { display: grid; gap: 18px; align-content: start; }
.feature-copy .tag { justify-self: start; }
.checklist { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--ink-soft); }
.checklist li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border: 1.5px solid var(--teal); transform: rotate(45deg); }

/* Charts and figures */
.figure-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.figure-card figcaption { margin-top: 16px; font-size: 0.9rem; color: var(--ink-soft); max-width: 80ch; }
.figure-card figcaption strong { color: var(--ink); }
.figure-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 14px; }
.figure-title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--navy); font-weight: 500; }
.synthetic-flag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #7A4B12; background: #FFF4E0; border: 1px solid #E8C48A; padding: 3px 8px; border-radius: 2px;
}
.chart-scroll { overflow-x: auto; }
.chart-svg { width: 100%; max-width: 880px; margin-inline: auto; min-width: 560px; height: auto; font-family: var(--font-mono); }
.profile-svg { width: 100%; height: auto; font-family: var(--font-mono); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-soft); list-style: none; }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }

/* Question table */
.qtable { width: 100%; border-collapse: collapse; }
.qtable th, .qtable td { text-align: left; vertical-align: top; padding: 22px 24px 22px 0; border-top: 1px solid var(--line); }
.qtable th { width: 30%; font-family: var(--font-display); font-stretch: 105%; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.qtable td { font-size: 1.08rem; }
.qtable td .tag { margin-top: 10px; }
.qtable tr:last-child th, .qtable tr:last-child td { border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .qtable, .qtable tbody, .qtable tr, .qtable th, .qtable td { display: block; width: 100%; }
  .qtable th { padding: 22px 0 6px; } .qtable td { border-top: 0; padding: 0 0 22px; }
}

/* Conceptual example: input, question, output */
.example { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.example > div { padding: 26px; display: grid; gap: 12px; align-content: start; position: relative; }
.example > div + div { border-left: 1px solid var(--line); }
.example .ex-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.example h4 { font-size: 1.08rem; }
.example p { font-size: 0.98rem; color: var(--ink-soft); }
.example > div + div::before {
  content: ""; position: absolute; left: -8px; top: 30px; width: 14px; height: 14px; background: var(--white);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg);
}
@media (max-width: 860px) {
  .example { grid-template-columns: 1fr; }
  .example > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .example > div + div::before { left: 30px; top: -8px; transform: rotate(135deg); }
}

/* Application cards */
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.app-card { display: grid; gap: 18px; align-content: start; }
.app-card .tag { justify-self: start; }
.app-card h3 { font-size: 1.5rem; }
.app-card p { color: var(--ink-soft); }
@media (max-width: 820px) { .app-grid { grid-template-columns: 1fr; } }

/* About */
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.principles li { padding: 24px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.principles li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principles h3 { font-size: 1.2rem; }
.principles p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li + li { padding: 22px 0; border-left: 0; }
  .principles li + li { border-top: 1px solid var(--line); }
}
.leader { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.leader-portrait { position: relative; }
.leader-portrait .monogram {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-stretch: 120%; font-weight: 700; font-size: 4.5rem; color: rgba(230,240,242,0.9);
}
.leader-copy { display: grid; gap: 16px; align-content: start; }
.leader-role { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; color: var(--teal); }
@media (max-width: 760px) { .leader { grid-template-columns: 1fr; } .leader-portrait { max-width: 320px; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.facts dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Content still to be supplied (remove before launch) */
.to-supply {
  border: 1.5px dashed #C58B2E; background: #FFF9EE; color: #5A3B0E; border-radius: var(--radius);
  padding: 14px 16px; font-size: 0.95rem; max-width: 65ch;
}
.to-supply::before {
  content: "To supply before launch"; display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8A5A12;
}
.on-dark .to-supply { background: rgba(255, 244, 224, 0.08); color: #F3D9AE; border-color: #C58B2E; }
.on-dark .to-supply::before { color: #F0C27A; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field .req { color: var(--teal); font-weight: 600; }
.field .hint { font-size: 0.88rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #9FB6BD; border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23102B40' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,108,115,0.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field-error { font-size: 0.88rem; color: #B42318; font-weight: 500; display: none; }
.field.has-error .field-error { display: block; }
.char-count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); justify-self: end; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.collection-notice { font-size: 0.9rem; color: var(--ink-soft); border-left: 3px solid var(--teal); padding: 4px 0 4px 14px; max-width: 70ch; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-status { border-radius: var(--radius); padding: 16px 18px; font-size: 0.98rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--success { background: #E7F4EE; border: 1px solid #7CC0A0; color: #0F4D33; }
.form-status--error { background: #FDECEA; border: 1px solid #E59A92; color: #7A1A12; }
.form-status--info { background: #FFF6E5; border: 1px solid #E8C48A; color: #5A3B0E; }
.form-status strong { display: block; margin-bottom: 4px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.captcha-slot:empty { display: none; }

.aside-block { display: grid; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.aside-block:first-child { border-top: 2px solid var(--navy); }
.aside-block h2 { font-size: 1.15rem; font-stretch: 105%; }
.aside-block ol { padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-soft); }
.contact-lines { display: grid; gap: 10px; margin: 0; }
.contact-lines div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; }
.contact-lines dt { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.contact-lines dd { margin: 0; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #24404F; }
.prose ul { padding-left: 1.25em; display: grid; gap: 6px; margin: 0.8em 0; }
.prose .to-supply { margin: 1em 0; }
.prose-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- 404 ---------- */
.notfound { min-height: 100%; background: var(--navy); color: var(--on-dark); padding: calc(var(--header-h) + 72px) 0 96px; }
.notfound-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
.notfound h1 { color: var(--white); }
.notfound-copy { display: grid; gap: 22px; }
.notfound svg { width: 100%; max-width: 320px; justify-self: center; font-family: var(--font-mono); }
@media (max-width: 760px) { .notfound-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; }
.footer-brand { display: grid; gap: 18px; align-content: start; }
.footer-brand p { max-width: 44ch; }
.site-footer h2 { font-family: var(--font-mono); font-stretch: 100%; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal {
  max-width: none; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em;
}
.footer-legal span:not(:last-child)::after { content: "·"; margin-left: 10px; opacity: 0.6; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Waterline drift and turbine rotors */
.xs-wave { animation: xs-wave 7s linear infinite; }
@keyframes xs-wave { to { transform: translateX(140px); } }
.rotor { transform-box: view-box; animation: rotor 14s linear infinite; }
@keyframes rotor { to { transform: rotate(360deg); } }
.hero-caption { position: absolute; right: var(--gutter); bottom: 112px; z-index: 1; display: none;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(10,29,44,0.55); padding: 3px 7px; border-radius: 2px; }
.hero.has-photo .hero-caption { display: block; }
.leader-card { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); border-top: 2px solid var(--navy); padding-top: 28px; }
.leader-card h3 { font-size: var(--step-2); }
.leader-card .leader-copy { display: grid; gap: 16px; }
@media (max-width: 760px) { .leader-card { grid-template-columns: 1fr; } }

.split--figure { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 900px) { .split--figure { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hero { padding-bottom: 104px; } }
