/* ==========================================================================
   J-Tech AI — site styles
   Palette: survey chart. Marine ink, chart paper, contour teal, chart magenta.
   Type: Archivo variable (weight 100–900, width 62–125%), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour tokens */
  --ink: #0B2232;          /* marine ink: hero, philosophy, contact */
  --ink-raised: #12324A;
  --paper: #EEF1EE;        /* chart paper */
  --paper-deep: #E2E8E4;
  --text: #13232C;
  --text-muted: #46585F;
  --rule: #C3CFCC;
  --contour: #5E8A8E;      /* contour teal */
  --signal: #B0135C;       /* chart magenta, on paper */
  --signal-strong: #8F0E4A;
  --signal-bright: #FF6AA6;/* chart magenta, on ink */
  --on-ink: #E8EFF1;
  --on-ink-muted: #A3B8C1;
  --on-ink-rule: rgba(163, 184, 193, 0.24);

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 116%;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.7vw, 1.85rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.7rem + 4.2vw, 5.4rem);

  /* Space and layout */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section-y: clamp(5rem, 3.5rem + 7vw, 10rem);
  --maxw: 1240px;
  --header-h: 68px;
  --radius-sm: 6px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible, .philosophy :focus-visible, .contact :focus-visible, .site-header.is-over-ink :focus-visible {
  outline-color: var(--signal-bright);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type roles ---------- */
.section-title {
  font-size: var(--step-3);
  font-weight: 640;
  font-stretch: var(--wide);
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 38ch;
}
.kicker {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--signal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: var(--step-0); font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-signal { background: var(--signal-bright); color: var(--ink); }
.btn-signal:hover { background: #FF8DBB; }
.btn-ghost-light { background: transparent; color: var(--on-ink); border-color: rgba(232, 239, 241, 0.45); }
.btn-ghost-light:hover { border-color: var(--on-ink); background: rgba(232, 239, 241, 0.06); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-raised); }
.icon-external { width: 0.9em; height: 0.9em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--text);
  background: rgba(238, 241, 238, 0.92);
  border-bottom: 1px solid var(--rule);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(238, 241, 238, 0.78); backdrop-filter: blur(12px) saturate(1.2); }
}
.site-header.is-over-ink {
  color: var(--on-ink);
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.is-over-ink.is-scrolled {
  background: rgba(11, 34, 50, 0.82);
  border-bottom-color: var(--on-ink-rule);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-over-ink.is-scrolled { backdrop-filter: blur(12px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.wordmark-mark { width: 30px; height: 30px; }
.wordmark-signal { fill: var(--signal); }
.is-over-ink .wordmark-signal { fill: var(--signal-bright); }
.wordmark-text { font-size: 1.12rem; font-weight: 700; font-stretch: 120%; letter-spacing: -0.01em; }

.site-nav ul { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 0.35rem 0;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 160ms ease;
}
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current="true"] { border-bottom-color: var(--signal); }
.is-over-ink .site-nav a[aria-current="true"] { border-bottom-color: var(--signal-bright); }
.site-nav .nav-cta { padding: 0.45rem 1rem; border: 1.5px solid currentColor; border-radius: 999px; }
.site-nav .nav-cta:hover { background: currentColor; }
.site-nav .nav-cta:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.is-over-ink .site-nav .nav-cta:hover { color: var(--ink); background: var(--on-ink); border-color: var(--on-ink); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 44px; padding: 0 0.25rem; background: none; border: 0; color: inherit; cursor: pointer;
    font-weight: 600;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
    transition: transform 200ms var(--ease-out), opacity 150ms ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--ink); color: var(--on-ink);
    border-top: 1px solid var(--on-ink-rule);
    padding: 1rem var(--gutter) 2rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--on-ink-rule); }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.25rem; font-stretch: 110%; border-bottom: 0; }
  .site-nav a[aria-current="true"] { color: var(--signal-bright); }
  .site-nav .nav-cta { border: 0; border-radius: 0; padding: 1rem 0; }
  .site-nav .nav-cta:hover, .is-over-ink .site-nav .nav-cta:hover { background: none; color: var(--signal-bright); }
  .site-header.nav-open { background: var(--ink); color: var(--on-ink); border-bottom-color: var(--on-ink-rule); }
  .site-header.nav-open .wordmark-signal { fill: var(--signal-bright); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  background: var(--ink);
  color: var(--on-ink);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-terrain {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
}
.hero-inner {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 5rem));
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
.hero-eyebrow {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--signal-bright);
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.hero-eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 5px rgba(255, 106, 166, 0.18);
}
.hero-title {
  font-size: var(--step-4);
  font-weight: 660;
  font-stretch: 118%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  font-size: var(--step-2);
  font-weight: 400;
  font-stretch: 108%;
  line-height: 1.25;
  color: var(--on-ink);
  max-width: 32ch;
}
.hero-body {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--on-ink-muted);
}
.hero-actions { margin-top: clamp(2rem, 4.5vh, 3rem); display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 1.25rem;
  font-size: 0.78rem; color: var(--on-ink-muted); opacity: 0.8;
  text-align: right;
}

/* Hero load sequence (one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-inner > * {
    opacity: 0; transform: translateY(14px);
    animation: hero-in 900ms var(--ease-out) forwards;
  }
  .js .hero-inner > :nth-child(1) { animation-delay: 150ms; }
  .js .hero-inner > :nth-child(2) { animation-delay: 260ms; }
  .js .hero-inner > :nth-child(3) { animation-delay: 520ms; }
  .js .hero-inner > :nth-child(4) { animation-delay: 640ms; }
  .js .hero-inner > :nth-child(5) { animation-delay: 780ms; }
}
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* ---------- 02 Tunaona ---------- */
.tunaona { background: var(--paper); overflow: hidden; }
.tunaona-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
}
.tunaona-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.75rem; }
.status-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--rule); background: #fff;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--contour); }
.product-name {
  font-size: clamp(3.2rem, 2rem + 5vw, 6rem);
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.tunaona .section-title { font-size: var(--step-2); font-stretch: 110%; letter-spacing: -0.012em; line-height: 1.15; max-width: 22ch; }
.tunaona .lede { margin-top: 1.1rem; color: var(--text); }

.capabilities {
  margin-top: 2.25rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--rule);
}
.capabilities li { padding: 1.1rem 1.25rem 1.2rem 0; border-bottom: 1px solid var(--rule); }
.capabilities li:nth-child(odd) { padding-right: 1.5rem; border-right: 1px solid var(--rule); }
.capabilities li:nth-child(even) { padding-left: 1.5rem; }
.capabilities h3 { font-size: var(--step-0); font-weight: 650; line-height: 1.3; }
.capabilities p { margin-top: 0.35rem; font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }

.tunaona-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.attribution { font-size: var(--step--1); font-weight: 600; color: var(--text-muted); }
.footnote { margin-top: 1.5rem; font-size: var(--step--1); color: var(--text-muted); }

/* Device stage */
.device-stage {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center; align-content: center; gap: clamp(0.75rem, 1.6vw, 1.5rem);
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: 28px;
  background-color: var(--paper-deep);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.device-stage::after {
  /* registration marks at corners: a cartographic frame */
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  background:
    linear-gradient(var(--contour), var(--contour)) top left / 14px 1.5px no-repeat,
    linear-gradient(var(--contour), var(--contour)) top left / 1.5px 14px no-repeat,
    linear-gradient(var(--contour), var(--contour)) top right / 14px 1.5px no-repeat,
    linear-gradient(var(--contour), var(--contour)) top right / 1.5px 14px no-repeat,
    linear-gradient(var(--contour), var(--contour)) bottom left / 14px 1.5px no-repeat,
    linear-gradient(var(--contour), var(--contour)) bottom left / 1.5px 14px no-repeat,
    linear-gradient(var(--contour), var(--contour)) bottom right / 14px 1.5px no-repeat,
    linear-gradient(var(--contour), var(--contour)) bottom right / 1.5px 14px no-repeat;
}
.device {
  position: relative;
  aspect-ratio: 720 / 1510; /* matches the Tunaona captures */
  border-radius: clamp(20px, 2.6vw, 34px);
  background: var(--ink);
  padding: clamp(5px, 0.6vw, 8px);
  box-shadow: 0 30px 60px -30px rgba(11, 34, 50, 0.55), 0 0 0 1px rgba(11, 34, 50, 0.9);
}
.device-b { transform: translateY(-6%); z-index: 1; }
.device-a, .device-c { transform: translateY(5%); }
.device-screen {
  height: 100%;
  border-radius: clamp(15px, 2.1vw, 27px);
  overflow: hidden;
  background: #F7F9F8;
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-placeholder {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem;
  padding: 1rem; text-align: center;
  border: 1.5px dashed var(--contour);
  border-radius: inherit;
  background-image:
    radial-gradient(circle at 50% 45%, transparent 0 18%, rgba(94, 138, 142, 0.16) 18.5% 19%, transparent 19.5% 30%, rgba(94, 138, 142, 0.16) 30.5% 31%, transparent 31.5% 44%, rgba(94, 138, 142, 0.16) 44.5% 45%, transparent 45.5%);
}
.screen-slot { white-space: nowrap; font-size: clamp(0.66rem, 0.6rem + 0.3vw, 0.8rem); font-weight: 700; font-stretch: 115%; color: var(--ink); }
.screen-label { font-size: 0.72rem; line-height: 1.35; color: var(--text-muted); max-width: 14ch; }

/* ---------- 03 About ---------- */
.about { background: var(--paper); border-top: 1px solid var(--rule); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.about-head { position: sticky; top: calc(var(--header-h) + 3rem); }
.about-ambition {
  margin-top: 2rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
  font-size: var(--step-1);
  font-stretch: 106%;
  line-height: 1.4;
  max-width: 30ch;
}
.about-body > * + * { margin-top: 1.25rem; }
.about-body p:not(.lede) { max-width: 62ch; color: var(--text-muted); }
.about-body .lede { color: var(--text); font-weight: 500; }

.identity { margin-top: 2.75rem !important; border-top: 1px solid var(--text); }
.identity-row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.identity dt { font-size: var(--step--1); font-weight: 650; color: var(--signal); }
.identity dd { font-size: var(--step-1); font-stretch: 106%; line-height: 1.35; color: var(--ink); }
.identity-row:last-child { border-bottom-color: var(--text); }

/* ---------- 04 Philosophy ---------- */
.philosophy { background: var(--ink); color: var(--on-ink); }
.philosophy-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem 4rem; align-items: end;
}
.philosophy .section-title { font-size: var(--step-4); font-stretch: 118%; letter-spacing: -0.03em; line-height: 0.98; }
.philosophy-intro { color: var(--on-ink-muted); max-width: 40ch; }

.stages {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--on-ink-rule);
}
.stage { padding: 2rem clamp(1.25rem, 2.5vw, 2.5rem) 0 0; }
.stage + .stage { padding-left: clamp(1.25rem, 2.5vw, 2.5rem); border-left: 1px solid var(--on-ink-rule); }
.stage-figure { width: 100%; height: clamp(110px, 10.5vw, 150px); margin-bottom: 1.75rem; overflow: visible; }
.stage-index {
  font-size: var(--step--1); font-weight: 600; color: var(--signal-bright);
  font-variant-numeric: tabular-nums;
}
.stage h3 {
  margin-top: 0.4rem;
  font-size: var(--step-2); font-weight: 640; font-stretch: 116%; letter-spacing: -0.015em;
}
.stage p:last-child { margin-top: 0.6rem; color: var(--on-ink-muted); max-width: 32ch; }

.fig-grid path { stroke: var(--on-ink-rule); stroke-width: 1; fill: none; }
.fig-points circle { fill: var(--on-ink); }
.fig-links path { stroke: var(--signal-bright); stroke-width: 1.4; fill: none; stroke-linejoin: round; opacity: 0.85; }
.fig-contours path { stroke: #7FB0B4; stroke-width: 1.4; fill: none; }
.fig-projection { stroke: var(--signal-bright); stroke-width: 1.4; stroke-dasharray: 4 5; fill: rgba(255, 106, 166, 0.08); }
.fig-vector { stroke: var(--signal-bright); stroke-width: 1.4; fill: none; }
.fig-target { fill: var(--signal-bright); }

/* ---------- 05 Technology ---------- */
.technology { background: var(--paper); }
.technology-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.technology-head .lede { margin-top: 1.75rem; }
.technology-head p:not(.lede) { margin-top: 1rem; color: var(--text-muted); max-width: 40ch; }

.quadrants {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
}
/* Crosshair: the four areas read as one map sheet divided by a graticule */
.quadrant { padding: clamp(1.75rem, 3vw, 2.75rem); }
.quadrant:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
.quadrant:nth-child(-n+2) { padding-top: 0; border-bottom: 1px solid var(--rule); }
.quadrant:first-child { position: relative; }
.quadrant:first-child::after {
  /* registration mark where the graticule lines cross */
  content: ""; position: absolute; right: 0; bottom: 0; width: 13px; height: 13px;
  transform: translate(50%, 50%) translate(0.5px, 0.5px); border-radius: 50%;
  border: 1.5px solid var(--contour); background: var(--paper);
}
.q-glyph { width: 48px; height: 48px; margin-bottom: 1.5rem; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.q-glyph circle { fill: var(--paper); }
.q-glyph .q-signal { fill: var(--signal); stroke: none; }
.quadrant h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 108%; line-height: 1.25; letter-spacing: -0.01em; max-width: 18ch; }
.quadrant p { margin-top: 0.75rem; color: var(--text-muted); max-width: 36ch; }

/* ---------- 06 Approach ---------- */
.approach { background: var(--paper-deep); }
.approach-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem 4rem; align-items: end; }
.approach-head .lede { color: var(--text-muted); }

.route {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}
.route::before {
  /* the route line: dashed survey traverse linking the three stages */
  content: ""; position: absolute; left: 6px; right: 0; top: 7px; height: 0;
  border-top: 1.5px dashed var(--contour);
}
.route-step { position: relative; padding-top: 2.5rem; }
.route-node {
  position: absolute; top: 0; left: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper-deep); border: 2px solid var(--ink);
}
.route-step:last-child .route-node { background: var(--signal); border-color: var(--signal); }
#approach-title span { display: block; }
.route-step h3 { font-size: var(--step-2); font-weight: 640; font-stretch: 116%; letter-spacing: -0.015em; line-height: 1.1; }
.route-step p { margin-top: 1rem; color: var(--text-muted); max-width: 34ch; }

/* ---------- 07 Contact ---------- */
.contact { background: var(--ink); color: var(--on-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact .section-title { font-size: var(--step-4); font-stretch: 118%; letter-spacing: -0.03em; line-height: 0.98; max-width: 12ch; }
.contact-head .lede { margin-top: 1.75rem; color: var(--on-ink-muted); }

.audiences { border-top: 1px solid var(--on-ink-rule); }
.audiences li {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: baseline;
  padding: 1rem 0; border-bottom: 1px solid var(--on-ink-rule);
}
.audiences li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal-bright);
  transform: translateY(-2px);
}
.contact-head .audiences { margin-top: 2.5rem; max-width: 34rem; }

/* Contact form: dark surface, light fields, magenta for errors and focus */
.contact-form { display: grid; gap: 1.25rem; }
.form-intro { color: var(--on-ink-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--on-ink); }
.field .optional { font-weight: 400; color: var(--on-ink-muted); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  padding: 0.8rem 0.95rem;
  font: inherit; font-size: 1rem; line-height: 1.45; color: var(--on-ink);
  background: var(--ink-raised);
  border: 1.5px solid rgba(163, 184, 193, 0.38); border-radius: 10px;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: rgba(163, 184, 193, 0.65); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--signal-bright); outline-offset: 1px; border-color: transparent; border-radius: 10px;
}
.field [aria-invalid="true"] { border-color: var(--signal-bright); }
.field-hint { font-size: var(--step--1); color: var(--on-ink-muted); }
.field-error { font-size: var(--step--1); font-weight: 600; color: var(--signal-bright); }
.field-error:empty { display: none; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.5rem; margin-top: 0.25rem; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-privacy { font-size: var(--step--1); color: var(--on-ink-muted); max-width: 30ch; }
.form-privacy a { color: var(--on-ink); text-underline-offset: 3px; }
.form-status { min-height: 1.5em; font-size: var(--step--1); color: var(--on-ink-muted); }
.form-status.is-error { color: var(--signal-bright); font-weight: 600; }
.form-status.is-info { color: #F2C230; font-weight: 600; }
.form-success {
  padding: 2rem; border-radius: 14px;
  background: var(--ink-raised); border: 1px solid var(--on-ink-rule);
}
.form-success:focus { outline: none; }
.form-success h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--step-2); font-weight: 640; font-stretch: 112%; letter-spacing: -0.01em;
}
.form-success h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal-bright); }
.form-success p { margin-top: 0.75rem; color: var(--on-ink-muted); }
.form-success strong { color: var(--on-ink); font-weight: 600; overflow-wrap: anywhere; }
.form-success .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid var(--on-ink-rule); padding-block: 2.5rem; font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: center; }
.footer-wordmark { color: var(--on-ink); font-weight: 700; font-stretch: 120%; font-size: 1.05rem; }
.footer-line { margin-top: 0.2rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; color: var(--on-ink); }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--on-ink-rule); }

/* ---------- Pre-launch placeholders ----------
   Anything with [data-pending] is visibly flagged on preview builds.
   Remove the attribute once the real value is in place. */
[data-pending] { position: relative; }
[data-pending]::after {
  content: "Pending";
  position: absolute; top: -0.7rem; right: -0.4rem;
  padding: 0.05rem 0.4rem; border-radius: 4px;
  font-size: 0.66rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em;
  background: #F2C230; color: #1a1a1a;
  pointer-events: none;
}
.pending-toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 80;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.1rem; border-radius: 10px;
  background: #F2C230; color: #1a1a1a; font-size: 0.92rem; font-weight: 600;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

/* ---------- Simple content pages (privacy, 404) ---------- */
.page { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: var(--section-y); }
.page .section-title { max-width: 18ch; }
.prose { max-width: 66ch; margin-top: 2rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--step-1); font-weight: 650; font-stretch: 108%; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a { text-decoration-color: var(--signal); text-underline-offset: 3px; }
.draft-banner {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem; border-radius: 8px;
  background: #FFF6D6; border: 1px solid #E8C860; color: #3B3000; font-size: 0.95rem;
}
.not-found { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: var(--on-ink); }
.not-found .section-title { font-size: var(--step-4); }
.not-found p { margin-top: 1.25rem; color: var(--on-ink-muted); max-width: 44ch; }
.not-found .btn { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tunaona-grid { grid-template-columns: 1fr; }
  .device-stage { max-width: 680px; }
  .about-grid, .technology-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .philosophy-head, .approach-head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .capabilities { grid-template-columns: 1fr; }
  .capabilities li, .capabilities li:nth-child(odd), .capabilities li:nth-child(even) { padding: 1rem 0; border-right: 0; }

  .stages { grid-template-columns: 1fr; border-top: 0; }
  .stage, .stage + .stage { padding: 2rem 0; border-left: 0; border-top: 1px solid var(--on-ink-rule); }
  .stage-figure { max-width: 320px; }

  .quadrants { grid-template-columns: 1fr; }
  .quadrant:first-child::after { display: none; }
  .quadrant, .quadrant:nth-child(odd), .quadrant:nth-child(-n+2) { padding: 2rem 0; border: 0; border-top: 1px solid var(--rule); }

  .route { grid-template-columns: 1fr; gap: 2.5rem; }
  .route::before { left: 7px; right: auto; top: 8px; bottom: 0; height: auto; border-top: 0; border-left: 1.5px dashed var(--contour); }
  .route-step { padding-top: 0; padding-left: 2.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-caption { text-align: left; }
  .identity-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
@media (max-width: 520px) {
  .device-stage { gap: 0.5rem; padding: 1.75rem 0.85rem; border-radius: 20px; }
  .screen-label { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .hero-terrain, .nav-toggle, .pending-toast { display: none !important; }
  .hero, .philosophy, .contact, .site-footer { background: #fff; color: #000; }
}
.not-found .kicker { color: var(--signal-bright); }
