/* ============================================================
   HALCYON ISLES — barefoot luxury, horizontal island journey
   Palette: sand #f7f3ec · deep teal #1c4d5a · sun gold #e0b589
   Type: Playfair Display (display) · Jost (text)
   ============================================================ */

:root {
  --sand: #f7f3ec;
  --sand-2: #efe6d6;
  --shell: #fdfbf6;
  --teal: #1c4d5a;
  --teal-deep: #0e2f3a;
  --night: #081f2b;
  --gold: #e0b589;
  --gold-deep: #b97f45; /* large/decorative on light grounds only (3.1:1) */
  --gold-ink: #8f5a28;  /* small text on light grounds (5.2:1, AA) */
  --ink: #22343a;
  --ink-soft: #4c6069;
  --light: #f3ede1;
  --light-soft: #cfd9d4;
  --hairline: rgba(28, 77, 90, 0.18);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease-drift: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--teal-deep); }

.hide { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--teal); color: var(--sand);
  padding: 0.6rem 1.1rem; border-radius: 2rem;
  font-family: var(--sans); text-decoration: none; letter-spacing: 0.04em;
  transition: top 0.25s var(--ease-drift);
}
.skip:focus-visible { top: 1rem; }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- tide intro ---------- */
.tide-intro {
  position: fixed; inset: 0; z-index: 150;
  background: var(--sand);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease-drift), visibility 0.9s;
}
.tide-intro.done { opacity: 0; visibility: hidden; }
html:not(.js) .tide-intro { display: none; }
.tide-word {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal);
  opacity: 0; transform: translateY(12px);
  animation: tide-rise 1.1s var(--ease-drift) 0.15s forwards;
}
@keyframes tide-rise { to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.1rem, 3.5vw, 2.6rem);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-mark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.22em;
  text-transform: uppercase; text-decoration: none; color: var(--teal);
  background: rgba(247, 243, 236, 0.82);
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  padding: 0.5rem 1rem; border-radius: 3rem;
}
.nav-wave { width: 34px; height: 13px; color: var(--gold-deep); flex: none; }
.nav nav {
  display: flex; align-items: center; gap: 0.15rem;
  background: rgba(247, 243, 236, 0.82);
  background: color-mix(in srgb, var(--sand) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  padding: 0.3rem; border-radius: 3rem;
}
.nav nav a {
  text-decoration: none; font-size: 0.86rem; font-weight: 400;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink);
  padding: 0.42rem 0.9rem; border-radius: 2rem;
  transition: background 0.3s, color 0.3s;
}
.nav nav a:hover { background: rgba(28, 77, 90, 0.08); }
.nav nav a.nav-cta { background: var(--teal); color: var(--sand); }
.nav nav a.nav-cta:hover { background: var(--teal-deep); }

/* ---------- journey scaffolding (horizontal mode) ---------- */
.journey { position: relative; }
/* height set by JS in horizontal mode; harmless fallback */
.journey-viewport {
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
}
#world-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.track {
  position: relative; z-index: 3;
  display: flex; height: 100%;
  will-change: transform;
}

/* ---------- parallax stage ---------- */
.stage {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
}
/* Layers span the viewport but their children are positioned in
   viewport-width percentages far beyond 100%, i.e. in "journey space".
   Each layer translates at its own speed, so positions are calibrated
   to that layer's total travel (speed × maxScroll). */
.layer { position: absolute; inset: 0; will-change: transform; }
.dec { position: absolute; }
.layer-far { color: rgba(28, 77, 90, 0.34); }
.layer-far .isle-a { width: 26vw; min-width: 240px; left: 38%;  bottom: 43.5%; }
.layer-far .isle-b { width: 17vw; min-width: 160px; left: 128%; bottom: 44%; opacity: 0.7; }
.layer-far .isle-c { width: 22vw; min-width: 200px; left: 218%; bottom: 43.5%; opacity: 0.85; }
.layer-far .isle-d { width: 15vw; min-width: 150px; left: 306%; bottom: 44%; opacity: 0.65; }
.layer-mid { color: rgba(20, 62, 74, 0.55); }
.layer-mid .palm-m1 { width: 10vw; min-width: 110px; left: 12%;  bottom: 9%; }
.layer-mid .palm-m2 { width: 9vw;  min-width: 100px; left: 112%; bottom: 12%; }
.layer-mid .palm-m3 { width: 11vw; min-width: 120px; left: 212%; bottom: 8%; }
.layer-mid .palm-m4 { width: 8vw;  min-width: 92px;  left: 322%; bottom: 11%; }
.layer-mid .palm-m5 { width: 10vw; min-width: 108px; left: 442%; bottom: 9%; }
.layer-mid .palm-m6 { width: 9vw;  min-width: 100px; left: 558%; bottom: 12%; }
.layer-near { color: var(--teal-deep); }
.layer-near .dec { opacity: 0.92; }
.layer-near .palm-n1 { width: 22vw; min-width: 250px; left: 58%;  bottom: -6%; }
.layer-near .palm-n2 { width: 19vw; min-width: 215px; left: 172%; bottom: -8%; }
.layer-near .palm-n3 { width: 24vw; min-width: 265px; left: 332%; bottom: -7%; }
.layer-near .palm-n4 { width: 18vw; min-width: 205px; left: 502%; bottom: -8%; }
.layer-near .palm-n5 { width: 23vw; min-width: 255px; left: 682%; bottom: -6%; }
.layer-near .palm-n6 { width: 20vw; min-width: 225px; left: 888%; bottom: -7%; }
.dec.flip { transform: scaleX(-1); }

/* ---------- panels ---------- */
.panel {
  position: relative; flex: 0 0 auto;
  width: var(--pw, 100vw); height: 100%;
  display: flex; align-items: center;
}
.panel-hero    { --pw: 100vw; }
.panel-arrival { --pw: 118vw; }
.panel-villas  { --pw: 150vw; }
.panel-reef    { --pw: 128vw; }
.panel-dinner  { --pw: 122vw; }
.panel-night   { --pw: 122vw; }
.panel-enquire { --pw: 112vw; }

.panel-inner {
  width: min(88%, 1120px);
  margin-inline: auto;
  padding: clamp(5.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
}
.panel-villas .panel-inner { width: min(90%, 1300px); }

/* dark-scene panels use light type */
.panel-night, .panel-enquire { color: var(--light); }
.panel-night .chapter-no, .panel-enquire .chapter-no { color: var(--gold); }
.panel-night .chapter-body { color: var(--light-soft); }

/* ---------- shared typography ---------- */
.kicker {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1.4rem;
}
.chapter-no {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 1.1rem;
}
.chapter-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.08; letter-spacing: 0.005em;
  color: var(--teal);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.chapter-title em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.panel-night .chapter-title, .panel-enquire .chapter-title { color: var(--light); }
.panel-night .chapter-title em, .panel-enquire .chapter-title em { color: var(--gold); }
.chapter-body {
  max-width: 34rem; font-size: 1.06rem; color: var(--ink-soft);
}

/* ---------- hero ---------- */
.hero-inner { text-align: center; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1.05; color: var(--teal);
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span {
  display: block;
  transition: transform 1.3s var(--ease-drift);
}
.hero-title .line:nth-child(2) span { transition-delay: 0.12s; }
.hero-title .line:nth-child(3) span { transition-delay: 0.24s; }
/* only hide behind the reveal when JS is running; qa mode skips it */
html.js:not(.qa) .hero-title .line span { transform: translateY(110%); }
html.js body.arrived .hero-title .line span { transform: none; }
.hero-title .line:nth-child(2) { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.hero-sub {
  max-width: 36rem; margin-inline: auto;
  font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft);
}
.reveal { transition: opacity 1.1s var(--ease-drift) 0.5s, transform 1.1s var(--ease-drift) 0.5s; }
html.js:not(.qa) .reveal { opacity: 0; transform: translateY(14px); }
html.js body.arrived .reveal { opacity: 1; transform: none; }
html.qa .hero-title .line span, html.qa .reveal { transition: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(4.4rem, 9vh, 5.6rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal); opacity: 0.75;
}
.scroll-cue svg { width: 42px; height: 14px; animation: cue-drift 3.2s ease-in-out infinite; }
.cue-v { display: none; }
@keyframes cue-drift {
  0%, 100% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
}

/* ---------- arrival figures ---------- */
.figures {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 3.5vw, 3.4rem);
  margin-top: 2.6rem;
  padding: 1.3rem 1.5rem;
  max-width: 44rem;
  background: rgba(253, 251, 246, 0.72);
  background: color-mix(in srgb, var(--shell) 74%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.figures dt {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.2rem;
}
.figures dd { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); }

/* ---------- villas ---------- */
.panel-villas .chapter-head { margin-bottom: 2.4rem; }
.villa-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 330px));
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
}
.villa-card {
  background: var(--shell);
  border: 1px solid rgba(28, 77, 90, 0.12);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1.5rem;
  box-shadow: 0 24px 48px -30px rgba(14, 47, 58, 0.45);
  transition: transform 0.6s var(--ease-drift), box-shadow 0.6s var(--ease-drift);
}
.villa-card:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(14, 47, 58, 0.55); }
.villa-art {
  position: relative; height: 150px; border-radius: 9px; overflow: hidden;
  margin-bottom: 1.2rem;
}
.art-tide   { background: linear-gradient(180deg, #dceceb 0%, #f2e7cf 58%, #f2e7cf 100%); }
.art-lagoon { background: linear-gradient(180deg, #cfe6e2 0%, #efe0c4 58%, #efe0c4 100%); }
.art-ridge  { background: linear-gradient(180deg, #f0d9bd 0%, #eac9a2 58%, #eac9a2 100%); }
.art-sun {
  position: absolute; top: 22%; left: 64%;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fbe6c4, var(--gold));
  box-shadow: 0 0 26px 6px rgba(224, 181, 137, 0.55);
}
.art-ridge .art-sun { top: 34%; left: 18%; }
.art-sea {
  position: absolute; left: 0; right: 0; top: 58%; bottom: 0;
  background: linear-gradient(180deg, #7db3b3 0%, var(--teal) 100%);
}
.art-sea::after {
  content: ""; position: absolute; left: 8%; right: 30%; top: 18%;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(247, 243, 236, 0.8), transparent);
}
.art-ridge .art-sea { background: linear-gradient(180deg, #6f9d9c 0%, #174552 100%); }
.art-deck {
  position: absolute; left: 12%; bottom: 26%;
  width: 44%; height: 7px; border-radius: 3px;
  background: var(--teal-deep);
}
.art-deck::before {
  content: ""; position: absolute; left: 12%; top: -16px;
  width: 46px; height: 13px;
  background: var(--teal-deep);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.villa-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem;
  color: var(--teal); margin: 0 0.35rem 0.4rem;
}
.villa-spec { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0.35rem 0.9rem; line-height: 1.55; }
.villa-rate {
  font-family: var(--serif); font-size: 1.15rem; color: var(--gold-ink);
  margin: 0 0.35rem;
}
.villa-rate span { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }
.villa-note {
  margin-top: 2.2rem; max-width: 40rem;
  font-style: italic; font-family: var(--serif);
  font-size: 1.08rem; color: var(--ink-soft);
}

/* ---------- reef ---------- */
.reef-list {
  list-style: none; margin-top: 2.2rem; max-width: 37rem;
  display: grid; gap: 1.1rem;
}
.reef-list li {
  padding: 1rem 1.2rem;
  background: rgba(253, 251, 246, 0.72);
  background: color-mix(in srgb, var(--shell) 72%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 0.98rem; color: var(--ink-soft);
}
.reef-list strong { display: block; font-weight: 500; color: var(--teal); letter-spacing: 0.02em; }

/* ---------- dinner ---------- */
.menu {
  list-style: none; margin-top: 2.3rem; max-width: 36rem;
  padding: 0.4rem 1.3rem;
  background: rgba(253, 251, 246, 0.72);
  background: color-mix(in srgb, var(--shell) 74%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
.menu li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.4rem;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid rgba(34, 52, 58, 0.22);
}
.menu li:last-child { border-bottom: none; }
.menu-dish { font-family: var(--serif); font-size: 1.12rem; color: var(--teal-deep); }
.menu-note { font-style: italic; font-size: 0.86rem; color: var(--ink-soft); text-align: right; flex: none; max-width: 44%; }

/* ---------- night ---------- */
.night-cards {
  display: grid; grid-template-columns: repeat(2, minmax(230px, 320px));
  gap: 1.4rem; margin-top: 2.4rem;
}
.night-card {
  padding: 1.4rem 1.5rem;
  background: rgba(8, 31, 43, 0.5);
  border: 1px solid rgba(224, 181, 137, 0.28);
  border-radius: 12px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.night-card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.25rem;
  color: var(--gold); margin-bottom: 0.5rem;
}
.night-card p { font-size: 0.95rem; color: var(--light-soft); }

/* ---------- enquiry ---------- */
.enquire-form {
  margin-top: 2.2rem; max-width: 40rem;
  display: grid; gap: 1.1rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  background: rgba(8, 31, 43, 0.55);
  border: 1px solid rgba(224, 181, 137, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-weight: 300; font-size: 1rem;
  color: var(--light);
  background: rgba(247, 243, 236, 0.07);
  border: 1px solid rgba(243, 237, 225, 0.3);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.3s, background 0.3s;
}
.field textarea { resize: vertical; min-height: 4.4rem; }
.field ::placeholder { color: rgba(243, 237, 225, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(247, 243, 236, 0.12);
}
.field select option { color: var(--ink); background: var(--sand); }
.enquire-btn {
  justify-self: start;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--gold);
  border: none; border-radius: 3rem;
  padding: 0.85rem 2.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease-drift);
}
.enquire-btn:hover { background: #ecc9a2; transform: translateY(-2px); }
.enquire-confirm { font-style: italic; font-family: var(--serif); color: var(--gold); min-height: 1.4em; }

/* ---------- compass / progress ---------- */
.compass {
  position: absolute; z-index: 10;
  left: 50%; bottom: 1.35rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.5rem 1.1rem;
  background: rgba(247, 243, 236, 0.8);
  background: color-mix(in srgb, var(--sand) 80%, transparent);
  border: 1px solid var(--hairline);
  border-radius: 3rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.compass-label {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal); min-width: 6.5em; text-align: center;
}
.compass-bar {
  width: clamp(90px, 14vw, 180px); height: 3px; border-radius: 3px;
  background: rgba(28, 77, 90, 0.18); overflow: hidden;
}
.compass-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 3px;
}

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 5;
  background: var(--teal-deep); color: var(--light-soft);
  padding: 2.6rem 1.4rem 2.8rem;
  text-align: center;
}
.footer-inner { max-width: 720px; margin-inline: auto; display: grid; gap: 0.85rem; }
.footer-brand { font-family: var(--serif); font-size: 1.02rem; color: var(--light); }
.footer a { color: var(--gold); text-decoration-color: rgba(224, 181, 137, 0.5); text-underline-offset: 3px; }
.footer-fine { font-size: 0.82rem; opacity: 0.85; }

/* ============================================================
   VERTICAL MODE — mobile & reduced motion fallback
   ============================================================ */
body.vertical .journey { height: auto !important; }
body.vertical .journey-viewport { position: static; height: auto; overflow: visible; }
body.vertical #world-canvas, body.vertical .stage, body.vertical .compass { display: none; }
body.vertical .track { display: block; height: auto; transform: none !important; }
body.vertical .panel {
  width: 100%; height: auto; min-height: 92svh;
  align-items: center;
}
body.vertical .panel-inner { width: min(90%, 640px); padding: 5.5rem 0 3.5rem; }
body.vertical .cue-h { display: none; }
body.vertical .cue-v { display: block; }
body.vertical .scroll-cue svg { animation-name: cue-bob; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(4px); }
}

/* vertical chapter skies — the day fades to night down the page */
body.vertical .panel-hero    { background: linear-gradient(180deg, #cfe6e8 0%, #eef0e4 46%, #f7ead6 60%, #8fc3c3 60.2%, #1c4d5a 100%); }
body.vertical .panel-arrival { background: linear-gradient(180deg, #bfdfe2 0%, #ede9d8 52%, #f6e4c4 66%, #7fbabb 66.2%, #175062 100%); }
body.vertical .panel-villas  { background: linear-gradient(180deg, #b6dbde 0%, #f0ead7 60%, var(--sand) 100%); }
body.vertical .panel-reef    { background: linear-gradient(180deg, #a9d2d3 0%, #d9ebe4 55%, #bcd9d3 100%); }
body.vertical .panel-dinner  { background: linear-gradient(180deg, #7fa9b4 0%, #e8c9a5 48%, #f2b87c 64%, #d99e6b 64.2%, #14424f 100%); }
body.vertical .panel-night   { background: linear-gradient(180deg, #050f16 0%, #081f2b 55%, #0e2f3a 100%); }
body.vertical .panel-enquire { background: linear-gradient(180deg, #0e2f3a 0%, #081f2b 70%, #050f16 100%); }

/* keep hero/arrival copy readable on their gradient horizons */
body.vertical .panel-hero .hero-inner,
body.vertical .panel-arrival .panel-inner,
body.vertical .panel-reef .panel-inner,
body.vertical .panel-dinner .panel-inner {
  background: rgba(247, 243, 236, 0.62);
  background: color-mix(in srgb, var(--sand) 62%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 2.2rem clamp(1.1rem, 5vw, 2rem);
}
body.vertical .villa-row { grid-template-columns: 1fr; max-width: 420px; }
body.vertical .night-cards { grid-template-columns: 1fr; max-width: 420px; }
body.vertical .figures dd { font-size: 1.3rem; }
body.vertical .menu-note { max-width: 40%; }

/* ---------- responsive fine-tuning ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .br-d { display: none; } /* a real space precedes it in the markup */
  .nav { padding: 0.8rem 0.8rem; }
  .nav nav a { padding: 0.4rem 0.6rem; font-size: 0.78rem; letter-spacing: 0.06em; }
  .nav nav a[data-chapter="3"], .nav nav a[data-chapter="5"] { display: none; }
  .nav-mark span { display: none; }
  .nav-mark { padding: 0.5rem 0.75rem; }
  .field-row { grid-template-columns: 1fr; }
  .menu li { flex-direction: column; gap: 0.15rem; }
  .menu-note { text-align: left; max-width: none; }
  .figures { gap: 1.2rem 2rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line span, .reveal { transform: none; opacity: 1; }
  .tide-intro { display: none; }
}
