/* ==========================================================================
   KASKARA — wheelchair-accessible power trimaran
   Design system + components
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05080c;
  --bg-2: #0a1018;
  --bg-3: #111a25;
  --bp: #07121c;            /* blueprint background */
  --bp-line: #8cc4e6;       /* blueprint ink */
  --paper: #eceff2;
  --paper-2: #dfe4e9;
  --ink: #0a1017;
  --ink-muted: #4a5663;
  --text: #e9edf1;
  --muted: #95a1ad;
  --line: rgba(233, 237, 241, .12);
  --line-2: rgba(233, 237, 241, .24);
  --hull: #ff5a1f;          /* Kaskara orange, sampled from the hull */
  --hull-2: #ff8048;
  --hull-deep: #c63d0c;
  --hull-glow: rgba(255, 90, 31, .32);

  --f-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1480px;
  --radius: 4px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(16px, .25vw + 15px, 18px);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--hull); color: var(--bg); }
:focus-visible { outline: 2px solid var(--hull); outline-offset: 3px; border-radius: 2px; }

.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: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--hull); color: var(--bg); padding: 12px 18px; font-weight: 700;
  border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 12vw, 180px); }
.section--tight { padding-block: clamp(60px, 8vw, 110px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper ::selection { color: var(--paper); }
.section--deep { background: var(--bg-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--paper .rule { background: rgba(10, 16, 23, .14); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--hull); }
.section--paper .eyebrow { color: var(--ink-muted); }
.display {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 300;
  text-transform: uppercase; letter-spacing: -.01em; line-height: .95;
}
.h1 { font-size: clamp(44px, 7.4vw, 128px); }
.h2 { font-size: clamp(34px, 5vw, 84px); }
.h3 { font-size: clamp(22px, 2.2vw, 34px); font-stretch: 112%; font-weight: 500; letter-spacing: -.005em; }
.display strong, .h2 strong { font-weight: 700; }
.accent { color: var(--hull); }
.lead { font-size: clamp(18px, 1.35vw, 23px); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.section--paper .lead { color: var(--ink-muted); }
.mono { font-family: var(--f-mono); }
.small { font-size: 14px; color: var(--muted); }

.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 100px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--hull); --fg-btn: #05080c;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--bg-btn); border-radius: 999px;
  background: var(--bg-btn); color: var(--fg-btn); text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text);
  transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit;
}
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:hover, .btn:focus-visible { border-color: var(--text); }
.btn--ghost { --bg-btn: transparent; --fg-btn: var(--text); border-color: var(--line-2); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); }
.section--paper .btn--ghost { --fg-btn: var(--ink); border-color: rgba(10,16,23,.3); }
.section--paper .btn::after { background: var(--ink); }
.section--paper .btn:hover, .section--paper .btn:focus-visible { color: var(--paper); border-color: var(--ink); }
.btn .arrow { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: border-color .3s, color .3s;
}
.link-arrow:hover { border-color: var(--hull); color: var(--hull); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 12, .72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 29px; height: 36px; flex: none; }
.brand__word { font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: 19px; letter-spacing: .32em; text-transform: uppercase; }
.brand__word span { color: var(--hull); }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav a {
  position: relative; text-decoration: none; font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; padding-block: 8px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hull);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { display: none; }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 0 20px; }
}

.nav-toggle {
  position: relative; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; display: grid; place-items: center;
}
.nav-toggle span { position: absolute; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(1) { transform: translateY(-4px); }
.nav-toggle span:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
@media (min-width: 1080px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.mobile-nav ul { list-style: none; display: grid; gap: 4px; }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none;
  font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 9vw, 56px); line-height: 1.15;
}
.mobile-nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--hull); letter-spacing: .1em; }
.mobile-nav__foot { margin-top: 48px; display: grid; gap: 6px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.mobile-nav__foot a { color: var(--text); }
@media (min-width: 1080px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; padding-bottom: clamp(32px, 5vw, 64px);
}
.hero__media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.06); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,8,12,.55) 0%, rgba(5,8,12,0) 28%, rgba(5,8,12,0) 45%, rgba(5,8,12,.86) 82%, var(--bg) 100%),
    radial-gradient(120% 70% at 70% 45%, transparent 40%, rgba(5,8,12,.55) 100%);
}
.grain::after {
  content: ""; position: absolute; inset: -50%; z-index: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }

.hero__inner { z-index: 1; width: 100%; }
.hero__top-wrap { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 18px); z-index: 1; }
.hero__top {
  text-shadow: 0 1px 14px rgba(5,8,12,.9), 0 0 2px rgba(5,8,12,.8);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.status-pill { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--hull); box-shadow: 0 0 0 0 var(--hull-glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,31,.6); } 70% { box-shadow: 0 0 0 12px rgba(255,90,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,31,0); } }

.hero__title {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 17.2vw, 330px); line-height: .8; letter-spacing: -.035em; margin-left: -.05em;
  display: flex; overflow: hidden; padding-block: .04em;
}
.hero__title .ch { display: inline-block; }
.hero__title { color: transparent; -webkit-text-stroke: 1.5px rgba(233,237,241,.92); white-space: nowrap; }
.hero__title .ch:last-child { color: var(--hull); -webkit-text-stroke-color: var(--hull); }
.hero__sub {
  display: grid; gap: 28px; margin-top: clamp(24px, 3vw, 44px); padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line-2);
}
@media (min-width: 900px) { .hero__sub { grid-template-columns: 1.1fr 1fr auto; align-items: end; gap: 48px; } }
.hero__claim { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.3; font-weight: 400; max-width: 26ch; margin: 0; }
.hero__claim em { font-style: normal; color: var(--hull); }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(4, auto); gap: clamp(16px, 2.4vw, 40px); }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats b { font-family: var(--f-display); font-stretch: 125%; font-weight: 500; font-size: clamp(20px, 2vw, 30px); line-height: 1; }
.hero__stats span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .hero__stats { grid-template-columns: repeat(2, auto); } }

.scroll-cue {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  display: none; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, var(--hull) 0 30%, var(--line-2) 30%); background-size: 200% 100%; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (min-width: 1080px) { .scroll-cue { display: inline-flex; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex: none; }
.marquee__group span {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase;
  font-size: clamp(18px, 2vw, 28px); white-space: nowrap; letter-spacing: .02em;
}
.marquee__group svg { width: 18px; height: 18px; color: var(--hull); flex: none; }

/* ---------- Statement (scroll-filled words) ---------- */
.statement {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 400;
  font-size: clamp(28px, 4.1vw, 68px); line-height: 1.12; letter-spacing: -.015em; max-width: 22ch;
}
.statement .w { color: rgba(10, 16, 23, .16); transition: color .25s linear; }
.statement .w.on { color: var(--ink); }
.statement .w.hl.on { color: var(--hull-deep); }
.no-js .statement .w { color: var(--ink); }

.glance {
  display: grid; gap: 40px; margin-top: clamp(56px, 8vw, 120px); padding-top: 40px; border-top: 1px solid rgba(10,16,23,.14);
}
@media (min-width: 900px) { .glance { grid-template-columns: 1fr 1.6fr; gap: 80px; } }
.glance__answer { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.glance__answer strong { font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat {
  position: relative; padding: clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 24px) clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start;
}
.stat + .stat { padding-left: clamp(12px, 1.6vw, 24px); border-left: 1px solid var(--line); }
@media (max-width: 759px) { .stat:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (min-width: 760px) and (max-width: 1199px) { .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; } }
.stat__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat__num { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; font-size: clamp(40px, 4.6vw, 76px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__num sup, .stat__num small { font-size: .32em; font-weight: 500; letter-spacing: .04em; margin-left: .2em; color: var(--hull); vertical-align: top; position: relative; top: .25em; }
.stat__note { font-size: 13px; color: var(--muted); }
.stat::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--hull);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
.stat + .stat::before { left: 0; }
.stat.in::before { transform: scaleX(1); }

/* ---------- Blueprint / schematics ---------- */
.lines {
  position: relative; background: var(--bp); color: var(--text);
  background-image:
    linear-gradient(rgba(140,196,230,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,196,230,.06) 1px, transparent 1px),
    linear-gradient(rgba(140,196,230,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,196,230,.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.lines__intro { padding-top: clamp(80px, 10vw, 150px); }
.lines__scroller { position: relative; }
.lines__sticky { position: relative; }
.lines__frame {
  position: relative; display: grid; gap: 28px; align-content: center; padding-block: 40px;
}
.lines__hud {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(140,196,230,.7);
  border-block: 1px solid rgba(140,196,230,.18); padding-block: 12px;
}
.lines__hud b { color: var(--bp-line); font-weight: 500; }
.lines__progress { position: relative; height: 1px; background: rgba(140,196,230,.18); }
.lines__progress i { position: absolute; inset: 0; background: var(--hull); transform-origin: left; transform: scaleX(var(--p, 0)); }
.lines__stages { position: relative; }
.lines__stage { position: relative; }
.lines__caption { display: grid; gap: 10px; margin-bottom: 18px; }
.lines__caption .num { font-family: var(--f-mono); font-size: 12px; color: var(--hull); letter-spacing: .16em; }
.lines__caption h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 40px); }
.lines__caption p { color: var(--muted); max-width: 52ch; margin: 0; font-size: 15px; }
.schematic { width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--f-mono); fill: var(--bp-line); font-size: 13px; letter-spacing: .08em; }
.schematic .t-sm { font-size: 11px; fill: rgba(140,196,230,.75); }
.schematic .t-hull { fill: var(--hull); }
.schematic .t-big { font-size: 15px; fill: var(--text); }
.bp { fill: none; stroke: var(--bp-line); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.bp-thin { stroke-width: .8; opacity: .55; }
.bp-dash { stroke-dasharray: 6 6; opacity: .6; }
.bp-hull { stroke: var(--hull); stroke-width: 2; }
.bp-fill { fill: rgba(140,196,230,.06); }
.bp-glass { fill: rgba(140,196,230,.12); }
.bp-route { stroke: var(--hull); stroke-width: 2.4; stroke-dasharray: 2 9; fill: none; stroke-linecap: round; }
.bp-wl { stroke: rgba(140,196,230,.4); stroke-dasharray: 14 6 3 6; }
.callout circle { fill: var(--bp); stroke: var(--hull); stroke-width: 1.4; }
.callout text { fill: var(--hull); font-size: 12px; text-anchor: middle; dominant-baseline: central; }
.callout line, .callout polyline { stroke: rgba(255,90,31,.65); stroke-width: 1; fill: none; }
.legend { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; margin-top: 20px; }
.legend li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted); }
.legend b { font-family: var(--f-mono); font-weight: 500; color: var(--hull); font-size: 12px; min-width: 22px; }
.lines__note { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: rgba(140,196,230,.55); margin-top: 18px; }

/* draw-on animation state (JS sets --len & offset) */
.js [data-draw] .bp, .js [data-draw] .bp-route { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--off, var(--len)); }
.js [data-draw] .bp.bp-dash { stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: calc(var(--dash-o, 0) * .6); }
.js [data-draw] .bp-route { stroke-dasharray: 2 9; stroke-dashoffset: 0; opacity: var(--route-o, 0); animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -22; } }
.js [data-draw] .fade { opacity: var(--fade-o, 0); transition: opacity .6s; }
.js [data-draw] .callout { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js [data-draw] .callout.on { opacity: 1; transform: none; }
.js [data-draw] .bp-fill, .js [data-draw] .bp-glass { opacity: var(--fade-o, 0); transition: opacity .8s; }

/* Desktop: pinned, scroll-scrubbed stages */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .js .lines__scroller { height: 420vh; }
  .js .lines__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
  .js .lines__sticky > .container { width: 100%; }
  .js .lines__stages { display: grid; }
  .js .lines__stage { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
  .js .lines__stage.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
  .js .lines__frame { gap: 14px; padding-block: 0; }
  .js .lines__caption { gap: 6px; margin-bottom: 8px; }
  .js .lines__caption h3 { font-size: clamp(20px, 2vw, 32px); }
  .js .lines__stage .schematic { max-height: calc(100vh - 360px); }
  .js .legend { margin-top: 8px; gap: 4px 24px; }
  .js .legend li { font-size: 13px; }
  .js .lines__note { margin-top: 4px; }
}
@media (max-width: 999px), (prefers-reduced-motion: reduce) {
  .lines__stages { display: grid; gap: 72px; }
  .lines__hud, .lines__progress { display: none; }
}

/* ---------- Split / parallax media ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--cine { aspect-ratio: 21 / 9; }
[data-parallax] { will-change: transform; }
.media [data-parallax] { height: 118%; margin-top: -9%; }
.media__tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(5,8,12,.7); color: var(--muted); padding: 6px 10px; border-radius: 2px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Clip reveal for images */
.js .clip { clip-path: inset(12% 8% 12% 8%); transition: clip-path 1.6s var(--ease); }
.js .clip.in { clip-path: inset(0 0 0 0); }
.js .clip img { transform: scale(1.18); transition: transform 2s var(--ease); }
.js .clip.in img:not([data-parallax]) { transform: scale(1); }

/* ---------- Full-bleed parallax band ---------- */
.band { position: relative; height: clamp(420px, 80vh, 860px); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.band__bg { position: absolute; inset: -15% 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,8,12,.35) 30%, rgba(5,8,12,.35) 70%, var(--bg) 100%); }
.band--photo .band__bg img { filter: brightness(.5) saturate(.85); }
.band__quote { text-align: center; max-width: 18ch; font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 5.4vw, 92px); line-height: .98; letter-spacing: -.02em; }
.band__quote span { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--hull); margin-bottom: 24px; font-stretch: 100%; }

/* ---------- Accessibility ---------- */
.access-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); counter-reset: acc; }
@media (min-width: 700px) { .access-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .access-grid { grid-template-columns: repeat(3, 1fr); } }
.access-card { position: relative; background: var(--bg); padding: clamp(28px, 3vw, 44px); display: grid; gap: 14px; align-content: start; overflow: hidden; transition: background .5s; }
.access-card:hover { background: var(--bg-2); }
.access-card::before { counter-increment: acc; content: "0" counter(acc); font-family: var(--f-mono); font-size: 12px; color: var(--hull); letter-spacing: .14em; }
.access-card svg { width: 44px; height: 44px; color: var(--text); stroke-width: 1.2; }
.access-card h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
.access-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.access-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--hull); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.access-card:hover::after { transform: scaleX(1); }

/* Lift demo */
.lift-demo { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bp); padding: 24px; }
.lift-demo svg text { font-family: var(--f-mono); font-size: 11px; fill: var(--bp-line); letter-spacing: .1em; }
.lift-demo .platform { animation: lift 7s var(--ease-in-out) infinite; }
@keyframes lift { 0%, 12% { transform: translateY(0); } 42%, 58% { transform: translateY(150px); } 88%, 100% { transform: translateY(0); } }
.lift-demo .lvl-top { animation: lvlTop 7s infinite; }
.lift-demo .lvl-bot { animation: lvlBot 7s infinite; }
@keyframes lvlTop { 0%,12%,88%,100% { fill: var(--hull); } 20%,80% { fill: rgba(140,196,230,.5); } }
@keyframes lvlBot { 0%,34%,66%,100% { fill: rgba(140,196,230,.5); } 42%,58% { fill: var(--hull); } }

/* ---------- Horizontal "life aboard" ---------- */
.hscroll { position: relative; }
.hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline: var(--gutter); }
.hscroll__viewport::-webkit-scrollbar { display: none; }
.hscroll__track { display: flex; gap: clamp(16px, 2vw, 32px); width: max-content; padding-bottom: 8px; }
.room { position: relative; width: min(82vw, 560px); flex: none; scroll-snap-align: start; display: grid; gap: 20px; }
.room .media { aspect-ratio: 4 / 5; }
.room__idx { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--f-mono); font-size: 12px; color: var(--text); letter-spacing: .14em; background: rgba(5,8,12,.6); padding: 6px 10px; border-radius: 2px; }
.room h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 32px); }
.room ul { list-style: none; display: grid; gap: 6px; }
.room li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.room li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--hull); }
.hscroll__controls { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.icon-btn:hover { background: var(--hull); border-color: var(--hull); color: var(--bg); }
.icon-btn svg { width: 18px; height: 18px; }
.hscroll__bar { flex: 1; height: 1px; background: var(--line-2); position: relative; min-width: 80px; }
.hscroll__bar i { position: absolute; inset: 0; background: var(--hull); transform-origin: left; transform: scaleX(var(--p, .15)); transition: transform .2s linear; }

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .js .hscroll--pinned { height: var(--hs-h, 300vh); }
  .js .hscroll--pinned .hscroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
  .js .hscroll--pinned .hscroll__viewport { overflow: visible; scroll-snap-type: none; }
  .js .hscroll--pinned .hscroll__track { will-change: transform; }
  .js .hscroll--pinned .room { width: min(36vw, 520px); }
  .js .hscroll--pinned .room .media { aspect-ratio: 4 / 4.4; max-height: 58vh; }
  .js .hscroll--pinned .hscroll__controls .icon-btn { display: none; }
}

/* ---------- Performance ---------- */
.perf { position: relative; overflow: hidden; isolation: isolate; }
.perf__bg { position: absolute; inset: -20% 0; z-index: -2; opacity: .35; }
.perf__bg img { width: 100%; height: 100%; object-fit: cover; }
.perf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,8,12,.82) 25%, rgba(5,8,12,.82) 75%, var(--bg) 100%); }
.instruments { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .instruments { grid-template-columns: 1.2fr 1fr 1fr; } }
.instrument { background: rgba(5,8,12,.78); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.instrument__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.instrument__label b { color: var(--hull); font-weight: 500; }
.gauge { width: 100%; max-width: 420px; margin-inline: auto; }
.gauge text { font-family: var(--f-mono); fill: var(--muted); font-size: 11px; }
.gauge .g-val { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; fill: var(--text); font-size: 64px; letter-spacing: -.03em; }
.gauge .g-unit { fill: var(--hull); font-size: 12px; letter-spacing: .2em; }
.gauge .g-arc { stroke: var(--hull); stroke-linecap: round; transition: stroke-dashoffset 2.6s var(--ease); }
.gauge .g-needle { transform-origin: 210px 210px; transition: transform 2.6s var(--ease); }
.tanks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tank { position: relative; height: 220px; border: 1px solid var(--line-2); border-radius: 3px; overflow: hidden; }
.tank__fill { position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(180deg, var(--hull-2), var(--hull-deep)); transition: height 2.4s var(--ease); }
.tank__fill::before { content: ""; position: absolute; left: -50%; right: -50%; top: -8px; height: 16px; background: radial-gradient(12px 8px at 50% 100%, var(--hull-2) 98%, transparent) 0 0 / 24px 16px repeat-x; animation: slosh 3s linear infinite; }
@keyframes slosh { to { transform: translateX(24px); } }
.tank.in .tank__fill { height: 88%; }
.tank__ticks { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 21px, var(--line-2) 21px 22px); opacity: .5; }
.tank__lbl { position: absolute; left: 12px; top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--text); z-index: 1; mix-blend-mode: difference; }
.range { position: relative; aspect-ratio: 1; max-width: 300px; margin-inline: auto; width: 100%; }
.range svg { width: 100%; height: 100%; }
.range text { font-family: var(--f-mono); fill: var(--muted); font-size: 10px; letter-spacing: .1em; }
.range .r-ring { stroke: var(--hull); fill: rgba(255,90,31,.06); transform-origin: 150px 150px; transform: scale(0); transition: transform 2.4s var(--ease); }
.range.in .r-ring { transform: scale(1); }
.range .r-sweep { transform-origin: 150px 150px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.dl { display: grid; gap: 0; }
.dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; text-align: right; font-weight: 500; }

/* ---------- Tech grid ---------- */
.tech { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .tech { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tech { grid-template-columns: repeat(4, 1fr); } }
.tech__item { background: var(--bg); padding: 28px; display: grid; gap: 10px; align-content: start; min-height: 200px; position: relative; overflow: hidden; }
.tech__item .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hull); }
.tech__item h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: 20px; line-height: 1.25; }
.tech__item p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tech__item--feature { background: var(--bp); grid-row: span 2; min-height: 420px; }
.radar { position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; opacity: .9; pointer-events: none; }
.radar circle { fill: none; stroke: rgba(140,196,230,.18); }
.radar .beam { transform-origin: 160px 160px; animation: sweep 5s linear infinite; }

/* ---------- Night / fishing ---------- */
.night { position: relative; overflow: hidden; isolation: isolate; }
.night__glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; border-radius: 50%; left: 50%; top: 60%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(0,190,255,.18), transparent 70%); filter: blur(30px); animation: glow 8s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .5; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -48%) scale(1.1); } }
.feature-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.feature-list .n { font-family: var(--f-mono); font-size: 12px; color: var(--hull); padding-top: 4px; }
.feature-list h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: 19px; margin-bottom: 4px; }
.feature-list p { color: var(--muted); margin: 0; font-size: 15px; }
.section--paper .feature-list, .section--paper .feature-list li { border-color: rgba(10,16,23,.14); }
.section--paper .feature-list p { color: var(--ink-muted); }
.section--paper .feature-list .n { color: var(--hull-deep); }

/* ---------- Laminate (construction) ---------- */
.laminate { position: relative; height: 380px; perspective: 1200px; }
.laminate__layer:nth-child(n) { transition-delay: calc(var(--i) * 80ms); }
.laminate__layer {
  position: absolute; left: 10%; right: 10%; height: 120px; top: 130px; border-radius: 3px;
  transform: rotateX(62deg) rotateZ(-28deg) translateZ(calc(var(--i) * var(--gap, 6px)));
  transition: transform 1.4s var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.laminate.in { --gap: 52px; }
.laminate-wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .laminate-wrap { grid-template-columns: 1.4fr 1fr; } }
.laminate-key { list-style: none; display: grid; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.laminate-key li { display: flex; gap: 12px; align-items: center; }
.laminate-key i { width: 22px; height: 12px; border-radius: 2px; flex: none; }
.laminate__layer:nth-child(1) { --i: 0; background: repeating-linear-gradient(90deg, #dfe7ee 0 3px, #c9d3dc 3px 6px); }
.laminate__layer:nth-child(2) { --i: 1; background: #f4c64a; }
.laminate__layer:nth-child(3) { --i: 2; background: repeating-linear-gradient(90deg, #dfe7ee 0 3px, #c9d3dc 3px 6px); }
.laminate__layer:nth-child(4) { --i: 3; background: repeating-linear-gradient(45deg, #2a2f36 0 6px, #1b1f24 6px 12px); color: var(--text); }
.laminate__layer:nth-child(5) { --i: 4; background: linear-gradient(135deg, var(--hull-2), var(--hull)); }

/* ---------- Film ---------- */
.film { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); display: grid; place-items: center; isolation: isolate; }
.film > img, .film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.4) brightness(.55); }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(5,8,12,.7)); }
.film__badge { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.play { width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; }
.play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,90,31,.5); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.play svg { width: 28px; height: 28px; color: var(--hull); margin-left: 4px; }
.film__corner { position: absolute; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.film__corner--tl { top: 18px; left: 20px; } .film__corner--tr { top: 18px; right: 20px; } .film__corner--bl { bottom: 18px; left: 20px; } .film__corner--br { bottom: 18px; right: 20px; }
.rec { display: inline-flex; gap: 8px; align-items: center; } .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Location ---------- */
.location { display: grid; gap: 40px; }
@media (min-width: 960px) { .location { grid-template-columns: 1fr 1.25fr; align-items: stretch; } }
.coords { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; font-size: clamp(28px, 3.6vw, 56px); line-height: 1; letter-spacing: -.02em; }
.coords small { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; color: var(--hull); margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.section--paper .faq, .section--paper .faq details { border-color: rgba(10,16,23,.14); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 26px; font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.section--paper .faq summary::after { border-color: rgba(10,16,23,.25); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--hull); }
.faq .answer { padding-bottom: 28px; max-width: 72ch; color: var(--muted); }
.section--paper .faq .answer { color: var(--ink-muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Enquiry form ---------- */
.enquire { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1000px) { .enquire { grid-template-columns: .9fr 1.1fr; } }
.contact-lines { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 40px; }
.contact-lines li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-lines span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-lines a { text-decoration: none; font-size: clamp(17px, 1.4vw, 21px); }
.contact-lines a:hover { color: var(--hull); }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: grid; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field label .req { color: var(--hull); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(233,237,241,.03); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 15px 16px; font-size: 16px; color: var(--text); transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ff5a1f' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field select option { background: var(--bg-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(233,237,241,.4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hull); background: rgba(255,90,31,.04); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff6b6b; }
.field__err { color: #ff8f8f; font-size: 13px; margin-top: 6px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; transition: all .3s; }
.chip input:checked + span { background: var(--hull); border-color: var(--hull); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--hull); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--hull); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.form__legal { font-size: 12px; color: var(--muted); max-width: 46ch; }
.form__legal a { color: var(--text); }
.form__status { padding: 16px 18px; border-radius: var(--radius); font-size: 15px; display: none; }
.form__status.is-ok { display: block; background: rgba(60, 200, 130, .1); border: 1px solid rgba(60, 200, 130, .4); color: #9ff0c4; }
.form__status.is-err { display: block; background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .4); color: #ffb3b3; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.btn[aria-busy="true"] .arrow { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.grecaptcha-badge { visibility: hidden !important; }

/* ---------- Big CTA ---------- */
.cta-xl { display: block; text-decoration: none; padding-block: clamp(64px, 10vw, 160px); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.cta-xl__text { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(44px, 10vw, 180px); line-height: .9; letter-spacing: -.035em; display: flex; flex-wrap: wrap; gap: 0 .25em; align-items: center; }
.cta-xl__text svg { width: .7em; height: .7em; color: var(--hull); transition: transform .6s var(--ease); }
.cta-xl:hover .cta-xl__text svg { transform: translateX(.15em) rotate(-45deg); }
.cta-xl__text em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--text); transition: color .5s var(--ease); }
.cta-xl:hover .cta-xl__text em { color: var(--hull); -webkit-text-stroke-color: var(--hull); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px) 32px; background: var(--bg); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text); transition: color .3s; }
.footer-grid a:hover { color: var(--hull); }
.footer-grid address { font-style: normal; display: grid; gap: 10px; }
.footer-blurb { color: var(--muted); max-width: 38ch; margin-top: 20px; font-size: 15px; }
.footer-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(60px, 18.5vw, 360px); line-height: .78; letter-spacing: -.04em; margin: clamp(48px, 7vw, 96px) 0 0; color: transparent; -webkit-text-stroke: 1px rgba(233,237,241,.16); user-select: none; white-space: nowrap; overflow: hidden; }
.footer-base { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-base a { color: var(--muted); }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 98;
  max-width: 620px; margin-inline: auto; display: grid; gap: 16px; padding: 20px 22px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.55); font-size: 15px; line-height: 1.5;
  animation: consent-in .6s var(--ease) both;
}
.consent p { margin: 0; }
.consent a { color: var(--hull-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent .btn { flex: 1 1 140px; min-height: 48px; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.footer-btn { background: none; border: 0; padding: 0; color: var(--text); text-align: left; transition: color .3s; }
.footer-btn:hover, .footer-btn:focus-visible { color: var(--hull); }

/* ---------- Sub-page hero ---------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(60px, 10vw, 140px)); padding-bottom: clamp(48px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; opacity: .4; }
.page-hero__bg img { width: 100%; height: 120%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,8,12,.6), var(--bg)); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--hull); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Spec tables ---------- */
.spec-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .spec-layout { grid-template-columns: 260px 1fr; gap: 80px; } }
.spec-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: none; }
@media (min-width: 1000px) { .spec-toc { display: block; } }
.spec-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; border-left: 1px solid var(--line); }
.spec-toc a { display: block; padding: 8px 0 8px 18px; text-decoration: none; font-size: 14px; color: var(--muted); position: relative; transition: color .3s; margin-left: -1px; border-left: 1px solid transparent; }
.spec-toc a:hover, .spec-toc a.is-active { color: var(--text); border-left-color: var(--hull); }
.spec-group { margin-bottom: clamp(56px, 7vw, 96px); scroll-margin-top: calc(var(--header-h) + 24px); }
.spec-group h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 300; text-transform: uppercase; font-size: clamp(26px, 3vw, 44px); margin-bottom: 24px; display: flex; gap: 18px; align-items: baseline; }
.spec-group h2 small { font-family: var(--f-mono); font-size: 12px; color: var(--hull); letter-spacing: .14em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 24px; }
.spec-table td { font-weight: 500; }
.spec-table tr { transition: background .3s; }
.spec-table tr:hover { background: rgba(233,237,241,.025); }
.spec-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .spec-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.spec-list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 1px; background: var(--hull); }
.tbc { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--hull); border: 1px solid rgba(255,90,31,.4); padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 500; font-size: clamp(24px, 2.4vw, 34px); margin: 2em 0 .7em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin-bottom: 1em; }
.prose a { color: var(--text); }

/* ---------- Journey (accessibility page) ---------- */
.journey { list-style: none; position: relative; display: grid; gap: 0; }
.journey::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.journey::after { content: ""; position: absolute; left: 23px; top: 0; width: 1px; height: 100%; background: var(--hull); transform-origin: top; transform: scaleY(var(--p, 0)); }
.journey li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 28px; padding-bottom: clamp(40px, 6vw, 72px); }
.journey .dot { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); position: relative; z-index: 1; transition: all .5s var(--ease); }
.journey li.in .dot { border-color: var(--hull); color: var(--bg); background: var(--hull); }
.journey h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); margin: 8px 0 12px; }
.journey p { color: var(--muted); max-width: 60ch; }

/* ---------- Gallery ---------- */
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid rgba(255,90,31,.35); background: rgba(255,90,31,.05); border-radius: var(--radius); font-size: 15px; color: var(--muted); }
.notice strong { color: var(--text); }
.notice svg { width: 22px; height: 22px; color: var(--hull); flex: none; margin-top: 2px; }
.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 16px; break-inside: avoid; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery button { all: unset; display: block; cursor: zoom-in; position: relative; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--hull); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform 1.2s var(--ease), filter .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(5,8,12,.85)); font-size: 13px; font-family: var(--f-mono); letter-spacing: .06em; opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); }
.gallery figure:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; transform: none; }
.gallery .slot { aspect-ratio: 4 / 3; border: 1px dashed var(--line-2); display: grid; place-items: center; text-align: center; padding: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-radius: var(--radius); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,8,12,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox__inner { width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--radius); }
.lightbox__cap { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-align: center; }
.lightbox__close, .lightbox__nav { position: fixed; z-index: 2; color: var(--text); background: rgba(5,8,12,.6); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal utilities ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js .split-lines .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .split-lines .ln > span { display: block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .split-lines.in .ln > span { transform: none; }
.js .hero__title .ch { transform: translateY(110%); animation: rise 1.3s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 150ms); }
@keyframes rise { to { transform: none; } }
.js .hero [data-hero-fade] { opacity: 0; animation: fadeUp 1.2s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 100ms + 700ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Cursor follower (desktop only) ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--hull); pointer-events: none; mix-blend-mode: difference; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; opacity: 0; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--text); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .split-lines .ln > span, .js .hero__title .ch, .js .hero [data-hero-fade] { opacity: 1 !important; transform: none !important; }
  .js .clip { clip-path: none; } .js .clip img { transform: none; }
  [data-parallax] { transform: none !important; }
  .cursor { display: none; }
}

/* ---------- Print (spec sheet) ---------- */
@media print {
  :root { --bg: #fff; --text: #000; --muted: #333; --line: #ccc; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .mobile-nav, .site-footer .footer-word, .cta-xl, .spec-toc, .no-print, .cursor, .consent, .page-hero__bg, .grain::after { display: none !important; }
  .page-hero { padding: 0 0 12pt; } .page-hero::before { display: none; }
  .section { padding-block: 12pt; }
  .spec-group { break-inside: avoid; margin-bottom: 18pt; }
  .spec-table th, .spec-table td { padding: 5pt 0; }
  a { text-decoration: none; }
}

/* ---------- Schematic: fit to screen on small screens ---------- */
.schematic-scroll { width: 100%; overflow: hidden; }
@media (max-width: 699px) {
  .schematic { width: 100%; height: auto; }
  .schematic .t-sm { display: none; }                 /* small labels are unreadable at phone size; the legend covers them */
  .schematic .t-big { font-size: 34px; }
  .schematic text:not(.t-big):not(.t-sm) { font-size: 26px; }
  .callout circle, .callout text { transform: scale(2.1); transform-box: fill-box; transform-origin: center; }
  .callout text { font-size: 13px; font-weight: 500; }
}

/* ---------- Gallery groups ---------- */
.gallery-group { margin-top: clamp(64px, 8vw, 120px); }
.gallery-group .section-head { margin-bottom: 32px; }

/* ---------- Photo row (figures with captions) ---------- */
.photo-row { display: grid; gap: 16px; }
@media (min-width: 800px) { .photo-row { grid-template-columns: repeat(3, 1fr); } }
.photo-row figure { margin: 0; }
.photo-row .media { aspect-ratio: 4 / 3; }
.photo-row figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ga { margin: 0 0 clamp(56px, 7vw, 96px); }
.ga .media { background: #fff; }
.ga .media img { object-fit: contain; }
.ga figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
