/* bearingmarine.app. Colours come from the app icon: sea gradient, aqua bearing arc, pink course leg, foam north arrow.
   Fonts are self-hosted (SIL Open Font License, see fonts/LICENSE.txt) so the site loads nothing from anyone else. */

@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --sea-950: #01141a;
  --sea-900: #021e26;
  --sea-800: #06323c;
  --sea-700: #0b4954;
  --aqua: #2be0c8;
  --aqua-ink: #087065;      /* aqua dark enough for text on light grounds (AA) */
  --leg: #ff6fb5;           /* the course leg */
  --leg-ink: #c2307a;
  --foam: #e9f3f7;
  --paper: #f5f9fa;
  --water: #dcedf2;          /* chart shallow-water tint */
  --ink: #0b2730;
  --ink-soft: #3d5a63;
  --line: #c9dde3;

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 18px;
}

/* Night colours: the page dims the way the app does at the helm after dark. */
:root[data-light="night"] {
  --sea-950: #070202;
  --sea-900: #0c0303;
  --sea-800: #160606;
  --sea-700: #240909;
  --aqua: #d9584d;
  --aqua-ink: #e0675c;
  --leg: #a8324a;
  --leg-ink: #d0566c;
  --foam: #d9a39b;
  --paper: #0f0505;
  --water: #1a0808;
  --ink: #d9a39b;
  --ink-soft: #a0706a;
  --line: #3a1512;
}
:root[data-light="night"] img { filter: brightness(.55) sepia(.6) hue-rotate(-30deg) saturate(1.4); }
:root[data-light="night"] img.keep { filter: brightness(.8); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--body); transition: background .4s, color .4s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -0.025em; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.6vw, 112px); }
h2 { font-size: clamp(36px, 5.4vw, 76px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 750; font-variation-settings: "wdth" 104; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--fg-soft); max-width: 36em; }
.stage {
  font: 700 13px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .12em; text-transform: uppercase;
  color: var(--leg-ink); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.stage::before { /* waypoint ring, from the icon */
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid currentColor; box-sizing: border-box;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--sea-900) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: var(--foam); border-bottom: 1px solid color-mix(in oklab, var(--foam) 10%, transparent);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); font-variation-settings: "wdth" 108; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; opacity: .82; }
.nav a:hover { opacity: 1; }
.night-toggle {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body);
  color: var(--foam); background: transparent; border: 1px solid color-mix(in oklab, var(--foam) 28%, transparent);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
}
.night-toggle svg { width: 15px; height: 15px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 600 14px/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--foam) 28%, transparent); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: grid; }
.menu-panel { display: none; position: absolute; right: 0; top: 48px; min-width: 200px; padding: 8px; border-radius: 16px; background: var(--sea-900); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); border: 1px solid color-mix(in oklab, var(--foam) 12%, transparent); }
.menu-panel a { text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.menu-panel a:hover { background: color-mix(in oklab, var(--foam) 8%, transparent); }
@media (max-width: 820px) { .site-head .wrap { gap: 8px; } .brand { white-space: nowrap; font-size: 17px; } .nav { display: none; } .menu { display: block; margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 16px/1 var(--body); padding: 16px 22px; border-radius: 14px;
}
.btn-primary { background: var(--aqua); color: var(--sea-950); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--foam); border: 1px solid color-mix(in oklab, var(--foam) 30%, transparent); }
.soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 14px; font: 600 16px/1.2 var(--body); background: color-mix(in oklab, var(--foam) 10%, transparent); border: 1px solid color-mix(in oklab, var(--foam) 22%, transparent); color: var(--foam); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--foam);
  background:
    radial-gradient(70% 60% at 72% 30%, color-mix(in oklab, var(--aqua) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--sea-700), var(--sea-900) 70%);
  padding: clamp(64px, 10vw, 140px) 0 clamp(64px, 8vw, 120px); min-height: min(92vh, 980px); display: flex; align-items: center;
}
.hero > .wrap { width: 100%; }
/* graticule: the lat/long grid of a chart, not depth contours */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(color-mix(in oklab, var(--foam) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--foam) 7%, transparent) 1px, transparent 1px);
  background-size: 120px 120px; background-position: -1px -1px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero .eyebrow { font: 700 14px/1.3 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 26px; display: block; }
.hero h1 { color: #fff; }
.hero h1 .leg { color: var(--leg); }
.hero .lede { color: color-mix(in oklab, var(--foam) 82%, transparent); margin: 26px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 15px; color: color-mix(in oklab, var(--foam) 78%, transparent); }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }

.devices { position: relative; min-height: 520px; }
.ipad {
  position: absolute; right: -16%; top: 10px; width: 118%;
  border-radius: 26px; padding: 12px; background: #0d1416;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.ipad img { border-radius: 15px; }
.iphone {
  position: absolute; left: -4%; bottom: -60px; width: 34%;
  border-radius: 40px; padding: 9px; background: #0d1416;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.iphone img { border-radius: 32px; }
.hero-foot { height: 120px; }

/* chart neatline: alternating lat/long scale ticks along a section edge */
.neatline {
  height: 10px; position: relative; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--sea-950) 0 48px, var(--foam) 48px 96px);
  border-top: 1px solid var(--sea-950); border-bottom: 1px solid var(--sea-950);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .devices { min-height: 0; aspect-ratio: 4 / 3.3; margin-top: 24px; }
  .ipad { right: -18%; width: 108%; }
  .iphone { left: 0; bottom: -30px; width: 36%; }
  .hero-foot { height: 70px; }
}

/* ---------- the passage: one pink course line through every section ---------- */
.passage { position: relative; }
.passage::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - var(--max) / 2 + var(--gutter) - 34px);
  width: 4px; border-radius: 2px; background: var(--leg); opacity: .9; z-index: 3; pointer-events: none;
}
/* Waypoints fill in as you pass them, like a route's passed legs. An extra: without support they stay as rings. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .wp::before { animation: passed linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
  }
}
@keyframes passed { from { background: var(--bg); } to { background: var(--leg); } }
@media (max-width: 1290px) { .passage::before { left: 10px; width: 3px; } }
@media (max-width: 640px) { .passage::before { left: 7px; width: 2px; } }

section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.wp { position: relative; }
.wp::before { /* waypoint ring on the course line */
  content: ""; position: absolute; left: -44px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 5px solid var(--leg); box-sizing: border-box; z-index: 4;
}
@media (max-width: 1290px) { .wp::before { left: calc(-1 * var(--gutter) + 2px); width: 20px; height: 20px; border-width: 4px; } }
@media (max-width: 640px) { .wp::before { left: -15px; width: 14px; height: 14px; border-width: 3px; } }

/* ---------- origin (the log) ---------- */
.origin .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.log {
  border-left: 3px solid var(--line); padding: 4px 0 4px 26px; font-size: 18px;
}
.log .entry { font: 600 14px/1.4 var(--body); color: var(--fg-soft); letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.log p { margin-bottom: 1.3em; }
.tk { background: color-mix(in oklab, var(--leg) 22%, transparent); border-radius: 4px; padding: 0 4px; }
@media (max-width: 900px) { .origin .wrap { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features-intro { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(72px, 8vw, 104px); }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-media { order: -1; }
.feature p { color: var(--fg-soft); font-size: 18px; max-width: 30em; }
.feature h3 { margin-bottom: 18px; }
.feature-media { position: relative; }
.shot-tablet { border-radius: 20px; padding: 9px; background: #0d1416; box-shadow: 0 40px 80px -36px rgba(2,30,38,.55); }
.shot-tablet img { border-radius: 12px; }
.shot-phones { display: flex; gap: 18px; justify-content: center; }
.shot-phone { width: min(46%, 270px); border-radius: 36px; padding: 8px; background: #0d1416; box-shadow: 0 40px 80px -36px rgba(2,30,38,.6); }
.shot-phone img { border-radius: 29px; }
.shot-phone.lift { transform: translateY(-36px); }
/* the bearing arc from the icon, framing a screenshot */
.arc { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; border: 10px solid var(--aqua); border-color: var(--aqua) transparent transparent transparent; transform: rotate(-38deg); top: -12%; left: -10%; z-index: -1; opacity: .9; }
.sources { background: var(--sea-900); border-radius: 24px; padding: 14px; box-shadow: 0 40px 80px -36px rgba(2,30,38,.55); position: relative; }
.sources::before { content: ""; position: absolute; left: 33px; top: 40px; bottom: 40px; width: 2px; background: color-mix(in oklab, var(--aqua) 40%, transparent); }
.src { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 18px 16px 50px; color: var(--foam); border-radius: 14px; }
.src + .src { margin-top: 4px; }
.src:nth-child(odd) { background: color-mix(in oklab, var(--foam) 5%, transparent); }
.src::before { content: ""; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--sea-900); border: 3px solid var(--aqua); box-sizing: border-box; }
.src b { font: 650 17px/1.25 var(--display); }
.src span { grid-column: 1; font-size: 14px; color: color-mix(in oklab, var(--foam) 60%, transparent); }
.src i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 600 13px/1.2 var(--body); font-style: normal; color: color-mix(in oklab, var(--foam) 70%, transparent); text-align: right; }
.src i.ok { color: var(--aqua); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.specs li { font: 600 13px/1 var(--body); padding: 9px 12px; border-radius: 999px; background: var(--water); color: var(--ink); }
:root[data-light="night"] .specs li { color: var(--ink); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
}

/* ---------- OpenCPN ---------- */
.opencpn { background: var(--water); }
.opencpn-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: 56px; }
.opencpn-head p { color: var(--fg-soft); font-size: 18px; }
.interop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg); border-radius: var(--radius); padding: 28px 26px 24px;
  border: 1px solid var(--line);
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--fg-soft); font-size: 16px; margin: 0; }
.card .fmt { font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 14px; display: block; }
.fine { font-size: 14px; color: var(--fg-soft); margin-top: 28px; max-width: 46em; }
@media (max-width: 900px) { .opencpn-head { grid-template-columns: 1fr; } .interop { grid-template-columns: 1fr; } }

/* ---------- night band ---------- */
.nightband { background: var(--sea-900); color: var(--foam); overflow: hidden; }
.nightband .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.nightband p { color: color-mix(in oklab, var(--foam) 75%, transparent); font-size: 18px; }
.nightband .stage { color: var(--leg); }
.looks { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.looks span { padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--foam) 22%, transparent); font-size: 15px; }
.looks b { display: block; font-family: var(--display); font-size: 17px; }
@media (max-width: 900px) { .nightband .wrap { grid-template-columns: 1fr; } }

/* ---------- privacy band ---------- */
.privacy-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.wire { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.wire li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.wire li span:last-child { color: var(--fg-soft); text-align: right; }
.wire li.none span:last-child { color: var(--aqua-ink); font-weight: 600; }
@media (max-width: 900px) { .privacy-band .wrap { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font: 650 19px/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--leg-ink); border-bottom: 2.5px solid var(--leg-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq details p { color: var(--fg-soft); padding-right: 40px; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; } }

/* ---------- closing + footer ---------- */
.closing { background: linear-gradient(180deg, var(--sea-800), var(--sea-950)); color: var(--foam); text-align: center; }
.closing h2 { color: #fff; max-width: 14em; margin: 0 auto 22px; }
.closing p { color: color-mix(in oklab, var(--foam) 75%, transparent); max-width: 34em; margin: 0 auto 34px; font-size: 18px; }
.closing .cta-row { justify-content: center; }
.site-foot { background: var(--sea-950); color: color-mix(in oklab, var(--foam) 70%, transparent); font-size: 14px; padding: 48px 0 56px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot a { text-decoration: none; display: block; padding: 4px 0; }
.site-foot a:hover { color: var(--foam); }
.site-foot .brand { color: var(--foam); margin-bottom: 14px; }
.site-foot .legal { border-top: 1px solid color-mix(in oklab, var(--foam) 12%, transparent); margin-top: 36px; padding-top: 22px; font-size: 13px; line-height: 1.55; }
@media (max-width: 700px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- sub-pages (privacy, support) ---------- */
.page-head { background: linear-gradient(180deg, var(--sea-700), var(--sea-900)); color: var(--foam); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); color: #fff; margin-bottom: 18px; }
.page-head .lede { color: color-mix(in oklab, var(--foam) 80%, transparent); }
.crumbs { font-size: 14px; margin-bottom: 18px; color: var(--aqua); }
.crumbs a { text-decoration: none; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 80px); padding: clamp(48px, 7vw, 88px) 0; }
.doc nav { position: sticky; top: 92px; align-self: start; font-size: 15px; }
.doc nav a { display: block; text-decoration: none; padding: 6px 0; color: var(--fg-soft); }
.doc nav a:hover { color: var(--fg); }
.doc article { max-width: 44em; }
.doc article h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 16px; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { color: var(--fg-soft); }
.doc article strong { color: var(--fg); }
.summary-box { background: var(--water); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 48px; }
.summary-box p:last-child { margin: 0; }
.summary-box h2 { font-size: 22px !important; margin: 0 0 10px !important; }
table.hosts { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
table.hosts th, table.hosts td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.hosts th { font: 600 13px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-soft); }
table.hosts td:first-child { color: var(--fg); font-weight: 600; }
.updated { font-size: 14px; color: var(--fg-soft); }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; padding-top: 28px; }
  .doc nav { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; columns: 2; }
}
@media (max-width: 640px) {
  table.hosts thead { display: none; }
  table.hosts, table.hosts tbody, table.hosts tr, table.hosts td { display: block; width: 100%; }
  table.hosts tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.hosts td { border: 0; padding: 2px 0; }
  table.hosts td::before { content: attr(data-label); display: block; font: 600 12px/1.4 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-soft); }
  table.hosts td:first-child::before { content: none; }
}

/* ================= sections ================= */
.hero .lede { max-width: 30em; }
.hero h1 { font-size: clamp(40px, 5vw, 80px); max-width: 15ch; }

/* Under the hood: a workshop-manual drawing of the boat's data */
.hood { background: var(--sea-900); color: var(--foam); overflow: hidden; }
.hood::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(color-mix(in oklab, var(--foam) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--foam) 6%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; }
.hood .wrap { position: relative; }
.hood h2 { color: #fff; }
.hood .lede { color: color-mix(in oklab, var(--foam) 78%, transparent); margin-top: 20px; }
.hood .stage { color: var(--leg); }
.schematic { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: 1fr 240px; gap: 32px; align-items: end; }
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic .water path { stroke: color-mix(in oklab, var(--aqua) 30%, transparent); stroke-width: 1.5; stroke-dasharray: 2 8; fill: none; }
.schematic .boat path { fill: none; stroke: color-mix(in oklab, var(--foam) 70%, transparent); stroke-width: 2; stroke-linejoin: round; }
.schematic .boat .rig { stroke-width: 1; stroke: color-mix(in oklab, var(--foam) 35%, transparent); }
.schematic .boat .rail { stroke-width: 1.5; }
.schematic .wire path { fill: none; stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; }
.schematic .air path { fill: none; stroke: var(--aqua); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .85; }
.schematic .part > * { fill: var(--sea-800); stroke: var(--foam); stroke-width: 2; }
.schematic .part .screen { fill: var(--sea-700); stroke: var(--aqua); }
.schematic .callout line { stroke: var(--leg); stroke-width: 1.5; }
.schematic .callout circle { fill: var(--sea-900); stroke: var(--leg); stroke-width: 2; }
.schematic .callout text { fill: var(--foam); font: 700 13px var(--display); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .schematic .wire path { stroke-dasharray: 10 8; animation: flow 1.6s linear infinite; }
  .schematic .air path { animation: flow 2.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -36; } }
.schematic figcaption { font-size: 14px; color: color-mix(in oklab, var(--foam) 75%, transparent); }
.schematic .fig { font: 700 12px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .14em; text-transform: uppercase; color: var(--leg); display: block; margin-bottom: 12px; }
.schematic ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.schematic li::marker { color: var(--leg); font-weight: 700; }
@media (max-width: 900px) { .schematic { grid-template-columns: 1fr; } .schematic ol { grid-template-columns: 1fr 1fr; gap: 6px 20px; } }

.raw { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(64px, 9vw, 112px); }
.raw h3 { color: #fff; font-size: clamp(26px, 3vw, 40px); margin-bottom: 16px; }
.raw p { color: color-mix(in oklab, var(--foam) 75%, transparent); font-size: 18px; }
.hood .specs li { background: color-mix(in oklab, var(--foam) 9%, transparent); color: var(--foam); }
.nmea { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid color-mix(in oklab, var(--foam) 14%, transparent); background: var(--sea-950); }
.nmea pre { margin: 0; padding: 18px 20px; min-height: 210px; font: 12.5px/1.6 var(--mono); color: color-mix(in oklab, var(--aqua) 80%, var(--foam)); white-space: pre; overflow: hidden; mask-image: linear-gradient(180deg, transparent, #000 35%); }
.decoded { margin: 0; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; border-top: 1px solid color-mix(in oklab, var(--foam) 14%, transparent); }
.decoded > div { padding: 16px 18px; border-left: 1px solid color-mix(in oklab, var(--foam) 10%, transparent); }
.decoded > div:first-child { border-left: 0; }
.decoded dt { font: 700 11px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in oklab, var(--foam) 60%, transparent); }
.decoded dd { margin: 8px 0 6px; font: 700 20px/1.1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.decoded small { font-size: 12px; color: var(--aqua); }
@media (max-width: 900px) { .raw { grid-template-columns: 1fr; } .decoded { grid-template-columns: 1fr 1fr; } .decoded > div:nth-child(3) { border-left: 0; } .decoded > div:nth-child(n+3) { border-top: 1px solid color-mix(in oklab, var(--foam) 10%, transparent); } }

/* Origin, sparser */
.origin .log { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.5; border-left-color: var(--leg); }

/* Dock to anchorage: four legs in a row */
.does .wp { margin-bottom: clamp(36px, 5vw, 56px); }
.cards-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards-scroll::-webkit-scrollbar { display: none; }
.cards { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 8px; display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 18px; }
.leg-card { scroll-snap-align: start; }
.leg-shot { height: 360px; border-radius: 22px; background: var(--water); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; margin-bottom: 20px; }
.leg-shot.phone img { width: 62%; border-radius: 26px 26px 0 0; border: 7px solid #0d1416; border-bottom: 0; transform: translateY(18%); }
.leg-shot.tablet { align-items: center; justify-content: flex-start; }
.leg-shot.tablet img { height: 78%; width: auto; max-width: none; border-radius: 14px; border: 7px solid #0d1416; margin-left: 22px; }
.leg-card .stage { margin-bottom: 10px; }
.leg-card h3 { font-size: 22px; max-width: 14em; }
.also { margin-top: 36px; color: var(--fg-soft); max-width: 46em; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(4, 78vw); } }
@media (min-width: 1001px) and (max-width: 1200px) { .leg-shot { height: 300px; } }

/* OpenCPN, sparser */
.opencpn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.opencpn .lede { color: var(--fg); }
@media (max-width: 900px) { .opencpn-grid { grid-template-columns: 1fr; } }
.privacy-band .lede a { color: var(--leg-ink); }


.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--aqua); color: var(--sea-950); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--leg); }

/* ---------- blueprint colours, shared by the hood and the puck ---------- */
:root { --bp-bg: var(--sea-900); --bp-line: color-mix(in oklab, var(--foam) 82%, var(--aqua)); }

/* ---------- home: build your own puck ---------- */
.puck-band { background: var(--sea-800); color: var(--foam); overflow: hidden; }
.puck-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(color-mix(in oklab, var(--foam) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklab, var(--foam) 5%, transparent) 1px, transparent 1px);
  background-size: 24px 24px; }
.puck-band { --bp-bg: var(--sea-800); }
.puck-band .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.puck-band h2 { color: #fff; }
.puck-band .stage { color: var(--leg); }
.puck-band .lede { color: color-mix(in oklab, var(--foam) 80%, transparent); margin-top: 22px; }
.puck-band .specs li { background: color-mix(in oklab, var(--foam) 9%, transparent); color: var(--foam); }
.puck-band .cta-row { margin-top: 30px; }
.puck-band figure { margin: 0; }
@media (max-width: 900px) { .puck-band .wrap { grid-template-columns: 1fr; } .puck-band figure { max-width: 520px; } }

/* ---------- the puck page ---------- */
.puck-hero { background: linear-gradient(180deg, var(--sea-700), var(--sea-900)); color: var(--foam); padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; --bp-bg: var(--sea-900); }
.puck-hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.puck-hero h1 { font-size: clamp(40px, 5.4vw, 76px); color: #fff; margin-bottom: 22px; }
.puck-hero .lede { color: color-mix(in oklab, var(--foam) 82%, transparent); }
.puck-hero .crumbs { margin-bottom: 22px; }
.puck-hero .specs li { background: color-mix(in oklab, var(--foam) 10%, transparent); color: var(--foam); }
.puck-hero figure { margin: 0; }
.puck-hero figcaption { font-size: 14px; color: color-mix(in oklab, var(--foam) 72%, transparent); margin-top: 8px; }
.puck-hero figcaption ol { margin: 8px 0 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.puck-hero figcaption li::marker { color: var(--leg); font-weight: 700; }
.puck-hero .fig { font: 700 12px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .14em; text-transform: uppercase; color: var(--leg); }
@media (max-width: 900px) { .puck-hero .wrap { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 48px; }
.facts div { background: var(--bg); padding: 18px 18px 16px; }
.facts dt { font: 700 11px/1 var(--display); font-variation-settings: "wdth" 80; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.facts dd { margin: 8px 0 0; font: 700 19px/1.2 var(--display); color: var(--fg); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
table.parts { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 24px; }
table.parts th, table.parts td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.parts th { font: 600 13px/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-soft); }
table.parts td:first-child { font: 700 14px var(--display); color: var(--leg-ink); width: 2.5em; }
table.parts td:nth-child(2) { color: var(--fg); font-weight: 600; }
.doc article pre, .doc article code { font-family: var(--mono); font-size: 14px; }
.doc article pre { background: var(--sea-950); color: color-mix(in oklab, var(--aqua) 70%, var(--foam)); padding: 18px 20px; border-radius: 14px; overflow-x: auto; line-height: 1.55; }
.doc article :not(pre) > code { background: var(--water); color: var(--fg); padding: 1px 6px; border-radius: 6px; }
.doc article ol.steps { padding-left: 1.3em; }
.doc article ol.steps li { margin-bottom: .7em; }
.note { border-left: 3px solid var(--leg); padding: 4px 0 4px 18px; margin: 24px 0; }
.note p:last-child { margin: 0; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--sea-700), var(--sea-900)); color: var(--foam); }
.lost h1 { color: #fff; font-size: clamp(44px, 7vw, 96px); margin-bottom: 18px; }
.lost p { color: color-mix(in oklab, var(--foam) 78%, transparent); font-size: 19px; margin-bottom: 30px; }
.lost .cta-row { justify-content: center; }

/* ---------- Fig. 2: the puck, exploded ---------- */
.puck-figure { display: block; width: 100%; height: auto; overflow: visible; }
.puck-figure * { vector-effect: non-scaling-stroke; }
.puck-figure .pk-solid, .puck-figure .pk-pcb, .puck-figure .pk-chip, .puck-figure .pk-metal, .puck-figure .pk-glass, .puck-figure .pk-floor, .puck-figure .pk-inner, .puck-figure path.pk-top { stroke: var(--bp-line); stroke-width: 1.3; stroke-linejoin: round; }
.puck-figure .pk-solid.pk-top, .puck-figure path.pk-top { fill: color-mix(in oklab, var(--bp-line) 14%, var(--bp-bg)); }
.puck-figure .pk-solid.pk-side { fill: color-mix(in oklab, var(--bp-line) 8%, var(--bp-bg)); }
.puck-figure .pk-solid.pk-front { fill: color-mix(in oklab, var(--bp-line) 4%, var(--bp-bg)); }
.puck-figure .pk-floor { fill: color-mix(in oklab, var(--bp-line) 3%, var(--bp-bg)); stroke-opacity: .5; }
.puck-figure .pk-inner { fill: color-mix(in oklab, var(--bp-line) 6%, var(--bp-bg)); stroke-opacity: .6; }
.puck-figure .pk-inner-b { fill: color-mix(in oklab, var(--bp-line) 10%, var(--bp-bg)); }
.puck-figure .pk-cell.pk-top { fill: color-mix(in oklab, var(--bp-line) 22%, var(--bp-bg)); stroke: var(--bp-line); stroke-width: 1.3; }
.puck-figure .pk-pcb { fill: color-mix(in oklab, var(--aqua) 22%, var(--bp-bg)); }
.puck-figure .pk-pcb.pk-top { fill: color-mix(in oklab, var(--aqua) 34%, var(--bp-bg)); }
.puck-figure .pk-chip { fill: color-mix(in oklab, var(--bp-line) 18%, var(--bp-bg)); }
.puck-figure .pk-chip.pk-top { fill: color-mix(in oklab, var(--bp-line) 30%, var(--bp-bg)); }
.puck-figure .pk-metal { fill: color-mix(in oklab, var(--bp-line) 45%, var(--bp-bg)); }
.puck-figure .pk-ant.pk-top { fill: color-mix(in oklab, var(--bp-line) 26%, var(--bp-bg)); stroke: var(--bp-line); stroke-width: 1.3; }
.puck-figure .pk-glass { fill: color-mix(in oklab, var(--aqua) 10%, transparent); stroke-opacity: .8; }
.puck-figure .pk-glass.pk-top { fill: color-mix(in oklab, var(--aqua) 7%, transparent); }
.puck-figure .pk-pin { fill: var(--bp-line); opacity: .7; }
.puck-figure .pk-print { font: 700 13px var(--display); fill: var(--bp-line); opacity: .7; letter-spacing: .08em; }
.puck-figure .pk-dash { stroke: var(--bp-line); stroke-width: 1; stroke-dasharray: 4 5; opacity: .45; }
.puck-figure .pk-wire { fill: none; stroke: var(--bp-line); stroke-width: 1.6; }
.puck-figure .pk-data { stroke: var(--leg); stroke-width: 2; }
.puck-figure .pk-coax { fill: none; stroke: var(--bp-line); stroke-width: 2.2; }
.puck-figure .pk-air { fill: none; stroke: var(--leg); stroke-width: 2; stroke-linecap: round; opacity: .9; }
.puck-figure .pk-lead { fill: none; stroke: var(--bp-line); stroke-width: 1; opacity: .7; }
.puck-figure .pk-num { fill: var(--bp-bg); stroke: var(--bp-line); stroke-width: 1.3; }
.puck-figure .pk-numtext { font: 700 14px var(--display); fill: var(--bp-line); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) {
  .puck-figure .pk-air { animation: pk-air 2.4s ease-in-out infinite; animation-delay: var(--d); }
  @keyframes pk-air { 0%, 100% { opacity: .15; } 40% { opacity: .95; } }
}

/* ---------- hero background video ---------- */
.hero.has-video .hero-grid { grid-template-columns: minmax(0, 720px); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* scrim: the copy sits on the left, so darken from that side and fade the bottom into the next section */
.hero.has-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,30,38,.94) 0%, rgba(2,30,38,.86) 42%, rgba(2,30,38,.3) 74%, rgba(2,30,38,.05) 100%),
    linear-gradient(180deg, rgba(2,30,38,0) 60%, var(--sea-900) 100%);
}
.hero.has-video::before { z-index: 1; opacity: .35; }
.hero.has-video > .wrap { position: relative; z-index: 2; }
.video-toggle {
  position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(2,30,38,.55); color: #fff; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.video-toggle span { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.video-toggle[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.video-toggle:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
@media (max-width: 900px) {
  .hero-video { object-position: 62% 50%; }
  .hero.has-video::after { background: linear-gradient(180deg, rgba(2,30,38,.55) 0%, rgba(2,30,38,.82) 45%, rgba(2,30,38,.95) 100%); }
  .video-toggle { right: 16px; bottom: 16px; }
}
