
/* Layout: a pool seen from above. Hero = the projected floor; sections read like the pool wall, with depth markers as the spec device. Dark-first: deep water. */
:root {
  --bg: #050f22;
  --bg-2: #0a1a35;
  --line: #1b3256;
  --fg: #eaf0fb;
  --muted: #9daed0;
  --lumen: #2cc5ea;
  --lumen-ink: #5fd6f2;
  --on-lumen: #03121f;
  --cyan: #ff86bd;
  --todo-bg: #3a2f10;
  --todo-fg: #f7d98a;
  --f-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f7fd; --bg-2: #e7eef9; --line: #c5d3ea; --fg: #0a1a33; --muted: #4c5d7b;
    --lumen: #005ae3; --lumen-ink: #0052cc; --on-lumen: #ffffff; --cyan: #b81d6c;
    --todo-bg: #fbedc4; --todo-fg: #6b4800; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f7fd; --bg-2: #e7eef9; --line: #c5d3ea; --fg: #0a1a33; --muted: #4c5d7b;
  --lumen: #005ae3; --lumen-ink: #0052cc; --on-lumen: #ffffff; --cyan: #b81d6c;
  --todo-bg: #fbedc4; --todo-fg: #6b4800; color-scheme: light;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lumen); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.6rem; font-weight: 600; text-transform: uppercase; }
p { margin: 0; max-width: 62ch; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.todo { background: var(--todo-bg); color: var(--todo-fg); font-family: var(--f-mono); font-size: .75rem; padding: .1em .45em; border-radius: 3px; white-space: nowrap; }

.mock-banner { background: var(--todo-bg); color: var(--todo-fg); font-size: .9rem; }
.mock-banner .wrap { padding-block: .55rem; }

header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { height: 2.1rem; width: auto; max-width: 100%; }
.logo-c { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .logo-c { display: block; } :root:not([data-theme="dark"]) .logo-w { display: none; } }
:root[data-theme="light"] .logo-c { display: block; } :root[data-theme="light"] .logo-w { display: none; }
.foot-logo img { height: 3.4rem; width: auto; max-width: 100%; }
nav.main { display: flex; gap: 1.25rem; margin-left: auto; flex-wrap: wrap; font-size: .95rem; }
nav.main a { text-decoration: none; color: var(--muted); }
nav.main a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; padding: .75rem 1.2rem; border-radius: 4px; border: 2px solid transparent; cursor: pointer; font-family: var(--f-body); font-size: 1rem; }
.btn-primary { background: var(--lumen); color: var(--on-lumen); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }

/* Hero: the projected floor */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 38%, color-mix(in srgb, var(--bg) 20%, transparent) 75%, transparent 100%); }
@media (max-width: 760px) { .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), var(--bg) 85%); } }
.hero .wrap { z-index: 1; }
.market img { width: calc(100% + 3.2rem); max-width: none; margin: -1.6rem -1.6rem .2rem; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }
.shots figure { margin: 0; display: grid; gap: .4rem; min-width: 0; }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.shots figcaption { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.unit-video { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #000; border: 1px solid var(--line); }
.ref img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hero .wrap { position: relative; display: grid; gap: 1.5rem; padding-block: clamp(4rem, 10vw, 7.5rem); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); text-transform: uppercase; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--lumen-ink); }
.hero p.lede { font-size: 1.2rem; color: var(--fg); max-width: 52ch; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .credit { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

.proof { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.proof .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; padding-block: 1.6rem; }
.proof div { display: grid; gap: .2rem; min-width: 0; }
.proof b { font-family: var(--f-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.proof small { color: var(--muted); font-size: .9rem; }

section.block { padding-block: clamp(3.5rem, 8vw, 6rem); border-bottom: 1px solid var(--line); }
section.block > .wrap { display: grid; gap: 2.5rem; }
.head { display: grid; gap: .9rem; }
.head p { color: var(--muted); }

.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.market { background: var(--bg); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; min-width: 0; }
.market .tag { font-family: var(--f-mono); font-size: .75rem; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.market ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .3rem; font-size: .95rem; }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; }
.mode { border-top: 3px solid var(--cyan); padding-top: .8rem; display: grid; gap: .35rem; min-width: 0; }
.mode img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin-bottom: .4rem; }
.mode h3 { font-size: 1.35rem; }
.partners { display: grid; gap: 1rem; }
.partners ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: .75rem; }
.partners li { background: #fff; border-radius: 4px; height: 5.5rem; display: grid; place-items: center; padding: .8rem 1rem; }
.partners img { max-width: 100%; max-height: 3.9rem; width: auto; height: auto; object-fit: contain; }
.mode p { font-size: .93rem; color: var(--muted); }

/* Technology: pool wall with depth markers */
.tech { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
@media (max-width: 760px) { .tech { grid-template-columns: 1fr; } }
.wall { position: relative; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--line) 60%, transparent) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--line) 60%, transparent) 23px 24px); aspect-ratio: 4 / 5; max-width: 100%; }
.wall .water { position: absolute; left: 0; right: 0; top: 12%; bottom: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--cyan) 8%, transparent)); border-top: 2px solid var(--cyan); }
.wall .band { position: absolute; left: 0; right: 0; top: 30%; bottom: 0; border-top: 2px dashed var(--lumen-ink); border-bottom: 2px dashed var(--lumen-ink); background: color-mix(in srgb, var(--lumen) 12%, transparent); }
.wall .mark { position: absolute; left: .7rem; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1; transform: translateY(-50%); background: var(--bg); padding: .1rem .35rem; }
.wall .mark small { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--muted); display: block; }
.wall .unit { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: .75rem; text-align: right; color: var(--fg); background: var(--bg); padding: .3rem .5rem; max-width: 55%; }
.setup { margin: 2.5rem 0 0; }
.setup img { width: 100%; max-height: 520px; object-fit: cover; display: block; border: 1px solid var(--line); }
.setup figcaption { margin-top: .8rem; color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; font-size: .97rem; }
.specs th, .specs td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 1rem; }
.specs td { font-family: var(--f-mono); font-size: .9rem; font-variant-numeric: tabular-nums; }
.tech .cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.patent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 640px) { .patent { grid-template-columns: 1fr; } }
.patent .no { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: .95; color: var(--lumen-ink); }
.patent .no small { display: block; font-family: var(--f-mono); font-size: .8rem; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.patent ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.patent li { font-family: var(--f-mono); font-size: .8rem; border: 1px solid var(--line); padding: .25rem .6rem; border-radius: 3px; }

.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.ref { border: 1px solid var(--line); display: grid; min-width: 0; }
.ref .ph { aspect-ratio: 16 / 10; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); font-family: var(--f-mono); font-size: .8rem; text-align: center; padding: 1rem; }
.ref .body { padding: 1.1rem; display: grid; gap: .35rem; }
.ref .body small { color: var(--muted); }
.news { display: grid; gap: 0; border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news a:hover b { text-decoration: underline; }
.news time { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem 1.2rem; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-family: var(--f-mono); font-size: .92rem; overflow-wrap: anywhere; }
form { display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: .7rem .8rem; width: 100%; }
textarea { min-height: 7rem; resize: vertical; }
.form-note { font-size: .9rem; color: var(--cyan); min-height: 1.4em; }

footer { padding-block: 2.5rem; color: var(--muted); font-size: .88rem; }
footer .wrap { display: grid; gap: .6rem; }
.social { display: flex; gap: .5rem; align-items: center; }
.social a { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.social a:hover { color: var(--fg); border-color: var(--fg); }
.social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- multi-page additions ---- */
/* never break the brand name at its hyphen */
.nw { white-space: nowrap; }
/* brand: logo gradient used sparingly, logo more present */
:root { --brand-grad: linear-gradient(90deg, #005ae3 0%, #09c2e4 35%, #a25de1 70%, #fb4d96 100%); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand-grad); }
.logo img { height: 2.6rem; }
.hero-logo { height: clamp(3.6rem, 9vw, 6rem); width: auto; max-width: 100%; }
.cta-band { position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad); }
.cta-band .cta-logo { height: 3.2rem; width: auto; }
.split .unit-video { aspect-ratio: 1; object-fit: contain; }
/* home: let the film show through behind the text */
.hero-yt::after { background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 82%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, color-mix(in srgb, var(--bg) 10%, transparent) 70%, transparent 100%); }
@media (max-width: 760px) { .hero-yt::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 30%, transparent), color-mix(in srgb, var(--bg) 75%, transparent) 85%); } }
.hero-yt h1, .hero-yt .lede, .hero-yt .eyebrow { text-shadow: 0 2px 18px color-mix(in srgb, var(--bg) 70%, transparent); }
nav.main a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--lumen); text-underline-offset: .45em; text-decoration-thickness: 2px; }
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 45%, color-mix(in srgb, var(--bg) 15%, transparent) 100%); }
@media (max-width: 760px) { .page-hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 50%, transparent), var(--bg) 90%); } }
.page-hero .wrap { position: relative; z-index: 1; display: grid; gap: 1.1rem; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; max-width: 14ch; }
.page-hero h1 em { font-style: normal; color: var(--lumen-ink); }
.page-hero p { font-size: 1.15rem; max-width: 52ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.split img, .split video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); }
.split .txt { display: grid; gap: .9rem; align-content: center; }
.split .txt ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .35rem; }
.split .tagline { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--lumen-ink); text-transform: uppercase; }
.stack { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.benefit { border-left: 3px solid var(--lumen); padding-left: 1rem; display: grid; gap: .5rem; align-content: start; }
.benefit p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: .4rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li::before { content: "0" counter(s); font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cyan); }
.steps p { color: var(--muted); }
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.teaser { display: grid; gap: .6rem; text-decoration: none; min-width: 0; }
.teaser img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--line); transition: transform .3s; }
.teaser:hover img { transform: scale(1.02); }
.teaser .tag { font-family: var(--f-mono); font-size: .75rem; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; }
.teaser h3 { font-size: 1.4rem; }
.teaser p { color: var(--muted); font-size: .95rem; }
.more { font-weight: 700; color: var(--lumen-ink); text-decoration: none; }
.more:hover { text-decoration: underline; }
.cta-band { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.yt { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; overflow: hidden; }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.yt button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.yt button::before { content: '▶'; position: relative; z-index: 1; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--lumen); color: var(--on-lumen); font-size: 1.1rem; padding-left: .2rem; box-sizing: border-box; }
.yt button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; font-weight: 700; line-height: 1.3; }
.yt button:focus-visible::before { outline: 3px solid #fff; outline-offset: 3px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.legal { display: grid; gap: 2rem; max-width: 48rem; }
.legal section { display: grid; gap: .6rem; }
.legal h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.legal dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.2rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.legal .todo, .contact .todo { white-space: normal; }
.legal p { color: var(--muted); }
/* Home hero: the PO-1.2 YouTube film from the current site, full-bleed behind the title */
.hero-yt { min-height: min(88vh, 52rem); display: grid; align-items: center; background: #000; }
.hero-yt .yt-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .8s; }
.hero-yt .yt-bg.playing { opacity: 1; }
.hero-yt .wrap { width: 100%; }
.hero-yt .vid-toggle { display: none; }
.hero-yt.has-film .vid-toggle { display: block; }
.hero-yt .yt-bg iframe { position: absolute; top: 50%; left: 50%; width: max(100%, calc(100vh * 16 / 9 * 1.0)); height: max(100%, calc(100vw * 9 / 16)); min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; }
.hero-yt::after { z-index: 0; }
.hero-yt .wrap { z-index: 1; }
.vid-toggle { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 1rem; z-index: 2; font: 600 .8rem var(--f-mono); color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .4rem .8rem; cursor: pointer; }
.vid-toggle:hover { background: rgba(0,0,0,.65); }
footer .cols { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer a { color: var(--fg); }

/* ---- language switch ---- */
.lang { display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 999px; font: 600 .8rem var(--f-mono); letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--fg); border-color: var(--fg); }
