@charset "UTF-8";
/* ==========================================================================
   Cap Nova — capnova.cruises
   Design language taken from the printed brochure: near-black ground, warm
   ivory text, a single gold accent, Barlow Condensed for display, and the
   little "+" registration marks that bracket the brochure's plates.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/barlow-condensed-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/barlow-condensed-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/barlow-condensed-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/barlow-condensed-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------- tokens --- */
:root {
  color-scheme: dark;

  --ink:        #100f0e;
  --ink-deep:   #0a0908;
  --surface:    #161513;
  --surface-2:  #1c1a17;

  --text:       #ece7de;
  --text-hi:    #f4f0e8;
  --text-mid:   #cdc7bd;
  --text-soft:  #b5afa5;
  --text-dim:   #a09a90;
  --text-faint: #8f8a81;

  --gold:       #dfbd85;
  --gold-hi:    #f0d6a6;
  --gold-deep:  #c9a874;
  --bronze:     #b08d5b;

  --line:       rgb(236 231 222 / 0.14);
  --line-soft:  rgb(236 231 222 / 0.08);
  --line-hard:  rgb(236 231 222 / 0.26);
  --gold-wash:  rgb(176 141 91 / 0.12);

  --display: 'Barlow Condensed', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid scale */
  --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + 0.28vw, 1.3125rem);
  --step-2:  clamp(1.75rem, 1.4rem + 1.75vw, 2.875rem);
  --step-3:  clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
  --step-4:  clamp(3.25rem, 1.5rem + 8.75vw, 7.5rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  /* Content stops widening here; photography still runs edge to edge. Past
     this the gallery turns into nine tiny thumbnails a row and the chart into
     a letterbox. */
  --maxw: 100rem;
  --edge: max(var(--gutter), (100% - var(--maxw)) / 2);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --measure: 62ch;

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Author `display` beats the UA rule for [hidden], so several components below
   would stay visible when JavaScript hides them. Settle it once, here. */
[hidden] { display: none !important; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-hi); }

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: rgb(201 168 116 / 0.35); color: var(--text-hi); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  color: var(--text-hi);
  text-wrap: balance;
  letter-spacing: 0.005em;
}

p { text-wrap: pretty; }

/* ------------------------------------------------------------ utilities --- */
.wrap { padding-inline: var(--gutter); }

.section {
  padding-block: var(--section-y);
  padding-inline: var(--edge);
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--ruled { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1rem;
}

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--text-mid); max-width: var(--measure); }
.prose { color: var(--text-mid); max-width: var(--measure); }
.prose + .prose { margin-top: 0.9em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 0; left: 0; z-index: 100;
  padding: 0.85rem 1.4rem;
  background: var(--gold); color: var(--ink-deep);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--ink-deep); }

/* Brochure-style corner registration marks. */
.marks { position: relative; }
.marks::before, .marks::after {
  content: ''; position: absolute; width: 13px; height: 13px; pointer-events: none;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 100% 1px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center / 1px 100% no-repeat;
  opacity: 0.65;
}
.marks::before { top: -6.5px; left: -6.5px; }
.marks::after  { bottom: -6.5px; right: -6.5px; }

/* --------------------------------------------------------------- button --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--gold-deep);
  background: rgb(176 141 91 / 0.14);
  color: var(--gold-hi);
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}
.btn > * { position: relative; }
.btn:hover { color: var(--ink-deep); border-color: var(--gold); }
.btn:hover::before { transform: scaleX(1); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn:disabled:hover { color: var(--gold-hi); }
.btn:disabled:hover::before { transform: scaleX(0); }

.btn--ghost { border-color: var(--line-hard); background: none; color: var(--text); }
.btn--ghost:hover { color: var(--ink-deep); border-color: var(--gold); }

.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- header --- */
.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-inline: var(--edge);
  background: rgb(16 15 14 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  background: rgb(16 15 14 / 0.97);
}

.brand {
  font-family: var(--display);
  font-size: 1.45rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-hi); line-height: 1;
  padding-block: 1.1rem;
}
.brand:hover { color: var(--gold-hi); }

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

.nav-list {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; padding: 0; margin: 0;
}
.nav-link {
  display: block; position: relative;
  padding-block: 0.4rem;
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current='page'] { color: var(--gold); }

.lang {
  display: flex; gap: 0.55rem; align-items: center;
  padding-left: 1.1rem; border-left: 1px solid var(--line-hard);
  font-size: 0.76rem; letter-spacing: 0.14em;
}
.lang a { color: var(--text-faint); }
.lang a:hover { color: var(--gold-hi); }
.lang [aria-current] { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-hard); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: var(--text);
  position: relative;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--text);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.5rem var(--edge) 2.5rem;
    background: rgb(12 11 10 / 0.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease-out), visibility 0.28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    padding-block: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
  }
  .nav-link::after { display: none; }
  .lang { padding: 1.4rem 0 0; border-left: 0; }
}

/* ----------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  /* A 16:10 photograph in a 3:1 frame loses half its height to the crop, and
     the yacht goes with it. On a wide viewport the hero grows with the width
     so the frame stays closer to the picture — capped so it never exceeds the
     screen. */
  min-height: min(92svh, max(clamp(30rem, 82svh, 52rem), 38vw));
  display: grid; align-items: end;
  overflow: clip;
  isolation: isolate;
}
.hero--short { min-height: min(72svh, max(clamp(21rem, 56svh, 34rem), 26vw)); }

.hero-media { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 48%;
  animation: drift 14s var(--ease-out) 1 both;
}
/* One slow settle, then still. Looping this forever kept the compositor
   re-blurring the sticky header for the life of the page. */
@keyframes drift {
  from { transform: scale(1.035) translate3d(-0.5%, -0.4%, 0); }
  to   { transform: scale(1); }
}

/* Two scrims, not one. The vertical fade alone leaves the headline sitting on
   whatever the photograph happens to be doing there — on a sunlit sea, that is
   near-white. The horizontal pass darkens the side the text actually occupies
   and leaves the subject on the other side untouched. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(12 11 10 / 0.9) 0%, rgb(12 11 10 / 0.62) 28%, rgb(12 11 10 / 0.18) 56%, rgb(12 11 10 / 0) 78%),
    linear-gradient(180deg, rgb(16 15 14 / 0.55) 0%, rgb(16 15 14 / 0.02) 24%, rgb(16 15 14 / 0.58) 68%, rgb(16 15 14 / 0.86) 90%, var(--ink) 100%);
}

/* The edge padding positions this block at the content column; a max-width on
   the same element would be eaten by that padding (border-box) and crush the
   column on a wide screen. Constrain the children instead. */
.hero-body {
  padding: 0 var(--edge) clamp(2.5rem, 5vw, 4.5rem);
  max-width: none;
  text-shadow: 0 1px 28px rgb(8 7 7 / 0.6), 0 1px 4px rgb(8 7 7 / 0.45);
}
.hero-body > * { max-width: 58rem; }
.hero-eyebrow {
  font-family: var(--display);
  font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.hero-title {
  font-size: var(--step-4);
  line-height: 0.88; letter-spacing: 0.02em; text-transform: uppercase;
}
.hero-title--sm { font-size: var(--step-3); text-transform: uppercase; line-height: 0.96; }
.hero-lead { margin: 1.3rem 0 1.9rem; color: var(--text-mid); font-size: var(--step-1); max-width: 40ch; }

.hero-scroll {
  position: absolute; right: var(--edge); bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: none; align-items: center; gap: 0.75rem;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}
@media (min-width: 900px) { .hero-scroll { display: flex; } }
.hero-scroll::after {
  content: ''; width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollhint 2.4s var(--ease) infinite;
}
@keyframes scrollhint {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ------------------------------------------------------------- statbar --- */
.statbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.statbar > div { background: var(--ink); padding: 1.6rem clamp(1.1rem, 3vw, 2rem); }
.stat-label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.5rem;
}
.stat-value { font-family: var(--display); font-size: 1.95rem; line-height: 1; color: var(--text-hi); }

/* ----------------------------------------------------------------- grid --- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.split--top { align-items: start; }
.split--flip > :first-child { order: 2; }
@media (max-width: 719px) { .split--flip > :first-child { order: 0; } }

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

/* ---------------------------------------------------------------- media --- */
.frame {
  position: relative;
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--surface);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--3x2 { aspect-ratio: 3 / 2; }
.frame--16x9 { aspect-ratio: 16 / 9; }

.frame-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 2.6rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgb(12 11 10 / 0.9) 20%, rgb(12 11 10 / 0) 100%);
  font-size: 0.67rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-mid);
}

/* full-bleed statement band */
.band {
  position: relative;
  min-height: clamp(20rem, 56svh, 38rem);
  display: grid; align-items: end;
  overflow: clip;
  border-top: 1px solid var(--line);
  isolation: isolate;
}
.band > picture {
  position: absolute; inset: 0; z-index: -2;
  display: block;
}
.band > picture > img { width: 100%; height: 100%; object-fit: cover; }
.band::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgb(12 11 10 / 0.92) 0%, rgb(12 11 10 / 0.7) 26%, rgb(12 11 10 / 0.26) 54%, rgb(12 11 10 / 0) 80%),
    linear-gradient(180deg, rgb(16 15 14 / 0.4) 0%, rgb(16 15 14 / 0) 26%, rgb(16 15 14 / 0.62) 66%, rgb(16 15 14 / 0.88) 88%, var(--ink) 100%);
}
.band-body {
  padding: 0 var(--edge) clamp(2.2rem, 4vw, 3.6rem);
  max-width: none;
  text-shadow: 0 1px 28px rgb(8 7 7 / 0.6), 0 1px 4px rgb(8 7 7 / 0.45);
}
.band-body > * { max-width: 44rem; }
.band-body .eyebrow { color: var(--gold); }

/* The general-arrangement plan is drawn black on white; inverting it puts it
   on the same ground as everything else without touching the source file.
   No max-height and no object-fit here: the deck explorer sizes its frame from
   the image's natural aspect ratio, and either property would letterbox the
   drawing inside the frame and throw every band off. */
.ga-plan {
  display: block;
  width: 100%; height: auto;
  filter: invert(1) contrast(1.07) sepia(0.12) saturate(0.7);
}
.lightbox-fig img.is-inverted { filter: invert(1) contrast(1.07) sepia(0.12) saturate(0.7); }

/* ----------------------------------------------------------- definition --- */
.deflist {
  display: grid; gap: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem; margin-top: 1.5rem;
}
.deflist > div { display: flex; gap: 1rem; flex-wrap: wrap; }
.deflist dt {
  min-width: 8.5rem; flex-shrink: 0;
  font-family: var(--display); font-size: 1.08rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.deflist dd { margin: 0; flex: 1 1 14rem; color: var(--text-soft); font-size: 0.94rem; line-height: 1.6; }

/* ------------------------------------------------------------- tiles ----- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.9rem;
}
.tile {
  border: 1px solid var(--line);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.tile:hover { border-color: rgb(201 168 116 / 0.45); background: rgb(176 141 91 / 0.06); }
.tile b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--gold); }
.tile span { display: block; font-size: 0.85rem; color: var(--text-soft); margin-top: 0.35rem; }

.factbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem; margin-top: clamp(1.75rem, 4vw, 2.75rem);
}
.factbar dt { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.factbar dd { margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--text-hi); line-height: 1.2; }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.tags li {
  list-style: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--text-soft);
}

/* -------------------------------------------------------------- gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.85rem;
}
.gallery-item {
  position: relative; display: block;
  aspect-ratio: 3 / 2;
  overflow: clip;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: zoom-in;
  padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), filter 0.5s var(--ease); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgb(16 15 14 / 0.18);
  transition: opacity 0.4s var(--ease);
}
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.055); }
.gallery-item:hover::after { opacity: 0; }

.hint {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ------------------------------------------------------------- lightbox --- */
.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100svh;
  width: 100vw; height: 100svh;
  background: rgb(8 7 7 / 0.97);
  color: var(--text);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(8 7 7 / 0.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox-fig {
  position: relative;
  padding: 0 clamp(1rem, 6vw, 5rem);
  min-height: 0;
  overflow: hidden;
}
/* Absolute + auto margins keeps the image inside its grid row whatever its
   intrinsic size — a percentage max-height alone does not, because the row is
   content-sized before the image has laid out. */
.lightbox-fig img {
  position: absolute; inset: 0 clamp(1rem, 6vw, 5rem); margin: auto;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  animation: lb-in 0.4s var(--ease-out);
}
@keyframes lb-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}
.lightbox-cap { font-size: 0.82rem; color: var(--text-soft); }
.lightbox-count { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.16em; color: var(--text-faint); }
.lightbox-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-hard); background: none; cursor: pointer;
  color: var(--text); font-size: 1.1rem; line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox-btn:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-nav { display: flex; gap: 0.6rem; }

/* ---------------------------------------------------------------- chart --- */
.chart-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-deep);
  overflow: clip;
}
.chart { width: 100%; height: auto; display: block; }

.chart-sea { fill: var(--ink); }
.chart-grat { fill: none; stroke: var(--text); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grat--fine { stroke-opacity: 0.055; }
.chart-grat--coarse { stroke-opacity: 0.11; }
.chart-land {
  fill: #2e2922; stroke: #8a7c65; stroke-width: 1.1;
  stroke-linejoin: round; vector-effect: non-scaling-stroke;
}
.chart-frame { fill: none; stroke: var(--text); stroke-opacity: 0.16; vector-effect: non-scaling-stroke; }
.chart-marks line { stroke: var(--gold-deep); stroke-opacity: 0.8; stroke-width: 1; vector-effect: non-scaling-stroke; }

.chart-spoke-line {
  fill: none; stroke: var(--gold); stroke-opacity: 0.34;
  stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke;
  transition: stroke-opacity 0.3s var(--ease), stroke-width 0.3s var(--ease);
}
.chart-spoke-label {
  fill: var(--gold); font-family: var(--display); font-size: 15px; letter-spacing: 0.08em;
  opacity: 0.72; transition: opacity 0.3s var(--ease);
}
.chart-spoke.is-active .chart-spoke-line { stroke-opacity: 1; stroke-width: 1.8; }
.chart-spoke.is-active .chart-spoke-label { opacity: 1; }

.chart-port-hit { fill: transparent; }
.chart-port-ring {
  fill: none; stroke: var(--gold); stroke-opacity: 0.55; stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-opacity 0.3s var(--ease), r 0.3s var(--ease-out);
}
.chart-port-dot { fill: var(--text); fill-opacity: 0.8; transition: fill 0.3s var(--ease), r 0.3s var(--ease-out); }
.chart-port.is-bunker .chart-port-dot { fill: var(--gold); fill-opacity: 0.95; }
.chart-port-label {
  fill: var(--text-mid); font-family: var(--body); font-size: 15px; letter-spacing: 0.05em;
  transition: fill 0.3s var(--ease);
}
.chart-port.has-spoke { cursor: pointer; }
.chart-port.has-spoke:hover .chart-port-label,
.chart-port.is-active .chart-port-label { fill: var(--gold-hi); }
.chart-port.has-spoke:hover .chart-port-dot,
.chart-port.is-active .chart-port-dot { fill: var(--gold); r: 4.4; }
.chart-port.is-active .chart-port-ring { stroke-opacity: 1; r: 10.5; }
.chart-port:focus { outline: none; }
.chart-port:focus-visible .chart-port-label { fill: var(--gold-hi); text-decoration: underline; }

.chart-home-ring { fill: none; stroke: var(--gold); stroke-opacity: 0.75; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.chart-home-cross { stroke: var(--gold); stroke-opacity: 0.5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-home-dot { fill: var(--gold); }
.chart-home-label {
  fill: var(--gold); font-family: var(--display); font-weight: 500;
  font-size: 16px; letter-spacing: 0.18em;
}
.chart-home-ping {
  fill: none; stroke: var(--gold); stroke-width: 1.2; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center;
  animation: ping 3.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(0.55); opacity: 0.8; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.chart-inset-bg { fill: var(--ink-deep); stroke: var(--text); stroke-opacity: 0.18; vector-effect: non-scaling-stroke; }
.chart-inset-land { fill: #34302a; stroke: #7d7461; stroke-opacity: 0.6; stroke-width: 0.4; vector-effect: non-scaling-stroke; }
.chart-ring { fill: var(--gold); fill-opacity: 0.045; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-ring--1050 { stroke-opacity: 0.8; }
.chart-ring--2100 { stroke-opacity: 0.5; stroke-dasharray: 4 4; }
.chart-ring--3150 { stroke-opacity: 0.32; stroke-dasharray: 4 4; }
.chart-inset-home { fill: var(--gold); }
.chart-inset-title { fill: var(--gold); font-family: var(--display); font-size: 11px; letter-spacing: 0.18em; }
.chart-inset-scale { fill: var(--text-faint); font-family: var(--body); font-size: 11px; letter-spacing: 0.08em; }

.chart-scale line { stroke: var(--text); stroke-opacity: 0.5; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.chart-scale text, .chart-compass text {
  fill: var(--text-faint); font-family: var(--body); font-size: 12px; letter-spacing: 0.12em;
}
.chart-compass line { stroke: var(--text); stroke-opacity: 0.45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-compass-needle { fill: var(--gold); }
.chart-legend { fill: var(--text-faint); font-family: var(--body); font-size: 12px; letter-spacing: 0.08em; }

/* On a phone the chart cannot shrink to 350px and stay a chart: the place
   names would render at 6px. It keeps a legible size and scrolls sideways
   instead, with the inset, compass and minor labels dropped. */
@media (max-width: 719px) {
  .chart-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
  }
  .chart { width: 760px; max-width: none; }
  .chart-inset, .chart-compass, .chart-legend, .chart-scale { display: none; }
  .chart-port.is-minor .chart-port-label { display: none; }
  .chart-spoke-label { font-size: 18px; }
  .chart-port-label { font-size: 19px; }
  .chart-home-label { font-size: 20px; }

  /* a soft edge so it reads as "there is more to the right" */
  .chart-scroll { position: relative; }
  .chart-scroll::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 2.5rem;
    background: linear-gradient(90deg, rgb(10 9 8 / 0), rgb(10 9 8 / 0.85));
    pointer-events: none;
  }
}

/* ---------------------------------------------------------------- rates --- */
.rates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
}
.rate {
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.rate:hover { border-color: rgb(201 168 116 / 0.45); transform: translateY(-2px); }
.rate-season { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.7rem; }
.rate-price { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--text-hi); }
.rate-when { font-size: 0.86rem; color: var(--text-dim); margin-top: 0.5rem; }

.note { font-size: 0.86rem; color: var(--text-faint); margin-top: 0.9rem; }

.offer {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgb(201 168 116 / 0.5);
  background: rgb(176 141 91 / 0.09);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.offer-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.5rem; align-items: center;
}
.offer-title { font-family: var(--display); font-size: 1.65rem; color: var(--text-hi); margin-bottom: 0.35rem; }
.offer-tiers { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.offer-tier b { display: block; font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--gold); }
.offer-tier span { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 0.4rem; }
.offer-note {
  margin-top: 1.15rem;
  border-left: 2px solid rgb(201 168 116 / 0.55);
  padding: 0.15rem 0 0.15rem 1rem;
  font-size: 0.85rem; line-height: 1.62; color: var(--text-soft);
}
.offer-note b {
  display: block; font-weight: 400;
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.66rem;
  margin-bottom: 0.3rem;
}

.incl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  margin-top: clamp(1.75rem, 4vw, 2.5rem); padding-top: 1.4rem;
}
.incl dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.incl dd { margin: 0; color: var(--text-soft); font-size: 0.92rem; line-height: 1.66; }

/* ----------------------------------------------------------------- spec --- */
.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.spec th { font-weight: 400; color: var(--text-dim); }
.spec td { text-align: right; color: var(--text); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------- form --- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
.field > span {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.field > span em { font-style: normal; color: var(--gold); }
.field input, .field textarea {
  padding: 0.85rem 0.9rem;
  background: rgb(236 231 222 / 0.04);
  border: 1px solid var(--line-hard);
  color: var(--text);
  font-family: var(--body); font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); opacity: 0.7; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: rgb(236 231 222 / 0.06);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #a4564b; }
.field textarea { resize: vertical; min-height: 7rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.1rem; }

.check { display: flex; gap: 0.7rem; align-items: start; font-size: 0.85rem; color: var(--text-soft); line-height: 1.5; }
.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; accent-color: var(--gold-deep); flex-shrink: 0; }

.callout {
  border: 1px solid rgb(201 168 116 / 0.5);
  background: rgb(176 141 91 / 0.09);
  padding: 1.6rem 1.8rem;
}
.callout--error { border-color: rgb(164 86 75 / 0.6); background: rgb(164 86 75 / 0.1); }
.callout h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.callout p { color: var(--text-mid); font-size: 0.95rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-block { border-top: 1px solid var(--line); padding-top: 1.35rem; margin-top: 1.75rem; }
.contact-block dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.6rem; }
.contact-block dd { margin: 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.35; }
.contact-block dd a { color: var(--text-hi); }
.contact-block dd a:hover { color: var(--gold-hi); }

/* --------------------------------------------------------------- footer --- */
.footer {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.5rem; align-items: end;
  padding: clamp(2rem, 4vw, 3.25rem) var(--edge);
}
.footer-brand { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-hi); }
.footer-tag { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.5rem; }
.footer-contact { font-size: 0.92rem; line-height: 1.7; color: var(--text-soft); }
.footer-note { font-size: 0.78rem; color: var(--text-faint); line-height: 1.7; }
.footer-note a { color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; }
.footer-note a:hover { color: var(--gold); }

/* ------------------------------------------------------------- reveals --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
}

/* ----------------------------------------------------------------- print --- */
@media print {
  .header, .footer, .hero-scroll, .lightbox, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #111; }
  .hero::after, .band::after { display: none; }
  h1, h2, h3 { color: #111; }
  a { color: #111; }
}

/* ==========================================================================
   Interaction & motion
   Everything below is an enhancement. Each block degrades to the static
   layout above it when the feature, the JavaScript or the patience is absent.
   ========================================================================== */

/* ------------------------------------------------ cross-page transitions --- */
/* A root cross-fade and nothing else. Naming individual elements (the header,
   the hero image) produced a far more striking morph, but Chrome skips the
   whole transition when it cannot snapshot a named element in time — measured
   at 1 navigation in 3 on a cold cache. An effect that dramatic firing a third
   of the time reads as a glitch; a 250ms fade that occasionally does not fire
   reads as nothing at all. Measured 9/11 here, and every miss was a first
   visit with the images still downloading. */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 0.24s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.42s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* The header and the hero image persist across the navigation instead of
   cross-fading with everything else. */

/* ----------------------------------------------------- hero on arrival --- */
/* Scale only, never opacity or clip: the hero image is the largest paint on
   every page and must not be held back by its own entrance. */
.hero-media { animation: media-in 1.6s var(--ease-out) both; }
@keyframes media-in { from { transform: scale(1.035); } to { transform: none; } }

.hero-body > * { animation: rise 0.9s var(--ease-out) both; }
.hero-body > :nth-child(1) { animation-delay: 0.10s; }
.hero-body > :nth-child(2) { animation-delay: 0.18s; }
.hero-body > :nth-child(3) { animation-delay: 0.28s; }
.hero-body > :nth-child(4) { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Scroll-linked drift, on its own layer so it composes with the Ken Burns
   zoom on the image and the entrance scale on the wrapper. */
.hero-media picture { display: block; width: 100%; height: 100%; }
@supports (animation-timeline: scroll()) {
  .hero-media picture {
    animation: hero-parallax linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 100svh;
  }
  @keyframes hero-parallax { to { transform: translate3d(0, 12%, 0); } }
}

/* --------------------------------------------------- heading line rise --- */
[data-split] .ln { display: block; overflow: hidden; }
[data-split] .ln-i {
  display: block;
  /* Barlow Condensed descends well below the baseline and these headings run at
     line-height 1.04, so the clip needs real room or it shaves every p, g and y. */
  padding-bottom: 0.26em; margin-bottom: -0.26em;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
[data-split].is-in .ln-i { transform: none; }

/* --------------------------------------------------- scroll progress --- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  pointer-events: none; overflow: hidden;
}
.scroll-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  transform: scaleX(0); transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress i {
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ------------------------------------------------------ stat counters --- */
.stat-value { font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------- filter bar --- */
.filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.no-js .filter { display: none; }

.filter-btn {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  background: none; color: var(--text-soft);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.filter-btn small { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-faint); }
.filter-btn:hover { border-color: rgb(201 168 116 / 0.5); color: var(--text-hi); }
.filter-btn[aria-pressed='true'] {
  border-color: var(--gold-deep);
  background: rgb(176 141 91 / 0.14);
  color: var(--gold-hi);
}
.filter-btn[aria-pressed='true'] small { color: var(--gold); }

.gallery-item[hidden] { display: none; }
.gallery-count { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------- passage readout --- */
.chart-shell { display: grid; gap: 1rem; align-items: start; }
/* The side column only exists when the readout does — without JavaScript the
   panel stays hidden and the chart takes the full width instead of leaving a
   gap where a panel would have been. */
@media (min-width: 1000px) {
  .chart-shell:has(.passage:not([hidden])) { grid-template-columns: minmax(0, 1fr) 16.5rem; }
}

.passage {
  border: 1px solid var(--line);
  background: var(--ink-deep);
  padding: 1.25rem 1.35rem;
  min-height: 11rem;
}
.passage-idle { animation: rise 0.45s var(--ease-out) both; }
.passage-area { margin-top: 0.85rem; color: var(--text-soft); font-size: 0.9rem; }
.passage-prompt {
  border-top: 1px solid var(--line);
  margin-top: 1rem; padding-top: 0.85rem;
  font-size: 0.82rem; line-height: 1.55; color: var(--text-faint);
}
.passage-tag--home { border-color: rgb(236 231 222 / 0.28); color: var(--text-dim); }
.passage-name {
  font-family: var(--display); font-size: 1.75rem; line-height: 1.1;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-hi);
}
.passage-tag {
  display: inline-block; margin-top: 0.5rem;
  border: 1px solid rgb(201 168 116 / 0.45);
  padding: 0.2rem 0.6rem;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
}
.passage-dist { margin-top: 0.85rem; color: var(--text-soft); font-size: 0.85rem; }
.passage-dist b {
  font-family: var(--display); font-weight: 500; font-size: 2.4rem;
  line-height: 1; color: var(--gold); margin-right: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.passage-times {
  display: grid; gap: 0.5rem;
  border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.85rem;
}
.passage-times > div { display: flex; justify-content: space-between; gap: 1rem; }
.passage-times dt { font-size: 0.78rem; color: var(--text-dim); }
.passage-times dd {
  margin: 0; font-family: var(--display); font-size: 1.1rem; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.passage-body { animation: rise 0.45s var(--ease-out) both; }

/* ------------------------------------------------------ deck explorer --- */
.decks {
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 1.75rem);
  display: grid; gap: 1.2rem;
}
.decks-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.no-js .decks-tabs, .no-js .decks-caption { display: none; }

.decks-tab {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line);
  background: none; color: var(--text-soft);
  font-family: var(--display); font-size: 0.92rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.decks-tab:hover { border-color: rgb(201 168 116 / 0.5); color: var(--text-hi); }
.decks-tab[aria-selected='true'] {
  border-color: var(--gold-deep);
  background: rgb(176 141 91 / 0.14);
  color: var(--gold-hi);
}

.decks-stage {
  position: relative;
  /* Deck plans are long and thin, but 4.9:1 left them as a letterbox slot with
     the drawing stranded in the middle. The script fits each plate to whatever
     this frame is, so the ratio is now a design choice rather than arithmetic. */
  aspect-ratio: 3.2;
  min-height: 15rem;
  overflow: hidden;
  background: var(--ink-deep);
}
@media (max-width: 719px) { .decks-stage { aspect-ratio: 2.1; } }
.no-js .decks-stage { aspect-ratio: auto; }

.decks-zoom {
  position: absolute; top: 0; left: 0; width: 100%;
  transform-origin: 0 0;
  transition: transform 0.85s var(--ease-out);
  will-change: transform;
}
.decks-zoom picture { display: block; }

.decks-expand {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border: 1px solid var(--line-hard);
  background: rgb(10 9 8 / 0.7);
  color: var(--text); font-size: 1rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.decks-expand:hover { border-color: var(--gold); color: var(--gold); }

.decks-caption { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: baseline; }
.decks-caption b {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.decks-caption span { color: var(--text-soft); font-size: 0.95rem; }

.decks-legend > div { transition: opacity 0.35s var(--ease); }
.decks-legend.is-focused > div:not(.is-active) { opacity: 0.38; }

/* --------------------------------------------------------- calculator --- */
.calc {
  border: 1px solid var(--line);
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.calc-controls { padding: clamp(1.4rem, 3vw, 2.1rem); display: grid; gap: 1.75rem; align-content: start; }
.calc-out {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: rgb(176 141 91 / 0.06);
  border-left: 1px solid var(--line);
  display: grid; gap: 0.9rem; align-content: start;
}
@media (max-width: 719px) {
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
}

.calc-label {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.8rem;
}
.calc-seasons { display: grid; gap: 0.5rem; }
.calc-season {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  background: none; color: var(--text); text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.calc-season b {
  font-family: var(--display); font-weight: 500; font-size: 1.15rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.calc-season small { font-size: 0.8rem; color: var(--text-dim); }
.calc-season:hover { border-color: rgb(201 168 116 / 0.5); }
.calc-season[aria-checked='true'] {
  border-color: var(--gold-deep);
  background: rgb(176 141 91 / 0.14);
}
.calc-season[aria-checked='true'] b { color: var(--gold-hi); }
.calc-season[aria-checked='true'] small { color: var(--gold); }

.calc-days { display: flex; align-items: center; gap: 1rem; }
.calc-days input[type='range'] {
  flex: 1 1 auto; min-width: 0;
  accent-color: var(--gold-deep);
  height: 1.5rem;
}
.calc-daysout {
  flex: 0 0 auto;
  font-family: var(--display); font-size: 1.3rem; color: var(--gold);
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  min-width: 5.5rem; text-align: right;
}

.calc-lines { display: grid; gap: 0.5rem; }
.calc-lines > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.calc-lines dt { font-size: 0.86rem; color: var(--text-dim); }
.calc-lines dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--text); }
.calc-line--discount dd { color: var(--gold); }
.calc-line--discount[hidden] { display: none; }

.calc-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-top: 1px solid var(--line-hard); padding-top: 0.9rem;
}
.calc-total span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.calc-total b {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.calc-note { font-size: 0.76rem; line-height: 1.6; color: var(--text-faint); }

/* -------------------------------------------------------- sticky CTA --- */
.sticky-cta { display: none; }
@media (max-width: 800px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    display: flex; gap: 0.6rem;
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgb(12 11 10 / 0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(115%);
    transition: transform 0.45s var(--ease-out);
  }
  .sticky-cta.is-in { transform: none; }
  .sticky-cta .btn { padding: 0.85rem 1.2rem; font-size: 0.72rem; letter-spacing: 0.18em; }
  .sticky-cta-main { flex: 1 1 auto; justify-content: center; }
  .sticky-cta-call { flex: 0 0 auto; }
  .footer { padding-bottom: 6rem; }
}
.no-js .sticky-cta { display: none; }

/* ---------------------------------------------------- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }

  .hero-media, .hero-body > *, .passage-body { animation: none; }
  .hero-media picture { animation: none; }
  [data-split] .ln-i { transform: none; transition: none; }
  [data-split] .ln { overflow: visible; }
  .decks-zoom, .sticky-cta { transition: none; }
  .scroll-progress { display: none; }
}
