/* Electromar v6 · idea: "una travesía en velero por la costa de Barcelona, de día y con luz real"
   · faces: Bodoni Moda (display, redonda + cursiva, eje óptico) / Geist (texto) / Geist Mono (lecturas)
   · fondo: noche marina oklch(17% .03 245) con bandas de papel hueso oklch(96.5% .012 85)
   · acento: latón oklch(80% .1 78) para lo que se pulsa y los numerales; rojo de luz de navegación solo para el objetivo AIS
   · firma: el velero real recortado en capas (cielo y costa, velero, mar) que gira con el scroll; aperturas rectangulares que abren las fotos
   · movimiento: solo transform y opacity; todo quieto con prefers-reduced-motion; móvil estático */
:root {
  color-scheme: dark;
  --night: oklch(17.5% 0.03 245);
  --night-2: oklch(22% 0.035 243);
  --night-3: oklch(27% 0.04 240);
  --deep: oklch(13% 0.025 248);
  --foam: oklch(97% 0.006 85);
  --mist: oklch(80% 0.018 230);
  --rule-dark: oklch(36% 0.035 240);
  --paper: oklch(96.5% 0.012 85);
  --paper-2: oklch(92.5% 0.016 82);
  --white: oklch(99.3% 0.004 85);
  --ink: oklch(20% 0.03 250);
  --ink-2: oklch(41% 0.028 245);
  --rule-light: oklch(84% 0.018 80);
  --brass: oklch(80% 0.1 78);
  --brass-hi: oklch(86% 0.09 82);
  --brass-ink: oklch(52% 0.1 70);
  --signal: oklch(64% 0.2 28);
  --signal-hi: oklch(76% 0.15 32);
  --brand-hi: oklch(76% 0.11 268);
  --shade-strong: oklch(13% 0.03 248 / 0.86);
  --shade-mid: oklch(15% 0.03 248 / 0.5);
  --shade-none: oklch(15% 0.03 248 / 0);
  --glass: oklch(16% 0.03 245 / 0.62);
  --backdrop: oklch(9% 0.02 245 / 0.72);
  --shadow: oklch(8% 0.02 245 / 0.5);
  --glint: oklch(97% 0.05 85 / 0.55);
  --glint-none: oklch(97% 0.05 85 / 0);
  --scrim: oklch(12% 0.03 248 / 0.62);
  --placeholder: oklch(68% 0.02 230);
  --mask: oklch(12% 0.02 240);
  --logo-ink: var(--ink); --logo-slate: oklch(41% 0.035 233); --logo-rose: oklch(79% 0.008 200); --logo-blue: oklch(58% 0.2 268);
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-md: 1.0625rem; --text-lg: 1.25rem;
  --text-section: clamp(2.7rem, 5vw + 0.6rem, 7.4rem);
  --text-display: clamp(3.3rem, 7.4vw + 0.4rem, 9.4rem);
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 72px; --space-3xl: 128px;
  --container: 1360px; --gutter: clamp(16px, 4.4vw, 64px); --nav-h: 104px;
  --radius-s: 3px; --radius-m: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms; --dur-short: 200ms; --dur-mid: 360ms;
  --focus: var(--foam);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--nav-h) + var(--space-md)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--foam); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; font-synthesis: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-optical-sizing: auto; letter-spacing: -0.02em; line-height: 0.98; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: var(--text-section); max-width: 15ch; }
h3 { font-size: clamp(1.35rem, 0.6vw + 1.1rem, 1.7rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; }
/* roman line over an italic line: one family, two voices */
.mix__a, .mix__b { display: block; }
.mix__a { font-weight: 500; }
.mix__b { font-style: italic; font-weight: 400; color: var(--brass-hi); letter-spacing: -0.015em; }
.on-paper .mix__b { color: var(--brass-ink); }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
html:not([lang="ca"]) [data-l="ca"], html[lang="ca"] [data-l="es"] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.32rem); line-height: 1.5; max-width: 44ch; color: var(--mist); font-weight: 350; }
.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-rose { fill: var(--logo-rose); } .lg-slate { fill: var(--logo-slate); } .lg-ink { fill: var(--logo-ink); } .lg-blue { fill: var(--logo-blue); }
.on-dark, .nav .brand { --logo-ink: var(--foam); --logo-slate: oklch(86% 0.03 233); --logo-rose: oklch(80% 0.012 200); --logo-blue: oklch(80% 0.1 268); }

/* words sit in their own mask and rise into it: a reveal with an edge, never a fade */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.18em; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.wi { display: inline-block; }
html.js.fx [data-split]:not(.is-in) .wi { transform: translate3d(0, 108%, 0) rotate(4deg); }
html.js.fx [data-split] .wi { transform-origin: 0 100%; transition: transform 1100ms var(--ease-expo); transition-delay: calc(var(--wi, 0) * 55ms); }
/* the italic line answers the scroll: it drifts against the roman line */
html.js.fx.wide [data-drift] .mix__b { transform: translate3d(var(--drift, 0px), 0, 0); }

/* controls: brass primary, quiet outline */
.btn { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 50px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-s); background: var(--brass); color: var(--ink); font-weight: 550; font-size: var(--text-sm); letter-spacing: 0.01em; white-space: nowrap; text-decoration: none; overflow: hidden; isolation: isolate; transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform var(--dur-mid) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass-hi); transform: translate3d(0, 101%, 0); transition: transform 420ms var(--ease-expo); }
.btn:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.97); transition-duration: var(--dur-press); }
.btn--quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 55%, transparent); }
.btn--quiet::before { background: color-mix(in oklab, currentColor 12%, transparent); }
@media (hover: hover) and (pointer: fine) { .btn:hover::before { transform: none; } }
.link { display: inline-flex; align-items: center; gap: var(--space-xs); white-space: nowrap; min-height: 44px; padding: 0; border: 0; background: none; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 calc(50% + 0.72em); background-repeat: no-repeat; transition: transform var(--dur-press) var(--ease-out); }
.link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .link { transition: background-size 360ms var(--ease-expo), transform var(--dur-press) var(--ease-out); } .link:hover { background-size: 0% 1px; background-position: 100% calc(50% + 0.72em); } }

/* scroll progress: a hairline of brass */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
html:not(.js) .progress { display: none; }

/* skip and nav */
.skip { position: fixed; left: var(--space-sm); top: -100px; z-index: 100; padding: var(--space-sm) var(--space-md); background: var(--foam); color: var(--ink); border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: color-mix(in oklab, var(--night) 82%, transparent); color: var(--foam); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); transition: background-color var(--dur-mid) var(--ease-out); }
.nav.is-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__in { height: 100%; display: flex; align-items: center; gap: var(--space-xl); }
.brand { display: flex; align-items: center; gap: var(--space-md); text-decoration: none; margin-right: auto; }
/* the emblem keeps the original drawing's 747 x 783 proportion */
.brand .logo { width: 84px; height: 88px; flex: none; }
.brand__txt { display: grid; gap: 3px; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.95rem; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.875rem; color: oklch(86% 0.018 230); letter-spacing: 0.02em; }
@media (max-width: 71.99rem) { :root { --nav-h: 88px; } .brand .logo { width: 69px; height: 72px; } .brand__name { font-size: 1.7rem; } }
@media (max-width: 47.99rem) { :root { --nav-h: 72px; } .brand { gap: var(--space-sm); } .brand .logo { width: 53px; height: 56px; } .brand__name { font-size: 1.45rem; } }
.nav__links { display: flex; gap: clamp(20px, 2.2vw, 36px); }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: var(--text-sm); font-weight: 450; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 420ms var(--ease-expo); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.lang { display: flex; border-radius: var(--radius-s); box-shadow: inset 0 0 0 1px color-mix(in oklab, currentColor 45%, transparent); }
.lang button { min-width: 44px; min-height: 40px; border: 0; background: none; font-size: 0.8125rem; font-weight: 550; letter-spacing: 0.06em; border-radius: var(--radius-s); transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.lang button:active { transform: scale(0.95); }
.lang button[aria-pressed="true"] { background: var(--foam); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; border-radius: var(--radius-s); }
.menu-btn .icon { width: 24px; height: 24px; }
@media (max-width: 71.99rem) {
  .js .menu-btn { display: inline-flex; }
  html:not(.js) .nav__links { display: none; }
  .js .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; padding: var(--space-sm) var(--gutter) var(--space-lg); background: var(--night); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
  .js .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .js .nav__links a { font-family: var(--font-display); font-size: 1.7rem; min-height: 60px; border-bottom: 1px solid var(--rule-dark); }
  .js .nav__links a::after { bottom: 12px; right: auto; width: 40px; }
  .brand__sub { display: none; }
  .nav__in { gap: var(--space-md); }
}

/* 1 · hero: the real sailboat in three depth layers, turned by the scroll */
.hero { position: relative; background: var(--deep); }
.hero__stage { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; }
.scene { position: absolute; left: 50%; top: 50%; width: max(100%, 134svh); aspect-ratio: 4 / 3; transform: translate3d(-50%, -50%, 0) scale(var(--zoom, 1.04)); perspective: 1600px; perspective-origin: 50% 62%; will-change: transform; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; }
.layer--bg { transform-origin: 52% 70%; }
.layer--boat { transform-origin: 52% 70%; transform-style: preserve-3d; }
.layer--sea { top: 75.44%; bottom: auto; height: 24.56%; }
.glint { position: absolute; inset: -10%; pointer-events: none; background: radial-gradient(ellipse 34% 26% at var(--gx, 70%) 30%, var(--glint), var(--glint-none) 70%); mix-blend-mode: soft-light; opacity: var(--go, 0.7); will-change: opacity; }
.hero__photo { display: none; width: 100%; height: auto; }
.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate3d(-14px, -100%, 0); }
.pin__chip { display: grid; gap: 2px; padding: 10px 14px 11px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: var(--radius-s); color: var(--foam); font-size: 0.9375rem; line-height: 1.25; white-space: nowrap; box-shadow: 0 12px 30px var(--shadow); }
.pin__chip .mono { font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--brass); }
.pin__chip::after { content: ""; position: absolute; left: 10px; bottom: -6px; width: 12px; height: 12px; background: var(--glass); clip-path: polygon(0 0, 100% 0, 0 100%); }
html.js.fx.wide .pin { opacity: 0; transition: opacity 420ms var(--ease-out); }
html.js.fx.wide .pin__chip { transform: translate3d(0, 14px, 0); transition: transform 720ms var(--ease-expo); }
html.js.fx.wide .pin.is-on { opacity: 1; }
html.js.fx.wide .pin.is-on .pin__chip { transform: none; }
.aisbox { position: absolute; left: 9.5%; top: 57%; width: 81%; height: 22%; pointer-events: none; will-change: opacity; }
.aisbox__br { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aisbox__br path { fill: none; stroke: var(--signal); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.aisbox__label { position: absolute; right: 0; bottom: calc(100% + var(--space-sm)); display: grid; gap: 1px; padding: 8px 12px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-left: 2px solid var(--signal); color: var(--foam); font-size: 0.8125rem; line-height: 1.35; white-space: nowrap; }
.aisbox__label strong { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--signal-hi); }
.hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--shade-strong) 0, var(--shade-none) 26%), linear-gradient(96deg, var(--shade-strong) 0%, var(--shade-mid) 30%, var(--shade-none) 56%); will-change: opacity; }
.hero__copy { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(var(--space-md), 6vh, var(--space-2xl))); z-index: 4; will-change: transform, opacity; }
.hero__copy h1 { margin-top: var(--space-md); font-size: var(--text-display); max-width: none; line-height: 0.92; }
.hero__copy h1 .mix__b { margin-top: 0.04em; font-size: 0.82em; }
.hero__copy .lead { margin-top: var(--space-lg); color: var(--foam); max-width: 32ch; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg); margin-top: var(--space-sm); }
.hero__meta .link { font-size: var(--text-xs); color: var(--mist); }
.spec { font-size: var(--text-sm); color: var(--mist); }
.rot { display: inline-block; color: var(--foam); font-family: var(--font-display); font-style: italic; font-size: 1.15em; transition: opacity var(--dur-short) var(--ease-out), transform 320ms var(--ease-expo); }
.rot.is-out { opacity: 0; transform: translate3d(0, -0.4em, 0); }
.hero__row { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); margin-top: var(--space-xl); }
.hero__dim { position: absolute; inset: 0; z-index: 5; background: var(--night); opacity: 0; pointer-events: none; will-change: opacity; }
.idle .ais-live, .paused .ais-live { animation-play-state: paused; }
/* entrance, once: the world settles, the sailboat glides in, the words rise */
html.js.fx.wide .hero:not(.is-ready) .layer--bg { transform: translate3d(0, 0, 0) scale(1.16); }
html.js.fx.wide .hero:not(.is-ready) .layer--boat { opacity: 0; transform: translate3d(4%, 1.5%, 0) rotateY(-14deg); }
html.js.fx.wide .hero:not(.is-ready) .hero__copy > *:not(h1) { opacity: 0; transform: translate3d(0, 16px, 0); }
html.js.fx.wide .hero.is-entering .layer--bg { transition: transform 2200ms var(--ease-expo); }
html.js.fx.wide .hero.is-entering .layer--boat { transition: transform 2000ms var(--ease-expo) 120ms, opacity 900ms var(--ease-out) 120ms; }
html.js.fx.wide .hero.is-entering .hero__copy > *:not(h1) { transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(500ms + var(--ci, 0) * 90ms); }
.fx.wide .hero { height: 330svh; }
.fx.wide .hero__stage { position: sticky; top: 0; }
@media (max-width: 47.99rem), (prefers-reduced-motion: reduce) {
  .scene { display: none; }
  .hero__photo { display: block; }
}
@media (min-width: 48rem) and (prefers-reduced-motion: reduce) {
  .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 47.99rem) {
  .hero__stage { height: auto; min-height: 0; padding-top: var(--nav-h); overflow: visible; }
  .hero__shade, .hero__dim { display: none; }
  .hero__photo { aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
  .hero__copy { position: relative; top: auto; padding-top: var(--space-xl); padding-bottom: var(--space-2xl); }
  .hero__copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (min-width: 48rem) and (max-height: 760px) { .hero__copy h1 { font-size: clamp(2.9rem, 5.6vw + 0.4rem, 6.4rem); } .hero__row { margin-top: var(--space-lg); } }

/* 2 · voyage: the real coast, seen from the satellite, slides by */
.voyage { position: relative; background: var(--night); }
.voyage__stage { position: relative; }
.coastbox { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-2); }
.coast__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 31% 22%; }
.fx.wide .coast__img { right: auto; width: auto; max-width: none; object-fit: fill; transform-origin: 0 40%; will-change: transform; }
.coastbox::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--shade-mid) 0%, var(--shade-none) 26%, var(--shade-mid) 48%, var(--shade-strong) 74%); pointer-events: none; }
.track { display: grid; gap: var(--space-xl); padding: var(--space-2xl) var(--gutter) var(--space-3xl); max-width: var(--container); margin-inline: auto; }
.panel { position: relative; max-width: 62ch; }
.panel h2 { margin-bottom: var(--space-lg); font-size: clamp(2.4rem, 3.4vw + 1rem, 5.4rem); max-width: 14ch; }
.panel p + p { margin-top: var(--space-md); }
.panel p { color: var(--mist); }
.points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md) 0; border-top: 1px solid var(--rule-dark); font-family: var(--font-display); font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem); line-height: 1.2; }
.points .mono { font-family: var(--font-mono); color: var(--brass); font-size: 0.8125rem; padding-top: 0.5em; }
.step__n { display: block; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(5rem, 8vw, 9rem); line-height: 0.8; color: var(--brass); margin-bottom: var(--space-md); }
.step h3 { margin-bottom: var(--space-sm); max-width: 18ch; }
.step p { color: var(--mist); }
.seals li { padding: var(--space-md) 0 var(--space-md) var(--space-lg); color: var(--foam); border-left: 2px solid var(--brass); font-size: var(--text-lg); line-height: 1.4; }
.seals li + li { margin-top: var(--space-md); }
.fx.wide .voyage__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; }
.fx.wide .voyage__sky { position: absolute; inset: 0; }
.fx.wide .coastbox { position: absolute; inset: 0; aspect-ratio: auto; }
.fx.wide .track-view { position: absolute; left: 0; right: 0; bottom: 0; top: 40%; z-index: 3; overflow: hidden; }
.fx.wide .track { display: flex; align-items: flex-start; gap: clamp(64px, 7vw, 128px); width: max-content; max-width: none; padding: var(--space-lg) 0 0 var(--gutter); margin: 0; will-change: transform; }
.fx.wide .panel { flex: none; width: min(520px, 42vw); }
.fx.wide .panel--wide { width: min(700px, 54vw); }
.fx.wide .panel--step { width: min(380px, 30vw); }
.fx.wide .track::after { content: ""; flex: none; width: calc(50vw - 200px); height: 1px; }
.fx.wide .panel { transform: translate3d(0, var(--py, 0px), 0); }

/* 3 · services: a modern sailboat opens through a rectangular aperture */
.intro { position: relative; background: var(--paper); color: var(--ink); --focus: var(--ink); }
/* night sea melts into the chart paper */
.intro::before { content: ""; display: block; height: 22vh; background: linear-gradient(180deg, var(--night) 0%, oklch(40% 0.03 240) 38%, oklch(80% 0.02 90) 78%, var(--paper) 100%); }
/* the sailboat photo fades into the paper column beside it */
.intro__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, oklch(96.5% 0.012 85 / 0) 78%, var(--paper) 100%); }
@media (max-width: 63.99rem) { .intro__media::after { background: linear-gradient(180deg, oklch(96.5% 0.012 85 / 0) 72%, var(--paper) 100%); } }
.intro__stage { position: relative; display: grid; }
.intro__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.aperture { position: absolute; inset: 0; overflow: hidden; transform: scale(var(--as, 1)); will-change: transform; }
.aperture__in { position: absolute; inset: 0; transform: scale(var(--ai, 1)); will-change: transform; }
.aperture__in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro__copy { padding: var(--space-2xl) var(--gutter); background: var(--paper); }
.intro__copy h2 { max-width: 12ch; font-size: clamp(2.9rem, 5.2vw + 0.6rem, 8rem); }
/* without figures the paragraph carries the column: a little larger, a measured gap, set on the same left line as the heading */
.intro__copy .lead { margin-top: var(--space-xl); max-width: 30ch; font-size: clamp(1.15rem, 0.6vw + 0.95rem, 1.45rem); line-height: 1.45; color: var(--ink-2); }
@media (min-width: 64rem) {
  .intro__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); }
  .intro__copy { display: flex; flex-direction: column; justify-content: center; padding: var(--space-2xl) var(--space-xl); }
}
.fx .intro { height: calc(170svh + 22vh); }
.fx .intro__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; }
.fx .intro__media { aspect-ratio: auto; height: 100%; }
@media (max-width: 63.99rem) {
  .fx .intro__stage { grid-template-rows: minmax(0, 1fr) auto; }
  .fx .intro__copy { padding: var(--space-lg) var(--gutter); }
}
@media (max-width: 47.99rem) { .fx .intro { height: auto; } .fx .intro__stage { position: relative; top: auto; height: auto; } .fx .intro__media { aspect-ratio: 4 / 3; height: auto; } .fx .intro__copy .lead { display: block; } }

/* 4 · selector: the same sailboat in profile, one zone per service */
.detail { position: relative; padding: calc(var(--space-3xl) + 14vh) 0 var(--space-3xl); background: linear-gradient(180deg, var(--paper) 0, oklch(62% 0.025 230) 4vh, oklch(26% 0.035 240) 10vh, var(--deep) 16vh); color: var(--foam); overflow: clip; }
.selector__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.selector__head h2 { max-width: 13ch; }
.selector__head p { color: var(--mist); max-width: 36ch; font-size: var(--text-lg); }
@media (min-width: 64rem) { .selector__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.ship { position: relative; }
.ship__frame { position: relative; aspect-ratio: 1600 / 1000; border-radius: var(--radius-m); overflow: hidden; background: var(--night-2); }
.ship__frame .aperture { border-radius: var(--radius-m); }
.ship__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot { position: absolute; top: 0; bottom: 0; width: 100%; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur-mid) var(--ease-out), transform 520ms var(--ease-expo); }
.spot--l { left: 0; transform: translate3d(calc(var(--z0, 0) * 1% - 100%), 0, 0); }
.spot--r { left: 0; transform: translate3d(calc(var(--z1, 100) * 1%), 0, 0); }
.ship.is-lit .spot { opacity: 1; }
.ship__zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.zone { fill: transparent; stroke: none; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.zone:focus-visible { fill: oklch(97% 0.006 85 / 0.12); }
.tag { position: absolute; left: 0; top: 0; z-index: 3; display: none; padding: 10px 14px; min-width: 170px; background: var(--foam); color: var(--ink); border-radius: var(--radius-s); box-shadow: 0 16px 36px var(--shadow); pointer-events: none; transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) + 8px), 0) scale(0.96); transform-origin: 0 100%; transition: opacity var(--dur-short) var(--ease-out), transform 260ms var(--ease-out); }
.js .tag { display: grid; opacity: 0; }
.tag.is-on { opacity: 1; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1); }
.tag.is-follow { transition: opacity var(--dur-short) var(--ease-out), transform 90ms linear; }
.tag .mono { font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--brass-ink); text-transform: uppercase; }
.tag b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-xl); margin-top: var(--space-2xl); counter-reset: sys; }
.systems button { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-xs); align-items: baseline; width: 100%; min-height: 60px; padding: var(--space-md) 0; border: 0; border-top: 1px solid var(--rule-dark); background: none; text-align: left; font-family: var(--font-display); font-size: clamp(1.3rem, 0.6vw + 1.05rem, 1.65rem); line-height: 1.15; transition: color var(--dur-short) var(--ease-out); }
.systems button > span:last-child { display: inline-block; transition: transform 520ms var(--ease-expo); }
.systems .mono { font-size: 0.75rem; color: var(--brass); }
.systems button.is-on { color: var(--brass-hi); }
.systems button.is-on > span:last-child { transform: translate3d(10px, 0, 0); }
.systems button:active { transform: scale(0.985); }
@media (max-width: 47.99rem) { .systems { grid-template-columns: minmax(0, 1fr); } .tag { min-width: 0; } .detail { padding: var(--space-2xl) 0; } }
@media (min-width: 48rem) and (max-width: 63.99rem) { .systems { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 4b · sounders: a real sounder screen behind the section, opening downward like a ping into depth */
.sonar { position: relative; display: grid; align-items: center; min-height: 100svh; padding: var(--space-3xl) 0; background: var(--deep); color: var(--foam); overflow: clip; isolation: isolate; }
/* 4 -> 4b: two slides of one screen each, side by side; the scroll pulls both to the left as one rigid strip */
.pair__seam { display: none; }
.fx.wide .pair { position: relative; }
.fx.wide .pair__seam { display: block; height: 14vh; background: linear-gradient(180deg, var(--paper) 0%, oklch(62% 0.025 230) 30%, oklch(26% 0.035 240) 70%, var(--deep) 100%); }
.fx.wide .pair__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; overflow: clip; background: var(--deep); }
.fx.wide .pair__track { display: flex; width: calc(var(--pw, 100vw) * 2); height: 100%; }
.fx.wide .pair__track.is-moving { will-change: transform; }
.fx.wide .pair__track > section { flex: none; width: var(--pw, 100vw); height: 100%; overflow: hidden; overflow: clip; }
/* the selector slide fits one screen: heading on top, the whole sailboat on the left, the nine services in a column on the right */
.fx.wide .pair .detail { display: flex; align-items: center; padding: clamp(18px, 3.6vh, 44px) 0; background: var(--deep); }
.fx.wide .pair .detail > .container { width: 100%; }
.fx.wide .pair .selector__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-md) var(--space-xl); margin-bottom: clamp(14px, 3vh, 36px); }
.fx.wide .pair .selector__head h2 { max-width: none; font-size: clamp(2.1rem, min(3.6vw, 7.4vh) + 0.3rem, 5.2rem); }
.fx.wide .pair .selector__head p { font-size: var(--text-md); max-width: 30ch; }
.fx.wide .pair .detail__body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 21vw, 300px); gap: clamp(24px, 3vw, 56px); align-items: center; }
.fx.wide .pair .ship { width: var(--ship-w, 100%); max-width: 100%; }
.fx.wide .pair .systems { grid-template-columns: minmax(0, 1fr); margin-top: 0; gap: 0; }
.fx.wide .pair .systems button { min-height: 0; padding: clamp(5px, 1.05vh, 12px) 0; font-size: clamp(1.02rem, 0.45vw + 0.8rem, 1.38rem); }
.fx.wide .pair .systems li:last-child button { border-bottom: 1px solid var(--rule-dark); }
/* the sounder slide fits the same screen */
.fx.wide .pair .sonar { min-height: 0; height: 100%; padding: clamp(18px, 4vh, 56px) 0; }
.fx.wide .pair .sonar__copy h2 { font-size: clamp(2.3rem, min(4.6vw, 8.4vh) + 0.3rem, 6.6rem); }
.fx.wide .pair .sonar__row { padding: clamp(5px, 1vh, 12px) 0; }
.fx.wide .pair .sonar__logo { height: clamp(38px, 5.4vh, 54px); }
.fx.wide .pair .sonar__name { font-size: clamp(1.5rem, min(1.8vw, 4.4vh) + 0.7rem, 2.8rem); }
.sonar__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sonar__drop { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.sonar__in { position: absolute; inset: 0; transform-origin: 50% 0; will-change: transform; }
/* the echo scrolls right to left like a working sounder; scale and depth readout stay put */
.echo { position: absolute; inset: 0; overflow: hidden; background: oklch(55% 0.2 28); }
.echo__track { position: absolute; left: 0; top: 0; height: 100%; display: flex; animation: echo-scroll 15s linear infinite; will-change: transform; }
.echo__track img { flex: none; height: 100%; width: auto; max-width: none; }
.echo__scale { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; }
.echo__read { position: absolute; left: 6%; top: 71.5%; height: 24.3%; width: auto; max-width: none; }
@keyframes echo-scroll { to { transform: translate3d(-20%, 0, 0); } }
.paused .echo__track, .sonar.idle .echo__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .echo__track { animation: none; } }
.sonar__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--deep) 0%, oklch(13% 0.025 248 / 0) 18%, oklch(13% 0.025 248 / 0) 80%, var(--deep) 100%), linear-gradient(90deg, oklch(13% 0.025 248 / 0.93) 0%, oklch(13% 0.025 248 / 0.86) 42%, oklch(13% 0.025 248 / 0.6) 100%); }
.sonar__grid { display: grid; gap: var(--space-2xl); align-items: end; }
@media (min-width: 64rem) { .sonar__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.sonar__copy h2 { max-width: 12ch; }
.sonar__copy .lead { margin-top: var(--space-lg); color: var(--foam); }
.sonar__more { margin-top: var(--space-md); max-width: 44ch; color: var(--mist); }
.sonar__label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.sonar__list { margin-top: var(--space-md); }
.sonar__list li { overflow: clip; border-top: 1px solid var(--rule-dark); }
.sonar__list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.sonar__row { display: flex; align-items: center; gap: clamp(16px, 1.6vw, 24px); padding: var(--space-sm) 0; }
/* every official logo sits on the same light plate, at one optical height, never recoloured */
.sonar__logo { flex: none; display: grid; place-items: center; width: clamp(112px, 9vw, 140px); height: clamp(44px, 3.6vw, 54px); background: var(--white); border-radius: var(--radius-s); }
.sonar__logo img { height: var(--lh, 22px); width: auto; max-width: 82%; object-fit: contain; }
.sonar__name { font-family: var(--font-display); font-size: clamp(1.7rem, 1.8vw + 1rem, 2.8rem); line-height: 1.05; letter-spacing: -0.015em; }
.sonar__list li:nth-child(even) .sonar__name { font-style: italic; color: var(--brass-hi); }
@media (max-width: 47.99rem) { .sonar__logo img { height: calc(var(--lh, 22px) * 0.82); } }
/* echo returns: each name arrives sideways out of its own lane, one after another */
html.js.fx .sonar__list:not(.is-in) .sonar__row { transform: translate3d(-104%, 0, 0); }
html.js.fx .sonar__list .sonar__row { transition: transform 1000ms var(--ease-expo); transition-delay: calc(var(--ei, 0) * 110ms + 120ms); }
@media (max-width: 47.99rem) { .sonar { min-height: 0; padding: var(--space-2xl) 0; } .echo__track { animation-duration: 17s; } }

/* service sheet */
.sheet { width: min(760px, calc(100% - 32px)); max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: var(--radius-m); background: var(--paper); color: var(--ink); --focus: var(--ink); box-shadow: 0 40px 100px var(--shadow); }
.sheet::backdrop { background: var(--backdrop); }
.sheet[open], .legal[open] { display: flex; flex-direction: column; overflow: hidden; }
.sheet__body, .legal__body { overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-in 560ms var(--ease-expo); }
.sheet[open]::backdrop { animation: fade-in var(--dur-mid) var(--ease-out); }
@keyframes sheet-in { from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet__bar { flex: none; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-lg); background: var(--paper); border-bottom: 1px solid var(--rule-light); }
.sheet__bar .mono { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.sheet__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: var(--radius-s); transition: transform var(--dur-press) var(--ease-out); }
.sheet__close:active { transform: scale(0.94); }
.sheet__body { padding: 0 0 var(--space-xl); transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out); }
.sheet__body.is-out { opacity: 0; transform: translate3d(0, 8px, 0); }
.sheet__media { position: relative; margin: 0 0 var(--space-lg); width: 100%; height: min(46vh, 420px); overflow: hidden; background: var(--paper-2); }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; animation: photo-in 900ms var(--ease-expo); }
.sheet__media::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: 100% 50%; animation: wipe 760ms var(--ease-expo) both; }
@keyframes photo-in { from { transform: scale(1.12); } }
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 47.99rem) { .sheet__media { height: 30vh; } .sheet__body h3 { font-size: 2rem; } }
.sheet__text { padding: 0 var(--space-lg); }
.sheet__body h3 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); margin-bottom: var(--space-md); }
.sheet__body .short { font-size: var(--text-lg); line-height: 1.45; margin-bottom: var(--space-lg); max-width: 46ch; }
.sheet__body .long { padding-top: var(--space-lg); border-top: 1px solid var(--rule-light); display: grid; gap: var(--space-md); color: var(--ink-2); max-width: 62ch; }
.sheet__body .long h4 { margin: 0; font-size: var(--text-md); color: var(--ink); }
.sheet__nav { flex: none; display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg) var(--space-lg); }

/* 5 · brands */
.brands { position: relative; overflow: clip; padding: calc(var(--space-3xl) + 18vh) 0 var(--space-3xl); background: linear-gradient(180deg, var(--deep) 0, oklch(30% 0.035 240) 5vh, oklch(70% 0.025 220) 12vh, oklch(92% 0.015 90) 18vh, var(--paper) 22vh); color: var(--ink); --focus: var(--ink); }
.brands__head { display: grid; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.brands__head .lead { color: var(--ink-2); }
@media (min-width: 64rem) { .brands__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.marquee { position: relative; display: grid; gap: var(--space-md); -webkit-mask-image: linear-gradient(90deg, transparent, var(--mask) 8%, var(--mask) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--mask) 8%, var(--mask) 92%, transparent); }
.mrow { display: flex; gap: var(--space-md); width: max-content; will-change: transform; }
.mrow li { flex: none; display: grid; place-items: center; width: 200px; height: 96px; padding: var(--space-sm) var(--space-md); background: var(--white); border-radius: var(--radius-s); box-shadow: 0 1px 0 var(--rule-light); transition: transform 520ms var(--ease-expo); }
.mrow img { max-width: 100%; max-height: 62px; width: auto; height: auto; object-fit: contain; filter: saturate(0.85); }
.bname { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; text-align: center; line-height: 1.1; }
/* brand tiles: a name without a logo is set dark on the light tile, never inheriting a light section colour */
.mrow li, .bgrid li { color: var(--ink); }
.mrow .bname, .bgrid .bname { color: var(--ink); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.005em; padding: 0 var(--space-xs); }
.bgrid .bname:only-child { grid-row: 1 / -1; align-self: center; font-size: 1rem; letter-spacing: -0.01em; overflow-wrap: normal; }

@media (hover: hover) and (pointer: fine) { .mrow li:hover, .bgrid li:hover { transform: translate3d(0, -4px, 0); } }
.marquee__ctl { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-lg); }
.btn--ink { color: var(--ink); }
.bdlg { width: min(980px, calc(100% - 24px)); }
.bdlg__title { font-size: 1.6rem; max-width: none; }
.bdlg .sheet__body { padding: var(--space-lg); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: var(--space-sm); }
.bgrid li { display: grid; grid-template-rows: 64px auto; place-items: center; gap: var(--space-xs); padding: var(--space-md) var(--space-sm); background: var(--white); border-radius: var(--radius-s); text-align: center; transition: transform 520ms var(--ease-expo); }
.bgrid img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.bgrid__name { font-size: var(--text-xs); color: var(--ink-2); }
.bdlg[open] .bgrid li { animation: card-in 620ms var(--ease-expo) both; }
.bdlg[open] .bgrid li:nth-child(n+7) { animation-delay: 50ms; } .bdlg[open] .bgrid li:nth-child(n+13) { animation-delay: 100ms; } .bdlg[open] .bgrid li:nth-child(n+19) { animation-delay: 150ms; } .bdlg[open] .bgrid li:nth-child(n+25) { animation-delay: 200ms; }
@keyframes card-in { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.98); } }
@media (max-width: 47.99rem) { .bdlg .sheet__body { padding: var(--space-md); } .bgrid li { padding: var(--space-sm) var(--space-xs); grid-template-rows: 48px auto; } .bgrid img { max-height: 44px; } }
html:not(.fx) .marquee { -webkit-mask-image: none; mask-image: none; display: flex; flex-wrap: wrap; gap: var(--space-md); max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
html:not(.fx) .mrow { display: contents; }
html:not(.fx) .mrow [aria-hidden="true"], html:not(.fx) [data-marquee-toggle] { display: none; }
.kits { display: grid; gap: var(--space-xl) var(--space-2xl); margin-top: var(--space-2xl); }
@media (min-width: 48rem) { .kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kit h3 { font-size: clamp(1.7rem, 1.4vw + 1.1rem, 2.4rem); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--ink); }
.kit ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-md); font-size: var(--text-lg); }
.kit p { margin-top: var(--space-md); color: var(--ink-2); }
.kit p b { color: var(--ink); font-weight: 600; }

/* 6 · contact, over the real Port Vell */
.contact { position: relative; padding: calc(var(--space-3xl) + 18vh) 0 var(--space-3xl); background: var(--night); overflow: hidden; isolation: isolate; }
/* the paper of the brands sinks into the harbour at night */
.contact::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26vh; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--paper) 0%, oklch(72% 0.025 225) 22%, oklch(32% 0.035 240 / 0.9) 58%, oklch(17.5% 0.03 245 / 0) 100%); }
.contact__bg { position: absolute; inset: -12% 0; z-index: -1; transform: translate3d(0, var(--cy, 0px), 0); will-change: transform; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, oklch(17.5% 0.03 245 / 0.7) 34%, oklch(17.5% 0.03 245 / 0.84) 100%); }
.contact__grid { position: relative; display: grid; gap: var(--space-2xl); }
@media (min-width: 64rem) { .contact__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.contact__head .lead { margin-top: var(--space-md); }
.people { display: grid; gap: var(--space-md); margin-top: var(--space-xl); perspective: 900px; }
@media (min-width: 40rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person { position: relative; padding: var(--space-lg); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px oklch(97% 0.006 85 / 0.08); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 600ms var(--ease-expo); }
.person.is-tilting { transition: transform 120ms linear; }
.person h3 { font-size: 1.7rem; }
.person__role { font-size: var(--text-sm); color: var(--mist); }
.person__tel { display: block; margin: var(--space-md) 0; font-family: var(--font-mono); font-size: clamp(1.35rem, 1.2vw + 1rem, 1.7rem); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.person__act { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); align-items: center; }
.facts { display: grid; margin: var(--space-xl) 0 0; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-sm) 0; border-top: 1px solid var(--rule-dark); }
.facts dt { color: var(--mist); font-size: var(--text-sm); }
.facts dd { margin: 0; }
.contact__side { display: grid; align-content: start; }
.form { padding: var(--space-xl); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px oklch(97% 0.006 85 / 0.08); }
.form h3 { font-size: 2rem; }
.form__direct { margin-top: var(--space-sm); color: var(--mist); font-size: var(--text-sm); }
.form__grid { display: grid; gap: var(--space-md); margin-top: var(--space-lg); }
@media (min-width: 40rem) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f--full { grid-column: 1 / -1; } }
.f { display: grid; gap: var(--space-xs); }
.f label { font-size: var(--text-sm); color: var(--mist); }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--rule-dark); border-radius: var(--radius-s); background: oklch(13% 0.025 248 / 0.7); color: var(--foam); transition: border-color var(--dur-short) var(--ease-out); }
.f textarea { resize: vertical; min-height: 120px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: var(--space-xl); }
.f select option { background: var(--night); color: var(--foam); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
@media (hover: hover) and (pointer: fine) { .f input:hover, .f select:hover, .f textarea:hover { border-color: var(--mist); } }
.f input::placeholder, .f textarea::placeholder { color: var(--placeholder); }
.check { display: flex; gap: var(--space-sm); align-items: center; margin-top: var(--space-lg); }
.check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brass); }
.check .link { min-height: 0; color: var(--foam); }
.check input[aria-invalid="true"] { outline: 2px solid var(--signal-hi); outline-offset: 2px; }
.form__help { min-height: 1.5em; margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--mist); }
.form__help.is-error { color: var(--signal-hi); font-weight: 600; }
.form__act { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); align-items: center; margin-top: var(--space-sm); }

/* footer */
.foot { background: linear-gradient(180deg, var(--night) 0, var(--deep) 160px); color: var(--mist); padding: var(--space-2xl) 0 calc(var(--space-xl) + env(safe-area-inset-bottom)); font-size: var(--text-sm); }
.foot__top { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .foot__top { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.foot .logo { width: 134px; height: 140px; }
.foot strong { color: var(--foam); font-weight: 600; }
.foot p + p { margin-top: var(--space-2xs); }
.foot a { color: var(--foam); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--rule-dark); }
.foot__legal .link { color: var(--foam); }
.credits { margin-top: var(--space-lg); font-size: var(--text-xs); line-height: 1.7; }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 47.99rem) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--deep); border-top: 1px solid var(--rule-dark); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 56px; color: var(--foam); text-decoration: none; font-weight: 550; font-size: var(--text-sm); }
  .callbar a + a { border-left: 1px solid var(--rule-dark); }
  .callbar a:active { background: var(--night-2); }
  body { padding-bottom: 56px; }
}

/* legal dialog (texts carried over from v1) */
.legal { width: min(820px, calc(100% - 24px)); max-height: 88vh; padding: 0; border: 0; border-radius: var(--radius-m); background: var(--paper); color: var(--ink); --focus: var(--ink); box-shadow: 0 40px 100px var(--shadow); }
.legal::backdrop { background: var(--backdrop); }
.legal[open] { animation: sheet-in 560ms var(--ease-expo); }
.legal__bar { flex: none; z-index: 1; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); background: var(--paper); border-bottom: 1px solid var(--rule-light); }
.legal__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin-right: auto; }
.legal__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; }
.legal__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: var(--radius-s); }
.legal__body { padding: var(--space-lg) var(--space-lg) var(--space-2xl); }
.legal__body section + section { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--rule-light); }
.legal__body h2 { font-size: 2.1rem; margin-bottom: var(--space-md); max-width: none; }
.legal__body h3 { font-size: 1.2rem; margin: var(--space-lg) 0 var(--space-xs); }
.legal__body p, .legal__body li { font-size: var(--text-sm); color: var(--ink-2); max-width: 70ch; }
.legal__body ol { list-style: decimal; padding-left: 1.4em; display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.legal__body ul { list-style: disc; padding-left: 1.4em; display: grid; gap: var(--space-xs); }
.legal__body strong { color: var(--ink); }
.legal__id { padding: var(--space-md); background: var(--paper-2); border-radius: var(--radius-s); }
.legal__id p { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html:not(.js) .pins, html:not(.js) [data-motion-toggle], html:not(.js) .marquee__ctl { display: none; }
@media print { .nav, .callbar, .scene { display: none !important; } .hero__photo { display: block !important; } }

/* ==========================================================================
   SCROLL WORLD · a camera flight through real photographs
   One fixed camera layer holds the real photos of each scene. Each photo is split into depth planes
   (translate3d on Z inside a perspective), so a dolly makes the near sailboat grow faster than the sea behind it.
   Each scene arrives from slightly behind, drifts forward while you read, then the camera flies into its focal
   point while the next scene fades up through deep navy. Transform and opacity only.
   ========================================================================== */
body { background: var(--deep); }
.sw-sec { position: relative; z-index: 1; }
.sw-photo { display: none; }

/* ---- the camera ---- */
.cam { display: none; }
.fx.wide .cam { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, var(--night-2), var(--deep) 70%); }
.cam__scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; perspective: 1000px; perspective-origin: var(--fx, 50%) var(--fy, 50%); }
.cam__scene.is-live { visibility: visible; }
.cam__box { position: absolute; inset: 0; margin: auto; width: max(100vw, calc(100vh * var(--ar))); height: max(100vh, calc(100vw / var(--ar))); transform-style: preserve-3d; }
.cam__scene--chart .cam__box { width: calc(100vh * var(--ar)); height: 100vh; margin: 0 0 0 -10vw; }
.cam__layer { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transform-origin: var(--fx, 50%) var(--fy, 50%); backface-visibility: hidden; }
.cam__scene.is-live .cam__layer { will-change: transform; }
.cam__layer--sea { top: 75.44%; height: 24.56%; bottom: auto; }
.cam__scene--chart .cam__layer { transform-origin: 0 40%; }
/* scrims keep every line of copy above AA, whatever the photo does underneath */
.cam__scrim { position: absolute; inset: 0; pointer-events: none; }
.cam__scrim--hero { background: linear-gradient(180deg, oklch(13% 0.03 248 / 0.78) 0, oklch(13% 0.03 248 / 0) 30%), linear-gradient(96deg, oklch(13% 0.03 248 / 0.88) 0%, oklch(13% 0.03 248 / 0.5) 32%, oklch(13% 0.03 248 / 0) 58%); }
.cam__scrim--empresa { background: linear-gradient(180deg, oklch(13% 0.025 248 / 0.55) 0%, oklch(13% 0.025 248 / 0.15) 30%, oklch(13% 0.025 248 / 0.4) 100%); }
.cam__scrim--servicios { background: linear-gradient(90deg, oklch(13% 0.03 248 / 0.9) 0%, oklch(13% 0.03 248 / 0.62) 38%, oklch(13% 0.03 248 / 0.15) 70%), linear-gradient(180deg, oklch(13% 0.03 248 / 0.5), oklch(13% 0.03 248 / 0) 30%); }
.cam__scrim--marcas { background: linear-gradient(180deg, oklch(13% 0.03 248 / 0.72) 0%, oklch(13% 0.03 248 / 0.3) 34%, oklch(13% 0.03 248 / 0.55) 70%, oklch(13% 0.03 248 / 0.9) 100%); }
.cam__scrim--contacto { background: linear-gradient(90deg, oklch(13% 0.03 248 / 0.9) 0%, oklch(13% 0.03 248 / 0.7) 46%, oklch(13% 0.03 248 / 0.45) 100%), linear-gradient(180deg, oklch(13% 0.03 248 / 0.6), oklch(13% 0.03 248 / 0) 30%); }

/* ---- scenes over the camera (desktop with motion) ---- */
.fx.wide .sw-hero { height: 210vh; }
.fx.wide .sw-hero .sw-pin { position: sticky; top: 0; height: 100vh; }
.sw .hero__copy { position: relative; top: auto; padding-top: calc(var(--nav-h) + clamp(24px, 7vh, 88px)); will-change: transform, opacity; }
.fx.wide .sw-empresa { padding: 42vh 0 46vh; }
.sw-stack { display: grid; gap: 30vh; }
.sw-card { position: relative; max-width: 640px; padding: clamp(24px, 3vw, 44px); background: oklch(14% 0.03 248 / 0.84); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px oklch(97% 0.006 85 / 0.07), 0 30px 80px oklch(8% 0.02 245 / 0.35); }
.sw-card:nth-child(even) { justify-self: end; }
.sw-card .panel { max-width: none; }
.sw-card h2 { font-size: clamp(2.3rem, 3vw + 1rem, 4.4rem); margin-bottom: var(--space-lg); max-width: 14ch; }
.sw-card p { color: var(--mist); }
.sw-card p + p { margin-top: var(--space-md); }
.sw-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); max-width: none; justify-self: stretch !important; }
.sw-steps .step h3 { margin-bottom: var(--space-sm); }
.fx.wide .sw-servicios { height: 190vh; }
.fx.wide .sw-servicios .sw-pin { position: sticky; top: calc(var(--nav-h) + 9vh); }
.sw-card--intro { max-width: 600px; }
.sw-card--intro h2 { max-width: 12ch; font-size: clamp(2.8rem, 4.6vw + 0.6rem, 7rem); }
.sw-card--intro .lead { margin-top: var(--space-lg); color: var(--foam); }

/* the selector → sounders strip: the seam now melts from the helm photo into deep navy */
.fx.wide .sw .pair__seam { background: linear-gradient(180deg, oklch(13% 0.025 248 / 0) 0%, oklch(13% 0.025 248 / 0.7) 55%, var(--deep) 100%); }

/* brands and contact sit over their photographs */
.sw .brands { background: transparent; color: var(--foam); --focus: var(--foam); padding-top: 30vh; }
.sw .brands .lead, .sw .kit p { color: var(--mist); }
.sw .kit p b { color: var(--foam); }
.sw .kit h3 { border-bottom-color: oklch(97% 0.006 85 / 0.5); }
.sw .kits { padding: clamp(24px, 3vw, 44px); background: oklch(14% 0.03 248 / 0.84); border-radius: var(--radius-m); }
.sw .brands .mix__b { color: var(--brass-hi); }
.sw .marquee__ctl .btn--quiet { color: var(--foam); }
.sw .contact { background: transparent; padding-top: 34vh; }
.sw .contact::before { display: none; }
.foot { position: relative; z-index: 1; }   /* the footer sits outside main: keep it above the fixed camera */
.sw .facts { padding: var(--space-md) var(--space-lg); background: oklch(14% 0.03 248 / 0.8); border-radius: var(--radius-m); }
.sw .contact__head { padding: clamp(20px, 2.4vw, 36px); background: oklch(14% 0.03 248 / 0.7); border-radius: var(--radius-m); }

/* ---- phones and reduced motion: the same journey, stacked, each scene with its photo ---- */
html:not(.wide) .sw .sw-photo, html:not(.fx) .sw .sw-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
html:not(.wide) .sw .sw-empresa .sw-photo, html:not(.fx) .sw .sw-empresa .sw-photo { aspect-ratio: 16 / 9; object-position: 30% 30%; }
html:not(.wide) .sw-sec, html:not(.fx) .sw-sec { background: var(--deep); }
html:not(.wide) .sw-hero .sw-pin, html:not(.fx) .sw-hero .sw-pin { padding-bottom: var(--space-2xl); }
html:not(.wide) .sw .hero__copy, html:not(.fx) .sw .hero__copy { padding-top: var(--space-xl); }
html:not(.wide) .sw-stack, html:not(.fx) .sw-stack { gap: var(--space-md); padding: var(--space-xl) var(--gutter) var(--space-2xl); }
html:not(.wide) .sw-card, html:not(.fx) .sw-card { max-width: none; justify-self: stretch; }
html:not(.wide) .sw-steps, html:not(.fx) .sw-steps { grid-template-columns: minmax(0, 1fr); }
html:not(.wide) .sw-servicios .sw-pin, html:not(.fx) .sw-servicios .sw-pin { padding: var(--space-lg) var(--gutter) var(--space-2xl); }
html:not(.wide) .sw .brands, html:not(.fx) .sw .brands { padding-top: var(--space-2xl); }
html:not(.wide) .sw .contact, html:not(.fx) .sw .contact { padding-top: var(--space-2xl); }
html:not(.wide) .sw-hero, html:not(.fx) .sw-hero { padding-top: var(--nav-h); }
