/* ═══════════════════════════════════════════════════════════════════════
   S/Y ALBACORA — A LINHA DO HORIZONTE
   Home stylesheet. Dark dossier over a fixed "world" stack; one 1px
   horizon line fixed at --horizon across every section.
   Tokens are a closed set — see DESIGN-SYSTEM.md before touching.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Palette — closed set + sanctioned alphas */
  --abyss:       #0B2233;
  --abyss-deep:  #06141F;   /* derived: zenith / night ground */
  --abyss-mid:   #123249;   /* derived: sky mid-band */
  --linen:       #FAF8F2;
  --teak:        #C8A97E;
  --signal:      #E4572E;
  --linen-90: rgba(250, 248, 242, 0.90);
  --linen-70: rgba(250, 248, 242, 0.70);
  --linen-55: rgba(250, 248, 242, 0.55);
  --linen-30: rgba(250, 248, 242, 0.30);
  --linen-hair: rgba(250, 248, 242, 0.18);
  --teak-hair:  rgba(200, 169, 126, 0.35);
  --abyss-ink-70: rgba(11, 34, 51, 0.70);

  /* THE line */
  --horizon: 42svh;

  /* Rhythm */
  --pad-x: clamp(20px, 5vw, 84px);
  --section-y: clamp(96px, 15vh, 180px);

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Sora', 'Helvetica Neue', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ── Reset & ground ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--abyss);
  color: var(--linen);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--teak); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--abyss-deep); }
::-webkit-scrollbar-thumb { background: rgba(200, 169, 126, 0.4); border-radius: 5px; }

/* ── The label utility — every small-caps eyebrow joins THIS rule ───── */
.section-label, .hero-kicker, .hero-coord, .hero-specline,
.itin-card-day, .itin-hint, .itin-isle, .manifesto-note,
.enquire-eyebrow, .footer-col h4, .menu-foot, .gallery-item figcaption,
.crew-portrait figcaption, .horizon-lat, .lightbox-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--linen-55);
}

/* ═══ THE WORLD — fixed stack, layers fade in and cover ═══ */
.world { position: fixed; inset: 0; z-index: 0; }
.world-layer { position: absolute; inset: 0; background-size: cover; background-position: center; }
.world-water, .world-cabin, .world-dusk, .world-night { opacity: 0; }

/* sky: composed around the horizon (42%) — zenith to warm haze to deep water */
.world-sky {
  background: linear-gradient(180deg,
    var(--abyss-deep) 0%, var(--abyss-mid) 24%, #2C4E63 36%,
    #7E7E71 40.5%, #D8B98C 41.9%,           /* haze band just above the line */
    #16394E 42.15%, #0E2C40 55%, var(--abyss-deep) 100%);
}
.sea-fallback {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0;
  background: linear-gradient(180deg, #35576B 0%, #16394E 7%, #0E2C40 46%, var(--abyss-deep) 100%);
}
.sea-canvas { position: absolute; left: 0; right: 0; top: var(--horizon); height: calc(100% - var(--horizon)); width: 100%; }
.no-webgl .sea-canvas { display: none; }
.sky-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: radial-gradient(58% 30% at 50% 42%, rgba(216, 185, 140, 0.34), rgba(216, 185, 140, 0) 68%);
  pointer-events: none;
}

/* the other worlds: photograph + abyss scrim, all dark, all quiet */
.world-water {
  background-image:
    linear-gradient(180deg, rgba(6, 20, 31, 0.92) 0%, rgba(11, 34, 51, 0.72) 42%, rgba(6, 20, 31, 0.84) 100%),
    url('/sites/albacora/assets/cove-anchor.jpg');
}
.world-cabin {
  background-image:
    linear-gradient(180deg, rgba(6, 20, 31, 0.90) 0%, rgba(11, 34, 51, 0.74) 42%, rgba(6, 20, 31, 0.88) 100%),
    url('/sites/albacora/assets/cabin-master.jpg');
}
.world-dusk {
  background-image:
    linear-gradient(180deg, rgba(6, 20, 31, 0.88) 0%, rgba(11, 34, 51, 0.72) 42%, rgba(6, 20, 31, 0.90) 100%),
    url('/sites/albacora/assets/dinner-aft.jpg');
}
.world-night { background: linear-gradient(180deg, #081B29 0%, var(--abyss-deep) 100%); }

/* ═══ THE HORIZON — 1px, fixed, persistent ═══ */
/* The intro fade is CSS-only (.risen, added by JS one frame after load):
   a compositor transition survives main-thread stalls, and the line must
   never depend on a JS tick. Do NOT tween .horizon opacity from GSAP —
   the transition below would fight the tween frame by frame. */
.horizon {
  position: fixed; left: 0; right: 0; top: var(--horizon);
  height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(250, 248, 242, 0) 0%, var(--linen-55) 10%,
    var(--linen-70) 50%, var(--linen-55) 90%, rgba(250, 248, 242, 0) 100%);
  box-shadow: 0 0 22px rgba(250, 248, 242, 0.22);
  transition: opacity 2.2s var(--ease-soft);
}
.js .horizon { opacity: 0; }
.js .horizon.risen { opacity: 1; }
.horizon-lat {
  position: absolute; right: var(--pad-x); bottom: 10px;
  font-size: 9.5px; letter-spacing: 0.3em; color: var(--linen-30);
  transition: opacity 0.6s var(--ease-soft);
  display: none;
}
@media (min-width: 880px) { .horizon-lat { display: block; } }
.horizon-lat.swap { opacity: 0; }

/* content rides above world + line */
.nav, .menu, main { position: relative; z-index: 2; }
main > section, main > footer { position: relative; }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 44px);
  padding: 18px var(--pad-x);
  transition: transform 0.6s var(--ease-out), opacity 0.8s var(--ease-soft);
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.88), rgba(6, 20, 31, 0));
  transition: opacity 0.6s var(--ease-soft);
}
.nav.scrolled::before { opacity: 1; }
.nav.hidden { transform: translateY(-110%); }
.nav-init { opacity: 0; transform: translateY(-14px); }
.nav-wordmark {
  font-family: var(--font-display); font-size: 17px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-right: auto; white-space: nowrap;
}
.nav-links { display: none; gap: clamp(18px, 2.4vw, 36px); }
.nav-links a {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--linen-70); position: relative; padding: 4px 0;
}
.nav-links a::after, .link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--teak); transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after,
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-links a:hover { color: var(--linen); }
.nav-cta {
  display: none; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--teak-hair); border-radius: 999px; padding: 11px 26px;
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft);
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--teak); border-color: var(--teak); color: var(--abyss); }
.nav-burger {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
  margin-right: -10px;
}
.nav-burger span {
  display: block; width: 26px; height: 1px; background: var(--linen);
  transition: transform 0.5s var(--ease-out);
}
body.menu-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .nav-burger { display: none; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 30; background: rgba(6, 20, 31, 0.97);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad-x);
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-soft), visibility 0s 0.5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-soft); }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a {
  font-family: var(--font-display); font-size: clamp(30px, 8.4vw, 44px);
  letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 0;
  display: flex; align-items: baseline; gap: 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-soft), transform 0.7s var(--ease-out);
}
.menu-links a small { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.2em; color: var(--teak); }
body.menu-open .menu-links a { opacity: 1; transform: none; }
body.menu-open .menu-links a:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: 0.11s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: 0.16s; }
body.menu-open .menu-links a:nth-child(4) { transition-delay: 0.21s; }
body.menu-open .menu-links a:nth-child(5) { transition-delay: 0.26s; }
body.menu-open .menu-links a:nth-child(6) { transition-delay: 0.31s; }
.menu-foot { position: absolute; bottom: 32px; left: var(--pad-x); }

/* ═══ HERO ═══ */
.hero { height: 100svh; min-height: 560px; }
.hero-head {
  position: absolute; left: var(--pad-x); right: var(--pad-x);
  bottom: calc(100% - var(--horizon) + 22px);
  text-align: center;
}
.hero-kicker { color: var(--teak); margin-bottom: clamp(10px, 2vh, 22px); }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(54px, 15.5vw, 170px);
  line-height: 0.96; letter-spacing: 0.05em; text-indent: 0.05em; /* optical: balance tracking */
  color: var(--linen);
  text-shadow: 0 2px 60px rgba(6, 20, 31, 0.4);
}
.hero-sub {
  max-width: 46ch; margin: clamp(12px, 2.2vh, 24px) auto 0;
  font-size: 13.5px; line-height: 1.7; color: var(--linen-70);
}
.hero-plate {
  position: absolute; left: 50%; top: calc(var(--horizon) + clamp(20px, 4vh, 44px));
  transform: translateX(-50%);
  width: min(88vw, 1020px, calc((100svh - var(--horizon) - 150px) * 2.15));
  aspect-ratio: 21 / 9;
  box-shadow: 0 26px 60px -28px rgba(3, 12, 19, 0.55);
  outline: 1px solid var(--teak-hair); outline-offset: 10px;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 1; transition: opacity 1.2s var(--ease-soft); }
.hero-plate.no-video .hero-video { display: none; }
.hero-foot {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 22px;
  display: flex; align-items: flex-end; justify-content: center; gap: 24px;
}
.hero-coord { display: none; position: absolute; left: 0; bottom: 0; }
.hero-specline { color: var(--linen-70); text-align: center; font-size: 10px; letter-spacing: 0.3em; }
.hero-cue {
  position: absolute; left: 50%; bottom: 44px; width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--linen-55), transparent);
  overflow: hidden;
}
.hero-cue::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--linen); animation: cue-drop 2.8s var(--ease-soft) infinite;
}
@keyframes cue-drop { 0% { top: -100%; } 60%, 100% { top: 110%; } }
@media (min-width: 880px) {
  .hero-coord { display: block; }
  .hero-specline { font-size: 11px; }
}
/* mobile: the plate sits taller (16:9) so the composition doesn't float
   in the band between the line and the specline — declared mobile
   behavior of the hero media slot (video is 21:9; cover-crop absorbs it) */
@media (max-width: 879px) {
  .hero-plate { aspect-ratio: 16 / 9; }
}

/* mask-line entrance plumbing (JS-gated) */
.mask-line { overflow: hidden; }
.mask-line > span { display: inline-block; }
.js .mask-line > span { transform: translateY(120%); }
.js .hero-letters { opacity: 0; }
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-reveal-lines] { opacity: 0; transform: translateY(50px); clip-path: inset(0 0 100% 0); }

/* ═══ SECTION SCAFFOLDING ═══ */
section { padding: var(--section-y) var(--pad-x); }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(40px, 7vh, 84px); }
.section-no { font-family: var(--font-display); font-size: 15px; color: var(--teak); letter-spacing: 0.1em; }
.section-rule { width: clamp(40px, 8vw, 96px); height: 1px; background: var(--teak-hair); }
.section-label { color: var(--linen-70); font-weight: 500; }
h2.section-label { font-size: 11px; }

.link-line { position: relative; padding-bottom: 3px; color: var(--teak); font-size: 13px; letter-spacing: 0.06em; }
.link-line::after { transform: scaleX(1); transform-origin: left; opacity: 0.45; }
.link-line:hover::after { opacity: 1; }

/* ═══ 01 · SPECS — engraved plate ═══ */
.specs { padding-top: calc(var(--section-y) * 0.9); }
.specs-intro { max-width: 620px; margin-bottom: clamp(48px, 8vh, 96px); }
.specs-lede {
  font-family: var(--font-display); font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.28; letter-spacing: 0.01em; text-wrap: balance; margin-bottom: 22px;
}
.specs-lede em, .manifesto-text em, .enquire-body em, .crew-list em, .specs-body em {
  font-style: normal; color: var(--teak);
}
.specs-body { color: var(--linen-70); max-width: 52ch; }
.specs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--linen-hair);
}
.spec {
  padding: clamp(20px, 3.2vh, 34px) 4px clamp(18px, 3vh, 30px);
  border-bottom: 1px solid var(--linen-hair);
}
.spec:nth-child(odd) { border-right: 1px solid var(--linen-hair); padding-right: 18px; }
.spec:nth-child(even) { padding-left: clamp(18px, 3vw, 40px); }
.spec dt {
  font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--linen-55); margin-bottom: 10px;
}
.spec dd {
  font-family: var(--font-display); font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
}
.spec-unit { font-size: 0.32em; letter-spacing: 0.18em; color: var(--teak); }
.specs-more { margin-top: clamp(32px, 5vh, 56px); }
@media (min-width: 880px) {
  .specs-grid { grid-template-columns: repeat(4, 1fr); }
  .spec { border-right: 1px solid var(--linen-hair); padding-left: clamp(18px, 2vw, 32px) !important; }
  .spec:nth-child(4n) { border-right: 0; }
  .spec:nth-child(-n+4) { padding-top: 40px; }
}

/* ═══ MANIFESTO ═══ */
.manifesto { text-align: center; padding-top: calc(var(--section-y) * 1.1); padding-bottom: calc(var(--section-y) * 1.1); }
.manifesto-note { margin-bottom: 26px; }
.manifesto-text {
  font-family: var(--font-display); font-size: clamp(30px, 5.6vw, 62px);
  line-height: 1.3; letter-spacing: 0.01em; max-width: 22ch; margin: 0 auto; text-wrap: balance;
}

/* ═══ 02 · ITINERARY — the scrubber ═══ */
.itinerary { padding: 0; }
.itin-stage {
  height: 100svh; min-height: 620px; padding: calc(64px + 2vh) var(--pad-x) 24px;
  display: flex; flex-direction: column; overflow: clip;
}
.itin-stage .section-head { margin-bottom: clamp(12px, 2.5vh, 40px); }
.itin-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.itin-map { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.itin-map svg { width: 100%; height: 100%; max-height: 100%; overflow: visible; }

.itin-grat line { stroke: rgba(250, 248, 242, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.itin-coast {
  fill: rgba(200, 169, 126, 0.07); stroke: var(--teak); stroke-width: 1.4;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.itin-coast-small { stroke-width: 1; }
.itin-coast-faint { stroke: var(--teak-hair); fill: rgba(200, 169, 126, 0.04); stroke-width: 1; }
/* mainland charts (Amalfi): land as a silent fill closed off-canvas,
   the shoreline as a separate OPEN stroke — no border at the map edge */
.itin-land { fill: rgba(200, 169, 126, 0.07); stroke: none; }
.itin-coast-open { fill: none; }
.itin-contour { fill: none; stroke: var(--teak-hair); stroke-width: 0.8; vector-effect: non-scaling-stroke; opacity: 0.6; }
.itin-isle { font-size: 12px; fill: var(--linen-30); letter-spacing: 0.3em; }
.itin-isle-faint { fill: rgba(250, 248, 242, 0.16); }
.itin-course {
  fill: none; stroke: var(--linen-30); stroke-width: 1; stroke-dasharray: 2 6;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.itin-travel {
  fill: none; stroke: var(--teak); stroke-width: 1.6; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.itin-stop { fill: var(--abyss); stroke: var(--linen-55); stroke-width: 1.2; r: 4; vector-effect: non-scaling-stroke; }
.itin-stop.passed { fill: var(--teak); stroke: var(--teak); }
.itin-stop-label { font-family: var(--font-body); font-size: 11.5px; fill: var(--linen-70); letter-spacing: 0.08em; }
.itin-boat-dot { fill: var(--signal); stroke: var(--linen); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.itin-boat-halo { fill: none; stroke: rgba(228, 87, 46, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; animation: halo-pulse 3.2s var(--ease-soft) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes halo-pulse { 0% { transform: scale(0.35); opacity: 0.9; } 70%, 100% { transform: scale(1); opacity: 0; } }

.itin-side { display: flex; flex-direction: column; gap: 14px; }
.itin-card {
  background: var(--linen); color: var(--abyss);
  padding: clamp(18px, 2.6vh, 30px) clamp(20px, 2.4vw, 32px);
  max-width: 420px; min-height: 148px;
  box-shadow: 0 30px 70px -30px rgba(3, 12, 19, 0.8);
}
.itin-card-day { color: rgba(11, 34, 51, 0.55); margin-bottom: 8px; }
.itin-card-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 3.4vw, 30px); line-height: 1.1; letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.itin-card-log { font-size: 13.5px; line-height: 1.65; color: var(--abyss-ink-70); max-width: 38ch; }
.itin-rail { display: flex; gap: 8px; list-style: none; }
.itin-rail button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--linen-hair); font-size: 11px; font-weight: 500;
  color: var(--linen-55); transition: all 0.45s var(--ease-soft);
  display: grid; place-content: center;
  position: relative;
}
/* invisible hit-area extension → 44px touch target (BLOCKS §5) */
.itin-rail button::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
}
.itin-rail button:hover { border-color: var(--teak); color: var(--linen); }
.itin-rail button[aria-current="true"] { background: var(--teak); border-color: var(--teak); color: var(--abyss); }
.itin-hint { font-size: 9.5px; }

/* the written log — data source; visible as list only in static mode */
.itin-log { display: none; }
.itin-second { padding: 0 var(--pad-x) var(--section-y); margin-top: clamp(40px, 6vh, 72px); color: var(--linen-70); }

/* static fallback (reduced motion / no JS) */
.itin-static .itin-stage { height: auto; min-height: 0; padding-bottom: 0; }
.itin-static .itin-card, .itin-static .itin-rail, .itin-static .itin-hint { display: none; }
.itin-static .itin-layout { display: block; }
.itin-static .itin-map { min-height: 320px; }
.itin-static .itin-map svg { max-height: 62svh; }
.itin-static .itin-travel { display: none; }
.itin-static .itin-log {
  display: block; list-style: none; padding: 32px var(--pad-x) 0;
  max-width: 640px;
}
.itin-static .itin-log li {
  padding: 14px 0; border-bottom: 1px solid var(--linen-hair);
  font-size: 14px; color: var(--linen-70);
}
.itin-static .itin-log b { display: block; font-weight: 500; color: var(--linen); font-size: 13px; letter-spacing: 0.06em; }
.no-js .itinerary { /* same as itin-static, applied by CSS only */ }

@media (min-width: 880px) {
  .itin-layout { flex-direction: row; align-items: stretch; gap: clamp(28px, 4vw, 72px); }
  .itin-side { width: clamp(300px, 30vw, 420px); justify-content: flex-end; padding-bottom: 4vh; }
  .itin-map { flex: 1; }
}
@media (max-width: 879px) {
  .itin-stage { min-height: 100svh; }
  .itin-map { order: -1; max-height: 44svh; }
  .itin-card { max-width: none; }
}

/* ═══ 03 · ABOARD — gallery ═══ */
.aboard-lede {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 54px);
  line-height: 1.25; max-width: 20ch; margin-bottom: clamp(48px, 8vh, 100px); text-wrap: balance;
}
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2.4vw, 32px); }
.gallery-item { position: relative; }
.gallery-item.g-wide { grid-column: span 2; }
.porthole-trigger { display: block; width: 100%; overflow: hidden; cursor: zoom-in; position: relative; }
.porthole-trigger::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--linen-hair);
  pointer-events: none;
}
.porthole-trigger img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.6s var(--ease-out), filter 1.6s var(--ease-out);
}
.porthole-trigger:hover img, .porthole-trigger:focus-visible img { transform: scale(1.035); filter: brightness(1.06); }
.g-wide .porthole-trigger { aspect-ratio: 16 / 9; }
.g-tall .porthole-trigger { aspect-ratio: 3 / 4; }
.g-std .porthole-trigger { aspect-ratio: 4 / 3; }
.g-square .porthole-trigger { aspect-ratio: 1 / 1; }
.gallery-item figcaption { margin-top: 12px; font-size: 9.5px; }
@media (min-width: 880px) {
  .gallery { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .gallery-item.g-wide { grid-column: 1 / 9; }
  .gallery-item.g-tall { grid-column: 9 / 13; margin-top: clamp(40px, 8vh, 120px); }
  .gallery-item.g-std { grid-column: 2 / 7; margin-top: -6vh; }
  .gallery-item.g-square { grid-column: 8 / 12; margin-top: 6vh; }
  .gallery-item:nth-child(5) { grid-column: 3 / 11; margin-top: clamp(40px, 9vh, 130px); }
}

/* ═══ 04 · CREW ═══ */
.crew-layout { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px); }
.crew-portrait { max-width: 380px; }
.crew-portrait img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: 0 30px 70px -30px rgba(3, 12, 19, 0.8); outline: 1px solid var(--teak-hair); outline-offset: 8px; }
.crew-portrait figcaption { margin-top: 16px; }
.crew-lede {
  font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.28; margin-bottom: clamp(28px, 5vh, 48px); max-width: 22ch; text-wrap: balance;
}
.crew-list { list-style: none; max-width: 560px; }
.crew-list li {
  padding: 18px 0; border-bottom: 1px solid var(--linen-hair);
  font-size: 14px; color: var(--linen-70);
}
.crew-list li:first-child { border-top: 1px solid var(--linen-hair); }
.crew-list b { display: block; font-weight: 500; color: var(--linen); letter-spacing: 0.05em; font-size: 13.5px; margin-bottom: 3px; }
@media (min-width: 880px) {
  .crew-layout { flex-direction: row; gap: clamp(48px, 7vw, 120px); align-items: flex-start; }
  .crew-portrait { width: clamp(280px, 28vw, 380px); flex: none; position: sticky; top: 12vh; }
}

/* ═══ 05 · ENQUIRE ═══ */
.enquire { padding-bottom: calc(var(--section-y) * 0.8); }
.enquire-card {
  background: var(--linen); color: var(--abyss);
  max-width: 720px; margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) clamp(24px, 5vw, 64px);
  text-align: center;
  box-shadow: 0 50px 110px -40px rgba(3, 12, 19, 0.9);
  position: relative;
}
.enquire-card::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(11, 34, 51, 0.16); pointer-events: none;
}
.enquire-eyebrow { color: rgba(11, 34, 51, 0.5); margin-bottom: 20px; }
.enquire-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 4vw, 36px); line-height: 1.25; letter-spacing: 0.01em;
  max-width: 22ch; margin: 0 auto 18px; text-wrap: balance;
}
.enquire-body { font-size: 14px; line-height: 1.8; color: var(--abyss-ink-70); max-width: 46ch; margin: 0 auto; }
.enquire-body b { font-weight: 600; color: var(--abyss); }
.enquire-body em { color: inherit; font-style: italic; }
.enquire-rule {
  width: 120px; height: 1px; background: var(--teak); opacity: 0.6;
  margin: clamp(24px, 4vh, 40px) auto;
}
.enquire-agent { font-size: 13px; line-height: 2; color: var(--abyss-ink-70); }
.enquire-agent .link-line { color: var(--abyss); font-weight: 500; }
.enquire-agent .link-line::after { background: var(--signal); }
.enquire-note { margin-top: 22px; font-size: 11.5px; color: rgba(11, 34, 51, 0.45); max-width: 44ch; margin-inline: auto; }

/* ═══ FOOTER ═══ */
.footer { padding: calc(var(--section-y) * 0.7) var(--pad-x) 36px; }
.footer-wordmark {
  font-family: var(--font-display); font-size: clamp(40px, 9vw, 110px);
  letter-spacing: 0.08em; line-height: 1; color: var(--linen);
  border-bottom: 1px solid var(--linen-hair); padding-bottom: clamp(24px, 4vh, 48px);
  margin-bottom: clamp(28px, 5vh, 56px); white-space: nowrap;
}
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: clamp(40px, 7vh, 72px); }
.footer-col h4 { margin-bottom: 14px; font-size: 10px; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--linen-70); padding: 3px 0; }
.footer-col a:hover { color: var(--linen); }
.footer-credit { font-size: 11px; color: var(--linen-30); letter-spacing: 0.08em; }
@media (min-width: 880px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }

/* ═══ LIGHTBOX — horizon-split reveal ═══ */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 64px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-soft), visibility 0s 0.5s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-soft); }
.lightbox-scrim { position: absolute; inset: 0; background: rgba(3, 12, 19, 0.94); cursor: zoom-out; }
.lightbox-figure { position: relative; max-width: min(1200px, 100%); }
.lightbox-split { position: relative; overflow: hidden; }
.lightbox-img {
  max-height: 76svh; max-width: 100%; width: auto; margin: 0 auto;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path 1s var(--ease-out);
  outline: 1px solid var(--teak-hair); outline-offset: -1px;
}
.lightbox.open .lightbox-img { clip-path: inset(0 0 0 0); }
.lightbox-seam {
  position: absolute; left: -4%; right: -4%; top: 50%; height: 1px;
  background: var(--linen); box-shadow: 0 0 18px rgba(250, 248, 242, 0.5);
  transition: opacity 0.7s var(--ease-soft) 0.35s;
}
.lightbox.open .lightbox-seam { opacity: 0; }
.lightbox-caption { margin-top: 16px; text-align: center; font-size: 10px; }
.lightbox-close {
  position: absolute; top: 20px; right: clamp(16px, 4vw, 40px);
  font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--linen-70); padding: 12px 18px;
  border: 1px solid var(--linen-hair); border-radius: 999px;
  transition: all 0.45s var(--ease-soft);
}
.lightbox-close:hover { background: var(--linen); color: var(--abyss); border-color: var(--linen); }

/* ═══ REDUCED MOTION — a complete, still page ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .js .mask-line > span, .js [data-reveal], .js [data-reveal-lines] {
    transform: none; opacity: 1; clip-path: none;
  }
  .js .hero-letters { opacity: 1; }
  .sea-canvas, .hero-cue { display: none; }
  /* worlds resolve to a static abyss gradient; the line remains */
  .world-water, .world-cabin, .world-dusk { display: none; }
  .world-night { opacity: 1; background: linear-gradient(180deg, rgba(8, 27, 41, 0) 0%, var(--abyss-deep) 100%); }
}

/* no-JS: everything readable, static chart, no scrub */
.no-js .itin-card, .no-js .itin-rail, .no-js .itin-hint { display: none; }
.no-js .itin-stage { height: auto; min-height: 0; }
.no-js .itin-map { min-height: 320px; }
.no-js .itin-travel { display: none; }
.no-js .itin-log { display: block; list-style: none; padding: 32px var(--pad-x) 0; max-width: 640px; }
.no-js .itin-log li { padding: 14px 0; border-bottom: 1px solid var(--linen-hair); font-size: 14px; color: var(--linen-70); }
.no-js .itin-log b { display: block; font-weight: 500; color: var(--linen); }
.no-js .nav-init { opacity: 1; transform: none; }
