/* =====================================================================
   Green Fluff Travel — Maritime-Gloss & Chart-Paper Design System
   Authored per /home/godhand/Projects/green-fluff/docs/direction.md
   ===================================================================== */

@import url("assets/fonts/fonts.css");

:root {
  /* --- LIGHT THEME: "SUN DECK" (default) --- */
  --paper-hi: #fdfbf6;
  --paper: #f4efe4;
  --paper-lo: #e6dfd0;
  --paper-card: #faf7ef;
  --vignette: rgba(18, 25, 19, 0.26);

  --ink: #161c17;
  --ink-soft: #434d44;
  --rule: rgba(22, 28, 23, 0.22);
  --rule-strong: rgba(22, 28, 23, 0.42);

  /* --- SLAB: lacquered hull / steamer-trunk matte bottle-forest --- */
  --slab-hi: #22382a;
  --slab: #17271d;
  --slab-lo: #101b14;
  --on-slab: #f4efe4;
  --on-slab-soft: #c5cec6;

  /* --- SIGNALS (rationed: one job each) --- */
  --signal: #1e7a3e;        /* selected / active / confirm — Green Fluff moss */
  --signal-hi: #28944d;
  --signal-lo: #14562b;
  --signal-ink: #1b6e37;    /* high-contrast text-only moss on light paper */
  --alert: #a62626;         /* sold-out / destructive */
  --brass: #c89228;         /* thin 2-3px nautical brass rule ONLY, never fill */

  /* --- SUBJECT-DRIVEN ACCENT (retints per focused port/voyage) --- */
  --accent: #0d7c86;

  /* --- HERO CINEMA SCRIM --- */
  --hero-scrim-l: rgba(11, 20, 15, 0.78);
  --hero-scrim-m: rgba(11, 20, 15, 0.38);
  --hero-scrim-r: rgba(11, 20, 15, 0.22);

  /* --- MOTION (authored curves, zero defaults) --- */
  --ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.25, 1);
  --t-fast: 120ms;
  --t-med: 260ms;
  --t-slow: 520ms;

  /* --- TYPE ROLES (bundled OFL, zero default-reach faces) --- */
  --f-ceremony: "Bodoni Moda", Georgia, serif;
  --f-label: "Archivo Narrow", sans-serif;
  --f-body: "Source Sans 3", sans-serif;

  /* --- SIGNATURE CUT (38-deg boarding-pass chamfer) --- */
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --cut-md: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --cut-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  --cut-tr: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

[data-theme="dark"] {
  /* --- DARK THEME: "MIDNIGHT PROMENADE" --- */
  --paper-hi: #1b241e;
  --paper: #121814;
  --paper-lo: #0b0f0c;
  --paper-card: #19221c;
  --vignette: rgba(4, 7, 5, 0.72);

  --ink: #f1ece1;
  --ink-soft: #b6c0b7;
  --rule: rgba(241, 236, 225, 0.18);
  --rule-strong: rgba(241, 236, 225, 0.34);

  /* On dark, slabs OUT-LIGHT the field so depth reads cleanly (R14) */
  --slab-hi: #304237;
  --slab: #24332a;
  --slab-lo: #1a261f;
  --on-slab: #f5f0e6;
  --on-slab-soft: #c7d1c8;
  --signal-ink: #63d48c;    /* >=8.4:1 readable moss text on dark pine surfaces */

  --hero-scrim-l: rgba(7, 12, 9, 0.84);
  --hero-scrim-m: rgba(7, 12, 9, 0.48);
  --hero-scrim-r: rgba(7, 12, 9, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--paper-lo);
}

body {
  font-family: var(--f-body);
  font-size: 1.0625rem; /* 17px readable body */
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(96% 88% at 50% 42%, transparent 66%, var(--vignette) 100%),
    radial-gradient(100% 85% at 48% 28%, var(--paper-hi) 0%, var(--paper) 64%, var(--paper-lo) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  transition: background-color var(--t-slow) var(--ease-io), color var(--t-slow) var(--ease-io);
}

/* Field texture Layer 1: navigational chart dot-grid (masked to pool of light) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(22, 28, 23, 0.14) 0 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(92% 76% at 50% 34%, #111 22%, transparent 90%);
  mask-image: radial-gradient(92% 76% at 50% 34%, #111 22%, transparent 90%);
}
[data-theme="dark"] body::before {
  background-image: radial-gradient(circle at 50% 50%, rgba(241, 236, 225, 0.08) 0 1px, transparent 1.2px);
}

/* Field texture Layer 2: SVG feTurbulence paper-tooth grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: multiply;
  opacity: 0.11;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
[data-theme="dark"] body::after {
  mix-blend-mode: screen;
  opacity: 0.09;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1440px, calc(100% - 4rem));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* =====================================================================
   REUSABLE MATERIALS: SLAB, TAPE, HATCH, HALFTONE, RING
   ===================================================================== */

.slab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--on-slab);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.72rem 1.28rem;
  clip-path: var(--cut-sm);
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 56%, var(--slab-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 3px 0 rgba(0, 0, 0, 0.36),
    0 12px 22px -10px rgba(0, 0, 0, 0.52);
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    filter var(--t-fast) var(--ease-out);
}

.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}

.slab:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.slab:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 rgba(0, 0, 0, 0);
}

/* Unclipped elevation wrapper: preserves R4 hard contact edge + ambient drop around clip-path children */
.elev-wrap {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.30)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.30));
  display: flex;
  flex-direction: column;
}

.elev-wrap > * {
  flex: 1;
}

[data-theme="dark"] .elev-wrap {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.62)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.56));
}

.header-actions,
.hero-cta-row,
.filter-bar,
.sort-bar,
.tier-row {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.28)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.24));
}

.slab--signal,
.filter-bar .slab[aria-pressed="true"],
.sort-bar .slab[aria-pressed="true"],
.tier-row .slab[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--signal-hi) 0%, var(--signal) 58%, var(--signal-lo) 100%);
  color: #f6f4ee;
}

/* Utility toggles use a brass bottom rule when active — never leak moss-emerald signal (R8) */
#themeToggle[aria-pressed="true"],
#soundToggle[aria-pressed="true"] {
  border-bottom: 3px solid var(--brass);
}

.slab--paper {
  background: linear-gradient(180deg, #faf7f0 0%, #ede6d7 64%, #ded6c4 100%);
  color: #161c17;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .slab--paper {
  background: linear-gradient(180deg, #f3ede0 0%, #e4dccb 64%, #d6cdb9 100%);
  color: #151c17;
}

.slab--alert {
  background: linear-gradient(180deg, #be3535 0%, var(--alert) 60%, #781919 100%);
}

/* Stamped luggage-tag label tape */
.tape {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem 0.34rem;
  background-color: #f6f2e7;
  color: #161c17;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}

.tape--ink {
  background-color: #16231a;
  color: #f4efe4;
}

[data-theme="dark"] .tape--ink {
  background-color: #ece5d6;
  color: #141d17;
}

.tape--signal {
  background-color: var(--signal);
  color: #f7f4ec;
}

.tape--accent {
  background-color: var(--accent);
  color: #f7f4ec;
  transition: background-color var(--t-slow) var(--ease-io);
}

/* Print textures */
.hatch-band {
  height: 10px;
  background: repeating-linear-gradient(135deg, var(--rule-strong) 0 3px, transparent 3px 9px);
}

.brass-rule {
  height: 3px;
  background-color: var(--brass);
  width: 100%;
  display: block;
}

/* Conic capacity ring (geometry state, zero dots) */
.ring {
  --v: 0.84;
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #26362b, #121a14);
  color: #f5f0e6;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.42), 0 8px 16px -6px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

.ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--brass) calc(var(--v) * 360deg), rgba(245, 240, 230, 0.16) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #111 64%);
  mask: radial-gradient(circle, transparent 62%, #111 64%);
}

.ring strong {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ring span {
  font-family: var(--f-label);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: -0.15rem;
}

.ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================================================================
   HEADER / COMMAND BAR
   ===================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.9rem 0;
  background: linear-gradient(180deg, rgba(11, 18, 14, 0.88) 0%, rgba(11, 18, 14, 0.48) 72%, transparent 100%);
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.site-header.is-scrolled {
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 100%);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 14px 28px -10px rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid var(--brass);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #f7f3e8;
}

.brand-crest {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: 1.38rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d7cfb9;
  margin-top: 0.16rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4efe4;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-actions .slab {
  padding: 0.56rem 0.95rem;
  font-size: 0.86rem;
}

/* =====================================================================
   HERO — FULL-WIDTH CROPPED WIDESCREEN VIDEO + 38-DEG STERN SLASH
   ===================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 760px;
  height: 86vh;
  max-height: 850px;
  display: flex;
  align-items: flex-end;
  padding-top: 5.5rem;
  padding-bottom: 3.6rem;
  z-index: 3;
  overflow: visible;
}

/* Cropped full-width video viewport with clearly visible 38-deg stern slash into chart paper */
.hero-cinema {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0e1813;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 88px), 54% 100%, 0 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(1.16) contrast(1.06);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-io);
}

.hero-video.is-active {
  opacity: 1;
}

/* Directional cinema light scrim so typography hits high contrast */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(102deg, var(--hero-scrim-l) 0%, var(--hero-scrim-m) 54%, var(--hero-scrim-r) 100%),
    linear-gradient(0deg, rgba(10, 17, 13, 0.84) 0%, rgba(10, 17, 13, 0.16) 40%, rgba(10, 17, 13, 0.36) 100%);
}

/* Subtle cinema print grain inside hero frame */
.hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
}

/* Giant ghost coordinate numeral behind hero typography (parallax target) */
.hero-ghost-code {
  position: absolute;
  right: 4%;
  top: 12%;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(9rem, 16vw, 15.5rem);
  line-height: 0.85;
  color: rgba(246, 242, 231, 0.1);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transition: transform 350ms var(--ease-out);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 2.5rem;
  align-items: end;
  width: 100%;
  position: relative;
  z-index: 4;
}

.hero-copy {
  color: #f8f4ea;
  max-width: 820px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.hero-kicker-rule {
  width: 56px;
  height: 3px;
  background-color: var(--brass);
}

.hero-kicker-text {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e7dec8;
}

/* Giant scale contrast >= 7.5:1 vs 17px body */
.hero-title {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: clamp(4.6rem, 8.2vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #faf6ec;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: #e4d2a4;
  display: inline-block;
  padding-right: 0.14em;
}

.hero-lead {
  margin-top: 1.35rem;
  max-width: 56ch;
  font-size: 1.18rem;
  line-height: 1.5;
  color: #eae4d6;
}

.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
}

.hero-cta-row .slab {
  padding: 0.92rem 1.65rem;
  font-size: 1.02rem;
}

/* Cinema Reel controls docked at lower-left of hero */
.reel-dock {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  background: rgba(15, 24, 18, 0.82);
  border-top: 2px solid var(--brass);
  clip-path: var(--cut-sm);
}

.reel-btn {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6dfd7;
  padding: 0.35rem 0.72rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

.reel-btn[aria-pressed="true"] {
  background-color: var(--signal);
  color: #f8f4ea;
}

#reelPlayBtn[aria-pressed="true"] {
  background-color: rgba(244, 239, 228, 0.14);
  color: #faf6ec;
  border-bottom: 2px solid var(--brass);
}

.reel-btn:hover {
  color: #f8f4ea;
}

.reel-sep {
  width: 1px;
  height: 18px;
  background-color: rgba(246, 242, 231, 0.25);
}

/* HERO MASCOT FRAME-BREAK PEDESTAL [R11: subject breaks the container] */
.hero-mascot-pedestal {
  position: relative;
  justify-self: end;
  width: min(390px, 100%);
  margin-bottom: -4.6rem; /* breaks cleanly across the 38-deg stern slash into paper below */
  z-index: 8;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.38)) drop-shadow(0 24px 32px rgba(0, 0, 0, 0.44));
}

.pedestal-slab {
  position: relative;
  padding: 6.4rem 1.65rem 1.65rem;
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 58%, var(--slab-lo) 100%);
  color: var(--on-slab);
  clip-path: var(--cut-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 5px 0 rgba(0, 0, 0, 0.38),
    0 28px 46px -14px rgba(0, 0, 0, 0.58);
}

.pedestal-slab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.038) 0 1px, transparent 1px 3px);
}

.mascot-hero-img {
  position: absolute;
  top: -124px;
  left: 50%;
  width: 244px;
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.48));
  pointer-events: none;
  will-change: transform;
  transition: transform 350ms var(--ease-out);
  z-index: 3;
}

.pedestal-meta {
  position: relative;
  z-index: 2;
}

.pedestal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brass);
}

.pedestal-title {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.1;
}

.pedestal-code {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: #e4d2a4;
}

.pedestal-note {
  margin-top: 0.8rem;
  font-size: 0.98rem;
  color: var(--on-slab-soft);
  line-height: 1.45;
}

.pedestal-stats {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.pedestal-stat b {
  display: block;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.95rem;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: #faf6ec;
}

.pedestal-stat span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-label);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-slab-soft);
}

/* Single deal-in entrance on hero masthead & mascot only */
@keyframes heroDeal {
  from {
    opacity: 0;
    transform: translateY(22px);
    clip-path: inset(0 0 24% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.hero-copy.in {
  animation: heroDeal 620ms var(--ease-out) both;
}

.hero-mascot-pedestal.in {
  animation: heroDeal 680ms var(--ease-out) 80ms both;
}

.is-still,
.is-still * {
  transition: none !important;
}

.is-still .hero-copy.in,
.is-still .hero-mascot-pedestal.in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* =====================================================================
   SECTION CADENCE & TYPOGRAPHIC HEADERS
   ===================================================================== */

.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.section--tight-top {
  padding-top: 7.4rem;
}

.sec-header {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.sec-num {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--signal-ink);
  display: inline-block;
  margin-bottom: 0.45rem;
}

.sec-title {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.sec-title em {
  font-style: italic;
  font-weight: 700;
}

.sec-desc {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  justify-self: end;
}

/* =====================================================================
   SECTION 1: FLAGSHIP SPREAD (7fr) + BOARDING-PASS MANIFEST (5fr)
   ===================================================================== */

.flagship-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 2rem;
  align-items: stretch;
}

.flagship-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 540px;
  overflow: hidden;
  background-color: var(--slab);
  clip-path: var(--cut-lg);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.32),
    0 24px 44px -16px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.flagship-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.34),
    0 34px 54px -16px rgba(0, 0, 0, 0.56);
}

.flagship-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.flagship-card:hover .flagship-photo {
  transform: scale(1.04);
}

/* Halftone corner print texture over editorial photography (R7) */
.photo-halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: rgba(16, 25, 19, 0.5);
  background: radial-gradient(circle at 3px 3px, currentColor 0 1.2px, transparent 1.5px) 0 0 / 7px 7px;
  -webkit-mask-image: linear-gradient(135deg, #111 0%, transparent 48%);
  mask-image: linear-gradient(135deg, #111 0%, transparent 48%);
}

.flagship-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 17, 0.18) 0%, rgba(14, 22, 17, 0.35) 45%, rgba(12, 20, 15, 0.94) 100%);
}

.flagship-top {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

.flagship-body {
  position: relative;
  z-index: 3;
  padding: 2rem 2rem 2rem;
  color: #f6f2e8;
}

.flagship-route {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e4d2a4;
  margin-bottom: 0.45rem;
}

.flagship-title {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  line-height: 1.02;
}

.flagship-sub {
  margin-top: 0.7rem;
  color: #d9e0da;
  max-width: 52ch;
}

.flagship-foot {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--brass);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.flagship-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.flagship-price b {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.flagship-price span {
  font-family: var(--f-label);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfd7d0;
}

/* Boarding-Pass Manifest Column */
.manifest-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 58%, var(--slab-lo) 100%);
  color: var(--on-slab);
  clip-path: var(--cut-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 0 rgba(0, 0, 0, 0.36),
    0 22px 40px -14px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.manifest-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 3px);
}

.manifest-head {
  padding: 1.5rem 1.6rem 1.1rem;
  border-bottom: 2px solid var(--brass);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  position: relative;
  z-index: 2;
}

.manifest-head h3 {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifest-head span {
  font-family: var(--f-label);
  font-size: 0.84rem;
  color: #e4d2a4;
  letter-spacing: 0.06em;
}

.manifest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.manifest-item {
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.6rem;
  display: grid;
  grid-template-columns: 98px 1fr auto;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
  position: relative;
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.manifest-item:hover {
  background-color: rgba(244, 239, 228, 0.08);
  transform: translateX(4px);
}

.manifest-codes {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #e4d2a4;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.manifest-meta strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--on-slab);
}

.manifest-meta small {
  display: block;
  font-size: 0.88rem;
  color: var(--on-slab-soft);
}

.manifest-fare {
  text-align: right;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
  color: var(--on-slab);
}

.manifest-fare span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #e4d2a4;
  text-transform: uppercase;
  white-space: nowrap;
}

.manifest-foot {
  padding: 1rem 1.6rem;
  background: repeating-linear-gradient(135deg, rgba(244, 239, 228, 0.06) 0 4px, transparent 4px 10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-label);
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--on-slab-soft);
  position: relative;
  z-index: 2;
}

/* =====================================================================
   SECTION 2: VOYAGE GALLERY — FILTER + FLIP TRAVEL + SUBJECT ACCENT
   ===================================================================== */

.voyage-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sort-label {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Asymmetrical editorial grid (NOT equal 3-column grid-cols-3) */
.voyage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
}

/* Unclipped slot holds R4 contact+ambient shadow around clipped voyage-card */
.voyage-slot {
  grid-column: span 4;
  display: flex;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.26)) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out);
}

[data-theme="dark"] .voyage-slot {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.58)) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.52));
}

.voyage-slot:hover {
  transform: translateY(-7px);
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.34)) drop-shadow(0 24px 30px rgba(0, 0, 0, 0.38));
}

/* Intentional editorial asymmetry: 7/5, 5/7, 6/6 */
.voyage-slot:nth-child(1) { grid-column: span 7; }
.voyage-slot:nth-child(2) { grid-column: span 5; }
.voyage-slot:nth-child(3) { grid-column: span 5; }
.voyage-slot:nth-child(4) { grid-column: span 7; }
.voyage-slot:nth-child(5) { grid-column: span 6; }
.voyage-slot:nth-child(6) { grid-column: span 6; }

.voyage-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-card) 100%);
  color: var(--ink);
  clip-path: var(--cut-tr);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
  transition:
    opacity var(--t-med) var(--ease-out),
    filter var(--t-med) var(--ease-out);
}

/* Subtle paper-fibre weave so cards never read as flat fills (R7) */
.voyage-card::before,
.charter-desk::before,
.note-card::before,
.dispatch-photo-card::before,
.dossier-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
  background: repeating-linear-gradient(135deg, rgba(22, 28, 23, 0.025) 0 1px, transparent 1px 4px);
}

[data-theme="dark"] .voyage-card::before,
[data-theme="dark"] .charter-desk::before,
[data-theme="dark"] .note-card::before,
[data-theme="dark"] .dispatch-photo-card::before,
[data-theme="dark"] .dossier-sheet::before {
  background: repeating-linear-gradient(135deg, rgba(244, 239, 228, 0.035) 0 1px, transparent 1px 4px);
}

.voyage-card.is-dimmed {
  opacity: 0.32;
  filter: grayscale(0.72);
}

.voyage-media {
  position: relative;
  height: 290px;
  overflow: hidden;
  background-color: var(--slab);
}

.voyage-slot:nth-child(1) .voyage-media,
.voyage-slot:nth-child(4) .voyage-media {
  height: 320px;
}

.voyage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.voyage-card:hover .voyage-media img {
  transform: scale(1.05);
}

.voyage-media-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

.voyage-nights-badge {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 0.88;
  color: #faf6ec;
  background-color: rgba(16, 26, 20, 0.86);
  padding: 0.5rem 0.72rem 0.4rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.voyage-nights-badge small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #e4d2a4;
}

/* Signature 38-deg state wedge cutting up from the footer [R6, R12] */
.voyage-wedge {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 136px;
  height: 44px;
  background-color: var(--card-accent, var(--signal));
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.05rem 0 2.25rem;
  white-space: nowrap;
  color: #faf6ec;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  transform: translateY(4px);
  transition: transform var(--t-med) var(--ease-out);
}

.voyage-card:hover .voyage-wedge {
  transform: translateY(0);
}

/* Angled lacquered footer bar */
.voyage-body {
  padding: 1.35rem 1.5rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  border-top: 3px solid var(--card-accent, var(--brass));
}

.voyage-ship {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.voyage-title {
  margin-top: 0.3rem;
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--ink);
}

.voyage-ports {
  margin-top: 0.55rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  flex: 1;
}

.voyage-foot {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.voyage-fare {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.voyage-fare span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 0.25rem;
}

/* =====================================================================
   SECTION 3: PORT-OF-CALL ATLAS (SUBJECT-DRIVEN --accent RETINTING [R9])
   ===================================================================== */

.atlas-shell {
  position: relative;
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 56%, var(--slab-lo) 100%);
  color: var(--on-slab);
  clip-path: var(--cut-lg);
  padding: 2.6rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 5px 0 rgba(0, 0, 0, 0.36),
    0 28px 48px -16px rgba(0, 0, 0, 0.52);
}

.atlas-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}

/* Subject-retinting accent rule at top of Atlas */
.atlas-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--accent);
  transition: background-color var(--t-slow) var(--ease-io);
}

.atlas-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.atlas-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atlas-tab {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  color: var(--on-slab-soft);
  background: rgba(255, 255, 255, 0.03);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    background-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.atlas-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-slab);
  transform: translateX(4px);
}

.atlas-tab[aria-selected="true"] {
  background-color: var(--accent);
  color: #faf6ec;
  transform: translateX(6px);
}

.atlas-tab-code {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.atlas-tab-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.atlas-tab-region {
  font-family: var(--f-label);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.82;
}

.atlas-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.8rem;
  align-items: stretch;
  position: relative;
}

.atlas-photo-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  clip-path: var(--cut-md);
  background-color: #0d1410;
}

.atlas-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-big-code {
  position: absolute;
  left: 1rem;
  bottom: -0.35rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 6.4rem;
  line-height: 0.82;
  color: rgba(250, 246, 236, 0.88);
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.atlas-detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.atlas-coords {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  color: #e4d2a4;
  text-transform: uppercase;
}

.atlas-port-name {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.04;
  margin-top: 0.35rem;
}

.atlas-note {
  margin-top: 0.8rem;
  color: var(--on-slab-soft);
  font-size: 1.02rem;
}

.atlas-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
  border-bottom: 1px solid rgba(244, 239, 228, 0.16);
}

.atlas-spec small {
  display: block;
  font-family: var(--f-label);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4d2a4;
}

.atlas-spec strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.98rem;
  color: var(--on-slab);
}

/* =====================================================================
   SECTION 4: CONCIERGE CHARTER DIAL (M9 INTERACTION VARIETY)
   ===================================================================== */

.charter-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: start;
}

.charter-desk {
  position: relative;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-card) 100%);
  color: var(--ink);
  padding: 2.2rem;
  clip-path: var(--cut-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  border-top: 3px solid var(--brass);
}

.control-group {
  margin-bottom: 1.65rem;
  position: relative;
  z-index: 2;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.control-label {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.control-val {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--signal-ink);
  font-variant-numeric: tabular-nums;
}

.dial-range {
  width: 100%;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, var(--signal) 0%, var(--signal) var(--pct, 50%), var(--rule) var(--pct, 50%), var(--rule) 100%);
  outline: none;
  cursor: pointer;
}

.dial-range::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 28px;
  background-color: var(--slab);
  border-top: 3px solid var(--brass);
  clip-path: var(--cut-sm);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

[data-theme="dark"] .dial-range::-webkit-slider-thumb {
  background-color: #ece5d6;
  border-top: 3px solid var(--brass);
}

.dial-range::-moz-range-thumb {
  width: 24px;
  height: 28px;
  border: 0;
  border-top: 3px solid var(--brass);
  background-color: var(--slab);
  clip-path: var(--cut-sm);
  cursor: pointer;
}

[data-theme="dark"] .dial-range::-moz-range-thumb {
  background-color: #ece5d6;
}

.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
}

.tier-row .slab {
  width: 100%;
  padding: 0.72rem 0.6rem;
  font-size: 0.86rem;
}

.charter-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.field-input {
  width: 100%;
  padding: 0.78rem 0.95rem;
  background-color: var(--paper);
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--rule-strong);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease-out);
}

.field-input:focus {
  outline: none;
  border-bottom-color: var(--signal);
}

/* Boarding-Pass Live Quote Stub */
.quote-stub {
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 56%, var(--slab-lo) 100%);
  color: var(--on-slab);
  clip-path: var(--cut-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 5px 0 rgba(0, 0, 0, 0.36),
    0 24px 44px -16px rgba(0, 0, 0, 0.52);
}

.quote-stub::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}

.quote-stub-inner {
  position: relative;
  z-index: 2;
}

.quote-stub .hatch-band {
  background: repeating-linear-gradient(135deg, rgba(244, 239, 228, 0.24) 0 3px, transparent 3px 9px);
}

.quote-total-wrap {
  margin: 1.25rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid var(--brass);
  border-bottom: 1px dashed rgba(244, 239, 228, 0.28);
}

.quote-total-label {
  font-family: var(--f-label);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4d2a4;
}

.quote-total {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
  color: #faf6ec;
}

.quote-breakdown {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.96rem;
}

.quote-breakdown li {
  display: flex;
  justify-content: space-between;
  color: var(--on-slab-soft);
}

.quote-breakdown strong {
  color: var(--on-slab);
  font-family: var(--f-label);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.inquiry-confirm {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background-color: var(--signal);
  color: #faf6ec;
  clip-path: var(--cut-sm);
  font-size: 0.96rem;
  display: none;
}

.inquiry-confirm.is-visible {
  display: block;
}

/* =====================================================================
   SECTION 5: "GREEN FLUFF WAS HERE" FIELD DISPATCH (MASCOT STORY)
   ===================================================================== */

.dispatch-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 2.2rem;
  align-items: center;
}

/* Unclipped outer wrapper so watercolor mascot breaks frame without being sliced off (R11) */
.dispatch-photo-stack {
  position: relative;
}

.dispatch-photo-card {
  position: relative;
  padding: 1rem;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-card) 100%);
  color: var(--ink);
  clip-path: var(--cut-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.dispatch-photo-card img.field-photo {
  width: 100%;
  height: 410px;
  object-fit: cover;
  clip-path: var(--cut-sm);
  position: relative;
  z-index: 2;
}

.dispatch-caption {
  margin-top: 0.85rem;
  padding-right: 128px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

/* Watercolor mascot cleanly breaks outside the clipped card frame */
.dispatch-watercolor {
  position: absolute;
  right: -20px;
  bottom: -26px;
  width: 136px;
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.dispatch-notes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.note-card {
  position: relative;
  padding: 1.35rem 1.55rem;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-card) 100%);
  color: var(--ink);
  clip-path: var(--cut-tr);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  border-top: 3px solid var(--brass);
}

.note-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.45rem;
  position: relative;
  z-index: 2;
}

.note-card h4 {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--ink);
}

.note-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

/* =====================================================================
   FOOTER — MARITIME COLOPHON
   ===================================================================== */

.site-footer {
  margin-top: 3rem;
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 60%, var(--slab-lo) 100%);
  color: var(--on-slab);
  border-top: 3px solid var(--brass);
  padding: 3.4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 239, 228, 0.16);
}

.footer-blurb {
  margin-top: 0.85rem;
  max-width: 44ch;
  color: var(--on-slab-soft);
}

.footer-col h5 {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #e4d2a4;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--on-slab-soft);
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--f-label);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--on-slab-soft);
}

/* =====================================================================
   SINGLE-CANVAS VOYAGE DOSSIER OVERLAY
   (Single frosted overlay layer per R2)
   ===================================================================== */

.dossier-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background-color: rgba(10, 16, 12, 0.78);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out);
}

.dossier-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dossier-wrap {
  width: min(980px, 100%);
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.44)) drop-shadow(0 30px 44px rgba(0, 0, 0, 0.62));
}

.dossier-sheet {
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-card) 100%);
  color: var(--ink);
  clip-path: var(--cut-lg);
  transform: translateY(20px);
  transition: transform var(--t-med) var(--ease-out);
}

.dossier-backdrop.is-open .dossier-sheet {
  transform: translateY(0);
}

.dossier-hero {
  position: relative;
  height: 270px;
  overflow: hidden;
  background-color: var(--slab);
  z-index: 2;
}

.dossier-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 15, 0.25) 0%, rgba(12, 20, 15, 0.9) 100%);
}

.dossier-hero-content {
  position: absolute;
  inset: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #faf6ec;
  z-index: 3;
}

.dossier-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-title {
  font-family: var(--f-ceremony);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.dossier-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.itinerary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.itinerary-list li {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.itinerary-day {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: var(--signal-ink);
  text-transform: uppercase;
  white-space: nowrap;
}

.dossier-aside {
  position: relative;
  background: linear-gradient(180deg, var(--slab-hi) 0%, var(--slab) 100%);
  color: var(--on-slab);
  padding: 1.45rem;
  clip-path: var(--cut-md);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  overflow: hidden;
  transition: border-color var(--t-slow) var(--ease-io);
}

.dossier-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
}

.dossier-aside > * {
  position: relative;
  z-index: 2;
}

.dossier-aside-price {
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* =====================================================================
   RESPONSIVE & REDUCED MOTION
   ===================================================================== */

@media (max-width: 1080px) {
  .hero-grid,
  .flagship-grid,
  .atlas-grid,
  .charter-grid,
  .dispatch-grid,
  .dossier-body,
  .sec-header {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 760px;
    padding-bottom: 3rem;
  }

  .hero-mascot-pedestal {
    justify-self: start;
    margin-bottom: -3.5rem;
    margin-top: 4.5rem;
  }

  .voyage-slot,
  .voyage-slot:nth-child(n) {
    grid-column: span 12;
  }

  .atlas-stage {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-copy.in,
  .hero-mascot-pedestal.in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
