/* Archivo and Inter, self-hosted (latin + latin-ext, which covers č š ž): no request to Google before consent. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Stal Mar — one stylesheet, no framework.
   Type: Archivo 700 for headlines, Inter 400 for reading, Archivo 600 caps for labels. Three weights, three roles.
   Motion: transform and opacity only, ease-out, under 300 ms, hover only where a real pointer exists. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Navy, sky and gray, taken from the logo */
  --navy-950: #070C2C;
  --navy-900: #0A113B;
  --navy-800: #131C52;
  --navy-700: #1D2869;
  --navy: #121B55;
  --sky-500: #00ACEC;
  --sky-400: #33BDF0;
  --sky-300: #80D4F5;
  --sky-700: #0075A6;
  --sky-50: #E8F7FD;
  --gray-50: #F4F6F9;
  --gray-100: #EAEEF3;
  --gray-200: #DAE0E8;
  --gray-300: #BDC6D2;
  --gray-500: #5E6A7C;
  --gray-700: #334052;
  --ink: #111A2B;
  --on-dark: #F3F6FA;
  --on-dark-muted: #B3C0D4;
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #B42318;

  --font-display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --utility-h: 0px;
  --bar-h: 64px;
  --header-h: calc(var(--utility-h) + var(--bar-h));
  --radius: 12px;
  --gutter: 16px;
}

@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --utility-h: 34px; --bar-h: 72px; --gutter: 32px; } }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` always wins, even over components that set their own display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
p { margin: 0 0 1em; text-wrap: pretty; hyphens: manual; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
hr.rule { border: 0; border-top: 1px solid var(--gray-200); margin: 32px 0; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 20px; height: 20px; flex: none; }

.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 {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--sky-500); color: var(--navy-950); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky-300); color: var(--navy-950); }

/* ── Type: one display style, one body style, one label style ───────────── */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 104%;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.display { font-size: clamp(2.5rem, 1.55rem + 3.8vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; font-stretch: 108%; }
h1       { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.1; letter-spacing: -0.015em; }
h2       { font-size: clamp(1.625rem, 1.3rem + 1.25vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
h3       { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.3; letter-spacing: -0.005em; }

.label {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 112%;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-700);
  margin: 0 0 12px;
}
.label--sky { color: var(--sky-300); }

.muted { color: var(--gray-500); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--sky-500); color: var(--navy-950); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn--quiet { color: var(--gray-700); padding-inline: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  color: var(--sky-700); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--sky-400); }
  .btn--dark:hover { background: var(--navy-700); }
  .btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
  .btn--quiet:hover { background: var(--gray-100); }
  .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
  .link-arrow:hover { color: var(--navy); }
  .link-arrow:hover .icon { transform: translateX(3px); }
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px;
  background: transparent; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.95); }
kbd {
  font-family: var(--font-body); font-size: 0.75rem; line-height: 1; padding: 3px 6px; border-radius: 5px;
  border: 1px solid currentColor; opacity: 0.6;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  color: var(--on-dark);
  background-color: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 200ms ease, border-color 200ms ease;
}
/* Over a hero the header starts see-through; it turns solid once the hero scrolls away or a menu opens. */
.has-hero .site-header:not([data-solid]):not([data-open]) {
  background-color: transparent;
  border-bottom-color: transparent;
}

.utility { display: none; height: var(--utility-h); font-size: 0.8125rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 1100px) { .utility { display: block; } }
.utility-row { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.utility-tag { color: var(--on-dark-muted); }
.utility-links { display: flex; align-items: center; gap: 20px; }
.utility-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-dark); text-decoration: none; }
.utility-links .icon { width: 15px; height: 15px; color: var(--sky-300); }
/* E-mail is the way in: brighter and bolder than the phone beside it. */
.utility-links .utility-mail { color: #fff; font-weight: 600; }
.utility-links .utility-phone { color: var(--on-dark-muted, var(--on-dark)); opacity: 0.85; }
.utility-links .lang { font-weight: 600; letter-spacing: 0.06em; padding: 2px 8px; border: 1px solid var(--line-dark); border-radius: 6px; }

.bar { display: flex; align-items: center; gap: 24px; height: var(--bar-h); }
.brand { display: block; flex: none; }
.logo { height: 34px; width: auto; }
@media (min-width: 1100px) { .logo { height: 38px; } }

.primary { display: none; flex: 1; }
@media (min-width: 1100px) { .primary { display: block; } }
.primary-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--on-dark);
  transition: background-color 150ms ease, color 150ms ease;
}
.nav-link .chev { width: 16px; height: 16px; opacity: 0.7; transition: transform 200ms var(--ease-out); }
.nav-link[aria-expanded='true'] { background: rgba(255, 255, 255, 0.08); }
.nav-link[aria-expanded='true'] .chev { transform: rotate(180deg); }
.nav-link[aria-current='page'] { color: var(--sky-300); }

.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-btn kbd { display: none; }
@media (min-width: 1100px) { .search-btn kbd { display: inline-block; } }
.bar-cta { display: none; }
@media (min-width: 640px) { .bar-cta { display: inline-flex; min-height: 42px; } }
@media (min-width: 1100px) { .menu-btn { display: none; } }

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { background: rgba(255, 255, 255, 0.08); }
  .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
  .utility-links a:hover { color: var(--sky-300); }
}

/* Mega menus — scale in from the top edge they hang from */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy-900); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
  padding: 28px 0 32px;
  transform-origin: top center;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 120ms ease, transform 120ms var(--ease-out);
}
.mega[data-state='open'] {
  opacity: 1; transform: none;
  transition: opacity 180ms ease, transform 200ms var(--ease-out);
}
/* Moving from one open menu to the next is instant — the menu is already "on". */
.site-header[data-instant] .mega { transition-duration: 0ms; }

.mega-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.mega-list--systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.mega-list--boats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 16px; }
.mega-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 10px;
  text-decoration: none; color: var(--on-dark);
  transition: background-color 150ms ease;
}
.mega-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.mega-item small { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.45; color: var(--on-dark-muted); }
.mega-item[aria-current='page'] strong { color: var(--sky-300); }
.mega-icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0, 172, 236, 0.14); color: var(--sky-300);
}
.mega-aside { padding: 20px; border-radius: var(--radius); background: var(--navy-800); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mega-aside p { margin: 0; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.55; }
.mega-aside .label { color: var(--sky-300); margin: 0; }
.mega-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }

@media (hover: hover) and (pointer: fine) {
  .mega-item:hover { background: rgba(255, 255, 255, 0.06); }
}

/* ── Drawer (phones and tablets) ────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(7, 12, 44, 0.55);
  opacity: 0; transition: opacity 240ms ease;
}
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 61; width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--navy-900); color: var(--on-dark);
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 260ms var(--ease-drawer);
}
.drawer[data-state='open'] { transform: none; transition-duration: 420ms; }
.drawer-backdrop[data-state='open'] { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); flex: none; }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0 24px; border-bottom: 1px solid var(--line-dark); }
.drawer-nav > a, .drawer-nav summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: none;
  border-bottom: 1px solid var(--line-dark); cursor: pointer; list-style: none;
}
.drawer-sub { font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; opacity: 0.7; }
.drawer-nav summary::-webkit-details-marker { display: none; }
.drawer-nav .chev { transition: transform 200ms var(--ease-out); }
.drawer-nav details[open] .chev { transform: rotate(180deg); }
.drawer-nav details ul { padding: 8px 0 12px 12px; }
.drawer-nav details li a { display: block; padding: 10px 0; color: var(--on-dark-muted); text-decoration: none; }
.drawer-foot { display: flex; flex-direction: column; gap: 4px; padding-top: 24px; }
.drawer-foot .btn { margin-bottom: 12px; }
.drawer-contact { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.drawer-contact .icon { color: var(--sky-300); }
.drawer-contact--mail { font-weight: 600; color: #fff; }

/* ── Search ─────────────────────────────────────────────────────────────── */
.search { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: center; align-items: start; padding: 12vh var(--gutter) 24px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(7, 12, 44, 0.6); opacity: 0; transition: opacity 160ms ease; }
.search-panel {
  position: relative; width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 32px 64px -16px rgba(7, 12, 44, 0.45); overflow: hidden;
  opacity: 0; transform: scale(0.98); transform-origin: top center;
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.search[data-state='open'] .search-backdrop,
.search[data-state='open'] .search-panel { opacity: 1; transform: none; }
/* Opened from the keyboard: no animation at all. */
.search[data-instant] .search-backdrop, .search[data-instant] .search-panel { transition-duration: 0ms; }

.search-field { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--gray-200); }
.search-field > .icon { color: var(--gray-500); }
.search-field input {
  flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
}
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .icon-btn { color: var(--gray-500); }
.search-results { overflow-y: auto; padding: 8px; }
.search-results a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink);
}
.search-results a strong { font-weight: 600; }
.search-results a small { grid-column: 1; color: var(--gray-500); font-size: 0.875rem; line-height: 1.4; }
.search-results a .group { grid-row: 1 / span 2; grid-column: 2; align-self: center; margin: 0; font-size: 0.6875rem; color: var(--gray-500); }
.search-results a[aria-selected='true'] { background: var(--sky-50); }
.search-results mark { background: none; color: var(--sky-700); font-weight: 600; }
.search-empty { margin: 0; padding: 20px 20px 24px; color: var(--gray-700); font-size: 0.9375rem; }

/* ── Heroes ─────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; background: var(--navy-950); color: var(--on-dark); overflow: hidden; }
.hero h1, .hero .display { color: #fff; }
.hero .label { color: var(--sky-300); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Photo whose subject sits right of centre (the Selene trawler): keep it in frame on narrow screens. */
.hero-media img.is-subject-right { object-position: 74% center; }
.hero-media img.is-subject-van { object-position: 72% center; } /* RV page: keeps the van in view on narrow screens */
.hero-media::after { content: ''; position: absolute; inset: 0; }
.hero-inner { position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
.hero-lead { font-size: 1.1875rem; line-height: 1.55; color: var(--on-dark); max-width: 58ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero--home { min-height: min(100svh, 900px); display: flex; align-items: flex-end; }
.hero--home .hero-inner { max-width: 1240px; padding-bottom: 72px; }
.hero--home .hero-inner > * { max-width: 720px; }
@media (min-width: 900px) { .hero--home { align-items: center; } }

/* Homepage hero photo: see "Homepage" further down (.hero--whole). sea.js, the earlier animation, stays unused. */
.hero-film-toggle {
  position: absolute; z-index: 2; top: calc(var(--header-h) + 16px); right: clamp(16px, 3vw, 40px);
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: 50%; background: rgba(7, 12, 44, 0.45); color: #fff;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.hero-film-toggle .icon { grid-area: 1 / 1; width: 16px; height: 16px; transition: opacity 150ms ease, scale 200ms var(--ease-out), filter 200ms var(--ease-out); }
.hero-film-toggle .icon-play, .hero-film-toggle[data-held] .icon-pause { opacity: 0; scale: 0.6; filter: blur(2px); }
.hero-film-toggle[data-held] .icon-play { opacity: 1; scale: 1; filter: none; }
.hero-film-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .hero-film-toggle:hover { background: rgba(7, 12, 44, 0.75); } }
@media (prefers-reduced-motion: reduce) { .hero-film-toggle, .hero-film-toggle .icon { transition: none; } .hero-film-toggle:active { transform: none; } }

.hero-path-label { margin-top: 8px; }
.paths { display: grid; gap: 10px; margin-bottom: 28px; }
@media (min-width: 560px) { .paths { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.path {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none; color: #fff;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}
.path:active { transform: scale(0.98); }
.path strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.path small { display: block; color: var(--on-dark-muted); font-size: 0.875rem; line-height: 1.4; }
.path-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--sky-500); color: var(--navy-950); }
.path-arrow { margin-left: auto; color: var(--sky-300); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .path:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(128, 212, 245, 0.45); }
  .path:hover .path-arrow { transform: translateX(3px); }
}

/* One quiet entrance, on the home hero only */
@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion) .js .hero--home .hero-inner > * { animation: rise 600ms var(--ease-out) both; }
  :root:not(.motion) .js .hero--home .hero-inner > :nth-child(2) { animation-delay: 60ms; }
  :root:not(.motion) .js .hero--home .hero-inner > :nth-child(3) { animation-delay: 120ms; }
  :root:not(.motion) .js .hero--home .hero-inner > :nth-child(n + 4) { animation-delay: 180ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.hero--page { background: var(--navy-900); }
.hero--page .hero-inner { padding-bottom: 56px; }
.hero-inner--split { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .hero-inner--split { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }

.hero--image { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.hero--image .hero-inner > :not(.crumbs) { max-width: 720px; }
.hero--image .hero-media::after {
  background:
    linear-gradient(180deg, rgba(7, 12, 44, 0.7) 0%, rgba(7, 12, 44, 0) 25%),
    linear-gradient(0deg, rgba(7, 12, 44, 0.92) 0%, rgba(7, 12, 44, 0.5) 45%, rgba(7, 12, 44, 0.05) 80%);
}

/* Breadcrumbs */
.crumbs { margin-bottom: 20px; font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li { display: inline-flex; gap: 4px; color: var(--gray-500); }
.crumbs li + li::before { content: '/'; opacity: 0.6; }
.crumbs a { display: inline-block; padding-block: 3px; color: var(--gray-700); text-decoration: none; }
.crumbs--dark li { color: var(--on-dark-muted); }
.crumbs--dark a { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* Pages without a hero */
.no-hero main { padding-top: var(--header-h); }
.page-head { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 48px 0 40px; }
.page-lead { font-size: 1.1875rem; line-height: 1.55; color: var(--gray-700); max-width: 58ch; margin: 0; }
.page-head .hero-actions { margin-top: 28px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
@media (min-width: 1000px) { .section { padding: 104px 0; } }
.section--tint { background: var(--gray-50); }
.section--flush { padding: 0; }
.section--top-0 { padding-top: 40px; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head > p:last-child { color: var(--gray-700); margin: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; max-width: none; }
.section-head--row h2 { margin: 0; }

/* Brand strip */
.brand-strip { padding: 40px 0; border-bottom: 1px solid var(--gray-200); }
.brand-strip .label { color: var(--gray-500); }
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; align-items: center; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logos a { display: grid; place-items: center; height: 64px; padding: 8px; border-radius: 8px; }
/* Brand logos always show in their own colours. */
.logos img { max-height: 34px; width: auto; max-width: 110px; object-fit: contain; }

/* System tiles — the whole tile is the link */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile {
  display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: 14px;
  background: #fff; border: 1px solid var(--gray-200); text-decoration: none; color: var(--ink);
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.tile:active { transform: scale(0.98); }
.tile-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: var(--sky-50); color: var(--sky-700); }
.tile-icon .icon { width: 24px; height: 24px; }
.tile-title { margin-bottom: 8px; transition: color 150ms ease; }
.tile p { color: var(--gray-700); font-size: 1rem; line-height: 1.55; margin-bottom: 20px; }
.tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--sky-700); }
.tile-more .icon { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--gray-300); }
  .tile:hover .tile-title { color: var(--sky-700); }
  .tile:hover .tile-more .icon { transform: translateX(3px); }
}
.tiles--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile--compact { padding: 20px; }
.tile--compact .tile-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.tile--compact .tile-title { font-size: 1.125rem; margin-bottom: 14px; }

/* Steps and facts */
.steps { display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { border-top: 2px solid var(--navy); padding-top: 20px; }
.steps p { color: var(--gray-700); font-size: 1rem; line-height: 1.55; margin: 0; }
.step-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--sky-700); margin-bottom: 8px; }
.steps--compact { gap: 24px; }
@media (min-width: 1000px) { .steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts strong { display: block; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1; letter-spacing: -0.015em; color: var(--navy); }
.facts span { color: var(--gray-700); font-size: 1rem; }

/* Projects */
.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.projects > *, .project-media { min-width: 0; }
.project { height: 100%; min-width: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--gray-200); }
.project-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-100); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-body p:not(.label) { color: var(--gray-700); font-size: 1rem; line-height: 1.6; }
.project--text { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
.project--text h3 { color: #fff; }
.project--text .label { color: var(--sky-300); }
.project--text .project-body p:not(.label) { color: var(--on-dark); }
.project--text .tags li { border-color: var(--line-dark); color: var(--on-dark-muted); }
.project--wide { display: grid; }
@media (min-width: 720px) { .project--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .project--wide .project-media { aspect-ratio: auto; min-height: 100%; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li {
  font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--gray-200); color: var(--gray-700);
}

/* Feature bands (Walker Bay, Sasga) */
.feature { display: grid; background: var(--navy-950); color: var(--on-dark); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 560px; } .feature--flip .feature-media { order: 2; } }
.feature-media { position: relative; min-height: 280px; overflow: hidden; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 48px var(--gutter) 56px; max-width: 620px; }
@media (min-width: 900px) { .feature-body { padding: 72px 64px; } }
.feature h2 { color: #fff; }
.feature-body > p:not(.label) { color: var(--on-dark); }
.feature-meta { font-size: 0.9375rem; color: var(--on-dark-muted) !important; margin-bottom: 28px; }
.feature + .feature { border-top: 1px solid var(--line-dark); }

/* Split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.split-media { border-radius: 16px; overflow: hidden; aspect-ratio: 10 / 9; background: var(--gray-100); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body > p:not(.label) { color: var(--gray-700); }
.split--text { align-items: stretch; }
.checks { display: grid; gap: 10px; margin: 8px 0 28px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--sky-700); margin-top: 4px; }

/* Closing band */
.cta-band { background: var(--navy-900); color: var(--on-dark); padding: 64px 0; }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Long technical pages: sidebar + body (Garmin) ──────────────────────── */
/* Equipment pages: one centred column (no contents sidebar), wide enough for the brands' two halves. */
.doc { padding-top: 56px; padding-bottom: 88px; }
.doc-body { min-width: 0; max-width: 1080px; margin-inline: auto; }
.doc-section { padding: 40px 0; border-top: 1px solid var(--gray-200); }
.doc-section:first-child { padding-top: 0; border-top: 0; }
.doc-section > p { max-width: 68ch; color: var(--gray-700); }

.note {
  display: flex; gap: 10px; align-items: flex-start; max-width: 68ch;
  padding: 14px 16px; border-radius: 10px; background: var(--sky-50); color: var(--navy) !important;
  font-size: 1rem; line-height: 1.55;
}
.note .icon { color: var(--sky-700); margin-top: 2px; }


.brand-cards { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.brand-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--gray-200); background: #fff; }
.brand-logo { height: 36px; display: flex; align-items: center; }
.brand-logo img { max-height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.brand-logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--navy); }
.brand-name { font-size: 1.0625rem; margin: 0 0 2px; }
.brand-card p { margin: 0; color: var(--gray-700); font-size: 0.9375rem; line-height: 1.5; }
.brand-card .link-arrow { margin-top: auto; }

/* The energy diagram inside the battery (Mastervolt) section: a subheading and one line, then the diagram. */
.energy-block { margin-top: 36px; scroll-margin-top: calc(var(--header-h) + 24px); }
.energy-block > h3 { margin: 0 0 8px; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); }
.energy-block > p { margin: 0; max-width: 68ch; color: var(--gray-700); }

/* ── Energy system: one system, four situations ───────────────────────────
   Conduits carry glowing dots in the direction energy really moves; the battery
   holds a liquid that rises and falls with the situation. Labels live inside the
   drawing, so the wide drawing only shows when its box is wide enough to keep them
   at reading size; narrower boxes get the tall drawing. */
.energy {
  --e-dot: #DDF4FD;
  position: relative; margin: 28px 0 0; padding: 20px 20px 24px; border-radius: 20px; color: var(--on-dark);
  background:
    radial-gradient(48% 60% at 46% 46%, rgba(0, 172, 236, 0.16), transparent 72%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--navy-900);
  isolation: isolate;
}
.energy-scenes { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-dark); }
.energy-scene {
  position: relative; overflow: hidden; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--on-dark-muted); font: 600 0.9375rem/1 var(--font-body); cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.energy-scene[aria-pressed='true'] { background: var(--on-dark); color: var(--navy-900); }
.energy-scene:active { transform: scale(0.97); }
.energy-scene:focus-visible { outline: 2px solid var(--sky-400); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .energy-scene[aria-pressed='false']:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.07); } }
/* Autoplay progress: a hairline that fills under the current situation. */
.energy-tick { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sky-500); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.energy[data-autoplay] .energy-scene[aria-pressed='true'] .energy-tick { opacity: 1; animation: e-tick var(--e-dwell, 3000ms) linear forwards; }
.energy[data-autoplay][data-paused] .energy-tick { animation-play-state: paused; }
@keyframes e-tick { to { transform: scaleX(1); } }

.energy-stage { container-type: inline-size; margin-top: 12px; }
.energy-svg { display: block; width: 100%; height: auto; overflow: visible; }
.energy-svg--tall { display: none; max-width: 420px; margin-inline: auto; }
@container (max-width: 699px) {
  .energy-svg--wide { display: none; }
  .energy-svg--tall { display: block; }
}
.energy-svg text { font-family: var(--font-body); font-size: 15px; fill: var(--on-dark-muted); paint-order: stroke; stroke: var(--navy-900); stroke-width: 6px; stroke-linejoin: round; }

/* Labels centre on their point unless the drawing anchors them to a side. */
.energy-svg text:not([text-anchor]) { text-anchor: middle; }

/* Conduits */
.e-flow path { fill: none; stroke-linecap: round; }
.e-base { stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; transition: stroke 400ms ease; }
.e-glow { stroke: var(--sky-400); stroke-width: 11; stroke-dasharray: 0 24; opacity: 0; transition: opacity 400ms ease; }
.e-dots { stroke: var(--e-dot); stroke-width: 4.5; stroke-dasharray: 0 24; opacity: 0; transition: opacity 400ms ease; }
.e-flow.is-on .e-base { stroke: rgba(51, 189, 240, 0.42); }
.e-flow.is-on .e-glow { opacity: 0.22; }
.e-flow.is-on .e-dots { opacity: 1; }
.e-link { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 2; stroke-dasharray: 0 7; stroke-linecap: round; }

/* Nodes */
.e-disc { fill: var(--navy-800); stroke: rgba(255, 255, 255, 0.14); stroke-width: 1.5; transition: fill 300ms ease, stroke 300ms ease; }
.e-icon { fill: none; stroke: var(--on-dark-muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: stroke 300ms ease, opacity 300ms ease; }
.e-label text { transition: fill 300ms ease; }
.e-node.is-on .e-disc { fill: #0B3566; stroke: var(--sky-400); }
.e-node.is-on .e-icon { stroke: #fff; opacity: 1; }
.e-node.is-on .e-label text { fill: var(--on-dark); }
.e-halo { fill: none; stroke: var(--sky-400); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* Battery: the Mastervolt MLI from the catalogue; its charge is light rising inside the casing */
.e-shadow-in { stop-color: #000; stop-opacity: 0.55; }
.e-shadow-out { stop-color: #000; stop-opacity: 0; }
.e-charge { mix-blend-mode: screen; opacity: 0.3; }
.e-stop-top { stop-color: var(--sky-300); }
.e-stop-bottom { stop-color: var(--sky-700); }
.e-fluid { transition: transform 1400ms var(--ease-in-out); }
.e-wave--back { fill: var(--sky-300); opacity: 0.45; }
.energy-svg .e-bat-label { font-size: 16px; font-weight: 600; fill: var(--on-dark); }
.energy-svg .e-bat-sub { font-size: 14px; }

/* State readout (monitor pill on the wide drawing, under the battery on the tall one) */
.e-monitor rect { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.e-state { opacity: 0; transition: opacity 240ms ease; }
.e-state text { font-weight: 600; fill: var(--sky-300); }
.e-state-icon { fill: none; stroke: var(--sky-300); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.energy[data-state='charge'] .e-state[data-st='charge'],
.energy[data-state='discharge'] .e-state[data-st='discharge'] { opacity: 1; }
.energy[data-state='discharge'] .e-state text { fill: #FFC98A; }
.energy[data-state='discharge'] .e-state-icon { stroke: #FFC98A; }

/* Caption: what this situation means, swapped with a short blur. */
.energy-note { margin-top: 8px; max-width: 62ch; }
.energy-note-text { margin: 0; min-height: 3em; color: var(--on-dark); font-size: 1rem; line-height: 1.5; transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out), translate 220ms var(--ease-out); }
.energy-note-text.is-swapping { opacity: 0; filter: blur(4px); translate: 0 4px; transition-duration: 140ms; }

@media (prefers-reduced-motion: no-preference) {
  .e-flow.is-on .e-glow, .e-flow.is-on .e-dots { animation: e-flow 900ms linear infinite; }
  .e-flow.is-rev .e-glow, .e-flow.is-rev .e-dots { animation-direction: reverse; }
  .e-node.is-on .e-halo { animation: e-halo 2400ms var(--ease-out) infinite; }
  .e-wave--front { animation: e-wave 3200ms linear infinite; }
  .e-wave--back { animation: e-wave 5200ms linear infinite reverse; }
  /* Nothing moves while the diagram is off screen. */
  .energy:not(.is-live) * { animation-play-state: paused !important; }
}
@media (prefers-reduced-motion: reduce) {
  .e-fluid, .energy-note-text { transition: none; }
}
@keyframes e-flow { to { stroke-dashoffset: -24; } }
@keyframes e-halo { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes e-wave { to { transform: translateX(-120px); } }
@media (max-width: 559px) {
  .energy { padding: 12px 12px 20px; border-radius: 16px; }
  .energy-scenes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; border-radius: 16px; }
  .energy-scene { border-radius: 12px; }
  .energy-note { padding: 0 8px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--gray-200); margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.35; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { color: var(--gray-500); transition: transform 200ms var(--ease-out); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item p { color: var(--gray-700); max-width: 68ch; margin: 0 0 20px; }

/* ── Tenders & boats ────────────────────────────────────────────────────── */
.chipbar {
  position: sticky; top: var(--header-h); z-index: 20;
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--gray-200);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--gray-200); text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--gray-700);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-current='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-current='true']):hover { background: var(--gray-50); border-color: var(--gray-300); } }

.series { padding: 72px 0; scroll-margin-top: calc(var(--header-h) + 64px); }
.series + .series { border-top: 1px solid var(--gray-200); }
.series-grid { display: grid; gap: 32px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) { .series-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; } .series--flip .series-media { order: 2; } }
.series-media { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--gray-100); }
.series-media img { width: 100%; height: 100%; object-fit: cover; }
.series-body > p:not(.label) { color: var(--gray-700); margin-bottom: 24px; }
.spec-title { font-size: 1.125rem; margin-bottom: 14px; }

/* Spec tables — the row under the pointer is tinted so the eye stays on the line */
.spec-wrap { position: relative; }
/* A soft edge tells a phone user there are more models to swipe to; it fades once they reach the end. */
.spec-wrap::after {
  content: ''; position: absolute; top: 1px; right: 1px; bottom: 1px; width: 48px; pointer-events: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  opacity: 0; transition: opacity 200ms ease;
}
.spec-wrap[data-more]::after { opacity: 1; }
.spec-scroll { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; overscroll-behavior-x: contain; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.spec th, .spec td { padding: 12px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--gray-100); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec thead th { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--navy); border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.spec tbody th { font-weight: 400; color: var(--gray-700); }
.spec td { font-weight: 600; color: var(--ink); }
.spec tr > :first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--gray-200); }
.spec thead tr > :first-child { background: var(--gray-50); }
@media (hover: hover) and (pointer: fine) { .spec tbody tr:hover > * { background: #EEF7FC; } }
@media (hover: none) { .spec tbody tr:nth-child(even) > * { background: var(--gray-50); } }

/* Sasga model cards */
.model-group + .model-group { margin-top: 56px; }
.model-group-h { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 1px solid var(--gray-200); font-size: 0.8125rem; }
.model-group-h span { color: var(--gray-500); }
.model-name { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.3; letter-spacing: -0.005em; color: var(--navy); margin: 0 0 0.5em; }
.models { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
@media (max-width: 400px) { .models { grid-template-columns: minmax(0, 1fr); } }
.model { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; background: #fff; scroll-margin-top: calc(var(--header-h) + 24px); }
.model-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-100); }
.model-media img { width: 100%; height: 100%; object-fit: cover; }
.model-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.model-body > p:not(.label) { color: var(--gray-700); font-size: 1rem; line-height: 1.55; }
.model-specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; margin: 4px 0 20px; padding-top: 16px; border-top: 1px solid var(--gray-100); font-variant-numeric: tabular-nums; }
.model-specs dt { font-size: 0.875rem; color: var(--gray-500); }
.model-specs dd { margin: 0; font-weight: 600; }
.model .link-arrow { margin-top: auto; }

/* ── Contact & inquiry form ─────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
.form-card { padding: 28px var(--gutter); margin-inline: calc(var(--gutter) * -1); background: #fff; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 720px) { .form-card { margin: 0; padding: 36px; border: 1px solid var(--gray-200); border-radius: 18px; box-shadow: 0 24px 48px -32px rgba(17, 26, 43, 0.25); } }

.progress { display: flex; gap: 8px; margin-bottom: 28px; }
.progress li {
  flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--gray-200);
  font-size: 0.875rem; font-weight: 600; color: var(--gray-500);
  transition: border-color 200ms ease, color 200ms ease;
}
.progress span { display: none; }
.progress li[data-state='current'] { border-top-color: var(--sky-500); color: var(--navy); }
.progress li[data-state='done'] { border-top-color: var(--navy); color: var(--gray-700); }
.no-js .progress, html:not(.js) .progress { display: none; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .step:not([data-active]) { display: none; }
html:not(.js) .step + .step { margin-top: 40px; }
.step legend { padding: 0; margin-bottom: 20px; }
.step legend h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin: 0; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }

.choices { display: grid; gap: 10px; margin-bottom: 24px; }
@media (min-width: 560px) { .choices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-box {
  display: block; height: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--gray-300);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out);
}
.choice-box strong { display: block; font-weight: 600; line-height: 1.35; }
.choice-box small { display: block; color: var(--gray-500); font-size: 0.875rem; line-height: 1.4; margin-top: 2px; }
.choice:active .choice-box { transform: scale(0.98); }
.choice input:checked + .choice-box { border-color: var(--sky-500); background: var(--sky-50); box-shadow: inset 0 0 0 1px var(--sky-500); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--sky-500); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + .choice-box { border-color: var(--gray-500); } }

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label, .field-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.req { color: var(--sky-700); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--gray-300); background: #fff;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: #8A94A4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--sky-500); box-shadow: 0 0 0 3px rgba(0, 172, 236, 0.25); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 0.875rem; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--gray-300);
  font-size: 0.9375rem; font-weight: 600; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.pill input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--gray-700); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy-900); }
.consent a { color: var(--sky-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fail { margin: 16px 0 0; color: var(--danger); font-size: 0.9375rem; }

.form-done { padding: 12px 0; outline: 0; }
.done-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); }
.done-icon .icon { width: 28px; height: 28px; }
.form-done p { color: var(--gray-700); margin: 0; max-width: 52ch; }

.contact-aside { display: grid; gap: 16px; }
.info-card { padding: 24px; border-radius: 14px; background: var(--gray-50); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.info-card--plain { background: transparent; border: 1px solid var(--gray-200); }
.info-h { font-size: 1.125rem; margin: 0 0 4px; }
.info-card p { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.big-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.big-link small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8125rem; color: var(--gray-500); }
.big-link .icon { color: var(--sky-700); }
/* E-mail first and largest; the phone numbers follow, smaller. */
.big-link--mail { font-size: 1.5rem; }
.big-link--sub { font-size: 1.0625rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .big-link:hover { color: var(--sky-700); } }
.company { margin: 0; display: grid; gap: 8px; width: 100%; }
.company div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.company dt { color: var(--gray-500); }
.company dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 72px 0 0; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; } }
.site-footer .label { color: var(--sky-300); }
.site-footer ul + .label { margin-top: 28px; }
.site-footer li a, .footer-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--on-dark); text-decoration: none; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--sky-300); }
.footer-contact .footer-mail { color: #fff; font-weight: 600; font-size: 1.0625rem; }
.footer-brand p { margin: 20px 0; max-width: 34ch; }
.footer-social { display: flex; gap: 4px; margin-left: -10px; }
.footer-social .icon-btn { color: var(--on-dark); }
.footer-visit address { color: var(--on-dark); margin-bottom: 10px; }
.footer-note { font-size: 0.875rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--on-dark); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .site-footer li a:hover, .footer-contact a:hover, .footer-legal a:hover { color: var(--sky-300); }
  .footer-social .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
}

/* Phone action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: rgba(7, 12, 44, 0.96); border-top: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.action-bar .btn { min-height: 46px; }
/* minmax(0, …): the two labelled buttons may shrink, so on 320–360 px phones the call button stays on screen */
.action-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.action-bar .btn { min-width: 0; overflow: hidden; }
.action-bar .action-call { width: 46px; padding: 0; }
@media (max-width: 374px) { .action-bar { gap: 6px; } .action-bar .btn:not(.action-call) { padding-inline: 8px; font-size: 0.8125rem; gap: 6px; } }

/* Nothing may widen the page sideways (2026-11-27). iPhone Safari can size a grid column to a photo's full
   intrinsic width, so grid tracks use minmax(0, 1fr), and the body clips any stray overflow (clip, unlike
   hidden, leaves sticky elements and page scrolling alone). */
body { overflow-x: clip; }
@media (min-width: 768px) { .action-bar { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: 72px; } }

/* ── Reduced motion: keep the fades, drop the movement ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .btn:active, .icon-btn:active, .path:active, .tile:active, .chip:active, .choice:active .choice-box { transform: none; }
  .mega, .mega[data-state='open'], .search-panel { transform: none; }
  .drawer { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .drawer[data-state='open'] { opacity: 1; }
  .btn .icon, .link-arrow .icon, .tile-more .icon, .path-arrow { transition: none; }
}

/* ── Added with the Selene page ─────────────────────────────────────────── */
.section--dark { background: var(--navy-950); color: var(--on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .label { color: var(--sky-300); }
.section--dark .section-head p:not(.label) { color: var(--on-dark-muted); max-width: 62ch; margin: 0; }
.section--dark .project { border-color: var(--line-dark); }
.section--dark .project--text { background: var(--navy-800); border-color: var(--navy-800); }
.link-arrow--light { color: var(--sky-300); }
@media (hover: hover) and (pointer: fine) { .link-arrow--light:hover { color: #fff; } }
.facts--top { margin: 0 0 56px; padding: 0 0 40px; border-top: 0; border-bottom: 1px solid var(--gray-200); }
.model-group { scroll-margin-top: calc(var(--header-h) + 72px); }
.model-group-intro { max-width: 68ch; color: var(--gray-700); margin: -8px 0 24px; }
.spec-gap { height: 40px; }
.model--noimg .model-body { padding-top: 28px; }
.model--noimg { background: var(--gray-50); }
.model-specs dd { white-space: nowrap; }
.model-specs div:nth-child(odd):last-child { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .models[data-cols='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .models[data-cols='4'] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.section-head--row h2 + p { margin-top: 12px; }

/* Brand cards: product lines and distributor status */
.brand-products { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-products li { font-size: 0.8125rem; line-height: 1.3; padding: 5px 9px; border-radius: 6px; background: var(--gray-50); color: var(--gray-700); }
.brand-status { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8125rem !important; font-weight: 600; color: var(--sky-700) !important; }
.brand-status .icon { width: 16px; height: 16px; }

/* Equipment overview */
.hero-stat { display: grid; gap: 4px; margin: 0; padding: 24px; border-radius: 14px; border: 1px solid var(--line-dark); align-self: end; }
.hero-stat strong { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--sky-300); letter-spacing: -0.02em; }
.hero-stat span { color: var(--on-dark); font-size: 1rem; line-height: 1.45; }
.tile-brands { font-size: 0.875rem !important; line-height: 1.5 !important; color: var(--gray-500) !important; margin-top: -8px; }
.az { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.az-item {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--gray-200);
  text-decoration: none; color: var(--ink); transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.az-item:active { transform: scale(0.98); }
.az-item strong { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--navy); transition: color 150ms ease; }
.az-item small { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.4; }
.az-meta { font-size: 0.8125rem; color: var(--gray-500); margin-top: 4px; }
.az-official { color: var(--sky-700); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .az-item:hover { border-color: var(--gray-300); }
  .az-item:hover strong { color: var(--sky-700); }
}
.hero-chips { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .az-item:active { transform: none; } }

/* Image heroes: a left-hand shade keeps breadcrumbs and text readable over bright photographs */
.hero--image .hero-media::after {
  background:
    linear-gradient(180deg, rgba(7, 12, 44, 0.75) 0%, rgba(7, 12, 44, 0) 32%),
    linear-gradient(0deg, rgba(7, 12, 44, 0.92) 0%, rgba(7, 12, 44, 0.5) 45%, rgba(7, 12, 44, 0.05) 80%),
    linear-gradient(90deg, rgba(7, 12, 44, 0.7) 0%, rgba(7, 12, 44, 0.3) 45%, rgba(7, 12, 44, 0) 75%);
}
/* Stacked logos (Sleipner, Lenco, Osmosea) need more height than wide wordmarks to stay legible. */
.brand-logo { height: 48px; }
.brand-logo img { max-height: 44px; max-width: 150px; }

/* ── Catalogues on brand cards ─────────────────────────────────────────── */
.catalogs { border-top: 1px solid var(--gray-100); padding-top: 12px; }
.catalogs-h { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-700); list-style: none; cursor: default; }
details.catalogs > summary { cursor: pointer; min-height: 32px; }
details.catalogs > summary::-webkit-details-marker { display: none; }
.catalogs-h span { color: var(--gray-500); }
.catalogs-h .chev { width: 16px; height: 16px; margin-left: auto; transition: transform 200ms var(--ease-out); }
details.catalogs[open] .chev { transform: rotate(180deg); }
.catalogs ul { display: grid; gap: 2px; margin: 0 -8px; }
.catalog {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 8px;
  background: none; text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; font: inherit;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.catalog:active { transform: scale(0.98); }
.catalog > .icon { width: 18px; height: 18px; color: var(--sky-700); }
.catalog span { flex: 1; min-width: 0; }
.catalog strong { display: block; font-weight: 600; font-size: 0.875rem; line-height: 1.3; }
.catalog small { display: block; font-size: 0.75rem; line-height: 1.3; color: var(--gray-500); }
.catalog .catalog-go { width: 16px; height: 16px; color: var(--gray-500); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .catalog:hover { background: var(--gray-50); }
  .catalog:hover .catalog-go { transform: translateX(2px); color: var(--sky-700); }
}

/* ── Catalogues page (/katalogi/) — the QR-code page, read on a phone first ── */
.cat-count { margin: 16px 0 0; font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-700); }
.cat-page { padding: 8px 0 72px; }
@media (min-width: 1000px) { .cat-page { padding-bottom: 104px; } }
.cat-system { padding-top: 48px; }
.cat-system-h { margin: 0 0 20px; }
.cat-brands { display: grid; gap: 16px; }
.cat-brand {
  display: grid; gap: 16px; padding: 20px; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff;
  scroll-margin-top: calc(var(--header-h) + 80px);
}
@media (min-width: 900px) { .cat-brand { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 28px 32px; align-items: start; } }
.cat-brand-id img { display: block; max-height: 40px; max-width: 140px; width: auto; height: auto; margin-bottom: 12px; }
.cat-brand-id h3 { margin: 0; font-size: 1.25rem; }
.cat-brand-id p { margin: 4px 0 10px; color: var(--gray-700); }
.cat-list { display: grid; gap: 2px 16px; margin: 0 -8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-list .catalog { min-height: 56px; padding: 8px; }
.cat-list .catalog > .icon { width: 20px; height: 20px; }
.cat-list .catalog strong { font-size: 1rem; }
.cat-list .catalog small { font-size: 0.875rem; color: var(--gray-700); }
@media (max-width: 899px) { .cat-list .catalog { background: var(--gray-50); } }

/* ── Catalogue viewer ──────────────────────────────────────────────────── */
.viewer {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  background: var(--navy-950); color: var(--on-dark);
  opacity: 0; transform: translateY(16px);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.viewer[data-state='open'] { opacity: 1; transform: none; transition-duration: 220ms, 260ms; }
.viewer[data-instant] { transition-duration: 0ms; }
.viewer-bar { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px var(--gutter); padding-top: max(6px, env(safe-area-inset-top)); background: var(--navy-900); border-bottom: 1px solid var(--line-dark); flex: none; }
.viewer-title { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-status { font-size: 0.8125rem; color: var(--on-dark-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.viewer-bar .icon-btn { color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .viewer-bar .icon-btn:hover { background: rgba(255, 255, 255, 0.08); } }
.viewer-body { flex: 1; overflow: auto; overscroll-behavior: contain; outline: 0; -webkit-overflow-scrolling: touch; }
.viewer-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-pages { display: grid; gap: 16px; width: min(1000px, 100%); margin: 0 auto; padding: 20px var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.viewer-page { position: relative; background: #fff; border-radius: 4px; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5); overflow: hidden; }
.viewer-page canvas { display: block; width: 100%; height: 100%; }
.viewer-page:not([data-rendered])::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #f2f4f7, #e9edf2, #f2f4f7); }
.viewer-note { display: grid; place-items: center; align-content: center; gap: 16px; height: 100%; padding: 24px; text-align: center; color: var(--on-dark-muted); }
.viewer-note p { margin: 0; max-width: 40ch; }
@media (prefers-reduced-motion: reduce) { .viewer, .viewer[data-state='open'] { transform: none; } }

/* ── Service, projects, about, boats, privacy ───────────────────────────── */
.narrow { max-width: 820px; }
/* Rows always close: an incomplete last row stretches its tiles across the full width. */
.service-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.service-grid > li { min-width: 0; }
@media (min-width: 640px) and (max-width: 999px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-grid > li { grid-column: span 2; }
  .service-grid > li:nth-child(3n+1):nth-last-child(2), .service-grid > li:nth-child(3n+1):nth-last-child(2) + li { grid-column: span 3; }
  .service-grid > li:nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
.service-item { padding: 24px; border: 1px solid var(--gray-200); border-radius: 14px; }
.service-item .tile-icon { margin-bottom: 16px; }
.service-item p { margin: 0; color: var(--gray-700); font-size: 1rem; line-height: 1.55; }

.cases { display: grid; gap: 72px; }
.case { display: grid; gap: 32px; align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .case--flip .case-media { order: 2; } }
.case--noimg { padding: 32px; border-radius: 16px; background: var(--gray-50); }
@media (min-width: 900px) { .case--noimg { grid-template-columns: minmax(0, 1fr); } .case--noimg .case-body { max-width: 760px; } }
.case-media { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--gray-100); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-body > p:not(.label):not(.case-works-h) { color: var(--gray-700); }
.case-works-h { margin: 24px 0 8px; font-weight: 600; }
.case .checks { margin-bottom: 20px; }
.case .tags { margin-top: 0; }

.split--top { align-items: start; }
.timeline { display: grid; gap: 0; margin-top: 24px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--gray-200); }
.timeline-year { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: 1.5rem; line-height: 1.2; color: var(--sky-700); }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--gray-700); }
.beliefs { display: grid; gap: 32px; }
@media (min-width: 900px) { .beliefs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.beliefs li { border-top: 2px solid var(--navy); padding-top: 20px; }
.beliefs p { margin: 0; color: var(--gray-700); }

/* Team: grouped by what the visitor comes for, the group in the left column like the timeline year.
   Portraits hold initials until photos arrive; a photo drops into the same 4:5 frame. */
.crew-group { display: grid; gap: 20px 32px; padding: 32px 0; border-top: 1px solid var(--gray-300); }
.crew-group:last-child { padding-bottom: 0; }
.crew-area h3 { margin: 0 0 6px; color: var(--sky-700); font-stretch: 108%; }
.crew-list { display: grid; gap: 28px 40px; }
.person { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start; }
.person-portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--navy-900);
  box-shadow: 0 1px 2px rgba(10, 17, 59, 0.12), 0 6px 16px -6px rgba(10, 17, 59, 0.35);
}
.person-portrait span {
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: 1.375rem;
  letter-spacing: 0.02em; color: var(--sky-300);
}
/* A hairline horizon across the lower third, the same sea line as the map facade. */
.person-portrait::after { content: ''; position: absolute; inset: auto 0 22% 0; height: 1px; background: rgba(0, 172, 236, 0.28); }
.person-portrait:has(img)::after { content: none; }
.person-portrait img { width: 100%; height: 100%; object-fit: cover; }
.person-body { min-width: 0; overflow-wrap: break-word; }
.person-name { margin: 0; font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 1.1875rem; line-height: 1.3; color: var(--navy); }
.person-role { margin: 2px 0 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--gray-500); }
.person-text { margin: 0; max-width: 52ch; color: var(--gray-700); }
@media (min-width: 720px) { .crew-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1000px) {
  .crew-group { grid-template-columns: 240px minmax(0, 1fr); }
  .crew-area { padding-top: 2px; }
}

/* Reviews: short quotes, so they carry display type; no cards. */
.reviews-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--gray-700); font-size: 0.9375rem; }
.reviews-meta > .icon { width: 20px; height: 20px; color: var(--sky-500); }
.icon--fill { fill: currentColor; }
.reviews-meta .link-arrow .icon { width: 16px; height: 16px; }
.reviews { display: grid; gap: 32px; }
.review { margin: 0; padding-top: 20px; border-top: 2px solid var(--navy); }
.review blockquote { margin: 0 0 14px; }
.review blockquote p {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-stretch: 104%;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--navy);
  text-wrap: balance; hyphens: manual;
}
.review .q { color: var(--sky-700); }
/* Hang the opening mark into the margin only where the gutter can take it. */
@media (min-width: 1000px) { .review blockquote p { text-indent: -0.45em; } }
.review figcaption { font-size: 0.9375rem; color: var(--gray-500); }
.reviews-note { margin: 24px 0 0; font-size: 0.875rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
@media (hover: hover) and (pointer: fine) {
  .reviews-meta .link-arrow:hover .icon { transform: translate(2px, -2px); }
}

.visit { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.visit address { margin: 16px 0 8px; font-size: 1.125rem; }
.visit .btn { margin-top: 8px; }
.visit-contact { display: grid; gap: 20px; padding: 28px; border-radius: 16px; background: var(--gray-50); }

.lines { display: grid; gap: 20px; }
@media (min-width: 900px) { .lines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.line { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: transform 160ms var(--ease-out), border-color 150ms ease; }
.line:active { transform: scale(0.98); }
.line-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-100); }
.line-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 250ms var(--ease-out); }
.line-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.line-body > p:not(.label) { color: var(--gray-700); }
.line .tile-more { margin-top: auto; }
.line h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .line:hover { border-color: var(--gray-300); }
  .line:hover .line-media img { transform: scale(1.03); }
  .line:hover h2 { color: var(--sky-700); }
  .line:hover .tile-more .icon { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .line:active { transform: none; } .line-media img { transition: none; } }

.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin-top: 40px; }
.prose p { color: var(--gray-700); max-width: 70ch; }

/* ── Brand cards, full width and horizontal ────────────────────────────── */
.brand-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.brand-card {
  display: grid; gap: 16px 32px; padding: 24px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'id' 'main' 'side' 'cat';
}
@media (min-width: 760px) {
  .brand-card { grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(190px, 220px); grid-template-areas: 'id main side' 'cat cat cat'; padding: 28px; }
}
.brand-id { grid-area: id; display: grid; gap: 4px; }
.brand-id .brand-logo { margin-bottom: 8px; }
.brand-id p { margin: 0; }
.brand-main { grid-area: main; align-self: center; }
.brand-side { grid-area: side; display: grid; gap: 14px; justify-items: start; align-self: center; }
@media (min-width: 760px) { .brand-side { justify-items: end; text-align: right; } .brand-status { justify-content: flex-end; } }
.brand-card > .catalogs { grid-area: cat; }
.brand-card .catalogs ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.brand-products { gap: 8px; }
.brand-products li { font-size: 0.875rem; padding: 6px 11px; }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--outline { border-color: var(--gray-300); color: var(--navy); background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { border-color: var(--navy); background: var(--gray-50); }
}

/* ══ Motion ════════════════════════════════════════════════════════════════
   Every animation below answers "why does this move?":
   · page crossfade  — no white flash between pages; the header stays put (180 ms, fade only)
   · scroll reveals  — content settles in as you reach it; tied to scroll, so it never makes anyone wait
   · photo unveil    — images open up and settle as they enter
   · hero settle     — one calm first impression per page load
   · details opening — FAQ answers and catalogue lists arrive instead of popping in
   · success tick    — a rare moment, allowed a little delight
   Movement uses `translate`/`scale` so it never fights the press feedback on `transform`.
   Nothing here needs JavaScript; unsupported browsers simply show everything. */

@keyframes rise-in  { from { opacity: 0; translate: 0 16px; } }
@keyframes fade-in  { from { opacity: 0; } }
@keyframes open-in  { from { opacity: 0; translate: 0 -4px; } }
@keyframes settle   { from { scale: 1.06; } }
@keyframes unveil-r { from { clip-path: inset(7% 6% round 16px); } to { clip-path: inset(0 round 16px); } }
@keyframes unveil   { from { clip-path: inset(6% 0); } to { clip-path: inset(0); } }
@keyframes zoom-out { from { scale: 1.12; } }
@keyframes draw     { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {

  /* The hero photograph settles once as the page opens. */
  :root:not(.motion) .hero-media img { animation: settle 1400ms var(--ease-out) both; }

  /* Opening details */
  .faq-item[open] > p,
  details.catalogs[open] > ul,
  .drawer-nav details[open] > ul { animation: open-in 220ms var(--ease-out); }

  /* Catalogue pages fade in as they finish drawing */
  .viewer-page canvas { animation: fade-in 240ms ease; }

  /* The tick on the thank-you screen draws itself */
  .done-icon path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 420ms var(--ease-out) 120ms forwards; }

  /* Scroll-driven: progress follows the scroll, so it is interruptible by nature and never blocks reading.
     Each item runs on its own entry into view, which gives grids a natural stagger. */
  @supports (animation-timeline: view()) {
    :root:not(.motion) .section-head,
    :root:not(.motion) .doc-section > h2,
    :root:not(.motion) .spec-title,
    :root:not(.motion) .model-group-h,
    :root:not(.motion) .tiles > li,
    :root:not(.motion) .projects > li,
    :root:not(.motion) .models > li,
    :root:not(.motion) .lines > li,
    :root:not(.motion) .az > li,
    :root:not(.motion) .service-grid > li,
    :root:not(.motion) .steps > li,
    :root:not(.motion) .facts > li,
    :root:not(.motion) .beliefs > li,
    :root:not(.motion) .timeline > li,
    :root:not(.motion) .brand-card,
    :root:not(.motion) .faq-item,
    :root:not(.motion) .case-body,
    :root:not(.motion) .logos > li,
    :root:not(.motion) .checks > li {
      animation: rise-in both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    /* Rounded photographs open from slightly inset; full-bleed ones open top and bottom. */
    :root:not(.motion) .split-media,
    :root:not(.motion) .case-media,
    :root:not(.motion) .series-media,
    :root:not(.motion) .project-media,
    :root:not(.motion) .model-media,
    :root:not(.motion) .line-media {
      animation: unveil-r both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    :root:not(.motion) .feature-media { animation: unveil both var(--ease-out); animation-timeline: view(); animation-range: entry 0% cover 35%; }
    :root:not(.motion) .split-media img,
    :root:not(.motion) .case-media img,
    :root:not(.motion) .series-media img,
    :root:not(.motion) .feature-media img {
      animation: zoom-out both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}

/* Reduced motion: no movement anywhere; pages simply cut. */
@media (prefers-reduced-motion: reduce) {
  .done-icon path { stroke-dasharray: none; }
}

/* ══ Homepage ══════════════════════════════════════════════════════════════ */

/* Hero: content, then the two ways in along the bottom edge */
.hero--home { flex-direction: column; justify-content: flex-end; align-items: stretch; }
@media (min-width: 900px) { .hero--home { align-items: stretch; } }
.hero--home .hero-inner { margin-top: auto; padding-bottom: 56px; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 8px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.hero-phone .icon { color: var(--sky-300); }
@media (hover: hover) and (pointer: fine) { .hero-phone:hover { color: var(--sky-300); } }

/* Homepage hero photo (2026-11-26): the whole 16:9 picture is shown, never cropped, the nautical gear along its
   bottom included, with the words laid over it; the two ways in (Opremljam / Kupujem plovilo) sit below it.
   768 px and up: the words sit over the photo, in its own empty navy space on the left (about 37 % of its width);
   below 1200 px they may reach a little past it, so a soft navy veil from the left keeps them readable there.
   Phones (below 768 px, 2026-11-27): the photo is the background behind the words, cropped to the boats on the
   right, with a navy shade rising from the bottom so the headline stays readable (Luka rejected the photo below
   the words, and above them). */
.hero--home.hero--whole { display: block; min-height: 0; }
.hero--whole .hero-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(88svh, 760px); }
.hero--whole .hero-media { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; }
.hero--whole .hero-media::after { content: ''; background: linear-gradient(180deg, rgba(7, 12, 44, 0.45) 0%, rgba(7, 12, 44, 0.1) 22%, rgba(7, 12, 44, 0.55) 46%, rgba(7, 12, 44, 0.9) 66%, rgba(7, 12, 44, 0.96) 100%); }
.hero--whole .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 90% 38%; }
.hero--home.hero--whole .hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; }
.hero--home.hero--whole .hero-inner :is(h1, .hero-lead, .hero-phone) { text-shadow: 0 2px 18px rgba(7, 12, 44, 0.85); }
.hero--home.hero--whole .hero-inner > * { max-width: 640px; }
.hero--whole .hero-lead { margin-bottom: 24px; }
@media (min-width: 768px) {
  .hero--whole { --hero-x: clamp(24px, 5vw, 112px); }
  .hero--whole .hero-stage { flex-direction: row; align-items: center; justify-content: normal; min-height: 0; aspect-ratio: 16 / 9; }
  .hero--whole .hero-media img { object-position: center; }
  .hero--whole .hero-media::after { content: ''; background: linear-gradient(90deg, rgba(7, 12, 44, 0.82) 0%, rgba(7, 12, 44, 0.55) 34%, rgba(7, 12, 44, 0) 56%); }
  .hero--home.hero--whole .hero-inner { width: 100%; max-width: none; margin: 0; padding: calc(var(--header-h) + 8px) 0 8px var(--hero-x); }
  .hero--home.hero--whole .hero-inner > * { max-width: min(600px, max(300px, calc(37vw - var(--hero-x) - 16px))); }
  .hero--whole .display { font-size: clamp(1.75rem, 2.9vw, 3.75rem); }
  .hero--whole .hero-lead { font-size: clamp(0.9375rem, 0.6rem + 0.6vw, 1.25rem); margin-bottom: clamp(14px, 1.6vw, 28px); }
  .hero--whole .hero-paths a:first-child { padding-left: var(--hero-x); }
  .hero--whole .hero-paths a:last-child { padding-right: var(--hero-x); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .hero--whole .hero-actions .btn--lg { min-height: 46px; padding-inline: 20px; font-size: 0.9375rem; }
  .hero--whole .hero-phone { min-height: 46px; font-size: 0.9375rem; }
}
@media (min-width: 1200px) { .hero--whole .hero-media::after { content: none; } }
.hero-paths { position: relative; display: grid; border-top: 1px solid var(--line-dark); background: rgba(7, 12, 44, 0.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media (min-width: 720px) { .hero-paths { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero-paths a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  color: #fff; text-decoration: none; transition: background-color 150ms ease;
}
@media (min-width: 720px) {
  .hero-paths a:first-child { padding-right: 32px; border-right: 1px solid var(--line-dark); }
  .hero-paths a:last-child { padding-left: 32px; }
}
.hero-paths a + a { border-top: 1px solid var(--line-dark); }
@media (min-width: 720px) { .hero-paths a + a { border-top: 0; } }
.hero-paths strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); line-height: 1.2; }
.hero-paths small { display: block; margin-top: 2px; color: var(--on-dark-muted); font-size: 0.9375rem; }
.hero-paths .icon { width: 24px; height: 24px; color: var(--sky-300); transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-paths a:hover { background: rgba(255, 255, 255, 0.05); }
  .hero-paths a:hover .icon { transform: translateX(4px); }
}

/* Anatomy: the boat explained, point by point */
.anatomy-head { display: grid; gap: 16px 64px; margin-bottom: 40px; }
@media (min-width: 900px) { .anatomy-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.anatomy-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; font-stretch: 108%; margin: 0; }
.anatomy-head p { margin: 0; color: var(--gray-700); max-width: 52ch; }
.anatomy-figure { position: relative; }
.anatomy-figure > img { width: 100%; border-radius: 16px; }
.spot {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: rgba(10, 17, 59, 0.82); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.spot .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.spot:active { transform: scale(0.92); }
.spot[aria-expanded='true'] { background: var(--sky-500); color: var(--navy-950); }
.spot[aria-expanded='true'] .icon { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .spot:hover { transform: scale(1.08); } .spot:active { transform: scale(0.94); } }
@media (max-width: 559px) { .spot { width: 30px; height: 30px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); } .spot .icon { width: 14px; height: 14px; } }

/* The card opens from the point it belongs to (origin-aware), never from its own centre. */
.spot-card {
  position: absolute; z-index: 3; top: var(--y); left: var(--x); width: 300px;
  padding: 20px 22px; border-radius: 14px; background: #fff; box-shadow: 0 24px 48px -16px rgba(7, 12, 44, 0.45);
  opacity: 0; scale: 0.96;
  transition: opacity 140ms ease, scale 140ms var(--ease-out);
}
.spot-card[data-side='right'] { translate: 30px -50%; transform-origin: left center; }
.spot-card[data-side='left'] { translate: calc(-100% - 30px) -50%; transform-origin: right center; }
.spot-card[data-state='open'] { opacity: 1; scale: 1; transition-duration: 180ms, 200ms; }
.anatomy-stage[data-instant] .spot-card { transition-duration: 0ms; }
.spot-card-n { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: 0.8125rem; color: var(--sky-700); }
.spot-card h3 { margin-bottom: 6px; }
.spot-card p { font-size: 0.9375rem; line-height: 1.5; color: var(--gray-700); margin-bottom: 10px; }
.spot-card .spot-card-brands { font-size: 0.8125rem; color: var(--gray-500); }
@media (max-width: 759px) {
  .spot-card { position: static; width: auto; translate: none !important; margin-top: 16px; border: 1px solid var(--gray-200); box-shadow: none; }
}
.anatomy-hint { margin: 16px 0 12px; font-size: 0.875rem; color: var(--gray-500); }
.anatomy-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.anatomy-legend button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: #fff; cursor: pointer; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--gray-700);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.anatomy-legend button span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100); font-family: var(--font-display); font-size: 0.75rem; color: var(--navy); transition: background-color 150ms ease; }
.anatomy-legend button:active { transform: scale(0.97); }
.anatomy-legend button[aria-expanded='true'] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.anatomy-legend button[aria-expanded='true'] span { background: var(--sky-500); color: var(--navy-950); }
@media (hover: hover) and (pointer: fine) { .anatomy-legend button:not([aria-expanded='true']):hover { border-color: var(--gray-300); background: var(--gray-50); } }

/* Brand credits: names set like the credits of a film, not a wall of logos */
.credits-grid { display: grid; gap: 32px 72px; }
@media (min-width: 1000px) { .credits-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.credits-grid header p { color: var(--gray-700); margin: 0; }
.credits { display: flex; flex-wrap: wrap; align-items: baseline; }
.credits li { display: inline-flex; align-items: baseline; }
.credits li + li::before { content: '/'; margin: 0 0.45em; color: var(--gray-300); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem); }
.credits a {
  font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); line-height: 1.45; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .credits a:hover { color: var(--sky-700); text-decoration-line: underline; } }

/* Story: one project told properly */
.story { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: var(--on-dark); padding: 112px 0 96px; }
.story-media { position: absolute; inset: 0; z-index: -1; }
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.story-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 12, 44, 0.94) 0%, rgba(7, 12, 44, 0.78) 45%, rgba(7, 12, 44, 0.35) 100%); }
.story-inner { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .story-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 96px; } }
.story h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; font-stretch: 106%; max-width: 16ch; }
.story .label { color: var(--sky-300); }
.story-body > p:not(.label) { color: var(--on-dark); max-width: 54ch; }
.story .checks { margin-bottom: 0; }
.story .checks .icon { color: var(--sky-300); }
.story-more { display: grid; border-top: 1px solid var(--line-dark); }
.story-more a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: #fff; text-decoration: none; transition: color 150ms ease; }
.story-more small { grid-column: 1; color: var(--on-dark-muted); font-size: 0.8125rem; }
.story-more strong { grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }
.story-more .icon { grid-row: 1 / span 2; grid-column: 2; color: var(--sky-300); transition: transform 250ms var(--ease-out); }
.story-all strong { color: var(--sky-300); }
@media (hover: hover) and (pointer: fine) { .story-more a:hover { color: var(--sky-300); } .story-more a:hover .icon { transform: translateX(4px); } }

/* Boats: three tall photographs, Zhik-style */
.boats-h { margin-bottom: 32px; }
.boat-tiles { display: grid; gap: 16px; }
@media (min-width: 800px) { .boat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.boat-tile { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: var(--navy-900); color: #fff; text-decoration: none; transition: transform 160ms var(--ease-out); }
@media (min-width: 800px) { .boat-tile { aspect-ratio: 3 / 4; } }
.boat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.boat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 12, 44, 0.85) 0%, rgba(7, 12, 44, 0) 55%); }
.boat-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2px 12px; padding: 24px; }
.boat-tile-body small { grid-column: 1; font-size: 0.875rem; color: var(--on-dark-muted); }
.boat-tile-body strong { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.boat-tile-body .icon { grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; color: var(--sky-300); transition: transform 250ms var(--ease-out); }
.boat-tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .boat-tile:hover img { transform: scale(1.03); }
  .boat-tile:hover .boat-tile-body .icon { transform: translateX(4px); }
}

.section--flush-top { padding-top: 0; }

/* Contact desk: the phone number, set as large as a headline */
.desk { padding: 88px 0; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.desk-grid { display: grid; gap: 40px 72px; align-items: start; }
@media (min-width: 1000px) { .desk-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.desk h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.1; }
.desk-grid > div > p { color: var(--gray-700); max-width: 44ch; }
.desk-numbers { display: grid; gap: 12px; justify-items: start; }
.desk-phone { display: grid; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; transition: color 150ms ease; }
.desk-phone small { font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; color: var(--gray-500); margin-bottom: 6px; }
.desk-phone--sm { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); margin-top: 8px; }
.desk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.desk-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; text-decoration: none; }
.desk-mail .icon { color: var(--sky-700); }
.desk-phone--mail { font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); overflow-wrap: anywhere; }
.desk-tel { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; }
.desk-tel .desk-mail span { display: grid; }
.desk-tel small { font-weight: 400; font-size: 0.8125rem; color: var(--gray-500); }
.desk-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--gray-700); font-size: 0.9375rem; }
.desk-visit .icon { width: 18px; height: 18px; color: var(--sky-700); }
.desk-visit a { color: var(--sky-700); }
@media (hover: hover) and (pointer: fine) { .desk-phone:hover, .desk-mail:hover { color: var(--sky-700); } }

/* Homepage motion: the points ping twice when the boat first comes into view — once, never looping. */
@keyframes ping { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 2.3; } }
@media (prefers-reduced-motion: no-preference) {
  .spot::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; }
  .anatomy-stage[data-seen] .spot::after { animation: ping 1400ms var(--ease-out) calc(var(--i) * 90ms) 2; }
  @supports (animation-timeline: view()) {
    :root:not(.motion) .anatomy-head,
    :root:not(.motion) .credits li,
    :root:not(.motion) .story-body,
    :root:not(.motion) .story-more li,
    :root:not(.motion) .boat-tiles > li,
    :root:not(.motion) .desk-grid > * {
      animation: rise-in both var(--ease-out);
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    :root:not(.motion) .anatomy-figure > img { animation: unveil-r both var(--ease-out); animation-timeline: view(); animation-range: entry 0% cover 35%; }
    :root:not(.motion) .story-media img { animation: zoom-out both var(--ease-out); animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot:active, .boat-tile:active, .anatomy-legend button:active { transform: none; }
  .spot-card { scale: 1 !important; }
}
/* Points are placed on the photograph alone, so a card below it (phones) never shifts them. */
.anatomy-photo { position: relative; }
.anatomy-photo > img { width: 100%; border-radius: 16px; }
/* Credits: the slash rides at the end of a name, so a wrapped line never starts with one. */
.credits li + li::before { content: none; }
.credits li { white-space: nowrap; }
.credits li:not(:last-child)::after { content: '/'; margin: 0 0.45em; color: var(--gray-300); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.625rem); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root:not(.motion) .anatomy-photo > img { animation: unveil-r both var(--ease-out); animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}

/* ══ Homepage, second pass ═════════════════════════════════════════════════ */

/* Tour: the boat pinned, the systems scrolling past it */
.tour { padding: 104px 0 40px; }
.tour-head { display: grid; gap: 16px 64px; margin-bottom: 48px; }
@media (min-width: 900px) { .tour-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.tour-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.02em; font-stretch: 108%; margin: 0; }
.tour-head p { margin: 0; color: var(--gray-700); max-width: 52ch; }
.tour-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .tour-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.tour-stage { position: sticky; top: var(--header-h); z-index: 5; align-self: start; padding: 12px 0; background: #fff; }
@media (min-width: 900px) { .tour-stage { top: calc(var(--header-h) + 40px); padding: 0; background: none; } }
.tour-photo { position: relative; }
.tour-photo > img { width: 100%; border-radius: 16px; }
.tour-hint { margin: 12px 0 0; font-size: 0.875rem; color: var(--gray-500); }
@media (max-width: 899px) { .tour-hint { display: none; } }
.spot {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(10, 17, 59, 0.82); color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.02em;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 6px 18px -6px rgba(0, 0, 0, 0.5);
  transition: scale 250ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease, transform 160ms var(--ease-out);
}
.spot:active { transform: scale(0.92); }
.tour[data-has-active] .spot:not([data-active]) { opacity: 0.72; }
.spot[data-active] { scale: 1.2; background: var(--sky-500); color: var(--navy-950); border-color: #fff; }
@media (max-width: 559px) { .spot { width: 28px; height: 28px; font-size: 0.625rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22); } }
.tour-steps { counter-reset: none; }
.tour-step {
  display: flex; flex-direction: column; justify-content: center; min-height: 58vh; padding: 32px 0;
  border-top: 1px solid var(--gray-200); opacity: 0.35; transition: opacity 250ms ease;
}
.tour-step:last-child { min-height: 46vh; }
.tour-step[data-active] { opacity: 1; }
@media (max-width: 899px) { .tour-step { min-height: 44vh; } }
.tour-n { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--sky-700); font-variant-numeric: tabular-nums; }
.tour-n span { color: var(--gray-300); }
.tour-step h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; }
.tour-step > p:not(.tour-n) { color: var(--gray-700); max-width: 44ch; }
.tour-brands { font-size: 0.9375rem; color: var(--gray-500) !important; }
.tour-step .link-arrow { align-self: flex-start; }

/* Credits: two rows of names, drifting in opposite directions with the scroll */
.credits-band { padding: 104px 0; background: var(--gray-50); overflow: hidden; }
.credits-head { display: grid; gap: 16px 64px; margin-bottom: 48px; }
@media (min-width: 900px) { .credits-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.credits-head h2 { margin: 0; }
.credits-head p { margin: 0; color: var(--gray-700); max-width: 52ch; }
.drift { display: grid; gap: 4px; padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; }
.drift-row { display: flex; flex-wrap: wrap; align-items: baseline; }
.drift-row li { white-space: nowrap; display: inline-flex; align-items: baseline; }
.drift-row li:not(:last-child)::after, .drift-row--a li:last-child::after { content: '/'; margin: 0 0.35em; color: var(--sky-500); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1rem + 2vw, 3rem); }
.drift-row a {
  font-family: var(--font-display); font-weight: 700; font-stretch: 106%; font-size: clamp(1.75rem, 1.1rem + 2.8vw, 4rem); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; text-decoration-thickness: 3px; text-underline-offset: 8px; transition: color 150ms ease;
}
.drift-row--b a { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .drift-row a:hover { color: var(--sky-700); text-decoration-line: underline; }
  .drift-row--b a:hover { color: var(--navy); -webkit-text-stroke-color: transparent; }
}
.drift-row a:focus-visible { color: var(--sky-700); -webkit-text-stroke-color: transparent; }

/* Story: the Atlantic route draws itself */
.story-side { display: grid; gap: 28px; }
.route { width: 100%; height: auto; overflow: visible; }
.route-base { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; stroke-dasharray: 3 7; }
.route-line { fill: none; stroke: var(--sky-300); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-end { fill: var(--sky-300); }
.route-boat { offset-path: path('M24 150 C 170 20, 430 20, 576 150'); offset-rotate: 0deg; offset-distance: 100%; }
.route-boat circle { fill: #fff; }
.route-boat path { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-linejoin: round; }
.route text { fill: var(--on-dark-muted); font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Boats: an index of names; the photograph follows the cursor on desktop */
.boats-index { position: relative; }
/* A news article's sources: a quiet list of outbound links under the text. */
.post-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.9375rem; }
.post-sources a { color: var(--sky-700); text-underline-offset: 3px; overflow-wrap: anywhere; }
.boat-rows { border-top: 1px solid var(--gray-200); }
.boat-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: 'n name arrow' 'n meta arrow'; align-items: center; gap: 4px 20px;
  padding: 28px 0; border-bottom: 1px solid var(--gray-200); color: var(--navy); text-decoration: none;
  transition: opacity 250ms ease;
}
@media (min-width: 900px) { .boat-row { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 340px) 32px; grid-template-areas: 'n name meta arrow'; padding: 36px 0; } }
.boat-row-n { grid-area: n; font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--sky-700); align-self: start; padding-top: 0.6em; }
.boat-row-name { grid-area: name; font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.75rem); line-height: 1; letter-spacing: -0.025em; transition: translate 300ms var(--ease-out), color 200ms ease; }
/* The brand logos in place of the names: each logo's height set by eye so the three weigh the same
   (Sasga's wide script, Walker Bay's oval, Selene's tall crest); 62 % of that on phones. */
.boat-row-logo { display: block; line-height: 0; --s: 0.62; }
.boat-row-logo img { display: block; width: auto; max-width: 100%; height: calc(var(--h, 72px) * var(--s)); object-fit: contain; object-position: left center; }
.boat-row-logo[data-key='sasga'] { --h: 64px; }
.boat-row-logo[data-key='selene'] { --h: 108px; }
.boat-row-logo[data-key='tenders'] { --h: 86px; }
@media (min-width: 900px) { .boat-row-logo { --s: 1; } }
.boat-row-meta { grid-area: meta; display: grid; gap: 2px; }
.boat-row-meta strong { font-weight: 600; font-size: 1rem; color: var(--ink); line-height: 1.4; }
.boat-row-meta small { font-size: 0.875rem; color: var(--gray-500); }
.boat-row > .icon { grid-area: arrow; width: 28px; height: 28px; color: var(--sky-700); transition: translate 250ms var(--ease-out); }
.boat-row-thumb { display: none; }
@media (max-width: 899px) {
  .boat-row { grid-template-columns: 36px minmax(0, 1fr) 96px; grid-template-areas: 'n name thumb' 'n meta thumb'; }
  .boat-row > .icon { display: none; }
  .boat-row-thumb { display: block; grid-area: thumb; width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
}
@media (hover: hover) and (pointer: fine) {
  .boat-rows:hover .boat-row:not(:hover) { opacity: 0.4; }
  .boat-row:hover .boat-row-name { translate: 12px 0; color: var(--sky-700); }
  .boat-row:hover > .icon { translate: 6px 0; }
}
.boat-preview {
  position: fixed; top: 0; left: 0; z-index: 25; width: 360px; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  pointer-events: none; box-shadow: 0 28px 60px -20px rgba(7, 12, 44, 0.5);
  opacity: 0; scale: 0.9; transform-origin: left center;
  transition: opacity 180ms ease, scale 260ms var(--ease-out);
}
.boat-preview img { width: 100%; height: 100%; object-fit: cover; }
.boat-preview[data-visible] { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .boat-preview { display: none; } }

/* Reading progress on inner pages */
.read-progress { display: none; }

/* ── Form fields ──────────────────────────────────────────────────────── */
.field label { transition: color 150ms ease; }
.field:focus-within > label { color: var(--sky-700); }
.field input:user-valid:not(:placeholder-shown), .field textarea:user-valid:not(:placeholder-shown) {
  border-color: #7FC8A9;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  padding-right: 40px;
}
.field textarea:user-valid:not(:placeholder-shown) { background-position: right 14px top 14px; }
.field input:user-valid:not(:placeholder-shown):focus, .field textarea:user-valid:not(:placeholder-shown):focus { border-color: var(--sky-500); }
.field textarea { field-sizing: content; min-height: 132px; max-height: 480px; }
.field-error:not([hidden]) { animation: open-in 200ms var(--ease-out); }
.choice-box { position: relative; padding-right: 44px; }
.choice-box::after {
  content: ''; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23070C2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") no-repeat center / 12px;
  opacity: 0; scale: 0.5; transition: opacity 150ms ease, scale 220ms var(--ease-out);
}
.choice input:checked + .choice-box::after { opacity: 1; scale: 1; }
.progress li { position: relative; border-top-color: var(--gray-200) !important; }
.progress li::before {
  content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 3px; background: var(--sky-500);
  transform: scaleX(0); transform-origin: left center; transition: transform 380ms var(--ease-out), background-color 200ms ease;
}
.progress li[data-state='current']::before { transform: scaleX(1); }
.progress li[data-state='done']::before { transform: scaleX(1); background: var(--navy); }
/* ── Inquiry form in three steps (2026-11-26): kind → details for that kind → contact ── */
.progress-wrap { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.progress-wrap .progress { flex: 1; margin: 0; }
.progress .progress-n { display: none; }
.progress .progress-t { display: inline; }
.progress-count { margin: 0; padding-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; line-height: 1; color: var(--gray-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-count span { color: var(--navy); font-size: 1.25rem; }
@media (max-width: 559px) { .progress .progress-t { display: none; } .progress li { padding-top: 0; } .progress-count { padding-top: 0; margin-top: -9px; } }
html:not(.js) .progress-wrap { display: none; }
.form-note { margin: -8px 0 22px; color: var(--gray-500); font-size: 0.875rem; line-height: 1.5; }
.form-note strong { color: var(--ink); font-weight: 600; }
.sub, .panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.sub { margin-bottom: 20px; }
.sub > legend { padding: 0; }
.sub > legend.field-label { margin-bottom: 8px; }
.panel[hidden], [data-when][hidden] { display: none; }
.panel:not([hidden]), [data-when]:not([hidden]) { animation: open-in 220ms var(--ease-out); }
.opt { font-weight: 400; font-size: 0.875rem; color: var(--gray-500); }
.sub > .field-error { margin-top: 8px; }
.choices.choices--kind, .choices.choices--sub { margin-bottom: 0; }
.choices--sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choices--kind { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .choices--kind { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice--kind .choice-box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; padding: 16px 44px 16px 16px; border-radius: 14px; }
.choice--kind .choice-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sky-50); color: var(--sky-700); transition: background-color 150ms ease, color 150ms ease; }
.choice--kind .choice-icon .icon { width: 22px; height: 22px; }
.choice--kind strong { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; color: var(--navy); }
.choice--kind input:checked + .choice-box .choice-icon { background: var(--navy-900); color: #fff; }
@media (min-width: 640px) {
  .choice--kind .choice-box { grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 4px; min-height: 176px; padding: 20px 18px; }
  .choice--kind .choice-icon { grid-row: auto; margin-bottom: 12px; }
}
.field select:disabled { background: var(--gray-50); color: var(--gray-500); cursor: not-allowed; }
.phone { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 8px; }
@media (max-width: 479px) { .phone { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); } }
.step-nav .icon-back { transform: rotate(180deg); }
.btn--send { text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 479px) {
  .step-nav { flex-direction: column-reverse; align-items: stretch; }
  .step-nav > span:empty { display: none; }
  .step-nav .btn { width: 100%; justify-content: center; }
}
@keyframes busy-in { from { filter: blur(3px); opacity: 0.6; } }
.btn[data-busy] { animation: busy-in 240ms ease; cursor: progress; }

/* ── Scroll-driven, second pass ───────────────────────────────────────── */
@keyframes drift-a { from { translate: 4% 0; } to { translate: calc(-100% + 92vw) 0; } }
@keyframes drift-b { from { translate: calc(-100% + 92vw) 0; } to { translate: 4% 0; } }
@keyframes route-draw { from { stroke-dashoffset: 1; } }
@keyframes route-sail { from { offset-distance: 0%; } }
@keyframes hero-drift { to { translate: 0 14%; } }
@keyframes hero-lift { to { opacity: 0; translate: 0 -48px; } }
@keyframes grow-x { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Hero: the photograph falls behind, the words lift away as you leave */
    :root:not(.motion) .hero--home:not(.hero--whole) .hero-media { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    :root:not(.motion) .hero--home:not(.hero--whole) .hero-inner { animation: hero-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }

    /* Credits drift — a keyboard user tabbing in gets the plain wrapped list instead */
    .drift { max-width: none; padding-inline: 0; }
    .drift-row { flex-wrap: nowrap; width: max-content; }
    .drift-row--a { animation: drift-a linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .drift-row--b { animation: drift-b linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .drift:focus-within { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
    .drift:focus-within .drift-row { animation: none; flex-wrap: wrap; width: auto; }

    /* Route */
    :root:not(.motion) .route-line { animation: route-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
    :root:not(.motion) .route-boat { animation: route-sail linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }

    /* Tour steps and boat rows settle in */
    :root:not(.motion) .tour-step h3,
    :root:not(.motion) .tour-step > p,
    :root:not(.motion) .boat-row-name,
    :root:not(.motion) .boat-row-meta { animation: rise-in both var(--ease-out); animation-timeline: view(); animation-range: entry 0% entry 60%; }
    :root:not(.motion) .tour-photo > img { animation: unveil-r both var(--ease-out); animation-timeline: view(); animation-range: entry 0% cover 30%; }

    /* Reading progress under the header on inner pages */
    .read-progress { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sky-500); transform-origin: left center; animation: grow-x linear both; animation-timeline: scroll(root); }
  }
}
/* Stacked story (below 1000 px): keep the route drawing at a sensible size */
.route { max-width: 520px; }

/* Hero: the photograph is clipped to its frame, so its settle-in zoom never shows a strip past the shade */
.hero-media { overflow: hidden; }

/* ══ Tour, full-width ══════════════════════════════════════════════════════
   The boat fills the width and stays pinned; one pointer walks from point to point. */
.tour { padding: 104px 0 0; }
.tour-scroll { position: relative; }
.tour-pin {
  position: sticky; top: var(--header-h); display: flex; flex-direction: column;
  height: calc(100svh - var(--header-h)); background: var(--navy-950); overflow: hidden;
}
.tour-stage { position: relative; top: auto; flex: 1; min-height: 0; padding: 0; background: none; z-index: auto; align-self: stretch; }
.tour-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(7, 12, 44, 0.35) 0%, rgba(7, 12, 44, 0) 22%, rgba(7, 12, 44, 0) 70%, rgba(7, 12, 44, 0.55) 100%); }

/* Points: plain dots, no numbers; the active one hands over to the pointer's ring */
.tour .spot {
  position: absolute; left: 0; top: 0; z-index: 2; display: block;
  width: 16px; height: 16px; margin: -8px 0 0 -8px; padding: 0; border-radius: 50%;
  background: #fff; border: 3px solid rgba(10, 17, 59, 0.85); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28);
  font-size: 0; cursor: pointer; scale: 1; opacity: 1;
  transition: scale 200ms var(--ease-out), opacity 200ms ease;
}
.tour .spot[data-active] { opacity: 0; scale: 0.6; }
@media (hover: hover) and (pointer: fine) { .tour .spot:not([data-active]):hover { scale: 1.35; } }

.callout { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; transition: translate 560ms var(--ease-in-out); }
.callout-ring {
  position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: var(--sky-500); border: 3px solid #fff; box-shadow: 0 0 0 9px rgba(0, 172, 236, 0.28), 0 8px 20px -6px rgba(0, 0, 0, 0.5);
}
.callout-line { position: absolute; left: 0; top: -1px; width: 88px; height: 2px; background: #fff; transform-origin: 0 50%; transition: rotate 560ms var(--ease-in-out); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.callout[data-q='ne'] .callout-line { rotate: -45deg; }
.callout[data-q='nw'] .callout-line { rotate: -135deg; }
.callout[data-q='se'] .callout-line { rotate: 45deg; }
.callout[data-q='sw'] .callout-line { rotate: 135deg; }

/* The card sits at the end of the line; while the pointer travels it steps aside (blurred out) */
.callout-card {
  position: absolute; left: 0; top: 0; z-index: 4; width: min(340px, 42vw);
  padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(10, 17, 59, 0.08);
  /* Solid, no backdrop blur: re-blurring the moving 3D scene behind the card every frame cost frames. */
  background: #fff;
  color: var(--navy); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  translate: calc(var(--cx, 0px) + 62px) calc(var(--cy, 0px) - 100% - 62px);
  transition: translate 560ms var(--ease-in-out), opacity 220ms ease, filter 220ms ease;
}
.callout-card[data-q='nw'] { translate: calc(var(--cx, 0px) - 100% - 62px) calc(var(--cy, 0px) - 100% - 62px); }
.callout-card[data-q='se'] { translate: calc(var(--cx, 0px) + 62px) calc(var(--cy, 0px) + 62px); }
.callout-card[data-q='sw'] { translate: calc(var(--cx, 0px) - 100% - 62px) calc(var(--cy, 0px) + 62px); }
.callout-card[data-swap] { opacity: 0; filter: blur(6px); }
.callout-kicker { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-stretch: 112%; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700); }
.callout-card h3 { color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
.callout-card p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--navy); }
.callout-card .callout-brands { margin-bottom: 14px; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; color: #fff; }
/* The system's brands as logos, in colour on small white tiles. */
.callout-logos { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; padding: 0; list-style: none; }
.callout-logos li { display: flex; }
/* Each logo is a button that opens the brand's sheet: it lifts and takes a sky outline under the pointer. */
.callout-logo {
  display: grid; place-items: center; height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--gray-200); touch-action: manipulation;
  transition: box-shadow 200ms var(--ease-out), translate 200ms var(--ease-out), scale 140ms var(--ease-out);
}
.callout-logo:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.callout-logo:active { scale: 0.96; }
@media (hover: hover) and (pointer: fine) {
  .callout-logo:hover { translate: 0 -2px; box-shadow: inset 0 0 0 1px var(--sky-500), 0 10px 20px -12px rgba(10, 17, 59, 0.45); }
}
@media (prefers-reduced-motion: reduce) { .callout-logo { transition: box-shadow 200ms ease; } .callout-logo:active { scale: 1; } .callout-logo:hover { translate: none; } }
.callout-logos img { display: block; width: auto; height: 22px; max-width: 112px; object-fit: contain; }
.callout-logos li[data-key="shipcontroller"] img { height: 32px; }
/* Zipwake and Sleipner files carry wide transparent margins: draw them larger so the marks match Lenco; the empty edge may overhang the button. */
.callout-logos li:is([data-key="zipwake"], [data-key="sleipner"]) img { height: 50px; max-width: 120px; margin-block: -4px; }
.callout-logos span { color: var(--navy); font: 700 0.875rem/1 var(--font-display); }
.callout-card .link-arrow { color: var(--sky-700); }
@media (hover: hover) and (pointer: fine) { .callout-card .link-arrow:hover { color: var(--navy); } }

/* Names along the bottom: where you are, and a way to jump */
.tour-chips { position: relative; z-index: 5; display: flex; gap: 6px; padding: 12px var(--gutter); overflow-x: auto; scrollbar-width: none; background: var(--navy-950); border-top: 1px solid var(--line-dark); flex: none; }
.tour-chips::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .tour-chips { justify-content: center; } }
.tour-chips button {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); background: none; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--on-dark-muted);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.tour-chips button:active { transform: scale(0.97); }
.tour-chips button[aria-current='true'] { background: #fff; border-color: #fff; color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .tour-chips button:not([aria-current='true']):hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); } }
/* Phones: one line with the current system, its place in the eight, and back/next. */
.tour-stepper { display: none; }
@media (max-width: 759px) {
  .tour-chips { display: none; }
  .tour-stepper {
    position: relative; z-index: 5; flex: none; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px;
    padding: 10px var(--gutter); background: var(--navy-950); border-top: 1px solid var(--line-dark);
  }
  .tour-stepper-now { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 0; min-width: 0; text-align: center; }
  .tour-stepper-now strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 1rem; color: #fff; }
  .tour-stepper-now span { flex: none; font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--on-dark-muted); }
  .tour-stepper-btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-dark); background: none; color: #fff; cursor: pointer;
    transition: transform 160ms var(--ease-out), opacity 150ms ease;
  }
  .tour-stepper-btn .icon { width: 18px; height: 18px; }
  .tour-stepper-btn--prev .icon { rotate: 180deg; }
  .tour-stepper-btn:active { transform: scale(0.94); }
  .tour-stepper-btn:disabled { opacity: 0.3; cursor: default; transform: none; }
}

/* Phones: the whole boat (no crop), the card below it */
@media (max-width: 759px) {
  .tour-pin { height: auto; }
  .tour-stage { flex: none; }
  .tour-stage { aspect-ratio: 1100 / 730; }
  .callout-line { display: none; }
  .callout-card { position: relative; translate: none !important; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .callout-card[data-swap] { opacity: 0.2; }
  .tour .spot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-width: 2px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
  .callout-ring { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 6px rgba(0, 172, 236, 0.3); }
}
@media (prefers-reduced-motion: reduce) {
  .callout, .callout-line, .callout-card { transition: none; }
}

/* Brand wall: all 25 names, none cut off; alternate names in outline, each settles in as you scroll */
.brand-wall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.1em; }
.brand-wall li { display: inline-flex; align-items: baseline; white-space: nowrap; }
.brand-wall li:not(:last-child)::after { content: '/'; margin: 0 0.3em; color: var(--sky-500); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.25rem); }
.brand-wall a {
  font-family: var(--font-display); font-weight: 700; font-stretch: 106%; font-size: clamp(1.5rem, 1rem + 2vw, 3rem); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; text-decoration-thickness: 3px; text-underline-offset: 7px; transition: color 150ms ease;
}
.brand-wall li:nth-child(even) a { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.brand-wall a:focus-visible { color: var(--sky-700); -webkit-text-stroke-color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .brand-wall a:hover { color: var(--sky-700); text-decoration-line: underline; }
  .brand-wall li:nth-child(even) a:hover { color: var(--navy); -webkit-text-stroke-color: transparent; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root:not(.motion) .brand-wall li { animation: rise-in both var(--ease-out); animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}
/* Small screens: outline type gets too thin to read, so alternate names switch to solid sky blue */
@media (max-width: 559px) {
  .brand-wall li:nth-child(even) a { color: var(--sky-700); -webkit-text-stroke: 0; }
}

/* ══ Cookie consent ════════════════════════════════════════════════════════
   A card at the bottom left, not a wall across the page. It slides up once per visit. */
.cookie-card {
  position: fixed; z-index: 55; left: var(--gutter); right: var(--gutter); bottom: 16px;
  max-width: 460px; padding: 22px 22px 18px; border-radius: 16px;
  background: #fff; color: var(--ink); border: 1px solid var(--gray-200);
  box-shadow: 0 30px 60px -20px rgba(7, 12, 44, 0.45);
  opacity: 0; translate: 0 16px;
  transition: opacity 200ms ease, translate 200ms var(--ease-out);
}
.cookie-card[data-state='open'] { opacity: 1; translate: 0 0; transition-duration: 300ms, 360ms; }
.cookie-card[data-instant] { transition-duration: 0ms !important; }
@media (max-width: 767px) { .cookie-card { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.consent-h { font-size: 1.125rem; margin: 0 0 6px; }
.consent-p { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.5; color: var(--gray-700); }
.consent-p a { color: var(--sky-700); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-actions .btn { flex: 1 1 auto; }
.consent-opts { display: grid; gap: 4px; margin: 0 0 14px; padding: 8px 0; border-block: 1px solid var(--gray-100); max-height: 44vh; overflow-y: auto; }
.consent-opts:not([hidden]) { animation: open-in 220ms var(--ease-out); }
.consent-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 2px; cursor: pointer; }
.consent-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-opt strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.consent-opt small { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--gray-500); }
/* Switch: the knob slides; ease-out, short, like a physical toggle */
.switch { position: relative; width: 40px; height: 24px; margin-top: 2px; border-radius: 999px; background: var(--gray-300); transition: background-color 160ms ease; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: translate 160ms var(--ease-out); }
.consent-opt input:checked + .switch { background: var(--sky-500); }
.consent-opt input:checked + .switch span { translate: 16px 0; }
.consent-opt input:disabled + .switch { background: var(--navy-700); opacity: 0.55; }
.consent-opt input:focus-visible + .switch { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.linklike { padding: 3px 0; border: 0; background: none; font: inherit; color: var(--on-dark); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .linklike:hover { color: var(--sky-300); } }
@media (prefers-reduced-motion: reduce) { .cookie-card, .cookie-card[data-state='open'] { translate: none; } .switch span { transition: none; } }

/* ══ Map on O nas ══════════════════════════════════════════════════════════ */
.map { position: relative; min-height: 420px; border-radius: 16px; overflow: hidden; background: var(--navy-900); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 300ms ease; }
.map[data-ready] iframe { opacity: 1; }
.map[data-ready] .map-facade { opacity: 0; pointer-events: none; }
.map-facade {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center;
  color: var(--on-dark); transition: opacity 300ms ease;
}
.map-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-road { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 10; stroke-linecap: round; }
.map-river { fill: none; stroke: rgba(0, 172, 236, 0.28); stroke-width: 16; stroke-linecap: round; }
.map-pin { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sky-500); color: var(--navy-950); box-shadow: 0 0 0 10px rgba(0, 172, 236, 0.2); }
.map-pin .icon { width: 26px; height: 26px; }
.map-address { position: relative; margin: 4px 0 0; font-size: 1rem; line-height: 1.4; }
.map-address strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.map-facade .btn, .map-note { position: relative; }
.map-note { margin: 0; font-size: 0.8125rem; color: var(--on-dark-muted); max-width: 32ch; }

/* ══ Brand logos on the homepage ═══════════════════════════════════════════
   Calm grey at rest, full colour under the pointer; the card says what the brand makes. */
.logo-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--gray-200); border-left: 1px solid var(--gray-200); }
/* 19 brands plus the closing cell make 20: 2, 4 or 5 columns, so every row closes. */
@media (min-width: 560px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logo-wall li { border-right: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); background: #fff; }
.logo-cell {
  display: grid; place-items: center; height: 108px; padding: 18px 22px; text-decoration: none;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
/* Logos always in their own colours; hover only lifts them slightly. */
.logo-cell img { max-height: 46px; max-width: 78%; width: auto; height: auto; object-fit: contain; transition: scale 250ms var(--ease-out); }
.logo-cell:active { transform: scale(0.97); }
.logo-cell:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .logo-cell:hover { background: var(--gray-50); }
  .logo-cell:hover img { scale: 1.04; }
}

.brand-tip {
  position: fixed; z-index: 45; width: 280px; padding: 16px 18px; border-radius: 12px; pointer-events: none;
  background: var(--navy-900); color: var(--on-dark); box-shadow: 0 20px 44px -14px rgba(7, 12, 44, 0.55);
  opacity: 0; scale: 0.96;
  transition: opacity 140ms ease, scale 160ms var(--ease-out);
}
.brand-tip[data-state='open'] { opacity: 1; scale: 1; }
.brand-tip[data-instant] { transition-duration: 0ms; }
.brand-tip strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: #fff; margin-bottom: 2px; }
.brand-tip > p { margin: 0 0 10px; font-size: 0.875rem; line-height: 1.45; color: var(--on-dark-muted); }
.brand-tip .brand-tip-status { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; color: var(--sky-300); }
.brand-tip .brand-tip-status .icon { width: 14px; height: 14px; }
.brand-tip ul { display: flex; flex-wrap: wrap; gap: 4px; }
.brand-tip li { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-size: 0.75rem; line-height: 1.3; color: var(--on-dark); }
@media (hover: none) { .brand-tip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root:not(.motion) .logo-wall li { animation: rise-in both var(--ease-out); animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* The closing cell leads from the brands to the equipment by system. */
.logo-more {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding-inline: 14px; text-align: left;
  color: var(--navy-900); font: 700 0.9375rem/1.25 var(--font-display); text-wrap: balance;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.logo-more .icon { flex: none; width: 18px; height: 18px; color: var(--sky-700); transition: translate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .logo-more:hover { color: var(--sky-700); }
  .logo-more:hover .icon { translate: 3px 0; }
}
@media (prefers-reduced-motion: reduce) { .brand-tip { scale: 1; } .logo-cell:active { transform: none; } .logo-more .icon { transition: none; } }

/* O nas: address | map | phones & e-mail — the map in the middle */
@media (min-width: 1000px) { .visit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: stretch; } }
@media (min-width: 1000px) { .visit .map { min-height: 100%; } }
.visit-contact { align-self: start; }

/* Logos whose files carry wide empty margins read small; these get more room */
.logo-cell[data-key='shipcontroller'] img, .logo-cell[data-key='zipwake'] img { max-height: 64px; max-width: 92%; scale: 1.25; }
/* Hella Marine is a very wide wordmark: let it use the cell width, but never touch the edges. */
.logo-cell[data-key='hella-marine'] img { max-width: 86%; }
.logo-cell[data-key='osmosea'] img { max-height: 76px; }
@media (hover: hover) and (pointer: fine) {
  .logo-cell[data-key='shipcontroller']:hover img, .logo-cell[data-key='zipwake']:hover img { scale: 1.3; }
}

/* ══ Tour in 3D ════════════════════════════════════════════════════════════
   Blue-hour sky behind a transparent canvas; the sky shows on its own until the model is in. */
.tour-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 500ms ease; }
.tour-canvas[data-ready] { opacity: 1; }
.tour-stage { background: #8fb3d4; }
.tour-stage[data-mode='3d'] .tour-shade { opacity: 0; transition: opacity 500ms ease; }
/* No WebGL: the chips and the card still walk through the systems; the points have nothing to sit on. */
.tour-stage[data-mode='off'] .spot, .tour-stage[data-mode='off'] .callout { display: none; }
/* The 3D view moves the pointer every frame, so these must not also ease on their own. */
.tour-stage[data-mode='3d'] ~ .callout-card, .tour-stage[data-mode='3d'] .callout, .tour-stage[data-mode='3d'] .callout-line { transition-property: opacity, filter; }
.tour-pin:has([data-mode='3d']) .callout-card { transition: opacity 260ms ease, filter 260ms ease; }
.tour-stage[data-mode='3d'] .spot { transition: scale 200ms var(--ease-out), opacity 160ms ease; }
.tour-stage[data-mode='3d'] .spot.is-hidden { opacity: 0; pointer-events: none; }

/* ── Brand sheet: the pop-up a brand opens ────────────────────────────────
   Desktop: a centred panel, photos left, details right. Phones: a sheet from the bottom.
   Product shots on white sit in the grey stage through multiply, so they need no cut-out. */
.btn--ghost { border-color: transparent; background: var(--navy-900); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: var(--navy-700); } }
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .brand-side .brand-actions { justify-content: flex-end; } }
.brand-open { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 2px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .brand-open:hover { text-decoration-color: var(--sky-500); } }
.brand-open:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }
.brand-logo[data-brand-open] { cursor: pointer; }

.brand-sheet {
  width: min(1060px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.brand-sheet::backdrop { background: rgba(7, 12, 44, 0.62); }
html:has(.brand-sheet[open]) { overflow: hidden; }
.bs-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); grid-template-rows: minmax(0, 1fr);
  height: min(780px, calc(100dvh - 48px)); overflow: hidden; border-radius: 20px; background: #fff;
  box-shadow: 0 40px 90px -30px rgba(7, 12, 44, 0.6), 0 2px 8px rgba(7, 12, 44, 0.12);
}
.brand-sheet--plain { width: min(760px, calc(100% - 48px)); }
.brand-sheet--plain .bs-panel { grid-template-columns: minmax(0, 1fr); }
.bs-close { position: absolute; top: 14px; right: 14px; z-index: 2; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(7, 12, 44, 0.12); }
.bs-close:active { transform: scale(0.95); }

.bs-media { display: flex; flex-direction: column; min-height: 0; background: var(--gray-50); }
.bs-stage { position: relative; flex: 1; min-height: 380px; outline-offset: -4px; touch-action: pan-y; }
.bs-shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 40px 36px 16px; background: var(--gray-50); opacity: 0; filter: blur(6px); transform: scale(0.985); pointer-events: none; }
.bs-shot.is-on { opacity: 1; filter: none; transform: none; }
.bs-shot { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.bs-shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bs-strip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 20px 20px; }
.bs-caption { margin: 0; min-height: 1.5em; color: var(--gray-700); font-size: 0.9375rem; line-height: 1.5; }
.bs-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bs-thumbs::-webkit-scrollbar { display: none; }
.bs-thumb { flex: 0 0 auto; width: 64px; height: 64px; padding: 6px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out); }
.bs-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bs-thumb[aria-pressed='true'] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.bs-thumb:active { transform: scale(0.96); }
.bs-thumb:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }

.bs-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 40px 44px 32px; }
.bs-name { margin: 18px 0 10px; font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.25rem); }
.bs-body .brand-status { margin: 0; justify-content: flex-start; }
.bs-intro { max-width: 60ch; margin: 16px 0 0; color: var(--gray-700); font-size: 1.0625rem; line-height: 1.6; }
.bs-h { margin: 28px 0 10px; font-size: 1.125rem; }
.bs-lines { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--gray-200); }
.bs-lines li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.bs-lines strong { color: var(--navy); font-weight: 600; }
.bs-lines span { color: var(--gray-700); font-size: 0.9375rem; line-height: 1.5; }
.bs-body .note { margin: 20px 0 0; }
/* Brand comparison (e.g. manual vs automatic watermakers): two columns of plain bullets. */
.bs-compare { display: grid; gap: 16px; margin: 20px 0 4px; }
/* stacked: the pop-up text column is too narrow for two columns */
.bs-compare-col { padding: 16px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--gray-200); background: #fff; }
.bs-compare-col .bs-compare-h { margin: 0 0 10px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.bs-compare-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bs-compare-col li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 0.9375rem; line-height: 1.5; color: var(--gray-700); }
.bs-compare-col li .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--sky-700); }
.bs-body .catalogs { margin-top: 20px; }
.bs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 759px) {
  .brand-sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; }
  .bs-panel, .brand-sheet--plain .bs-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px 20px 0 0; }
  .bs-stage { flex: none; height: 36dvh; min-height: 240px; }
  .bs-shot { padding: 28px 24px 8px; }
  .bs-body { overflow: visible; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: no-preference) {
  .bs-shot { transition: opacity 260ms var(--ease-out), filter 260ms var(--ease-out), transform 320ms var(--ease-out); }
  .brand-sheet[open] .bs-panel { transition: opacity 220ms var(--ease-out), transform 280ms var(--ease-out); }
  .brand-sheet[open]::backdrop { transition: opacity 220ms ease; }
  @starting-style {
    .brand-sheet[open] .bs-panel { opacity: 0; transform: translateY(12px) scale(0.97); }
    .brand-sheet[open]::backdrop { opacity: 0; }
  }
  .brand-sheet[data-closing] .bs-panel { opacity: 0; transform: scale(0.98); transition-duration: 150ms; }
  .brand-sheet[data-closing]::backdrop { opacity: 0; transition-duration: 150ms; }
  /* The product lines arrive one after another — the sheet is opened rarely, so it can take a moment. */
  .brand-sheet[open] .bs-lines li { animation: bs-rise 340ms var(--ease-out) both; animation-delay: calc(90ms + var(--i, 0) * 40ms); }
  @media (max-width: 759px) {
    .brand-sheet[open] .bs-panel { transition: transform 420ms var(--ease-drawer), opacity 200ms ease; }
    @starting-style { .brand-sheet[open] .bs-panel { opacity: 1; transform: translateY(100%); } }
    .brand-sheet[data-closing] .bs-panel { opacity: 1; transform: translateY(100%); transition-duration: 240ms; }
  }
}
@keyframes bs-rise { from { opacity: 0; translate: 0 8px; } }

/* ── Explainers (navigation lights, interceptors, watermaker) ─────────────
   They share the energy diagram's panel, buttons and caption. */
.ex-stage { position: relative; margin-top: 12px; }
.ex-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ex-svg text:not([text-anchor]) { text-anchor: middle; }
.ex-svg text { font-family: var(--font-body); fill: var(--on-dark-muted); paint-order: stroke; stroke: var(--navy-900); stroke-width: 6px; stroke-linejoin: round; }


/* Navigation lights */
.ex-svg--lights { max-width: 440px; margin-inline: auto; }
.nl-g--white { stop-color: #FFF4D2; }
.nl-g--red { stop-color: #FF4F5E; }
.nl-g--green { stop-color: #33E39A; }
.nl-ring { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 2 8; stroke-linecap: round; }
.nl-light { opacity: 0; transform: scale(0.86); }
.nl-light.is-on { opacity: 1; transform: none; }
.nl-sector { mix-blend-mode: screen; }
.nl-edge { fill: none; stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; opacity: 0.55; }
.nl-edge--white { stroke: #FFF4D2; }
.nl-edge--red { stroke: #FF4F5E; }
.nl-edge--green { stroke: #33E39A; }
.ex-svg .nl-deg { font-size: 22px; font-weight: 600; fill: var(--on-dark); }
.nl-boat path { fill: var(--navy-800); stroke: rgba(255, 255, 255, 0.5); stroke-width: 2; }
.nl-boat .nl-deck { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.5; }
.nl-cabin { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.5; }
.nl-dot { fill: rgba(255, 255, 255, 0.18); }
.nl-dot.is-on.nl-dot--white { fill: #FFF4D2; }
.nl-dot.is-on.nl-dot--red { fill: #FF4F5E; }
.nl-dot.is-on.nl-dot--green { fill: #33E39A; }

/* Interceptors */
.ex-stage--trim { aspect-ratio: 680 / 320; }
.ex-stage--trim .ex-svg { position: absolute; inset: 0; height: 100%; }
.ex-svg--trim {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(180deg, #000 72%, transparent);
  mask-composite: intersect;
}
.tr-water { fill: rgba(0, 172, 236, 0.16); }
.tr-water--back { fill: rgba(0, 172, 236, 0.07); }
.tr-line { fill: none; stroke: rgba(128, 212, 245, 0.55); stroke-width: 1.5; }
.tr-line--back { stroke: rgba(128, 212, 245, 0.22); }
.tr-hull { transform-box: view-box; transform-origin: 150px 212px; transform: rotate(-5.5deg); }
.ex--trim[data-scene='on'] .tr-hull { transform: rotate(-0.8deg); }
.tr-body { fill: var(--navy-800); stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; stroke-linejoin: round; }
.tr-sheer { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.tr-cabin { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-linejoin: round; }
.tr-glass { fill: rgba(128, 212, 245, 0.18); }
.tr-flow { fill: none; stroke: rgba(221, 244, 253, 0.55); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 18; }
.tr-blade { fill: var(--sky-400); transform-box: fill-box; transform-origin: top; transform: scaleY(0.12); }
.ex--trim[data-scene='on'] .tr-blade { transform: none; }
.tr-push path { fill: none; stroke: #FFC98A; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tr-push { opacity: 0; }
.ex--trim[data-scene='on'] .tr-push { opacity: 1; }
.ex-tag { position: absolute; padding: 4px 10px; border-radius: 999px; background: rgba(7, 12, 44, 0.85); color: var(--on-dark); font-size: 0.875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-dark); }
.ex-tag--blade { left: 19%; top: 58%; translate: -100% 0; }
.ex-tag--push { left: 26%; top: 84%; translate: 0 0; color: #FFC98A; }
.ex--trim[data-scene='on'] .ex-tag { opacity: 1; }
@media (max-width: 559px) { .ex-tag { font-size: 0.8125rem; padding: 3px 8px; } .ex-tag--blade { top: 52%; } .ex-tag--push { top: 82%; } }

/* Watermaker */
.ex--water .energy-svg text { font-size: 15px; }
/* Pipes: a faint tube, the water inside (uneven streaks) and bubbles that run a little faster */
.wm-pipe path { fill: none; stroke-linecap: round; }
.wm-pipe .e-base { stroke-width: 11; }
.wm-pipes .e-glow { opacity: 0.16; stroke-width: 18; stroke-dasharray: none; }
.wm-water { stroke-width: 5; stroke-dasharray: 22 8 8 8; opacity: 0.9; }
.wm-bubbles { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 0 17 0 23; opacity: 0.85; }
.wm-pipe--sea .e-base { stroke: rgba(58, 190, 210, 0.16); }
.wm-pipe--sea .e-glow { stroke: #3ABED2; }
.wm-pipe--sea .wm-water { stroke: #3ABED2; }
.wm-pipe--fresh .e-base { stroke: rgba(128, 212, 245, 0.2); }
.wm-pipe--fresh .e-glow { stroke: var(--sky-300); }
.wm-pipe--fresh .wm-water { stroke: #BFEFFF; }
.wm-pipe--brine .e-base { stroke: rgba(255, 201, 138, 0.14); }
.wm-pipe--brine .e-glow { stroke: #FFC98A; }
.wm-pipe--brine .wm-water { stroke: #FFB866; }
.wm-pipe--brine .wm-bubbles { stroke: #FFE7C7; }
.wm-sea-fill { fill: rgba(0, 172, 236, 0.1); }
.wm-sea-line { fill: none; stroke: rgba(128, 212, 245, 0.35); stroke-width: 1.5; }
.ex--water .energy-svg--wide { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ex--water .wm-tag { font-size: 14px; font-weight: 600; }
.ex--water .wm-tag--sea { fill: #8FE6F2; }
.ex--water .wm-tag--brine { fill: #FFC98A; }
.ex--water .wm-tag--fresh { fill: #FFFFFF; }
.ex--water .energy-scenes { flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .nl-light { transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
  .nl-dot.is-on { animation: nl-pulse 2600ms ease-in-out infinite; }
  .tr-hull { transition: transform 1200ms var(--ease-in-out); }
  .tr-blade { transition: transform 500ms var(--ease-out) 150ms; }
  .tr-push, .ex-tag { transition: opacity 300ms ease 450ms; }
  .ex--trim[data-scene='off'] .tr-push, .ex--trim[data-scene='off'] .ex-tag { transition-delay: 0ms; transition-duration: 150ms; }
  .tr-bob { animation: tr-bob 4200ms ease-in-out infinite; }
  .tr-sea { animation: tr-wave 2600ms linear infinite; }
  .tr-sea-back { animation: tr-wave 4200ms linear infinite reverse; }
  .tr-flow { animation: e-flow 600ms linear infinite reverse; }
  .wm-water { animation: wm-water 1200ms linear infinite; }
  .wm-bubbles { animation: wm-bubbles 800ms linear infinite; }
  .wm-pipes .e-glow { animation: wm-glow 2400ms ease-in-out infinite; }
  .wm-sea { animation: wm-sea 5200ms linear infinite; }
  .ex:not(.is-live) * { animation-play-state: paused !important; }
}
@keyframes nl-pulse { 50% { opacity: 0.55; } }
@keyframes tr-bob { 50% { transform: translateY(2px); } }
@keyframes tr-wave { to { transform: translateX(-80px); } }
@keyframes wm-sea { to { transform: translateX(120px); } }
@keyframes wm-water { to { stroke-dashoffset: -46; } }
@keyframes wm-bubbles { to { stroke-dashoffset: -40; } }
@keyframes wm-glow { 50% { opacity: 0.26; } }

/* The whole brand card opens its sheet: a quiet lift on hover says so. */
.brand-card[data-brand-card] { cursor: pointer; transition: border-color 150ms ease, box-shadow 220ms var(--ease-out); }
.brand-card[data-brand-card] :is(a, button, summary, [data-catalog]) { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .brand-card[data-brand-card]:hover { border-color: var(--gray-300); box-shadow: 0 14px 34px -22px rgba(10, 17, 59, 0.45); }
  .brand-card[data-brand-card]:hover .brand-open { text-decoration-color: var(--sky-500); }
}

/* Energy diagram: product photos on the solar, alternator and inverter/charger nodes */
.e-pimg { opacity: 0.42; filter: saturate(0.35) brightness(0.8); }
.e-node--photo.is-on .e-pimg { opacity: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.e-pglow { fill: var(--sky-500); opacity: 0; filter: blur(14px); }
.e-node--photo.is-on .e-pglow { opacity: 0.22; }
.energy-svg .e-sub { font-size: 12.5px; fill: var(--on-dark-muted); opacity: 0.75; }
.e-sun circle { fill: #FFD27A; opacity: 0.25; }
.e-rays { fill: none; stroke: #FFD27A; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 5; opacity: 0; }
.e-node.is-on .e-sun circle { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 210, 122, 0.8)); }
.e-node.is-on .e-rays { opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .e-pimg, .e-pglow, .e-sun circle, .e-rays { transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out); }
  .e-node.is-on .e-rays { animation: e-rays 900ms linear infinite; }
}
@keyframes e-rays { to { stroke-dashoffset: -16; } }

/* Watermaker: the products that do each step */
.wm-prod image { opacity: 0.38; filter: saturate(0.3) brightness(0.75); }
.wm-prod.is-on image { opacity: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.ex--water .wm-brand { font-size: 13px; font-weight: 600; fill: var(--on-dark-muted); }
.ex--water .wm-prod.is-on .wm-brand { fill: var(--sky-300); }
.wm-span { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; stroke-linecap: round; }
.wm-prod.is-on .wm-span { stroke: var(--sky-400); }
@media (prefers-reduced-motion: no-preference) {
  .wm-prod image, .wm-span, .ex--water .wm-brand { transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out), fill 300ms ease, stroke 300ms ease; }
}

/* Model sheet: a boat's photo and its full spec list in the brand-sheet dialog */
.model-sheet .bs-shot--photo { padding: 0; }
.model-sheet .bs-shot--photo img { object-fit: cover; mix-blend-mode: normal; }
.model-sheet .bs-body > .label { margin: 0; color: var(--sky-700); }
.model-sheet .bs-name { margin-top: 6px; }
.ms-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; border-top: 1px solid var(--gray-200); }
.ms-specs > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.ms-specs dt { color: var(--gray-700); font-size: 0.875rem; }
.ms-specs dd { margin: 0; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-source { margin: 12px 0 0; color: var(--gray-700); font-size: 0.875rem; }
.model-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; }
.model[data-sheet-card] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .model[data-sheet-card]:hover .model-name { text-decoration: underline; text-decoration-color: var(--sky-500); text-underline-offset: 4px; text-decoration-thickness: 2px; } }
@media (max-width: 759px) { .ms-specs { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .brand-sheet[open] .ms-specs > div { animation: bs-rise 340ms var(--ease-out) both; animation-delay: calc(90ms + var(--i, 0) * 25ms); }
}

/* Gallery arrows on the photo stage */
.bs-nav {
  position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--navy); cursor: pointer;
  box-shadow: 0 4px 14px rgba(7, 12, 44, 0.18); transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.bs-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bs-nav--prev { left: 14px; }
.bs-nav--next { right: 14px; }
.bs-nav:active { transform: scale(0.94); }
.bs-nav:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bs-nav:hover { background: #fff; } }
/* Boat photos fill the stage; product shots stay contained on grey. */
.bs-media--photo .bs-shot { padding: 0; }
.bs-media--photo .bs-shot img { object-fit: cover; mix-blend-mode: normal; }
.bs-media--photo .bs-thumb { padding: 0; overflow: hidden; }
.bs-media--photo .bs-thumb img { object-fit: cover; mix-blend-mode: normal; }

/* Gallery: no text-selection or tap highlight when clicking through photos quickly (it painted them blue). */
.bs-stage, .bs-nav, .bs-thumb, .bs-shot img { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.bs-shot img { -webkit-user-drag: none; }
.bs-stage:focus:not(:focus-visible) { outline: none; }

/* Boat photos: the frame wraps the photo (3:2, like the photographs) instead of a tall crop. */
.bs-media--photo { justify-content: center; gap: 4px; padding: 28px 24px; }
.bs-media--photo .bs-stage { flex: none; min-height: 0; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(7, 12, 44, 0.55); }
.bs-media--photo .bs-strip { padding: 10px 0 0; }
@media (max-width: 759px) {
  .bs-media--photo { padding: 20px 16px 4px; }
  .bs-media--photo .bs-stage { height: auto; min-height: 0; }
}

/* Model sheet, two columns: what the boat is and its specs on the left; photos and, under them,
   the layout drawings on the right. Each column scrolls on its own. On phones it's one column:
   photos, then the specs, then the layouts. */
.model-sheet { width: min(1180px, calc(100% - 48px)); }
.model-sheet .bs-panel { grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); }
.model-sheet .bs-body { grid-column: 1; grid-row: 1; }
.ms-media { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 32px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 34px 32px 32px; background: var(--gray-50); }
.ms-media .bs-h { margin: 0 0 14px; }
.ms-media .bs-media { padding: 0; background: none; }
.ms-media .bs-media--photo .bs-strip { padding-top: 12px; }
/* No layout drawings (e.g. Walker Bay): the gallery sits in the middle of the column, not at the top */
@media (min-width: 760px) { .ms-photos:only-child { margin-block: auto; } }

/* Sheet columns scroll without a scrollbar down the middle of the pop-up: the text dissolves into a
   soft edge where there is more to read, top and bottom, driven by the scroll position itself.
   Browsers without scroll timelines keep a thin scrollbar in the palette. */
.bs-body, .ms-media { scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent; }
@property --fade-t { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fade-b { syntax: '<length>'; inherits: false; initial-value: 0px; }
@keyframes sheet-fade {
  0%   { --fade-t: 0px;  --fade-b: 44px; }
  6%   { --fade-t: 44px; --fade-b: 44px; }
  94%  { --fade-t: 44px; --fade-b: 44px; }
  100% { --fade-t: 44px; --fade-b: 0px; }
}
@media (min-width: 760px) {
  @supports (animation-timeline: scroll()) {
    .bs-body, .ms-media {
      scrollbar-width: none;
      mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent);
      animation: sheet-fade linear both; animation-timeline: scroll(self);
    }
    .bs-body::-webkit-scrollbar, .ms-media::-webkit-scrollbar { display: none; }
    /* the mask would fade the grey column too: paint it on the panel instead */
    .model-sheet .bs-panel { background: linear-gradient(to right, #fff 50%, var(--gray-50) 50%); }
    .ms-media { background: none; }
  }
}
/* Layout drawings: a white sheet that frames the drawing, wide thumbnails */
.bs-media--plan .bs-stage { flex: none; min-height: 0; aspect-ratio: 16 / 5; border: 1px solid var(--gray-200); border-radius: 14px; overflow: hidden; background: #fff; }
.bs-media--plan .bs-shot { padding: 14px 18px; background: #fff; }
.bs-media--plan .bs-strip { padding: 12px 0 0; }
.bs-media--plan .bs-thumb { width: 96px; height: 44px; padding: 4px 6px; }
.bs-media--plan .bs-nav { width: 36px; height: 36px; }
/* Arrows over a drawing would hide its bow and stern: show them on hover/focus; touch uses swipe and thumbnails. */
.bs-media--plan .bs-nav { opacity: 0; transition: opacity 160ms ease; }
.bs-media--plan .bs-stage:hover .bs-nav, .bs-media--plan .bs-stage:focus-within .bs-nav { opacity: 1; }
@media (hover: none), (pointer: coarse) { .bs-media--plan .bs-nav { display: none; } }
.bs-media--plan .bs-nav svg { width: 16px; height: 16px; }
.bs-media--plan .bs-nav--prev { left: 8px; }
.bs-media--plan .bs-nav--next { right: 8px; }
@media (max-width: 759px) {
  .model-sheet { width: 100%; }
  .model-sheet .bs-panel { grid-template-columns: minmax(0, 1fr); }
  .model-sheet .bs-body, .ms-media { grid-column: auto; grid-row: auto; }
  .ms-media { display: contents; }
  .ms-photos { order: 0; }
  .model-sheet .bs-body { order: 1; padding-bottom: 8px; }
  .ms-plans { order: 2; padding: 20px 20px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-200); }
  .ms-photos > .bs-h { display: none; }
  .ms-photos .bs-media--photo { padding: 20px 16px 4px; background: var(--gray-50); }
  .bs-media--plan .bs-stage { height: auto; }
}
.bs-body > .bs-name:first-child { margin-top: 0; }

/* Vsi produkti: every brand as a tile, logo first */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pr-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color 160ms ease, box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out); }
.pr-logo { display: flex; align-items: center; height: 64px; margin-bottom: 6px; }
.pr-logo img { max-height: 56px; max-width: 180px; width: auto; object-fit: contain; }
/* The Osmosea logo is stacked (mark over wordmark over tagline): give it the full slot height. */
.pr-logo img[src$='osmosea.png'] { max-height: 64px; }
.brand-logo img[src$='osmosea.png'] { max-height: 48px; }
.pr-name { margin: 0; font-size: 1.25rem; }
.pr-card > p { margin: 0; color: var(--gray-700); line-height: 1.5; }
.pr-card .brand-products { margin: 4px 0 0; }
.pr-sys { margin-top: auto; padding-top: 8px; }
@media (hover: hover) and (pointer: fine) { .pr-card:hover { border-color: var(--gray-300, #c9cfdd); box-shadow: 0 14px 30px -20px rgba(7, 12, 44, 0.45); transform: translateY(-2px); } }

/* Seven menu items: tighter links, the shortcut hint only on wide screens; below 1240px the drawer menu */
.nav-link { padding: 0 9px; }
@media (min-width: 1100px) and (max-width: 1239px) { .primary { display: none; } .menu-btn { display: inline-flex; } }
@media (max-width: 1359px) { .search-btn kbd { display: none; } }

/* Model cards: the photo sits inset in the card, corners concentric (18 outer = 8 gap + 10 inner) */
.model { border-radius: 18px; }
.model-media { margin: 8px 8px 0; border-radius: 10px; }
@keyframes unveil-m { from { clip-path: inset(7% 6% round 10px); } to { clip-path: inset(0 round 10px); } }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { :root:not(.motion) .model-media { animation-name: unveil-m; } } }
/* Project and boat-line cards share the same inset photo and concentric corners. */
.project:not(.project--text), .line { border-radius: 18px; }
.project-media, .line-media { margin: 8px 8px 0; border-radius: 10px; }
@media (min-width: 720px) { .project--wide .project-media { margin: 8px 0 8px 8px; min-height: calc(100% - 16px); } }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) { :root:not(.motion) .project-media, :root:not(.motion) .line-media { animation-name: unveil-m; } } }

/* ── Stories ─────────────────────────────────────────────────────────────
   One card for every story, on the index and under each article. The whole card is the link
   (stretched from the title), photographs fill the frame, product shots sit whole on a grey sheet,
   and projects without a photograph show the boat's name on navy with the Atlantic route arc. */
.sc-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-grid > li { display: flex; }
.sc { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff; transition: border-color 160ms ease, transform 160ms var(--ease-out); }
.sc:active { transform: scale(0.99); }
.sc:has(.sc-link:focus-visible) { outline: 2px solid var(--sky-500); outline-offset: 3px; }
.sc-link { color: inherit; text-decoration: none; outline: none; }
.sc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sc-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--gray-100); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.sc-media.is-contain { padding: 22px 28px; background: var(--gray-50); }
.sc-media.is-contain img { object-fit: contain; mix-blend-mode: multiply; }
.sc-media.is-text { display: flex; align-items: flex-end; padding: 24px; background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cpath d='M-20 330 C 160 120, 440 120, 620 330' fill='none' stroke='%2380D4F5' stroke-opacity='.28' stroke-width='2' stroke-dasharray='2 9' stroke-linecap='round'/%3E%3C/svg%3E") center / cover no-repeat; }
.sc-media.is-text span { font-family: var(--font-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.05; letter-spacing: -0.015em; color: #fff; }
.sc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.sc-body .label { margin: 0; }
.sc-body h3 { margin: 10px 0 8px; text-wrap: balance; transition: color 160ms ease; }
.sc-body > p:not(.label) { margin: 0 0 18px; color: var(--gray-700); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; color: var(--sky-700); }
.sc-more .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (min-width: 900px) {
  .sc-grid > li:has(.sc--wide) { grid-column: 1 / -1; }
  .sc--wide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .sc--wide .sc-media { aspect-ratio: auto; min-height: 380px; }
  .sc--wide .sc-body { justify-content: center; padding: 40px 44px; }
  .sc--wide h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
  .sc--wide .sc-body > p:not(.label) { -webkit-line-clamp: 5; font-size: 1.0625rem; }
  .sc--wide .sc-more { margin-top: 8px; }
}
@media (hover: hover) and (pointer: fine) {
  .sc:hover { border-color: var(--gray-300); }
  .sc:hover .sc-media:not(.is-text) img { transform: scale(1.03); }
  .sc:hover h3 { color: var(--sky-700); }
  .sc:hover .sc-more .icon { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .sc:active { transform: none; } .sc-media img { transition: none; } }

/* Story article: the text column reads at ~70 characters, the side card follows it down the page. */
.post { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .post { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } }
.post-body { max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; }
.post-body > :first-child { margin-top: 0; }
.post-body h2 { margin: 44px 0 12px; }
.post-body .checks { margin: 12px 0 8px; }
.post-body .checks li { color: var(--gray-700); }
.post-fig { margin: 28px 0; border-radius: 16px; overflow: hidden; background: var(--gray-100); }
.post-fig img { display: block; width: 100%; height: auto; }
.post-fig.is-contain { padding: 28px; background: var(--gray-50); }
.post-fig.is-contain img { width: auto; max-width: 100%; max-height: 380px; margin-inline: auto; mix-blend-mode: multiply; }
.post-tags { margin-top: 36px; }
.post-aside { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--gray-200); border-radius: 16px; background: #fff; }
@media (min-width: 1000px) { .post-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.post-aside .label { margin: 0; }
.post-links { display: grid; margin: 0 0 6px; padding: 0; list-style: none; border-top: 1px solid var(--gray-200); }
.post-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); font-family: var(--font-display); font-weight: 600; color: var(--navy); text-decoration: none; transition: color 150ms ease; }
.post-links .icon { width: 16px; height: 16px; flex: none; color: var(--sky-700); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-links a:hover { color: var(--sky-700); } .post-links a:hover .icon { transform: translateX(3px); } }
.post-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.post-phone .icon { width: 18px; height: 18px; color: var(--sky-700); }
.post-hero h1 { max-width: 22ch; text-wrap: balance; }
.story-read { margin-top: 24px; }
.case-read { margin-top: 20px; }

/* ══ Mar, the chat assistant ═══════════════════════════════════════════════
   A hand-drawn character in the corner opens a chat panel that grows from it. On phones the panel is a
   full-screen sheet. Motion: the panel scales from the launcher (200 ms), Mar blinks now and then and
   looks up while thinking. Movement is off under reduced motion. */
.mar { display: block; width: 100%; height: 100%; overflow: visible; }
.mar .mar-eyes { transform-box: fill-box; transform-origin: center; animation: mar-blink 5.5s infinite; }
@keyframes mar-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
[data-state='thinking'] .mar .mar-eyes { translate: 3px -5px; transition: translate 200ms var(--ease-out); }
[data-state='thinking'] .mar .mar-hair { transform-box: fill-box; transform-origin: bottom; animation: mar-ponder 900ms var(--ease-in-out) infinite alternate; }
@keyframes mar-ponder { from { rotate: -4deg; } to { rotate: 5deg; } }
[data-state='talking'] .mar .mar-smile { transform-box: fill-box; transform-origin: top; animation: mar-talk 260ms ease-in-out infinite alternate; }
@keyframes mar-talk { from { scale: 1 1; } to { scale: 0.92 1.35; } }

.mar-launch {
  position: fixed; z-index: 40; right: var(--gutter); bottom: 20px;
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px;
  background: var(--navy-900); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 36px -14px rgba(7, 12, 44, 0.6);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
@starting-style { .mar-launch { opacity: 0; transform: translateY(12px); } }
.mar-launch:active { transform: scale(0.97); }
.mar-launch:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; }
.mar-launch-face { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; background: var(--sky-50); }
.mar-launch-face .mar { transition: rotate 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .mar-launch:hover .mar-launch-face .mar { rotate: -6deg; } }
.mar-launch[aria-expanded='true'] { opacity: 0; pointer-events: none; transform: scale(0.96); }
@media (max-width: 767px) {
  .mar-launch { bottom: calc(76px + env(safe-area-inset-bottom)); padding: 4px; }
  .mar-launch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body:has(.cookie-card[data-state='open']) .mar-launch { opacity: 0; pointer-events: none; }
}

.mar-panel {
  position: fixed; z-index: 60; right: var(--gutter); bottom: 20px;
  width: min(410px, calc(100vw - 2 * var(--gutter))); height: min(660px, calc(100dvh - 40px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ink); border: 1px solid var(--gray-200); border-radius: 18px;
  box-shadow: 0 40px 80px -24px rgba(7, 12, 44, 0.5);
  transform-origin: bottom right; opacity: 0; transform: scale(0.96) translateY(8px);
  transition: opacity 150ms ease, transform 150ms var(--ease-out);
}
.mar-panel[data-state='open'] { opacity: 1; transform: none; transition-duration: 200ms, 220ms; }
.mar-panel[data-instant] { transition-duration: 0ms !important; }
@media (max-width: 767px) {
  .mar-panel { inset: 0; width: auto; height: 100dvh; border: 0; border-radius: 0; transform: translateY(100%); opacity: 1; transition: transform 240ms var(--ease-drawer); }
  .mar-panel[data-state='open'] { transform: none; transition-duration: 320ms; }
  html:has(.mar-panel[data-state='open']) { overflow: hidden; }
}

.mar-head { display: flex; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 10px 12px 14px; background: var(--navy-900); color: #fff; }
.mar-head-face { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: var(--sky-50); }
.mar-head-text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.mar-head-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }
.mar-head-text span { color: var(--on-dark-muted); font-size: 0.875rem; }
.mar-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.mar-icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .mar-icon-btn:hover { background: rgba(255, 255, 255, 0.1); } }

.mar-log { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; font-size: 1rem; line-height: 1.55; }
.mar-welcome { display: grid; justify-items: start; gap: 4px; }
.mar-welcome-art { width: 128px; height: 158px; margin: 0 0 6px -10px; }
.mar-welcome-h { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.mar-welcome-p { margin: 0 0 10px; color: var(--gray-700); }
.mar-chips { display: grid; gap: 8px; width: 100%; }
.mar-chip {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff;
  text-align: left; font-size: 0.9375rem; line-height: 1.4; color: var(--navy); cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 150ms ease, background-color 150ms ease;
}
.mar-chip:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .mar-chip:hover { border-color: var(--sky-500); background: var(--sky-50); } }

.mar-msg { max-width: 100%; overflow-wrap: anywhere; }
.mar-msg--user { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--navy-900); color: #fff; white-space: pre-wrap; }
.mar-msg--assistant > :first-child { margin-top: 0; }
.mar-msg--assistant > :last-child { margin-bottom: 0; }
.mar-msg--assistant p { margin: 0 0 0.7em; hyphens: manual; }
.mar-msg--assistant h4 { margin: 1em 0 0.35em; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.mar-msg--assistant ul, .mar-msg--assistant ol { margin: 0 0 0.7em; padding-left: 1.2em; }
.mar-msg--assistant ul { list-style: disc; }
.mar-msg--assistant ol { list-style: decimal; }
.mar-msg--assistant li { margin: 0.2em 0; }
.mar-msg--assistant a { color: var(--sky-700); text-underline-offset: 2px; }
.mar-msg--assistant code { font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--gray-100); }
.mar-msg--assistant pre { margin: 0 0 0.7em; padding: 10px 12px; border-radius: 10px; background: var(--gray-50); font-size: 0.875rem; white-space: pre-wrap; }
.mar-table { margin: 0 0 0.8em; overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 10px; }
.mar-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.mar-table th, .mar-table td { padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-200); }
.mar-table th { background: var(--gray-50); font-weight: 600; }
.mar-table tr:last-child td { border-bottom: 0; }
.mar-thinking { margin: 0; color: var(--gray-500); }
.is-pending .mar-thinking { animation: mar-fade 1.2s ease-in-out infinite alternate; }
@keyframes mar-fade { from { opacity: 1; } to { opacity: 0.45; } }

.mar-inquiry { margin: 4px 0 0.8em; padding: 14px; border: 1px solid var(--sky-300); border-radius: 14px; background: var(--sky-50); }
.mar-inquiry-h { margin: 0 0 2px; font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700); }
.mar-inquiry-topic { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.mar-inquiry-body { margin: 0 0 12px; white-space: pre-wrap; font-size: 0.9375rem; color: var(--gray-700); max-height: 220px; overflow-y: auto; }
.mar-inquiry-btn { width: 100%; }

.mar-error { padding: 10px 14px; border-radius: 12px; background: #FDECEA; color: var(--danger); font-size: 0.9375rem; }
.mar-retry { margin-left: 4px; padding: 0; border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.mar-compose { display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 0; padding: 6px 6px 6px 14px; border: 1px solid var(--gray-300); border-radius: 16px; transition: border-color 150ms ease; }
.mar-compose:focus-within { border-color: var(--sky-500); }
.mar-compose textarea {
  flex: 1; min-height: 40px; max-height: 160px; padding: 8px 0; border: 0; outline: 0; resize: none; background: none;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); field-sizing: content;
}
.mar-send { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px; background: var(--sky-500); color: var(--navy-950); cursor: pointer; transition: transform 160ms var(--ease-out); }
.mar-send:active { transform: scale(0.94); }
.mar-send .icon { grid-area: 1 / 1; transition: opacity 150ms ease, scale 150ms var(--ease-out); }
.mar-send .icon:last-child, .is-busy .mar-send .icon:first-child { opacity: 0; scale: 0.6; }
.is-busy .mar-send .icon:last-child { opacity: 1; scale: 1; }
.is-busy .mar-send { background: var(--navy-900); color: #fff; }
.mar-note { margin: 0; padding: 8px 14px max(10px, env(safe-area-inset-bottom)); font-size: 0.8125rem; line-height: 1.4; color: var(--gray-500); }
.mar-note a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .mar .mar-eyes, [data-state] .mar .mar-hair, [data-state] .mar .mar-smile, .is-pending .mar-thinking { animation: none; }
  .mar-panel, .mar-launch { transition-property: opacity; }
  .mar-panel { transform: none !important; }
}
/* Links inside story text: the brand's sky blue, a quiet underline that firms up on hover */
.post-body p a, .post-body li a { color: var(--sky-700); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--sky-700) 35%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .post-body p a:hover, .post-body li a:hover { text-decoration-color: currentColor; } }
.post-body .faq { margin-top: 8px; }

/* A project card with a photo is white: its label needs the dark sky, not the light one meant for navy. */
.project:not(.project--text) .label { color: var(--sky-700); }
/* Exactly four stories sit two by two instead of three and one orphan */
@media (min-width: 1000px) { .sc-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Opening hours under the address */
.footer-hours, .contact-hours { margin: 8px 0 0; font-weight: 600; }

/* ══ Brand showcase (equipment pages) ═════════════════════════════════════════
   A brand at home on its page: the logo as its header (shown once), then the maker's product
   lines with the inquiry in one half and the gallery in the other. Phones read it top to bottom. */
.brand-show { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; padding: 44px 0 16px; }
/* The section hairline above each brand; it draws across as the brand arrives (motion below). */
.brand-show::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gray-200); transform-origin: left; }
.brand-cards > .brand-show:first-child { margin-top: 16px; }
.brand-show + .brand-show, .brand-card + .brand-show, .brand-show + .brand-card { margin-top: 24px; }
@media (min-width: 900px) {
  .brand-show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'head head' 'text gal'; align-items: start; }
  .brand-show--plain { grid-template-areas: 'head head' 'text text'; }
  .show-head { grid-area: head; } .show-text { grid-area: text; }
  /* The gallery stays in view while the product lines beside it are read. */
  .show-gallery { grid-area: gal; position: sticky; top: calc(var(--header-h) + 24px); }
}
.show-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.show-name { margin: 0; font-size: clamp(1.625rem, 1.3rem + 1.25vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); text-wrap: balance; }
.show-name img { display: block; width: auto; height: clamp(40px, 20px + 3vw, 60px); max-width: min(300px, 72vw); object-fit: contain; object-position: left center; }
/* Logos drawn with wide empty margins read small at the same height. */
#shipcontroller .show-name img, #zipwake .show-name img, #sleipner .show-name img { height: clamp(56px, 28px + 4vw, 84px); }
.show-head .brand-status { margin: 0; justify-content: flex-start; }
.show-intro { max-width: 62ch; margin: 0 0 22px; color: var(--gray-700); font-size: 1.0625rem; line-height: 1.65; }
.show-lines { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
/* The list's top rule is drawn (like each line's underline), so the motion can bring it in with the products. */
.show-lines::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--gray-200); transform-origin: left; scale: var(--top, 1) 1; }
.show-lines li { position: relative; display: grid; gap: 4px; padding: 14px 0; }
.show-lines li::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--gray-200); transform-origin: left; }
.show-lines strong { color: var(--navy); font-weight: 600; }
.show-lines span { color: var(--gray-700); font-size: 0.9375rem; line-height: 1.5; }
.show-act { margin-top: 26px; }
.show-catalogs { margin-top: 22px; }
.show-catalogs .catalogs { margin: 0; }

/* Gallery: the photo on a quiet stage, the caption and controls in a bar beneath it.
   --dx is the direction of travel (1 forward, -1 back); the photo change itself is animated by brands.js. */
.show-gallery { --dx: 1; min-width: 0; }
.show-gallery[data-dir='prev'] { --dx: -1; }
.sg-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: var(--gray-50); outline-offset: 4px; touch-action: pan-y; }
@media (min-width: 900px) { .sg-stage { aspect-ratio: 1 / 1; } }
.sg-shot { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); visibility: hidden; mix-blend-mode: multiply; }
.sg-shot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sg-shot.is-on { visibility: visible; z-index: 2; }
.sg-shot.was-on { visibility: visible; z-index: 1; }
.sg-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.sg-caption { flex: 1; min-width: 0; margin: 0; color: var(--gray-700); font-size: 0.9375rem; line-height: 1.5; }
.sg-controls { display: flex; flex: none; align-items: center; gap: 10px; }
.sg-count { display: flex; gap: 6px; margin: 0 6px 0 0; overflow: hidden; color: var(--gray-500); font: 600 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.sg-now { display: inline-block; color: var(--navy); }
/* The arrows: solid navy keys; the arrow leans toward its direction on hover and runs through on a press. */
.sg-arrow {
  --dir: 1; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; overflow: hidden; cursor: pointer;
  border: 0; border-radius: 16px; background: var(--navy-900); color: #fff; touch-action: manipulation;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.sg-arrow--prev { --dir: -1; }
.sg-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: translate 220ms var(--ease-out); }
.sg-arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .sg-arrow:hover { background: var(--navy-700); }
  .sg-arrow:hover svg { translate: calc(var(--dir) * 3px) 0; }
}
/* Progress marks: one per photo, the current one in sky; each is a full-height target. */
.sg-marks { display: flex; gap: 6px; margin-top: 12px; }
.sg-mark { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.sg-mark::before { content: ''; display: block; height: 3px; border-radius: 3px; background: var(--gray-200); transition: background-color 220ms ease; }
.sg-mark[aria-pressed='true']::before { background: var(--sky-500); }
@media (hover: hover) and (pointer: fine) { .sg-mark:hover::before { background: var(--gray-300); } .sg-mark[aria-pressed='true']:hover::before { background: var(--sky-500); } }

@media (prefers-reduced-motion: no-preference) {
  /* After a photo change (data-dir, never on page load): the counter rolls and the caption fades over.
     The photos themselves are animated by brands.js. */
  .show-gallery[data-dir]:not([data-instant]) .sg-now.is-rolling { animation: sg-roll 420ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .show-gallery[data-dir]:not([data-instant]) .sg-caption.is-swapped { animation: sg-caption 360ms var(--ease-out) both; }
  .sg-arrow.is-pressed svg { animation: sg-run 420ms cubic-bezier(0.16, 1, 0.3, 1); }

}
@keyframes sg-roll { from { opacity: 0; translate: 0 calc(var(--dx) * 90%); filter: blur(2px); } }
@keyframes sg-caption { from { opacity: 0; translate: 0 4px; } }
@keyframes sg-run { 45% { translate: calc(var(--dir) * 140%) 0; opacity: 0; } 46% { translate: calc(var(--dir) * -140%) 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sg-arrow, .sg-arrow svg { transition: none; } .sg-arrow:active { transform: none; } }

/* ── Brand motion (brands.js, GSAP + Lenis) ───────────────────────────────────
   The hairline and each product line's underline are drawn through custom properties GSAP animates;
   without the script they rest at full length. */
.brand-show::before { scale: var(--line, 1) 1; }
.show-lines li::after { scale: var(--rule, 1) 1; }
.show-name { transform-origin: left center; }
/* Lenis smooth scrolling: it owns the scroll, so the browser's own smoothing steps aside. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ── Logo row: the section's other brands, each linking to its full block ── */
.logo-row { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.logo-row-h { margin: 0 0 14px; color: var(--gray-500); font: 600 0.75rem/1.4 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.logo-row ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.logo-tile {
  display: grid; justify-items: start; align-content: space-between; gap: 18px; height: 100%; min-height: 128px; padding: 20px;
  border-radius: 16px; background: #fff; color: var(--gray-700); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(10, 17, 59, 0.08), 0 1px 2px -1px rgba(10, 17, 59, 0.06);
  transition: box-shadow 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.logo-tile img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; transition: scale 260ms var(--ease-out); transform-origin: left center; }
.logo-tile strong { color: var(--navy); font: 700 1.125rem/1.2 var(--font-display); }
.logo-tile-sys { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--sky-700); }
.logo-tile-sys svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: translate 220ms var(--ease-out); }
.logo-tile:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .logo-tile:hover { box-shadow: 0 0 0 1px rgba(10, 17, 59, 0.14), 0 16px 32px -20px rgba(10, 17, 59, 0.45); }
  .logo-tile:hover img { scale: 1.05; }
  .logo-tile:hover .logo-tile-sys svg { translate: 3px 0; }
}
@media (prefers-reduced-motion: reduce) { .logo-tile, .logo-tile img, .logo-tile-sys svg { transition: none; } .logo-tile:active { transform: none; } }

/* ── Brand band: the page's brands on a white band right under the hero ───────
   Still, the logos sit centred and wrap; brands.js sets the band drifting (data-moving), shows the
   copies that make the loop seamless and fades the logos in and out at the edges. */
.hero-logos { position: relative; padding: 28px 0; background: #fff; border-bottom: 1px solid var(--gray-200); }
.hero-logos-track { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0 16px; list-style: none; }
.hero-logos-track li { margin: 6px; }
.hero-logos-track li[aria-hidden] { display: none; }
.hero-logos[data-moving] { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hero-logos[data-moving] .hero-logos-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding: 0; }
.hero-logos[data-moving] .hero-logos-track li { margin: 6px 8px; }
.hero-logos[data-moving] .hero-logos-track li[aria-hidden] { display: block; }
.hero-logos a {
  display: grid; place-items: center; height: 76px; min-width: 168px; padding: 0 28px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 17, 59, 0.08), 0 2px 4px -2px rgba(10, 17, 59, 0.08); text-decoration: none; touch-action: manipulation;
  transition: transform 200ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.hero-logos img { height: 34px; width: auto; max-width: 160px; object-fit: contain; transition: scale 260ms var(--ease-out); }
.hero-logos span { color: var(--navy); font: 700 1.125rem/1 var(--font-display); }
.hero-logos a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .hero-logos a:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(10, 17, 59, 0.12), 0 18px 34px -18px rgba(10, 17, 59, 0.45); }
  .hero-logos a:hover img { scale: 1.06; }
}
@media (prefers-reduced-motion: reduce) { .hero-logos a, .hero-logos img { transition: none; } .hero-logos a:active, .hero-logos a:hover { transform: none; } .hero-logos a:hover img { scale: 1; } }


/* A section that is a brand has no title of its own: the brand's hairline and logo open it. */
.doc-section--brands { border-top: 0; padding-top: 8px; }
.doc-section--brands > .brand-cards { margin-top: 0; }
.doc-section--brands > .brand-cards > .brand-show:first-child { margin-top: 0; }

/* ── Process: a guided vertical sequence (brands.js) ──────────────────────────
   Still (no script, or reduced motion): a vertical list, each step with its number, title and text.
   Live (data-live): the section fills the screen below the header; the rail of numbered steps runs
   down the left and the stage beside it shows only the current step, large. --p (0–1) is how far
   down the rail the marker is. */
.flow { --p: 1; --rail-w: 300px; --gap: 40px; position: relative; margin-top: 32px; }
.flow-steps { position: relative; display: grid; gap: 32px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; gap: 8px; align-content: start; min-height: 52px; padding-left: 76px; transition: opacity 300ms ease; }
.flow-n {
  position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px;
  border: 1.5px solid var(--gray-300); border-radius: 50%; background: #fff; color: var(--navy);
  font: 700 1.0625rem/1 var(--font-display); font-variant-numeric: tabular-nums;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.flow-title { margin: 13px 0 0; color: var(--navy); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; transition: color 300ms ease; }
.flow-big, .flow-panel-title { display: none; }
.flow-text { max-width: 60ch; margin: 0; color: var(--gray-700); font-size: 1.125rem; line-height: 1.6; }
.flow-rail { position: absolute; top: 26px; bottom: 26px; left: 25px; width: 2px; border-radius: 2px; background: var(--gray-200); }
.flow-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--sky-500); transform-origin: top; scale: 1 var(--p); }
.flow-dot { position: absolute; top: 0; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 7px rgba(0, 172, 236, 0.2); opacity: 0; }

/* Live: the pinned section fills the screen; the rail's steps share its height evenly. */
.doc-section:has(> .flow[data-live]) { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h) - 24px); padding-bottom: 24px; }
.flow[data-live] { flex: 1; display: flex; min-height: 0; margin-top: 24px; }
.flow[data-live] .flow-steps { flex: 1; grid-template-columns: var(--rail-w) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 0 var(--gap); }
.flow[data-live] .flow-step { position: static; grid-column: 1; grid-template-columns: 52px minmax(0, 1fr); align-items: center; align-content: center; gap: 0 20px; padding: 0; }
.flow[data-live] .flow-n { position: relative; }
.flow[data-live] .flow-title { margin: 0; }
/* The rail runs from the first number's centre to the last's: rows are equal, so 1/(2n) in from each end. */
.flow[data-live] .flow-rail { top: calc(100% / (2 * var(--n))); bottom: calc(100% / (2 * var(--n))); }
.flow[data-live] .flow-dot { opacity: 1; }
/* The stage: every step's panel sits in the same place beside the rail; only the current one shows. */
.flow[data-live] .flow-panel {
  position: absolute; top: 0; right: 0; bottom: 0; left: calc(var(--rail-w) + var(--gap));
  display: flex; flex-direction: column; justify-content: center; gap: 14px; overflow: hidden;
  padding: clamp(28px, 4vw, 60px); border-radius: 24px; color: #fff; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, rgba(0, 172, 236, 0.22), rgba(0, 172, 236, 0) 55%), var(--navy-950);
  box-shadow: 0 30px 60px -36px rgba(7, 12, 44, 0.7);
}
.flow[data-live] .flow-step.is-on .flow-panel { pointer-events: auto; }
.flow[data-live] .flow-big { display: block; color: var(--sky-500); font: 700 clamp(4.5rem, 2.5rem + 7vw, 9rem)/0.85 var(--font-display); letter-spacing: -0.02em; }
.flow[data-live] .flow-panel-title { display: block; margin: 0; color: #fff; font: 700 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.flow[data-live] .flow-text { max-width: 36ch; color: var(--on-dark); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.55; }
/* Step states: waiting dimmed, passed navy, current sky with a halo. */
.flow[data-live] .flow-step:not(.is-reached) .flow-n, .flow[data-live] .flow-step:not(.is-reached) .flow-title { opacity: 0.45; }
.flow[data-live] .flow-step.is-reached .flow-n { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.flow[data-live] .flow-step.is-on .flow-n { border-color: var(--sky-500); background: var(--sky-500); color: var(--navy-950); box-shadow: 0 0 0 8px rgba(0, 172, 236, 0.16); }
.flow[data-live] .flow-step:not(.is-on) .flow-title { color: var(--gray-500); }
/* Phones: the rail keeps only its numbers (titles stay for screen readers); the stage takes the rest. */
@media (max-width: 759px) {
  .flow[data-live] { --rail-w: 52px; --gap: 16px; }
  .flow[data-live] .flow-step { grid-template-columns: 52px; }
  .flow[data-live] .flow-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .flow[data-live] .flow-panel { border-radius: 20px; }
}

/* Gallery: every layer of a shot shares one cell, as tall as the frame, so a tall photo fits whole. */
.sg-shot { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.sg-shot > * { grid-area: 1 / 1; min-width: 0; min-height: 0; }
/* Energy pulse: a soft glow travelling along an active wire on each situation change. */
.e-pulse { fill: #fff; }
.e-pulse-glow { fill: rgba(0, 172, 236, 0.35); }

/* ── Page to page (motion.js): arriving from a link on this site, the head script sets page-in so the
   content starts hidden from its very first paint, and motion.js fades it in under the header. */
html.page-in :is(main, .site-footer) { opacity: 0; }

/* ══ Bento (equipment pages) ═══════════════════════════════════════════════════
   The page's brands and topics as a mosaic of tiles (blocks.mjs brandBento; the overview's systems
   in equipment.mjs). Four columns on wide screens, two on phones; dense packing closes the gaps.
   motion.js assembles the tiles with the scroll and tilts them under the pointer (on .bt-card, so the
   two never fight); a tile opens the shared full-screen sheet below (site.js). */
.bento-section { padding-block: clamp(40px, 6vw, 88px) clamp(16px, 3vw, 40px); }
.bento {
  --row: 184px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: var(--row);
  grid-auto-flow: dense; gap: 12px; margin: 0; padding: 0; list-style: none;
}
@media (min-width: 900px) { .bento { --row: clamp(220px, 19vw, 272px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.bt { position: relative; min-width: 0; }
.bt--xl { grid-column: span 2; grid-row: span 2; }
.bt--wide, .bt--full { grid-column: span 2; }
.bt--tall { grid-row: span 2; }
@media (min-width: 900px) { .bt--full { grid-column: 1 / -1; } }
@media (max-width: 899px) { .bt--intro { grid-column: span 2; grid-row: span 1; } .bt--intro .bt-hint { display: none; } }

.bt-card {
  position: relative; display: grid; align-content: start; height: 100%; overflow: hidden; isolation: isolate;
  padding: clamp(18px, 1.8vw, 26px); border-radius: 22px; background: var(--gray-50); color: var(--ink); text-decoration: none;
}
/* The glare: a soft light that follows the pointer while the tile tilts (motion.js sets --gx, --gy, --glare). */
.bt-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--glare, 0);
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.7), transparent 55%);
  transition: opacity 300ms ease;
}
.bt-cat { position: relative; z-index: 2; margin: 0; color: var(--sky-700); font: 600 0.6875rem/1.35 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.bt-logo { position: relative; z-index: 2; margin: 14px 0 0; color: var(--navy); font-size: 1.5rem; line-height: 1.1; }
.bt-logo img { display: block; width: auto; height: clamp(28px, 2.4vw, 40px); max-width: 78%; object-fit: contain; object-position: left center; }
.bt--xl .bt-logo img { height: clamp(40px, 3.8vw, 60px); }
.bt-title { position: relative; z-index: 2; margin: 12px 0 0; color: var(--navy); font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem); line-height: 1.2; text-wrap: balance; }
.bt-text {
  position: relative; z-index: 2; margin: 10px 0 0; max-width: 38ch; color: var(--gray-700); font-size: 0.9375rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bt--wide.bt--brand .bt-text, .bt--full.bt--brand .bt-text { max-width: 50%; }
.bt--sq .bt-text, .bt--sq .bt-minilogos { display: none; }
@media (max-width: 899px) { .bt--tall .bt-text, .bt--wide.bt--brand .bt-text { display: none; } }
.bt-photo { position: absolute; z-index: 0; right: -3%; bottom: -3%; width: 62%; height: 60%; pointer-events: none; mix-blend-mode: multiply; }
.bt--xl .bt-photo { width: 74%; height: 64%; }
.bt--wide .bt-photo, .bt--full .bt-photo { width: 46%; height: 96%; bottom: -8%; }
.bt--tall .bt-photo { width: 96%; height: 54%; }
.bt--sq .bt-photo { width: 76%; height: 62%; }
.bt-photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.bt-more {
  position: absolute; z-index: 2; left: clamp(18px, 1.8vw, 26px); bottom: clamp(18px, 1.8vw, 26px);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: var(--navy-900); color: #fff; font: 600 0.8125rem/1 var(--font-display);
}
.bt-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 450ms var(--ease-out), translate 300ms var(--ease-out); }
.bt--sq .bt-more { gap: 0; padding: 11px; font-size: 0; }
@media (max-width: 899px) { .bt--tall .bt-more, .bt--wide .bt-more { gap: 0; padding: 11px; font-size: 0; } }
/* The whole tile is the button; its label is read, the visible parts are pictures of it. */
.bt-open { position: absolute; inset: 0; z-index: 3; width: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.bt-open:focus-visible, .bt--system .bt-card:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .bt:hover .bt-more svg { rotate: 90deg; }
  .bt--system:hover .bt-more svg { rotate: 0deg; translate: 4px 0; }
}

/* The first tile: what the grid holds, on navy. */
.bt--intro .bt-card { align-content: space-between; background: var(--navy-950); color: var(--on-dark); }
.bt--intro .bt-card::after { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 172, 236, 0.22), transparent 55%); }
.bt--intro .bt-cat { color: var(--sky-400); }
.bt-h { position: relative; z-index: 2; margin: 10px 0 0; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem); line-height: 1.1; text-wrap: balance; }
.bt-count { position: relative; z-index: 2; display: grid; gap: 8px; margin: 0; }
.bt-count strong { color: var(--sky-500); font: 700 clamp(3.5rem, 2.4rem + 3vw, 5.75rem)/0.9 var(--font-display); font-variant-numeric: tabular-nums; }
.bt-count span { color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.4; }
.bt-hint { position: relative; z-index: 2; margin: 0; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 899px) { .bt--intro .bt-card { grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; } .bt--intro .bt-count { grid-row: 1 / span 2; grid-column: 2; align-self: start; text-align: right; } .bt--intro .bt-hint { grid-column: 1 / -1; } }

/* Topics (sections without a brand of their own) and the logos of brands at home elsewhere: on white. */
.bt--topic .bt-card, .bt--also .bt-card { background: #fff; box-shadow: inset 0 0 0 1px var(--gray-200); }
.bt--topic .bt-more { background: var(--sky-50); color: var(--navy); }
.bt-logos { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.bt-logos a { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--gray-50); color: var(--gray-500); font-size: 0.75rem; line-height: 1.3; text-decoration: none; transition: background-color 200ms ease, translate 300ms var(--ease-out); }
.bt-logos img { display: block; width: auto; height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
.bt-logos a:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bt-logos a:hover { background: var(--gray-100); translate: 0 -2px; } }

/* The overview's systems: icon, name, line, the brands' logos and a product photo. */
.bt-icon { position: relative; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--sky-700); }
.bt-icon .icon { width: 24px; height: 24px; }
.bt-minilogos { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 60%; margin-top: 14px; }
.bt-minilogos img { display: block; width: auto; height: 20px; max-width: 96px; object-fit: contain; }
.bt--xl .bt-minilogos img { height: 26px; max-width: 120px; }
.bt--system .bt-more { padding: 0; background: none; color: var(--navy); font-size: 0.875rem; }
.bt--system .bt-more .icon { width: 18px; height: 18px; transition: translate 300ms var(--ease-out); }
.bt--catalogs .bt-card { background: var(--navy-950); color: var(--on-dark); }
.bt--catalogs .bt-card::after { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 172, 236, 0.22), transparent 55%); }
.bt--catalogs .bt-icon { background: var(--navy-800); color: var(--sky-400); }
.bt--catalogs .bt-title { color: #fff; }
.bt--catalogs .bt-text { color: var(--on-dark-muted); }
.bt--catalogs .bt-more { color: #fff; }
@media (max-width: 899px) { .bt--system.bt--sq .bt-title { font-size: 1.0625rem; } .bt--system .bt-text { -webkit-line-clamp: 2; } }

/* Until motion.js has set the tiles up, they wait unseen (the page load releases them if it fails). */
.bm-pending .bento > *, .bm-pending .hero-logos li { opacity: 0; }

/* ── The sheet: one full-screen dialog per page that a tile grows into ─────────
   site.js moves the tile's full content into its body and back; motion.js grows the panel out of
   the tile's shape (clip-path) and plays the content in. Without motion it simply opens. */
.js .bento-details { display: none; }
.bento-details > * + * { margin-top: 48px; }
.bsheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden;
}
.bsheet::backdrop { background: transparent; }
html:has(.bsheet[open]) { overflow: hidden; }
.bsheet-scrim { position: absolute; inset: 0; background: rgba(7, 12, 44, 0.74); backdrop-filter: blur(6px); }
.bsheet-panel { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: #fff; }
@media (min-width: 760px) { .bsheet-panel { inset: 16px; border-radius: 24px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.6); } }
.bsheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--gray-100); }
.bsheet-cat { min-width: 0; margin: 0; overflow: hidden; color: var(--sky-700); font: 600 0.75rem/1.3 var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.bsheet-nav { display: flex; flex: none; align-items: center; gap: 8px; }
.bsheet-count { display: flex; gap: 6px; margin: 0 8px 0 0; overflow: hidden; color: var(--gray-500); font: 600 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bsheet-count [data-bsheet-now] { display: inline-block; color: var(--navy); }
.bsheet-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--gray-50); color: var(--navy); touch-action: manipulation; transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.bsheet-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bsheet-btn--close { background: var(--navy-900); color: #fff; }
.bsheet-btn:active { transform: scale(0.94); }
.bsheet-btn:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bsheet-btn:hover { background: var(--gray-100); } .bsheet-btn--close:hover { background: var(--navy-700); } }
@media (max-width: 520px) { .bsheet-count { display: none; } .bsheet-btn { width: 44px; height: 44px; } }
.bsheet-body { overflow: auto; overscroll-behavior: contain; padding: clamp(16px, 2vw, 28px) clamp(20px, 4vw, 56px) 56px; }
.bsheet .brand-show { max-width: 1240px; margin: 0 auto; padding: 0; }
.bsheet .brand-show::before { display: none; }
@media (min-width: 900px) { .bsheet .show-gallery { top: 0; } }
.bt-detail-topic { max-width: 68ch; margin: 0 auto; }
.bt-detail-topic h2 { margin: 12px 0 20px; color: var(--navy); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.12; text-wrap: balance; }
.bt-detail-topic > p:not(.bt-cat):not(.note) { color: var(--gray-700); font-size: 1.0625rem; line-height: 1.7; }
.bt-detail-topic .btn { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .bsheet-btn, .bt-more svg, .bt-logos a { transition: none; } .bsheet-btn:active { transform: none; } }
/* Overview tiles: the words keep the left, the photo the right, so a dark photo never sits under text. */
.bt--system .bt-title, .bt--system .bt-text, .bt--system .bt-minilogos { max-width: 50%; }
.bt--system.bt--xl .bt-photo { width: 56%; height: 78%; }
.bt--system.bt--wide .bt-photo { width: 46%; height: 100%; bottom: -6%; }
.bt--system.bt--sq .bt-title { max-width: none; }
.bt--system.bt--sq .bt-photo { width: 56%; height: 46%; }
.bt--system.bt--sq .bt-more { font-size: 0; gap: 0; }
@media (max-width: 899px) {
  .bt--system .bt-title, .bt--system .bt-text { max-width: 62%; }
  .bt--system .bt-minilogos { display: none; }
  .bt--system.bt--xl .bt-photo, .bt--system.bt--wide .bt-photo { width: 44%; height: 70%; }
  .bt--system.bt--sq .bt-photo { width: 60%; height: 44%; }
}
.bt--system.bt--wide .bt-minilogos { display: none; }
.bt--system .bt-text { -webkit-line-clamp: 2; }
/* Logos drawn with wide empty margins read small at the band's height. */
.hero-logos a:is([data-key="zipwake"], [data-key="sleipner"]) img { height: 52px; max-width: 200px; }
/* ULTRA-cromox: a wide two-part logo with small print; drawn larger so it reads. */
.hero-logos a[data-key="ultra"] img { height: 62px; max-width: 200px; }
.bt[data-bt="ultra"] .bt-logo img { height: clamp(48px, 4vw, 66px); max-width: 100%; }
#ultra .show-name img { height: clamp(56px, 28px + 4vw, 84px); }
.logo-cell[data-key='ultra'] img { max-height: 64px; max-width: 92%; }
/* Simarine: a stacked mark with small letters; ShipController: a thin wordmark. Both read too small at the common height. */
.hero-logos a[data-key="simarine"] img { height: 58px; max-width: 200px; }
.hero-logos a[data-key="shipcontroller"] img { height: 40px; max-width: 250px; }
.bt[data-bt="simarine"] .bt-logo img { height: clamp(50px, 4.2vw, 68px); }
.bt[data-bt="simarine"]:not(.bt--xl, .bt--hero, .bt--banner) .bt-text { -webkit-line-clamp: 2; }
.bt[data-bt="shipcontroller"] .bt-logo img { height: clamp(30px, 2.8vw, 46px); max-width: 100%; }
.bt:is([data-bt="zipwake"], [data-bt="sleipner"]) .bt-logo img { height: clamp(40px, 3.4vw, 58px); }
.bt--xl:is([data-bt="zipwake"], [data-bt="sleipner"]) .bt-logo img { height: clamp(58px, 5.4vw, 86px); }
/* A page with a single brand: its tile spans the three columns beside the intro. */
.bt--hero { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) { .bt--hero { grid-column: span 3; } }
.bt--hero .bt-logo img { height: clamp(40px, 3.8vw, 60px); }
.bt--hero .bt-text { max-width: 44%; -webkit-line-clamp: 5; }
.bt--hero .bt-photo { width: 56%; height: 92%; bottom: -4%; }
@media (max-width: 899px) { .bt--hero .bt-text { max-width: none; -webkit-line-clamp: 3; } .bt--hero .bt-photo { width: 74%; height: 60%; } }

/* Overview: the navy cover a system tile grows into before its page opens (motion.js). */
.grow-cover { position: fixed; inset: 0; z-index: 10000; background: var(--navy-900); pointer-events: none; }

/* ══ Explainers (src/explainers.mjs; motion.js plays them) ═════════════════════
   A pinned stage: the steps beside the drawing. Without the script (or with reduced motion) the
   steps are a plain list beside the drawing in its final state; with it (.is-live) the stage holds
   while the scroll plays the drawing and moves the highlight from step to step. */
.xp-head p { max-width: 62ch; }
.xp-stage { position: relative; display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .xp-stage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); align-items: center; gap: 44px; } }
.xp-steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.xp-step { position: relative; padding-left: 50px; }
.xp-n { position: absolute; left: 0; top: 3px; color: var(--sky-700); font: 700 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.xp-step > :is(h3, h4, h5) { margin: 0 0 6px; color: var(--navy); font-size: 1.125rem; line-height: 1.3; }
.xp-step p { margin: 0; color: var(--gray-700); font-size: 0.96875rem; line-height: 1.6; }
.xp-art { position: relative; overflow: hidden; border-radius: 20px; background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--gray-200); }
.xp-svg { display: block; width: 100%; height: auto; }
.xp-gl { fill: none; stroke: #DFE5EE; stroke-width: 1; }
.xp-gl--l { stroke: #CBD5E2; }
.xp-bar { display: none; }
/* Live, the heading and intro are pinned with the stage: one screen-high column, the stage taking what the
   heading leaves, the drawing never taller than that space. */
.xp.is-live { display: flex; flex-direction: column; height: calc(100svh - var(--header-h) - 40px); min-height: 560px; }
.xp.is-live .xp-head { flex: none; }
.xp.is-live .xp-head > :first-child { margin-top: 0; }
.xp.is-live .xp-stage { flex: 1 1 auto; min-height: 0; margin-top: 20px; align-content: center; }
.xp.is-live .xp-art { max-height: 100%; }
.xp.is-live .xp-svg { max-height: calc(100svh - var(--header-h) - 260px); }
.xp.is-live .xp-step { opacity: 0.32; transition: opacity 400ms ease; }
.xp.is-live .xp-step.is-on { opacity: 1; }
.xp.is-live .xp-step::before { content: ''; position: absolute; left: 32px; top: 2px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--sky-500); scale: 1 0; transform-origin: top; transition: scale 500ms var(--ease-out); }
.xp.is-live .xp-step.is-on::before { scale: 1 1; }
.xp.is-live .xp-bar { display: block; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--gray-100); }
.xp.is-live .xp-bar span { display: block; height: 100%; background: var(--sky-500); transform-origin: left; scale: var(--xp-p, 0) 1; }
@media (max-width: 899px) {
  .xp.is-live .xp-stage { align-content: center; gap: 18px; }
  .xp.is-live .xp-art { order: -1; }
  .xp.is-live .xp-step { grid-area: 1 / 1; opacity: 0; }
  .xp.is-live .xp-step.is-on { opacity: 1; }
}

/* Interceptors: a technical drawing on squared paper. */
.t2-crest { fill: none; stroke: var(--sky-700); stroke-width: 2; }
.t2-crest--back { stroke-opacity: 0.35; }
.t2-sea { fill: url(#t2-sea); }
.t2-hull, .t2-cabin { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.t2-sheer { fill: none; stroke: var(--gray-300); stroke-width: 1.5; }
.t2-glass { fill: var(--sky-50); stroke: var(--sky-700); stroke-width: 1.2; }
.t2-keel, .t2-ref { fill: none; stroke-width: 1.4; stroke-dasharray: 6 5; }
.t2-keel { stroke: var(--sky-500); }
.t2-ref { stroke: var(--gray-500); }
.t2-arc { fill: none; stroke: var(--sky-700); stroke-width: 1.6; }
.t2-label { font: 600 14px var(--font-body); fill: var(--navy); paint-order: stroke; stroke: var(--gray-50); stroke-width: 5px; stroke-linejoin: round; }
.t2-label--press { fill: #A9500A; }
.t2-spray { fill: var(--sky-300); fill-opacity: 0.6; }
.t2-wake { fill: none; stroke: var(--sky-500); stroke-opacity: 0.55; stroke-width: 1.6; stroke-linecap: round; }
.t2-eye { fill: var(--navy); }
.t2-sight-line { fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-dasharray: 3 5; }
.t2-blocked { fill: none; stroke: #C2410C; stroke-width: 3; stroke-linecap: round; }
.t2-push-mini, .t2-press-arrows path { fill: none; stroke: #E8871E; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.t2-link { fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-dasharray: 3 4; }
.t2-lens-bg { fill: #fff; }
.t2-lens-ring { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.t2-lens-water { fill: rgba(0, 172, 236, 0.14); }
.t2-lens-hull { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.t2-blade { fill: var(--sky-500); stroke: var(--navy); stroke-width: 1.5; }
.t2-flow path { fill: none; stroke: var(--sky-700); stroke-width: 1.4; stroke-opacity: 0.5; stroke-dasharray: 4 6; }
.t2-flow circle { fill: var(--sky-500); }
.xp:not(.is-live) :is(.t2-flow--straight, .t2-arc, .t2-label--angle, .t2-blocked, .t2-sight, .t2-label--view) { display: none; }

/* Watermaker: one long drawing the camera travels along. */
.w2-sea-fill { fill: rgba(0, 172, 236, 0.16); }
.w2-sea-line { fill: none; stroke: var(--sky-700); stroke-width: 2; }
.w2-hullwall { stroke: var(--navy); stroke-width: 2; }
.w2-hatch { stroke: var(--gray-500); stroke-width: 2; }
.w2-route { fill: none; stroke: none; }
.w2-tube, .w2-core, .w2-flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.w2-tube { stroke: var(--navy); stroke-width: 16; }
.w2-core { stroke: #fff; stroke-width: 11; }
.w2-flow { stroke: #33BDF0; stroke-width: 6; stroke-dasharray: 2 14; }
.w2-pipe--brine .w2-flow { stroke: #9AA6B8; }
.w2-pipe--fresh .w2-flow { stroke: var(--sky-500); }
.w2-body { fill: #fff; stroke: var(--navy); stroke-width: 2.5; transition: fill 400ms ease, stroke 400ms ease; }
.w2-detail { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.w2-part.is-on .w2-body { fill: var(--sky-50); stroke: var(--sky-700); }
.w2-sand circle { fill: #B08442; }
.w2-salt rect { fill: #fff; stroke: var(--gray-500); stroke-width: 1; }
.w2-level { fill: rgba(0, 172, 236, 0.42); stroke: var(--sky-500); stroke-width: 2; }
/* The tank stays see-through even as the step in focus, so its water shows. */
.w2-part .w2-body.w2-tank, .w2-part.is-on .w2-body.w2-tank { fill: none; }
.w2-body.w2-tank { fill: none; }
.w2-gauge-face { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.w2-gauge-scale { fill: none; stroke: #E8871E; stroke-width: 3; }
.w2-needle { stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.w2-drip { fill: var(--sky-500); }
.w2-span { fill: none; stroke: var(--sky-700); stroke-width: 1.5; }
.w2-brand-name { font: 700 18px var(--font-display); fill: var(--navy); text-anchor: middle; }
.w2-label { font: 600 16px var(--font-body); fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: var(--gray-50); stroke-width: 6px; stroke-linejoin: round; }
.w2-n { fill: var(--sky-700); font-weight: 700; }
.w2-tag { font: 600 14px var(--font-body); text-anchor: middle; fill: var(--sky-700); }
.w2-tag--brine { fill: var(--gray-500); }
.xp:not(.is-live) .w2-drop { display: none; }
.xp--water.is-live .xp-art { aspect-ratio: 16 / 9; }
.xp--water.is-live .w2-track { position: absolute; inset: 0; }
.xp--water.is-live .w2-svg { width: auto; height: 100%; max-width: none; }
@media (max-width: 899px) { .xp--water.is-live .xp-art { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: no-preference) { .xp.is-live .w2-flow { animation: w2-run 900ms linear infinite; } }
@keyframes w2-run { to { stroke-dashoffset: -32; } }

/* Navigation lights: a night view from above; another boat circles and the panel shows what it sees. */
.xp--lights .xp-art { background: #070C2C; box-shadow: none; }
.xp--lights .xp-svg { max-height: calc(100svh - var(--header-h) - 80px); }
.nl2-grid { fill: none; stroke: rgba(128, 212, 245, 0.13); stroke-width: 1; }
.nl2-g--white { stop-color: #fff; }
.nl2-g--red { stop-color: #FF3B3B; }
.nl2-g--green { stop-color: #2BE38A; }
.nl2-edge { fill: none; stroke-width: 1.5; stroke-opacity: 0.85; }
.nl2-edge--white { stroke: #fff; }
.nl2-edge--red { stroke: #FF6B6B; }
.nl2-edge--green { stroke: #4BE89A; }
.nl2-deg { fill: var(--on-dark); font: 600 17px var(--font-display); text-anchor: middle; paint-order: stroke; stroke: #070C2C; stroke-width: 5px; }
.nl2-hull { fill: #1D2869; stroke: var(--sky-300); stroke-width: 1.5; }
.nl2-deck { fill: #131C52; stroke: rgba(128, 212, 245, 0.4); }
.nl2-cabin { fill: var(--navy-900); stroke: rgba(128, 212, 245, 0.6); }
.nl2-sail { fill: rgba(243, 246, 250, 0.85); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.nl2-chain, .nl2-hook { fill: none; stroke: var(--gray-300); stroke-width: 2; stroke-linecap: round; }
.nl2-lamp { fill: #fff; }
.nl2-lamp--red { fill: #FF5A5A; }
.nl2-lamp--green { fill: #3DE896; }
.nl2-orbit { fill: none; stroke: rgba(128, 212, 245, 0.28); stroke-dasharray: 2 8; }
.nl2-sight { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-dasharray: 4 6; }
.nl2-observer path { fill: var(--on-dark); }
.nl2-obs-dot { fill: var(--sky-500); }
.xp--lights :is(.nl2-sail, .nl2-anchor-gear, [data-k="anchor"], [data-lamp="anchor"]) { opacity: 0; }
.xp:not(.is-live) :is(.nl2-orbit, .nl2-sight, .nl2-observer, .nl2-panel) { display: none; }
.nl2-panel {
  position: absolute; left: 14px; top: 14px; min-width: 176px; padding: 12px 14px; border-radius: 14px;
  background: rgba(7, 12, 44, 0.8); box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark); backdrop-filter: blur(6px);
}
.nl2-who { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 0.8125rem/1.3 var(--font-display); }
.nl2-who-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); }
.nl2-sees { margin: 2px 0 10px 16px; color: var(--on-dark-muted); font-size: 0.75rem; }
.nl2-chips { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nl2-chip { display: flex; align-items: center; gap: 9px; color: var(--on-dark-muted); font-size: 0.8125rem; opacity: 0.35; transition: opacity 200ms ease, color 200ms ease; }
.nl2-chip[hidden] { display: none; }
.nl2-chip i { width: 10px; height: 10px; border-radius: 50%; }
.nl2-chip.is-seen { opacity: 1; color: #fff; }
.nl2-chip--red i { background: #FF5A5A; }
.nl2-chip--green i { background: #3DE896; }
.nl2-chip--white i { background: #fff; }
.nl2-chip--white.is-seen i { box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8); }
.nl2-chip--red.is-seen i { box-shadow: 0 0 10px 2px #FF5A5A; }
.nl2-chip--green.is-seen i { box-shadow: 0 0 10px 2px #3DE896; }
@media (max-width: 520px) { .nl2-panel { left: 8px; top: 8px; min-width: 0; padding: 9px 11px; } .nl2-chip { font-size: 0.75rem; } }

/* Power system: a day on board (the Energija page). */
.e2-arc { fill: none; stroke: none; }
.e2-sun { fill: #FFC24D; }
.e2-stars { opacity: 0; }
.e2-stars circle { fill: #fff; }
.e2-crest { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.e2-hull { fill: #fff; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.e2-cabin { fill: #fff; stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.e2-window { fill: var(--sky-50); stroke: var(--sky-700); stroke-width: 1.2; }
.e2-rail { fill: none; stroke: var(--gray-300); stroke-width: 2; }
.e2-porthole { fill: var(--sky-50); stroke: var(--navy); stroke-width: 1.6; }
.e2-post { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.e2-hardtop { fill: #fff; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.e2-panel rect { fill: #13205E; stroke: var(--navy); stroke-width: 1.5; }
.e2-panel path { stroke: #4C6CB3; stroke-width: 1; }
.e2-cut { fill: var(--gray-50); stroke: var(--gray-300); stroke-width: 1.2; stroke-dasharray: 4 4; }
.e2-bat-case { fill: #fff; stroke: var(--navy); stroke-width: 2.2; }
.e2-bat-term { fill: none; stroke: var(--navy); stroke-width: 2; }
.e2-bat-level { fill: var(--sky-500); fill-opacity: 0.55; }
.e2-bat-up, .e2-bat-down { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.e2-bat-down { opacity: 0; }
.e2-dc rect, .e2-ac rect { fill: #fff; stroke: var(--navy); stroke-width: 1.8; }
.e2-dc path, .e2-ac path { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.e2-mast { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.e2-anchor-light { fill: #fff; stroke: var(--navy); stroke-width: 1.5; opacity: 0; }
.e2-bowwave { fill: #fff; fill-opacity: 0.85; }
.e2-wake { fill: none; stroke: #fff; stroke-opacity: 0.8; stroke-width: 2; stroke-linecap: round; }
.e2-chain { fill: none; stroke: var(--gray-500); stroke-width: 2; stroke-dasharray: 3 3; opacity: 0; }
.e2-dock { opacity: 0; }
.e2-pier { fill: #8A6A44; }
.e2-piles { stroke: #6B5236; stroke-width: 6; }
.e2-pedestal rect { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.e2-pedestal circle { fill: var(--sky-500); }
.e2-mooring { fill: none; stroke: var(--gray-700); stroke-width: 2; }
.e2-line { fill: none; stroke: var(--navy); stroke-opacity: 0.18; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.e2-glow { fill: none; stroke: var(--sky-500); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.e2-pulses, .e2-glow, .e2-spark { filter: url(#e2-bloom); }
.e2-current { fill: none; stroke: #E8F7FD; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 15; }
.e2-core { fill: #fff; stroke: var(--sky-500); stroke-width: 2.5; }
.e2-tail { fill: var(--sky-400); }
.e2-spark { fill: none; stroke: var(--sky-400); stroke-width: 2.5; }
.e2-bubbles circle { fill: #fff; }
@media (prefers-reduced-motion: no-preference) { .xp.is-live .e2-current { animation: e2-run 500ms linear infinite; } }
@keyframes e2-run { to { stroke-dashoffset: -20; } }
.e2-label { font: 600 14px var(--font-body); fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 5px; stroke-linejoin: round; transition: fill 400ms ease, stroke 400ms ease; }
.e2-label--low { fill: #fff; stroke: rgba(7, 12, 44, 0.35); }
.e2-night .e2-label { fill: var(--on-dark); stroke: rgba(7, 12, 44, 0.8); }
.xp:not(.is-live) .e2-glow { opacity: 0.7; }
.xp:not(.is-live) .e2-flow[data-flow="combi"] .e2-glow { opacity: 0; }

/* Tour pointer line: while the card is away (the camera flying to the next point) the line waits
   unseen, then draws out from the point to the card once the card is back, so it never points
   at nothing or flips corners mid-flight. */
.tour-stage[data-mode='3d'] .callout-line { transition: opacity 180ms ease, scale 320ms var(--ease-out); }
.tour-pin:has(.callout-card[data-swap]) .callout-line { opacity: 0; scale: 0 1; transition-duration: 120ms, 120ms; }

/* ══ Services (Servis: "Kaj naredimo") ═════════════════════════════════════════
   A bento: the first service large on navy, the last one wide; the cards tilt toward the pointer
   with a glare (motion.js, [data-tilt]) and each icon has its own small hover movement. */
.svc { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-item--feature { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
  .svc-item--feature { grid-column: span 2; grid-row: span 2; }
  .svc-item--std:nth-child(2) { grid-column: span 2; }
  .svc-item--wide { grid-column: 1 / -1; }
}
.svc-item { min-width: 0; }
.svc-card {
  --si-line: var(--navy); --si-fill: #fff; --si-accent: var(--sky-500); --si-soft: var(--sky-50);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; height: 100%; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.4vw, 32px); border-radius: 22px; background: var(--gray-50); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--gray-200);
}
.svc-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--glare, 0);
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.95), transparent 60%);
  transition: opacity 300ms ease;
}
.svc-n { position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px); color: var(--gray-300); font: 700 0.875rem/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.svc-body h3 { margin: 0 0 8px; color: var(--navy); font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.375rem); line-height: 1.25; }
.svc-body p { margin: 0; max-width: 46ch; color: var(--gray-700); font-size: 1rem; line-height: 1.6; }
/* The feature card: navy, a large icon and a fine grid that brightens under the pointer. */
.svc-item--feature .svc-card {
  --si-line: #E8F7FD; --si-fill: var(--navy-800); --si-accent: var(--sky-400); --si-soft: rgba(0, 172, 236, 0.18);
  align-content: space-between; background: var(--navy-950); color: var(--on-dark); box-shadow: none;
  background-image: linear-gradient(rgba(128, 212, 245, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 212, 245, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.svc-item--feature .svc-card::after { background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 172, 236, 0.28), transparent 60%); }
.svc-item--feature .svc-body h3 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); }
.svc-item--feature .svc-body p { color: var(--on-dark-muted); font-size: 1.0625rem; }
.svc-item--feature .svc-n { color: rgba(128, 212, 245, 0.45); }
/* The wide card: icon beside the words. */
@media (min-width: 1000px) { .svc-item--wide .svc-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; } }

/* The icons: a soft tile with the drawing inside. */
.svc-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--si-fill); box-shadow: inset 0 0 0 1px rgba(10, 17, 59, 0.08), 0 10px 24px -14px rgba(10, 17, 59, 0.35); }
.svc-item--feature .svc-icon { width: 104px; height: 104px; border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(128, 212, 245, 0.2); }
.svc-icon svg { width: 46px; height: 46px; overflow: visible; }
.svc-item--feature .svc-icon svg { width: 66px; height: 66px; }
.svc-icon :is(.si-main, .si-sheet) { fill: var(--si-fill); stroke: var(--si-line); stroke-width: 2; stroke-linejoin: round; }
.svc-icon :is(.si-line, .si-grid, .si-accent-line, .si-wave, .si-check) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon .si-line { stroke: var(--si-line); stroke-width: 2; }
.svc-icon .si-grid { stroke: var(--si-soft); stroke-width: 1.4; }
.svc-icon .si-sheet { fill: var(--si-soft); }
.svc-icon .si-accent-line { stroke: var(--si-accent); stroke-width: 2; }
.svc-icon .si-teeth { fill: none; stroke: var(--si-accent); stroke-width: 4.5; stroke-dasharray: 3.73 3.73; }
.svc-icon .si-hub { fill: var(--si-soft); stroke: var(--si-accent); stroke-width: 2; }
.svc-icon .si-flow { fill: none; stroke: var(--si-accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 3 9; }
.svc-icon .si-dot, .svc-icon .si-sun { fill: var(--si-accent); }
.svc-icon .si-bolt { fill: var(--si-accent); stroke: var(--si-line); stroke-width: 1.6; stroke-linejoin: round; }
.svc-icon .si-wave { stroke: var(--si-accent); stroke-width: 2; }
.svc-icon .si-spark { fill: var(--si-accent); }
.svc-icon .si-ring { fill: none; stroke: var(--si-accent); stroke-width: 2; opacity: 0; }
.svc-icon .si-check { stroke: var(--si-accent); stroke-width: 3; }
.svc-icon :is(.si-gear, .si-rays, .si-hull, .si-spark, .si-ring, .si-bolt) { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .svc-icon :is(.si-gear, .si-rays, .si-hull, .si-spark, .si-ring, .si-bolt, .si-flow, .si-wave, .si-check) { transition: transform 600ms var(--ease-out); }
  .svc-card:hover .si-gear { animation: si-spin 2.4s linear infinite; }
  .svc-card:hover .si-flow { animation: si-run 0.8s linear infinite; }
  .svc-card:hover .si-rays { animation: si-spin 6s linear infinite; }
  .svc-card:hover .si-bolt { animation: si-flash 1.2s ease-in-out infinite; }
  .svc-card:hover .si-hull { animation: si-bob 1.6s ease-in-out infinite; }
  .svc-card:hover .si-wave { animation: si-wave 1.2s linear infinite; }
  .svc-card:hover .si-spark--a { animation: si-twinkle 1.4s ease-in-out infinite; }
  .svc-card:hover .si-spark--b { animation: si-twinkle 1.4s ease-in-out 0.5s infinite; }
  .svc-card:hover .si-ring { animation: si-ring 1.6s ease-out infinite; }
  .svc-card:hover .si-check { animation: si-check 900ms var(--ease-out) both; }
}
.svc-icon .si-check { stroke-dasharray: 22; stroke-dashoffset: 0; }
@keyframes si-spin { to { transform: rotate(360deg); } }
@keyframes si-run { to { stroke-dashoffset: -24; } }
@keyframes si-flash { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.14); filter: drop-shadow(0 0 4px rgba(0, 172, 236, 0.9)); } }
@keyframes si-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(-3deg); } }
@keyframes si-wave { to { transform: translateX(-12px); } }
@keyframes si-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.4); opacity: 0.4; } }
@keyframes si-ring { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes si-check { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }

/* One brand on its page: a banner across the whole grid, two rows high. */
.bt--banner { grid-column: 1 / -1; grid-row: span 2; }
.bt--banner .bt-logo img { height: clamp(44px, 4.2vw, 66px); }
.bt--banner .bt-text { max-width: 42%; -webkit-line-clamp: 5; }
.bt--banner .bt-photo { width: 52%; height: 94%; bottom: -4%; }
@media (max-width: 899px) { .bt--banner .bt-text { max-width: none; -webkit-line-clamp: 3; } .bt--banner .bt-photo { width: 74%; height: 58%; } }

/* Contact cards: the same card as the services and the brand tiles, tilting toward the pointer with a
   soft glare (motion.js, [data-tilt]). */
.info-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--gray-200); }
.info-card--plain { border: 0; background: #fff; }
.info-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--glare, 0);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.95), transparent 60%);
  transition: opacity 300ms ease;
}
.info-card--plain::after { background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(0, 172, 236, 0.1), transparent 60%); }

/* The feature service card carries a photo of our work (a Mastervolt installation) under a navy fade
   that keeps the words readable; the photo drifts closer under the pointer. */
.svc-item--feature .svc-card { background-color: var(--navy-950); }
.svc-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: scale 900ms var(--ease-out); }
.svc-item--feature .svc-card:has(.svc-bg) { background-image: none; }
.svc-item--feature .svc-card:has(.svc-bg)::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 12, 44, 0.25) 0%, rgba(7, 12, 44, 0.45) 40%, rgba(7, 12, 44, 0.94) 82%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .svc-card:hover .svc-bg { scale: 1.06; } }

/* Project cards open the whole story in the pop-up: the card is the target (its button for keyboards),
   and it tilts with a glare like the other cards (motion.js, [data-tilt]). */
.project[data-sheet-card] { position: relative; isolation: isolate; cursor: pointer; }
.project[data-sheet-card]::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; opacity: var(--glare, 0);
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
  transition: opacity 300ms ease;
}
.project-more { margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }
.project-more .icon { width: 18px; height: 18px; }
.brand-sheet .bs-body .tags { margin-top: 14px; }
.brand-sheet .bs-body .checks { margin: 8px 0 0; }
/* A sheet without a photo (a text-only project) is as tall as its content, within the screen. */
.brand-sheet--plain .bs-panel { height: auto; max-height: calc(100dvh - 48px); }
.brand-sheet--plain .bs-body { overflow: auto; }

/* A project's sheet reads like an article: its one landscape photo as a wide banner across the top,
   the story in a single column beneath; the whole sheet scrolls, the photo moving away as you read. */
.brand-sheet--story { width: min(820px, calc(100% - 48px)); }
.brand-sheet--story .bs-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.brand-sheet--story .bs-media--story { background: none; }
.brand-sheet--story .bs-media--story .bs-stage { flex: none; height: auto; min-height: 0; aspect-ratio: 2 / 1; }
.brand-sheet--story .bs-media--story .bs-shot { padding: 0; background: none; }
.brand-sheet--story .bs-media--story .bs-shot img { object-fit: cover; mix-blend-mode: normal; }
.brand-sheet--story .bs-media--story .bs-strip { display: none; }
.brand-sheet--story .bs-body { overflow: visible; padding: 32px 48px 40px; }
.brand-sheet--story .bs-body > p { max-width: 64ch; }
@media (max-width: 759px) {
  .brand-sheet--story { width: 100%; }
  .brand-sheet--story .bs-media--story .bs-stage { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .brand-sheet--story .bs-body { padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); }
}

/* ---- Equipment written out (blocks.mjs equipmentText) and the overview's closing text ----
   Plain reading text, no cards: two columns of heading + paragraphs on wide screens, divided by hairlines. */
.eq-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 0 56px; margin-top: 28px; }
.eq-text-item { padding: 24px 0 8px; border-top: 1px solid var(--gray-200); }
.eq-text-item h3 { margin: 0 0 10px; color: var(--navy); text-wrap: balance; }
.eq-text-item p { max-width: 62ch; margin: 0 0 12px; color: var(--gray-700); text-wrap: pretty; }
.eq-text-note { padding-left: 14px; box-shadow: inset 1px 0 0 var(--gray-300); font-style: italic; }
.eq-intro { display: grid; gap: 20px 64px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.eq-intro h2 { margin: 0; max-width: 16ch; text-wrap: balance; }
.eq-intro-text p { max-width: 64ch; margin: 0 0 16px; color: var(--gray-700); text-wrap: pretty; }
@media (min-width: 900px) { .eq-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
