/* ==========================================================================
   AF Yacht Service — design system
   Navy from the logo (#183C6E), white, cool mist. Bodoni Moda display,
   Geist text, Geist Mono for nautical labels.
   ========================================================================== */

:root {
  --navy-950: #06142a;
  --navy-900: #0a1f3d;
  --navy-800: #0f2b52;
  --navy-700: #183c6e;
  --navy-600: #245089;
  --navy-400: #5b7fb0;
  --sea-300: #9fb6d3;
  --sea-200: #c3d3e7;
  --sea-100: #e3ebf5;
  --mist: #f3f6fa;
  --paper: #ffffff;
  --ink: #0b1a2f;
  --ink-2: #46566e;
  --ink-3: #6b7a90;
  --line: rgba(11, 26, 47, 0.12);
  --line-strong: rgba(11, 26, 47, 0.24);
  --line-inv: rgba(255, 255, 255, 0.16);
  --line-inv-strong: rgba(255, 255, 255, 0.32);
  --danger: #b4232f;

  --font-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 78px;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 900ms;

  --shadow-1: 0 1px 2px rgba(6, 20, 42, 0.05), 0 10px 30px -14px rgba(6, 20, 42, 0.22);
  --shadow-2: 0 40px 80px -36px rgba(6, 20, 42, 0.5), 0 2px 6px rgba(6, 20, 42, 0.06);
  --focus: var(--navy-600);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--navy-700); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
  transition: top var(--t-med) var(--ease-out);
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--mist { background: var(--mist); }
.section--dark {
  background: radial-gradient(120% 90% at 85% 10%, #13305a 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: #fff; --focus: var(--sea-200); position: relative; isolation: isolate;
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-600);
  display: inline-flex; align-items: center; gap: 0.9em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--light { color: var(--sea-200); }
.h-display, .h-hero, .hero__title {
  font-family: var(--font-display); font-weight: 500; font-optical-sizing: none; font-variation-settings: "opsz" 26;
  letter-spacing: -0.018em; text-wrap: balance; color: var(--ink);
}
.h-display { font-size: clamp(2.15rem, 1.35rem + 2.7vw, 4rem); line-height: 1.04; }
.h-display em, .h-hero em, .hero__title em { font-style: italic; font-weight: 400; }
.h-display--light, .h-hero { color: #fff; }
.h-hero { font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.75rem); line-height: 0.99; letter-spacing: -0.022em; font-variation-settings: "opsz" 34; }
.lead { font-size: clamp(1.1rem, 1rem + 0.38vw, 1.3rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lead--light { color: var(--sea-200); }
.mono { font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.section-head { display: grid; gap: 22px; max-width: 46rem; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lead { max-width: 38rem; }
.section-head--split {
  max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 96px); align-items: end;
}
.section-head--split .eyebrow { grid-column: 1 / -1; }
.section-head--split .lead { justify-self: end; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--navy-700); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-size: 0.97rem; font-weight: 500; letter-spacing: 0.005em; white-space: nowrap;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(0.975); }
.btn--primary:hover { --bg: var(--navy-800); }
.btn--light { --bg: #fff; --fg: var(--navy-900); }
.btn--light:hover { --bg: var(--sea-100); }
.btn--ghost-light { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; --bd: var(--line-inv-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, 0.14); --bd: rgba(255, 255, 255, 0.55); }
.btn--outline { --bg: transparent; --fg: var(--navy-900); --bd: var(--line-strong); }
.btn--outline:hover { --bd: var(--navy-700); --bg: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em; font-weight: 500; color: var(--navy-700);
  padding-block: 6px; border-bottom: 1px solid currentColor; width: fit-content;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ink); --rose-paper: #fff;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out), backdrop-filter var(--t-med) var(--ease-out);
}
.has-hero .site-header:not(.is-solid), .has-phero .site-header:not(.is-solid), .mm-open .site-header {
  color: #fff; --rose-paper: transparent; --focus: var(--sea-200);
}
.has-hero .site-header:not(.is-solid)::before, .has-phero .site-header:not(.is-solid)::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 20, 42, 0.5), rgba(6, 20, 42, 0));
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 1px 0 var(--line);
}
.mm-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__rose { width: 38px; height: 38px; transition: transform 1.2s var(--ease-out); }
.brand:hover .brand__rose { transform: rotate(45deg); }
.brand__name { font-family: var(--font-display); font-variation-settings: "opsz" 9; font-size: 1.28rem; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; }
.brand__name b { font-weight: 600; letter-spacing: 0.04em; }
.brand--light { color: #fff; --rose-paper: transparent; }

.nav { margin-right: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 450; opacity: 0.92; transition: background-color var(--t-fast), opacity var(--t-fast);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav__link[aria-current="page"], .nav__link.is-current { opacity: 1; }
.nav__link[aria-current="page"]::after, .nav__link.is-current::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-left: 2px;
}
.icon--chev { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
[aria-expanded="true"] > .icon--chev { transform: rotate(180deg); }

.panel {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 6px);
  padding-inline: var(--gutter); color: var(--ink); --rose-paper: #fff; --focus: var(--navy-600);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 320ms var(--ease-out), visibility 0s linear 320ms;
}
.is-open > .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel__inner {
  max-width: var(--wrap); margin-inline: auto; background: var(--paper); border-radius: var(--r-l);
  box-shadow: var(--shadow-2); display: grid; grid-template-columns: minmax(0, 1fr) 320px; overflow: hidden;
  border: 1px solid var(--line);
}
.panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 2px; }
.panel__link { display: flex; gap: 16px; padding: 18px; border-radius: var(--r-m); transition: background-color var(--t-fast); }
.panel__link:hover, .panel__link[aria-current="page"] { background: var(--mist); }
.panel__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--navy-400); padding-top: 4px; letter-spacing: 0.08em; }
.panel__text { display: grid; gap: 4px; }
.panel__title { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.panel__desc { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.panel__aside {
  background: var(--navy-900) url("/assets/img/portolan.svg") center/cover; color: #fff; padding: 30px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.panel__aside .eyebrow { color: var(--sea-200); }
.panel__lead { color: var(--sea-200); font-size: 0.95rem; line-height: 1.55; }
.panel__aside .btn { --bg: #fff; --fg: var(--navy-900); margin-top: auto; }
.panel__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; }
.panel__phone .icon { width: 16px; height: 16px; }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; transition: background-color var(--t-fast);
}
.lang__btn .icon:first-child { width: 18px; height: 18px; }
.lang__btn:hover, .lang__btn[aria-expanded="true"] { background: color-mix(in srgb, currentColor 9%, transparent); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 8px; border-radius: var(--r-m);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms;
  --focus: var(--navy-600);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__menu a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; font-size: 0.95rem; }
.lang__menu a:hover { background: var(--mist); }
.lang__menu a[aria-current="true"] { background: var(--mist); font-weight: 500; }
.lang__code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--navy-400); width: 22px; letter-spacing: 0.08em; }

.site-header .btn--primary { transition: background-color var(--t-med), color var(--t-med), transform var(--t-fast); }
.has-hero .site-header:not(.is-solid) .btn--primary, .has-phero .site-header:not(.is-solid) .btn--primary { --bg: #fff; --fg: var(--navy-900); }
.has-hero .site-header:not(.is-solid) .btn--primary:hover, .has-phero .site-header:not(.is-solid) .btn--primary:hover { --bg: var(--sea-100); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 360ms var(--ease-out), top 360ms var(--ease-out);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* mobile menu */
.mm {
  position: fixed; inset: 0; z-index: 90; color: #fff; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy-950) url("/assets/img/portolan.svg") 70% 40% / cover;
  --focus: var(--sea-200);
  opacity: 0; visibility: hidden; transition: opacity 320ms var(--ease-out), visibility 0s linear 320ms;
}
.mm.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.mm__inner { min-height: 100%; padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }
.mm__services li, .mm__pages li { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 80ms); }
.mm.is-open .mm__services li, .mm.is-open .mm__pages li { opacity: 1; transform: none; }
.mm__services a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-inv); font-family: var(--font-display); font-size: clamp(1.5rem, 5.4vw, 2rem); line-height: 1.15; }
.mm__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--sea-300); letter-spacing: 0.1em; flex: none; width: 24px; }
.mm__pages { display: flex; gap: 28px; }
.mm__pages li { --i: 7; }
.mm__pages a { font-size: 1.1rem; border-bottom: 1px solid var(--line-inv-strong); padding-bottom: 4px; }
.mm__contact { display: grid; gap: 10px; margin-top: auto; }
.mm__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mm__langs a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-inv); }
.mm__langs a[aria-current="true"] { background: #fff; color: var(--navy-900); border-color: #fff; }
.mm-open { overflow: hidden; }

/* ==========================================================================
   HERO — sticky scroll sequence (camera descends from top-down to sea level)
   ========================================================================== */
.hero { position: relative; height: calc(var(--chapters, 4) * 100svh); background: var(--navy-950); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; --focus: var(--sea-200); }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--navy-950); }
.hero__frame { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; transform-origin: 62% 50%; backface-visibility: hidden; contain: paint; }
.hero__frame:nth-child(even) { transform-origin: 32% 50%; }
.hero__frame.is-on { opacity: 1; }
.hero__frame picture, .hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero[data-mode="seq"] .hero__canvas:not(.is-ready) { opacity: 0; }

/* placeholder scene: a portolan sea plane that tilts toward the horizon as you scroll */
.hero__plane { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 30%; --p: 0; --x: 64%; }
.hero__sea {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at var(--x) 52%, rgba(52, 104, 168, 0.55), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, #10305c 0%, transparent 60%),
    linear-gradient(180deg, #081a35 0%, #0d2a52 55%, #0a2146 100%);
}
.hero__grid {
  position: absolute; left: -40%; right: -40%; top: -30%; bottom: -60%;
  background: url("/assets/img/portolan-wide.svg") center/cover;
  transform-origin: 50% 60%;
  transform: rotateX(calc(var(--p) * 66deg)) translateY(calc(var(--p) * 6%)) scale(calc(1 + var(--p) * 0.35));
  opacity: calc(0.95 - var(--p) * 0.25);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 calc(10% + var(--p) * 30%), #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 calc(10% + var(--p) * 30%), #000 100%);
}
.hero__rose {
  position: absolute; left: var(--x); top: 52%; width: min(54vmin, 560px); height: auto; aspect-ratio: 1;
  color: rgba(255, 255, 255, 0.9); --rose-paper: rgba(255, 255, 255, 0.05);
  transform: translate(-50%, -50%) rotateX(calc(var(--p) * 68deg)) rotateZ(calc(var(--p) * -70deg)) scale(calc(1 - var(--p) * 0.12));
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.hero__shade, .hero__vignette { position: absolute; inset: 0; pointer-events: none; transition: opacity 700ms var(--ease-out); }
.hero__shade--left { background: linear-gradient(90deg, rgba(6, 20, 42, 0.78) 0%, rgba(6, 20, 42, 0.45) 34%, rgba(6, 20, 42, 0) 64%); }
.hero__shade--right { background: linear-gradient(270deg, rgba(6, 20, 42, 0.78) 0%, rgba(6, 20, 42, 0.45) 34%, rgba(6, 20, 42, 0) 64%); opacity: 0; }
.hero[data-side="right"] .hero__shade--left { opacity: 0; }
.hero[data-side="right"] .hero__shade--right { opacity: 1; }
.hero__vignette { background: linear-gradient(180deg, rgba(6, 20, 42, 0.5) 0%, rgba(6, 20, 42, 0) 22%, rgba(6, 20, 42, 0) 66%, rgba(6, 20, 42, 0.7) 100%); }

.hero__chapters { position: relative; height: 100%; display: grid; align-items: center; padding-top: var(--header-h); padding-bottom: 96px; }
.hero__chapter { grid-area: 1 / 1; max-width: 38rem; will-change: opacity, transform; }
.hero__chapter--right { justify-self: end; text-align: right; }
.hero__chapter--right .hero__eyebrow { flex-direction: row-reverse; }
.hero__chapter--right .hero__eyebrow::before { display: none; }
.hero__chapter--right .hero__eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.hero__chapter--right .hero__cta { justify-content: flex-end; }
.js .hero__chapter:not([data-chapter="0"]) { opacity: 0; visibility: hidden; }
.hero__eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero__n { color: #fff; padding-right: 0.9em; border-right: 1px solid rgba(255, 255, 255, 0.35); }
.hero__chapter--right .hero__n { padding-right: 0; padding-left: 0.9em; border-right: 0; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.hero__title {
  color: #fff; font-size: clamp(2.9rem, 1.3rem + 5.4vw, 6.6rem); line-height: 0.97; letter-spacing: -0.024em;
  margin: 0.32em 0 0.34em; text-shadow: 0 2px 30px rgba(6, 20, 42, 0.35);
}
.hero__text { font-size: clamp(1.05rem, 0.96rem + 0.42vw, 1.3rem); line-height: 1.55; color: rgba(255, 255, 255, 0.88); max-width: 31rem; }
.hero__chapter--right .hero__text { margin-left: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__hud {
  position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 28px; row-gap: 14px;
}
.hero__count { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; display: flex; gap: 8px; align-items: baseline; }
.hero__count b { font-weight: 500; font-size: 1rem; min-width: 2ch; }
.hero__count span { color: rgba(255, 255, 255, 0.6); }
.hero__ticks { display: flex; gap: 6px; justify-self: center; }
.hero__ticks button {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55);
  padding: 10px 8px; min-width: 44px; min-height: 44px; transition: color var(--t-med);
}
.hero__ticks button:hover, .hero__ticks button.is-active { color: #fff; }
.hero__ticks button span { display: inline-block; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color var(--t-med); }
.hero__ticks button.is-active span { border-color: #fff; }
.hero__bar { grid-column: 1 / -1; grid-row: 2; height: 1px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.hero__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__hint { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; justify-self: end; min-height: 44px; }
.hero__hint i { position: relative; width: 1px; height: 34px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero__hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: hint 2.2s var(--ease-io) infinite; }
@keyframes hint { 0% { top: -40%; } 70%, 100% { top: 100%; } }
.no-js .hero { height: auto; }
.no-js .hero__stage { position: relative; min-height: 100svh; }

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 28px; }
.intro__grid .eyebrow { grid-column: 1 / -1; }
.intro__title { grid-column: 1 / span 9; font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4.8rem); }
.intro__text { grid-column: 6 / -1; display: grid; gap: 28px; justify-items: start; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 5.25rem); line-height: 0.95; letter-spacing: -0.03em; color: var(--navy-700); font-variant-numeric: lining-nums tabular-nums; }
.stat__value sup { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.08em; vertical-align: top; margin-left: 6px; position: relative; top: 0.6em; color: var(--navy-600); }
.stat__label { color: var(--ink-2); font-size: 0.97rem; max-width: 15rem; line-height: 1.5; }

/* ---------- services index ---------- */
.sindex__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.sindex__list { border-top: 1px solid var(--line-strong); counter-reset: s; }
.sindex__row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; align-items: center; gap: 16px;
  padding: 30px 6px 30px 0; border-bottom: 1px solid var(--line-strong); isolation: isolate;
}
.sindex__row::before {
  content: ""; position: absolute; inset: 0 -18px; z-index: -1; border-radius: var(--r-m); background: var(--paper);
  transform: scaleX(0.96); opacity: 0; transition: opacity var(--t-med) var(--ease-out), transform 500ms var(--ease-out);
}
.sindex__row:hover::before, .sindex__row.is-active::before { opacity: 1; transform: none; }
.sindex__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); letter-spacing: 0.1em; transition: color var(--t-med); }
.sindex__row.is-active .sindex__num, .sindex__row:hover .sindex__num { color: var(--navy-700); }
.sindex__body { display: grid; gap: 6px; }
.sindex__title { font-family: var(--font-display); font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.25rem); line-height: 1.1; letter-spacing: -0.012em; transition: transform 500ms var(--ease-out); }
.sindex__row:hover .sindex__title, .sindex__row.is-active .sindex__title { transform: translateX(6px); }
.sindex__desc { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; max-width: 34rem; }
.sindex__go {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--navy-700); transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med), transform 500ms var(--ease-out);
}
.sindex__row:hover .sindex__go, .sindex__row.is-active .sindex__go { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: rotate(-45deg); }
.sindex__preview { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-2); }
.sindex__frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out); }
.sindex__frame.is-on { opacity: 1; transform: none; }
.sindex__frame .media__img, .sindex__frame picture { width: 100%; height: 100%; object-fit: cover; }
.sindex__frame figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; color: #fff; display: grid; gap: 6px;
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; text-shadow: 0 2px 20px rgba(6, 20, 42, 0.5);
}
.sindex__frame figcaption span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--sea-200); text-shadow: none; }
.sindex__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 20, 42, 0.7)); }

/* ---------- voyage (transfers chart) ---------- */
.voyage { overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: center; }
.voyage__chart {
  position: absolute; inset: 0 -6% 0 22%; z-index: -1; color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.voyage__chart .chart { width: 100%; height: 100%; }
.voyage__grid { position: relative; }
.voyage__copy { max-width: 33rem; display: grid; gap: 34px; justify-items: start; }
.voyage__copy .section-head { margin-bottom: 0; }
.chart .rh { fill: none; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-opacity: 0.1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out); transition-delay: calc(var(--d) * 35ms); }
.chart .rh--main { stroke-opacity: 0.2; }
.chart__ring { fill: none; stroke: #fff; stroke-opacity: 0.25; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-out) 0.3s; }
.chart__rose { color: rgba(255, 255, 255, 0.85); opacity: 0; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg) scale(0.8); transition: opacity 1.2s var(--ease-out) 0.6s, transform 2.4s var(--ease-out) 0.6s; }
.chart .route { fill: none; stroke: var(--sea-200); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ease-io) 0.9s; }
.chart .route--glow { stroke: #7fa6d8; stroke-width: 8; stroke-opacity: 0.18; }
.chart .wp { opacity: 0; transition: opacity 700ms var(--ease-out); transition-delay: calc(1.2s + var(--i) * 0.5s); }
.chart .wp circle { fill: #fff; }
.chart .wp__ring { fill: none !important; stroke: #fff; stroke-opacity: 0.4; vector-effect: non-scaling-stroke; }
.chart .wp text, .chart__coord { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--sea-200); }
.chart__coord { fill: var(--sea-300); font-size: 11px; opacity: 0; transition: opacity 1s var(--ease-out) 1.4s; }
.is-drawn .chart .rh, .is-drawn .chart__ring, .is-drawn .chart .route { stroke-dashoffset: 0; }
.is-drawn .chart__rose { opacity: 1; transform: none; }
.is-drawn .chart .wp, .is-drawn .chart__coord { opacity: 1; }

.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.5; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--navy-600); flex: none; }
.ticks--light { color: #fff; }
.ticks--light .icon { color: var(--sea-200); }

/* ---------- steps ---------- */
.steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.step { display: grid; gap: 18px; align-content: start; }
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--navy-600); letter-spacing: 0.12em; }
.step__line { height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.step__line::after { content: ""; position: absolute; inset: 0; background: var(--navy-700); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 200ms); }
.step.is-in .step__line::after, .no-js .step__line::after { transform: none; }
.step__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.15; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); max-width: 24rem; }

/* ---------- captain ---------- */
.captain__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.captain__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--navy-900); }
.captain__media .media__img, .captain__media picture { width: 100%; height: 100%; object-fit: cover; }
.captain__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 999px; color: #fff; font-size: 0.92rem;
  background: rgba(6, 20, 42, 0.42); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.captain__tag .mono { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy-900); display: grid; place-items: center; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.02em; font-weight: 600; text-transform: none; }
.captain__copy { display: grid; gap: 30px; justify-items: start; }
.captain__copy .section-head { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.faq__grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); interpolate-size: allow-keywords; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem); font-weight: 500; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: transform 400ms var(--ease-out), background-color var(--t-med), color var(--t-med), border-color var(--t-med); }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.faq__item summary:hover .faq__icon { border-color: var(--navy-700); }
.faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size 420ms var(--ease-out), content-visibility 420ms allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }
.faq__a { padding: 0 64px 28px 0; color: var(--ink-2); max-width: 44rem; }

/* ---------- page hero ---------- */
.phero {
  position: relative; min-height: min(86svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden;
  background: var(--navy-950); isolation: isolate; --focus: var(--sea-200);
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media .media__img, .phero__media picture { width: 100%; height: 100%; object-fit: cover; }
.phero__media .media__img { animation: phero-in 2.4s var(--ease-out) both; }
@keyframes phero-in { from { transform: scale(1.08); } to { transform: none; } }
.phero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 20, 42, 0.82) 0%, rgba(6, 20, 42, 0.5) 42%, rgba(6, 20, 42, 0.1) 75%), linear-gradient(180deg, rgba(6, 20, 42, 0.45) 0%, rgba(6, 20, 42, 0) 30%, rgba(6, 20, 42, 0) 60%, rgba(6, 20, 42, 0.55) 100%); }
.phero__inner { position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(56px, 8vw, 104px); display: grid; gap: 22px; justify-items: start; }
.phero__inner > * { animation: rise 1.1s var(--ease-out) both; }
.phero__inner > :nth-child(2) { animation-delay: 80ms; }
.phero__inner > :nth-child(3) { animation-delay: 160ms; }
.phero__inner > :nth-child(4) { animation-delay: 240ms; }
.phero__inner > :nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.phero .h-hero { max-width: 15ch; }
.phero__lead { max-width: 36rem; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.phero__index {
  position: absolute; right: calc(var(--gutter) - 0.04em); bottom: -0.2em; z-index: -1;
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(9rem, 4rem + 22vw, 26rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); letter-spacing: -0.04em; pointer-events: none;
}
.phero--plain { min-height: min(64svh, 640px); background: radial-gradient(110% 120% at 80% 20%, #183c6e 0%, var(--navy-900) 45%, var(--navy-950) 100%); }
.phero--plain::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/portolan-wide.svg") 70% 50% / cover; opacity: 0.8; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* ---------- service: intro ---------- */
.sintro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.sintro__grid .h-display { position: sticky; top: calc(var(--header-h) + 40px); }
.sintro__text { display: grid; gap: 1.2em; font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); color: var(--ink-2); line-height: 1.7; padding-top: 0.6em; }
.sintro__text p:first-child { color: var(--ink); }

/* ---------- service: included ---------- */
.inc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 6vw, 110px); border-top: 1px solid var(--line-strong); }
.inc { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 34px 0; border-bottom: 1px solid var(--line-strong); }
.inc__num { grid-row: span 2; font-family: var(--font-mono); font-size: 0.78rem; color: var(--navy-600); letter-spacing: 0.1em; padding-top: 8px; }
.inc__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.7rem); line-height: 1.15; letter-spacing: -0.01em; }
.inc p { color: var(--ink-2); }

/* ---------- facts band ---------- */
.facts { padding-block: clamp(64px, 8vw, 112px); overflow: hidden; }
.facts__chart { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/portolan-wide.svg") 60% 50% / cover; opacity: 0.6; }
.facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: grid; gap: 10px; padding: 8px 32px; border-left: 1px solid var(--line-inv); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__value { font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; }
.fact__label { color: var(--sea-200); font-size: 0.98rem; }

/* ---------- notes + faq ---------- */
.nf__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.notes { position: sticky; top: calc(var(--header-h) + 40px); background: var(--mist); border-radius: var(--r-l); padding: 34px; display: grid; gap: 22px; }
.notes ul { display: grid; gap: 16px; }
.notes li { padding-left: 22px; position: relative; color: var(--ink); line-height: 1.55; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border: 1px solid var(--navy-700); transform: rotate(45deg); }
.notes__pay { display: flex; gap: 12px; align-items: flex-start; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.notes__pay .icon { color: var(--navy-700); }
.nf__faq .section-head { margin-bottom: 36px; }

/* ---------- cta band ---------- */
.band__box {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl);
  background: radial-gradient(110% 140% at 85% 0%, #245089 0%, var(--navy-800) 40%, var(--navy-950) 100%);
  color: #fff; padding: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end;
  --focus: var(--sea-200);
}
.band__chart {
  position: absolute; inset: 0; z-index: -1; background: url("/assets/img/portolan.svg") 80% 40% / cover; opacity: 0.4;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 75%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), #000 75%);
}
.band__rose { position: absolute; z-index: -1; width: min(48vw, 520px); right: -6%; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.07); --rose-paper: transparent; }
.band__copy { display: grid; gap: 20px; }
.band__actions { display: grid; gap: 12px; justify-items: stretch; }
.band__phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.08em; padding: 10px; color: var(--sea-200); }
.band__phone:hover { color: #fff; }
.band__phone .icon { width: 18px; height: 18px; }

/* ---------- other services ---------- */
.others__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: clamp(28px, 4vw, 64px); margin-top: 32px; border-top: 1px solid var(--line-strong); }
.other { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.other__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.1em; }
.other__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; }
.other .icon { color: var(--navy-700); transition: transform 400ms var(--ease-out); }
.other:hover .icon { transform: translate(3px, -3px); }
.other:hover .other__title { color: var(--navy-700); }

/* ---------- about ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.story__head { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.story__text { display: grid; gap: 1.3em; font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem); color: var(--ink-2); line-height: 1.75; }
.story__text p:first-child::first-letter { font-family: var(--font-display); float: left; font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--navy-700); }
.creds { overflow: hidden; }
.creds__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-inv); }
.cred { padding: 32px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.cred + .cred { padding-left: 28px; border-left: 1px solid var(--line-inv); }
.cred__value { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.cred__label { color: var(--sea-200); line-height: 1.5; }

/* ---------- contact ---------- */
.reach { padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.reach .channels { position: relative; z-index: 2; margin-top: clamp(-72px, -6vw, -40px); background: var(--paper); box-shadow: var(--shadow-2); border-color: var(--line); }
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); border-radius: var(--r-l); overflow: hidden; }
.channel {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 20px;
  padding: clamp(24px, 3vw, 38px); isolation: isolate; overflow: hidden; transition: color var(--t-med);
}
.channel + .channel { border-left: 1px solid var(--line-strong); }
.channel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-800); transform: translateY(101%); transition: transform 520ms var(--ease-out); }
.channel:hover { color: #fff; }
.channel:hover::before { transform: none; }
.channel__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy-700); transition: background-color var(--t-med), color var(--t-med); }
.channel:hover .channel__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.channel__icon .icon { width: 22px; height: 22px; }
.channel__body { display: grid; gap: 4px; align-content: center; min-width: 0; }
.channel__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); transition: color var(--t-med); }
.channel:hover .channel__label { color: var(--sea-200); }
.channel__value { font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
.channel__action { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--navy-700); transition: color var(--t-med); }
.channel:hover .channel__action { color: #fff; }
.channel__action .icon { width: 18px; height: 18px; transition: transform 400ms var(--ease-out); }
.channel:hover .channel__action .icon { transform: translateX(4px); }
.channels--big .channel__value { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); }
.channels--dark { border-color: var(--line-inv-strong); }
.channels--dark .channel { color: #fff; }
.channels--dark .channel + .channel { border-color: var(--line-inv-strong); }
.channels--dark .channel::before { background: #fff; }
.channels--dark .channel:hover { color: var(--navy-900); }
.channels--dark .channel__icon { background: rgba(255, 255, 255, 0.08); color: #fff; }
.channels--dark .channel:hover .channel__icon { background: var(--mist); color: var(--navy-700); }
.channels--dark .channel__label { color: var(--sea-300); }
.channels--dark .channel:hover .channel__label { color: var(--ink-3); }
.channels--dark .channel__action { color: var(--sea-200); }
.channels--dark .channel:hover .channel__action { color: var(--navy-700); }

.builder__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.builder__form { background: var(--paper); border-radius: var(--r-l); padding: clamp(24px, 3.6vw, 48px); display: grid; gap: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.field { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field__label { font-weight: 500; font-size: 0.98rem; padding: 0; }
.req { color: var(--navy-600); }
.field__help { font-size: 0.86rem; color: var(--ink-3); line-height: 1.45; }
.field__error { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 0.9rem; font-weight: 500; }
.field__error .icon { width: 16px; height: 16px; }
.input {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 1rem; line-height: 1.4; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:hover { border-color: rgba(11, 26, 47, 0.4); }
.input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(36, 80, 137, 0.16); }
.input--area { min-height: 128px; resize: vertical; }
.input::placeholder { color: var(--ink-3); }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 47, 0.1); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.94rem; background: var(--paper); transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.chip span::before { content: ""; width: 0; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; transition: width var(--t-med) var(--ease-out), opacity var(--t-fast); }
.chip:hover span { border-color: var(--navy-700); }
.chip input:checked + span { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.chip input:checked + span::before { width: 5px; opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip input:active + span { transform: scale(0.97); }
.field.has-error .chip span { border-color: rgba(180, 35, 47, 0.55); }

.builder__summary { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.summary__card {
  border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); color: #fff; display: grid; gap: 22px; --focus: var(--sea-200);
  background: radial-gradient(120% 120% at 100% 0%, #245089 0%, var(--navy-800) 45%, var(--navy-950) 100%);
  box-shadow: var(--shadow-2);
}
.summary__preview {
  min-height: 200px; max-height: 420px; overflow: auto; white-space: pre-wrap; font-size: 0.97rem; line-height: 1.6;
  padding: 20px; border-radius: var(--r-m); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--sea-100);
}
.summary__preview.is-empty { color: var(--sea-300); display: grid; place-items: center; text-align: center; }
.summary__actions { display: grid; gap: 10px; }
.summary__copy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 0.92rem; color: var(--sea-200); }
.summary__copy:hover { color: #fff; }
.summary__copy .icon { width: 18px; height: 18px; }
.summary__note { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; padding-inline: 6px; }

.infos { padding-top: 0; }
.section--mist + .infos { padding-top: var(--section-y); }
.phero + .reach { background: var(--paper); }
.infos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line-strong); padding-top: 36px; }
.info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.info > .icon { width: 24px; height: 24px; color: var(--navy-700); margin-top: 3px; }
.info__title { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; margin-bottom: 6px; }
.info p { color: var(--ink-2); font-size: 0.97rem; }

/* ---------- prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; margin: 2em 0 0.6em; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 1em; }
.prose__updated { font-family: var(--font-mono); font-size: 0.75rem !important; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3em; color: var(--ink-3) !important; }

/* ---------- footer ---------- */
.footer { position: relative; isolation: isolate; overflow: hidden; color: var(--sea-200); background: var(--navy-950); --focus: var(--sea-200); padding-bottom: env(safe-area-inset-bottom); }
.footer__chart { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/portolan-wide.svg") 80% 0% / cover; opacity: 0.55; }
.footer__cta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: end; padding-top: var(--section-y); padding-bottom: clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line-inv); }
.footer__cta-copy { display: grid; gap: 22px; justify-items: start; }
.footer__cta .channels { grid-template-columns: 1fr; }
.footer__cta .channel { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; padding: 22px 26px; }
.footer__cta .channel + .channel { border-left: 0; border-top: 1px solid var(--line-inv-strong); }
.footer__cta .channel__action { grid-column: auto; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 7vw, 96px) 48px; }
.footer__brand { display: grid; gap: 20px; align-content: start; max-width: 24rem; font-size: 0.95rem; line-height: 1.6; }
.footer__base { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea-300); }
.footer__base .icon { width: 16px; height: 16px; }
.footer__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea-300); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: 0.95rem; color: #fff; opacity: 0.86; transition: opacity var(--t-fast); overflow-wrap: anywhere; }
.footer__col a:hover, .footer__col a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 32px; border-top: 1px solid var(--line-inv); font-size: 0.85rem; color: var(--sea-300); }
.footer__legal a:hover { color: #fff; }

/* ---------- mobile action bar ---------- */
.action-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80; display: none;
  grid-template-columns: repeat(3, 1fr); padding: 6px; border-radius: 22px; color: #fff;
  background: rgba(10, 31, 61, 0.86); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 18px 40px -16px rgba(6, 20, 42, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(calc(100% + 24px)); transition: transform 520ms var(--ease-out);
  --focus: var(--sea-200);
}
.action-bar.is-on { transform: none; }
.action-bar a { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 7px; border-radius: 16px; font-size: 0.75rem; letter-spacing: 0.02em; transition: background-color var(--t-fast); }
.action-bar a:active { background: rgba(255, 255, 255, 0.1); }
.action-bar .icon { width: 21px; height: 21px; }

/* ---------- language suggestion ---------- */
.suggest {
  position: fixed; right: 20px; top: calc(var(--header-h) + 12px); z-index: 85; max-width: min(420px, calc(100vw - 40px));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-radius: 18px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); border: 1px solid var(--line);
  animation: rise 600ms var(--ease-out) both;
}
.suggest__text { font-size: 0.92rem; line-height: 1.4; }
.suggest__go { flex: none; font-weight: 500; font-size: 0.9rem; color: #fff; background: var(--navy-700); padding: 10px 16px; border-radius: 999px; }
.suggest__go:hover { background: var(--navy-800); }
.suggest__close { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.suggest__close:hover { background: var(--mist); color: var(--ink); }

/* ---------- photo placeholders ---------- */
.art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(90% 80% at 72% 38%, #2b5b98 0%, #183c6e 34%, #0a1f3d 72%, #06142a 100%); }
.art--2 { background: radial-gradient(90% 80% at 28% 42%, #2b5b98 0%, #183c6e 34%, #0a1f3d 72%, #06142a 100%); }
.art--3 { background: radial-gradient(100% 90% at 70% 70%, #2a5891 0%, #15365f 38%, #0a1f3d 72%, #06142a 100%); }
.art--4 { background: radial-gradient(110% 80% at 50% 0%, #2f62a2 0%, #183c6e 36%, #0a1f3d 74%, #06142a 100%); }
.art__chart { position: absolute; inset: 0; background: url("/assets/img/portolan.svg") center/cover; opacity: 0.75; }
.art__rose { position: absolute; width: min(56%, 420px); aspect-ratio: 1; height: auto; right: 9%; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.22); --rose-paper: transparent; }
.art--2 .art__rose { right: auto; left: 9%; }
.art--3 .art__rose { top: 62%; right: 14%; width: min(46%, 360px); }
.art--4 .art__rose { right: 50%; transform: translate(50%, -50%); }
.phero .art__rose { width: min(40vw, 520px); right: 6%; }
.phero .art--2 .art__rose { right: 6%; left: auto; }


/* ---------- boat types rail ---------- */
.types { overflow: hidden; }
.types__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 72px); }
.types__head .section-head { margin-bottom: 0; }
.rail__nav { display: flex; gap: 10px; flex: none; }
.rail__btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy-700);
  transition: background-color var(--t-med), color var(--t-med), border-color var(--t-med), opacity var(--t-med), transform var(--t-fast);
}
.rail__btn:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.rail__btn:active { transform: scale(0.95); }
.rail__btn:disabled { opacity: 0.3; pointer-events: none; }
.icon--flip { transform: scaleX(-1); }
.rail {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none;
  overscroll-behavior-x: contain; cursor: grab; outline-offset: -4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .tcard { pointer-events: none; }
.rail__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--pad); width: max-content; }
.rail__item { flex: none; width: clamp(270px, 25vw, 380px); scroll-snap-align: start; }
.rail img { -webkit-user-drag: none; user-select: none; }
.tcard { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-l); overflow: hidden; background: var(--navy-900); isolation: isolate; }
.tcard__media { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.tcard:hover .tcard__media { transform: scale(1.05); }
.tcard__media .media__img, .tcard__media picture { width: 100%; height: 100%; object-fit: cover; }
.tcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(6, 20, 42, 0) 45%, rgba(6, 20, 42, 0.78) 100%); }
.tcard__cap { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; color: #fff; display: grid; gap: 6px; }
.tcard__num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--sea-200); }
.tcard__name { font-family: var(--font-display); font-variation-settings: "opsz" 20; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.1; }
.tcard__line { color: var(--sea-100); font-size: 0.94rem; line-height: 1.45; }
.types__foot { display: flex; flex-wrap: wrap; gap: 32px; margin-top: clamp(32px, 4vw, 48px); }

/* ---------- panorama ---------- */
.pano { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate; background: var(--navy-950); --focus: var(--sea-200); }
.pano__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.pano__media .media__img, .pano__media picture { width: 100%; height: 100%; object-fit: cover; }
.pano__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 20, 42, 0.2) 0%, rgba(6, 20, 42, 0) 38%, rgba(6, 20, 42, 0.78) 100%); }
.pano__inner { padding-block: clamp(80px, 12vw, 160px); display: grid; gap: 26px; justify-items: start; }
.pano__quote {
  font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 30; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.9rem);
  line-height: 1.03; letter-spacing: -0.02em; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(6, 20, 42, 0.35);
}
.pano__quote em { font-style: italic; font-weight: 400; }

/* ---------- service & about galleries ---------- */
.sgal-wrap, .agal { padding-top: 0; }
.sgal, .agal__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.sgal figure, .agal figure { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--navy-900); }
.sgal figure .media__img, .sgal figure picture, .agal figure .media__img, .agal figure picture { width: 100%; height: 100%; object-fit: cover; }
.sgal__a { grid-column: 1 / span 8; aspect-ratio: 16 / 10; }
.sgal__b { grid-column: 9 / span 4; aspect-ratio: 3 / 4; margin-top: 20%; }
.sgal__c { grid-column: 2 / span 4; aspect-ratio: 3 / 4; margin-top: -12%; }
.sgal__note {
  grid-column: 7 / span 5; align-self: center; display: grid; gap: 18px; color: var(--ink);
  font-family: var(--font-display); font-style: italic; font-variation-settings: "opsz" 24; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.22;
}
.sgal__note .mono { font-family: var(--font-mono); font-style: normal; color: var(--navy-600); }
.agal__a { grid-column: 1 / span 7; aspect-ratio: 3 / 2; }
.agal__b { grid-column: 9 / span 4; aspect-ratio: 3 / 4; margin-top: 14%; }
.js .sgal [data-reveal] .media__img, .js .agal [data-reveal] .media__img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.js .sgal [data-reveal].is-in .media__img, .js .agal [data-reveal].is-in .media__img { transform: none; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: inline-block; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .action-bar { display: grid; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .sindex__grid { grid-template-columns: minmax(0, 1fr); }
  .sindex__preview { display: none; }
  .builder__grid { grid-template-columns: minmax(0, 1fr); }
  .builder__summary { position: static; }
  .footer__cta { grid-template-columns: minmax(0, 1fr); }
  .band__box { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .band__actions { grid-template-columns: repeat(2, minmax(0, max-content)); justify-content: start; }
  .band__phone { justify-content: flex-start; }
}

@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .section-head--split .lead { justify-self: start; }
  .intro__title, .intro__text { grid-column: 1 / -1; }
  .stats, .creds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3), .cred:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3), .cred:nth-child(n + 3) { margin-top: 18px; }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .captain__grid, .faq__grid, .sintro__grid, .nf__grid, .story__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__grid .section-head, .sintro__grid .h-display, .notes, .story__head { position: static; }
  .inc__list { grid-template-columns: minmax(0, 1fr); }
  .facts__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .fact { padding: 0 0 0 20px; border-left: 1px solid var(--line-inv); }
  .fact:first-child { padding-left: 20px; border-left: 1px solid var(--line-inv); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .channel + .channel { border-left: 0; border-top: 1px solid var(--line-strong); }
  .channels--dark .channel + .channel { border-top-color: var(--line-inv-strong); }
  .channel { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; }
  .channel__action { grid-column: auto; font-size: 0; gap: 0; }
  .channel__action .icon { width: 20px; height: 20px; }
  .infos__grid { grid-template-columns: minmax(0, 1fr); }
  .types__head { flex-direction: column; align-items: flex-start; }
  .rail__nav { display: none; }
  .rail__item { width: min(78vw, 360px); }
  .sgal__a, .agal__a { grid-column: 1 / -1; }
  .sgal__b, .agal__b { grid-column: 1 / span 6; margin-top: 0; }
  .sgal__c { grid-column: 7 / span 6; margin-top: 0; }
  .agal__b { grid-column: 4 / -1; }
  .sgal__note { grid-column: 1 / -1; }
  .pano { min-height: 78svh; }
  .voyage { min-height: 0; }
  .voyage__chart { inset: auto -30% -6% -30%; height: 58%; opacity: 0.75; }
  .voyage__copy { padding-bottom: 46vw; }
  .faq__a { padding-right: 0; }
  .footer__cta .channel { padding: 20px; }

  /* hero: every chapter sits at the bottom, left aligned, over a deeper floor shade */
  .hero__chapters { align-items: end; padding-bottom: 128px; }
  .hero__chapter, .hero__chapter--right { justify-self: start; text-align: left; max-width: 34rem; }
  .hero__chapter--right .hero__eyebrow { flex-direction: row; }
  .hero__chapter--right .hero__eyebrow::before { display: block; }
  .hero__chapter--right .hero__eyebrow::after { display: none; }
  .hero__chapter--right .hero__n { padding-left: 0; padding-right: 0.9em; border-left: 0; border-right: 1px solid rgba(255, 255, 255, 0.35); }
  .hero__chapter--right .hero__text { margin-left: 0; }
  .hero__chapter--right .hero__cta { justify-content: flex-start; }
  .hero__shade--left, .hero__shade--right, .hero[data-side="right"] .hero__shade--right { opacity: 0 !important; }
  .hero__vignette { background: linear-gradient(180deg, rgba(6, 20, 42, 0.55) 0%, rgba(6, 20, 42, 0) 20%, rgba(6, 20, 42, 0) 38%, rgba(6, 20, 42, 0.86) 78%, rgba(6, 20, 42, 0.94) 100%); }
  .hero__ticks { display: none; }
  .hero__hud { grid-template-columns: auto 1fr; }
  .hero__rose { width: 62vmin; top: 27%; }
  .hero__frame, .hero__frame:nth-child(even) { transform-origin: 50% 50%; }
  .phero .h-hero { max-width: none; }
  .phero__index { font-size: 46vw; bottom: auto; top: calc(var(--header-h) + 10px); }
}

@media (max-width: 599px) {
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .stats, .creds__grid { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat, .cred, .cred + .cred { padding: 24px 0 0; border-left: 0; margin-top: 0 !important; }
  .stat + .stat, .cred + .cred { border-top: 1px solid var(--line); margin-top: 24px !important; }
  .cred + .cred { border-top-color: var(--line-inv); }
  .sindex__row { grid-template-columns: 40px minmax(0, 1fr) 44px; padding-block: 24px; }
  .sindex__go { width: 44px; height: 44px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .band__actions { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .brand__name { font-size: 1.12rem; }
  .brand__rose { width: 34px; height: 34px; }
  .lang__btn .icon:first-child { display: none; }
  .suggest { left: 12px; right: 12px; max-width: none; }
}

/* ---------- motion & materials preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal] { transform: none; transition: opacity 300ms ease; }
  .sindex__frame, .hero__frame { transform: none !important; }
  .chart .rh, .chart__ring, .chart .route { transition-duration: 1ms; transition-delay: 0s; }
  .hero__hint i::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-solid { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .action-bar { background: var(--navy-900); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--ghost-light, .captain__tag { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 20, 42, 0.7); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(11, 26, 47, 0.4); --line-strong: rgba(11, 26, 47, 0.6); --ink-2: #26344a; --ink-3: #3a4a61; }
  .site-header.is-solid { background: #fff; }
}
@media print {
  .site-header, .action-bar, .suggest, .mm, .hero__hud, .footer__chart { display: none !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 60vh; }
}

/* long compound words (German) break cleanly instead of overflowing on phones */
:lang(de) .h-display, :lang(de) .h-hero, :lang(de) .hero__title, :lang(de) .sindex__title,
:lang(de) .inc__title, :lang(de) .fact__value, :lang(de) .cred__value, :lang(de) .tcard__name { hyphens: auto; -webkit-hyphens: auto; }
.h-hero, .hero__title, .h-display { overflow-wrap: break-word; }

/* optical sizes for smaller Bodoni settings */
.sindex__title, .step__title, .inc__title, .panel__title, .other__title, .info__title, .prose h2,
.sindex__frame figcaption, .mm__services a, .captain__tag .mono { font-variation-settings: "opsz" 14; }
.stat__value, .fact__value, .cred__value { font-variation-settings: "opsz" 30; }
.hero__title { font-variation-settings: "opsz" 34; }
.phero__index { font-variation-settings: "opsz" 60; }
