/* ════════════════════════════════════════════════════════════
   COQUINA RESERVE — The Guana
   One product, told like a day on the Atlantic:
   golden hero → beneath the surface → the vitrine →
   the coast, panel by panel → daylight, acquire → nightfall.
   Base styles are static & fully visible (mobile / no-JS /
   reduced-motion). Scroll choreography lives under html.rich
   at ≥1024px only.
   ════════════════════════════════════════════════════════════ */

:root {
  --sand: #E8DFD0;
  --ivory: #FAF6EF;
  --stone: #C4B5A0;
  --drift: #A89279;
  --navy: #0A1628;
  --navy-soft: #13223D;
  --gold: #C9A96E;
  --gold-deep: #8F713E;
  --gold-text: #7A5E33;   /* AA-safe gold for small text on light grounds */
  --coral: #E8634A;
  --coral-text: #B83A1E;  /* AA-safe coral for text */

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'DM Mono', 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(22px, 6vw, 104px);
  --footer-h: 0px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--stone) var(--ivory);
  scrollbar-width: thin;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--navy); /* shows through curtain-footer overscroll */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  z-index: 1;
  background: var(--ivory);
  box-shadow: 0 60px 120px rgba(10, 22, 40, 0.55);
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
[id] { scroll-margin-top: 96px; }

h1, h2, h3 { font-weight: 300; }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(10, 22, 40, 0.7);
  margin-bottom: clamp(20px, 3vh, 36px);
}
.kicker__rule { width: 42px; height: 1px; background: var(--gold-deep); flex: none; }
.kicker--gold { color: var(--gold); }
.kicker--gold .kicker__rule { background: var(--gold); }

/* ── Grain ──────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Progress horizon line (rich only) ──────────────────── */
#progress {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 95;
  will-change: transform;
}
html.rich #progress { display: block; }

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease) 0.15s, visibility 0s 1.1s;
}
html.loaded #loader { opacity: 0; visibility: hidden; }
html.no-loader #loader,
html.no-js #loader { display: none; }
.loader__inner { text-align: center; }
.loader__mark {
  width: 64px; height: 36px;
  color: var(--navy);
  opacity: 0;
  animation: loaderFade 1.1s var(--ease) 0.1s forwards;
}
.loader__word {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 18px;
  opacity: 0;
  animation: loaderFade 1.1s var(--ease) 0.25s forwards;
}
.loader__line {
  display: block;
  width: 120px; height: 1px;
  margin: 22px auto 0;
  background: var(--gold);
  transform: scaleX(0);
  animation: loaderLine 1.4s var(--ease) 0.45s forwards;
}
@keyframes loaderFade { to { opacity: 1; } }
@keyframes loaderLine { to { transform: scaleX(1); } }

/* ── Nav ────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 80px;
  transition: transform 0.55s var(--ease), background-color 0.5s ease,
              backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}
#nav.nav--solid {
  background: rgba(250, 246, 239, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.07);
}
#nav.nav--hidden { transform: translateY(-100%); }
#nav.nav--hidden:focus-within { transform: none; }

.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav__mark { width: 42px; height: 23px; color: var(--navy); flex: none; }
.nav__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__price { color: rgba(10, 22, 40, 0.7); }
.nav__cta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid rgba(10, 22, 40, 0.5);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.nav__cta:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

/* ── Reveal system ──────────────────────────────────────── */
html:not(.no-js) [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
html:not(.no-js) [data-reveal].in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ivory);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: -9% 0;
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transition: transform 2.8s var(--ease);
}
html:not(.no-js):not(.loaded) .hero__media img { transform: scale(1.09); }
.hero__media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(201, 169, 110, 0.10) 0%, rgba(10, 22, 40, 0.16) 90%);
  pointer-events: none;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--ivory);
  opacity: 0;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 110px var(--pad-x) 80px;
  width: 100%;
}
.hero__eyebrow { color: rgba(10, 22, 40, 0.7); margin-bottom: clamp(20px, 4vh, 44px); }
.hero__eyebrow.in { transition-delay: 0.55s; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(4.2rem, 12vw, 12.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--navy);
  transition: letter-spacing 2s var(--ease);
}
html:not(.no-js):not(.loaded) .hero__title { letter-spacing: 0.06em; }
.hero__title em { font-style: italic; font-weight: 300; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-inner {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.5s var(--ease);
  transition-delay: calc(var(--li) * 0.14s + 0.25s);
  will-change: transform;
}
html.loaded .split-inner { transform: none; }
html.no-js .hero__title br { display: none; }

.hero__sub {
  max-width: 34ch;
  color: rgba(10, 22, 40, 0.82);
  margin-top: clamp(20px, 4vh, 44px);
  font-size: 1.0625rem;
}
.hero__meta {
  margin-top: clamp(14px, 2.5vh, 26px);
  color: rgba(10, 22, 40, 0.72);
}
html:not(.no-js) .hero__sub,
html:not(.no-js) .hero__meta,
html:not(.no-js) .hero__cue {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
html.loaded .hero__sub { opacity: 1; transform: none; transition-delay: 1s; }
html.loaded .hero__meta { opacity: 1; transform: none; transition-delay: 1.15s; }
html.loaded .hero__cue { opacity: 1; transform: none; transition-delay: 1.6s; }

.hero__cue {
  position: absolute;
  bottom: 38px;
  left: var(--pad-x);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(10, 22, 40, 0.6);
}
.hero__cue-line {
  display: block;
  width: 1px; height: 52px;
  background: rgba(10, 22, 40, 0.35);
  overflow: hidden;
  position: relative;
}
.hero__cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-deep);
  transform: scaleY(0);
  transform-origin: top;
  animation: cueDrop 2.6s var(--ease) infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform-origin: bottom; }
  90%, 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Tide seam ──────────────────────────────────────────── */
.tide {
  position: relative;
  height: 64px;
  margin-top: -64px;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.tide__wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 220%; height: 100%;
}
.tide__wave--a { fill: rgba(250, 246, 239, 0.6); animation: tideDrift 22s ease-in-out infinite alternate; }
.tide__wave--b { fill: var(--ivory); animation: tideDrift 30s ease-in-out infinite alternate-reverse; }
@keyframes tideDrift { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* ════════════════════════════════════════════════════════
   THE DESCENT — past the break, beneath the surface
   ════════════════════════════════════════════════════════ */
.descent { position: relative; background: var(--navy); }
.descent__sticky {
  position: relative;
  height: 96svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.descent__media { position: absolute; inset: 0; }
.descent__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  will-change: transform;
}
.descent__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(115% 85% at 50% 48%, transparent 55%, rgba(10, 22, 40, 0.55) 100%);
}
.descent__core {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  padding: 0 var(--pad-x);
}
.descent__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.38;
  color: var(--ivory);
  text-shadow: 0 1px 26px rgba(10, 22, 40, 0.55);
}
.mw { display: inline-block; will-change: opacity; }
.mw--gold { font-style: italic; color: var(--gold); }
html.rich .descent .mw { opacity: 0.18; }
.descent__mark {
  margin-top: 6vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.descent__rule { width: 52px; height: 1px; background: rgba(201, 169, 110, 0.7); }
.descent__dolphin { width: 58px; height: 32px; color: var(--gold); }
html.rich .descent__mark { opacity: 0; }

/* ════════════════════════════════════════════════════════
   THE VITRINE — the object, under glass
   ════════════════════════════════════════════════════════ */
.vitrine {
  position: relative;
  background:
    radial-gradient(130% 90% at 50% 0%, #1A2C4D 0%, var(--navy) 62%);
  color: var(--ivory);
  padding: 13vh var(--pad-x) 11vh;
  overflow: clip; /* NOT hidden — hidden would break position:sticky inside */
}
.vitrine__head { max-width: 680px; margin: 0 auto; text-align: center; }
.vitrine__head .kicker { justify-content: center; }
.vitrine__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--ivory);
}
.vitrine__title em { font-style: italic; }
.vitrine__intro {
  margin-top: 3vh;
  color: rgba(250, 246, 239, 0.72);
  font-size: 1rem;
}
.vitrine__stage { margin-top: 7vh; position: relative; }
.vitrine__numeral { display: none; }
.vitrine__spot {
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(closest-side at 50% 42%, rgba(201, 169, 110, 0.26), rgba(201, 169, 110, 0.07) 48%, transparent 74%);
  pointer-events: none;
}
.vitrine__case { position: relative; max-width: 760px; margin: 0 auto; }
.vitrine__imgs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 28px);
  transition: transform 1.4s var(--ease);
}
.vitrine__img {
  width: 100%;
  filter: brightness(1.32) contrast(1.04) drop-shadow(0 34px 50px rgba(0, 0, 0, 0.6));
}
.vitrine__refl, .vitrine__floor { display: none; }
.vitrine__step { display: none; }

/* base callouts: annotated list on dark */
.vitrine__callouts { max-width: 720px; margin: 7vh auto 0; }
.callout {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.22);
}
.callout__dot, .callout__line { display: none; }
.callout__no { color: var(--gold); padding-top: 6px; }
.callout__text h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.2;
}
.callout__text p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: rgba(250, 246, 239, 0.68);
  max-width: 52ch;
}

/* ════════════════════════════════════════════════════════
   THE COAST — a horizontal walk at golden hour
   ════════════════════════════════════════════════════════ */
.coast { position: relative; background: var(--sand); }
.coast__sticky { position: relative; }
.coast__track {
  display: flex;
  gap: clamp(28px, 6vw, 90px);
  overflow-x: auto;
  padding: 12vh var(--pad-x);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.coast__track::-webkit-scrollbar { display: none; }
.coast__progress { display: none; }

.panel {
  flex: 0 0 min(78vw, 420px);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel--intro { justify-content: center; }
.panel__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1.05;
  color: var(--navy);
}
.panel__title em { font-style: italic; }
.panel__lead {
  margin-top: 3vh;
  color: rgba(10, 22, 40, 0.78);
  max-width: 44ch;
}
.panel__cue { margin-top: 5vh; color: rgba(10, 22, 40, 0.55); }

.panel__fig {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  position: relative;
  background: var(--stone);
}
.panel__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.panel:hover .panel__fig img { transform: scale(1.045); }
.panel__fig--cloth { background: var(--sand); }
.panel__fig--cloth img {
  position: absolute;
  width: 420%;
  max-width: none;
  height: auto;
  left: -212%;
  top: -228%;
  mix-blend-mode: multiply;
  filter: contrast(1.05) brightness(1.04);
}
.panel__plate { margin-top: 20px; }
.panel__no { color: var(--gold-text); display: block; }
.panel__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--navy);
  margin-top: 6px;
  line-height: 1.15;
}
.panel__body {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: rgba(10, 22, 40, 0.75);
  max-width: 40ch;
}
.panel__coords { margin-top: 12px; color: var(--gold-text); }
.panel__stats {
  display: flex;
  gap: 26px;
  margin-top: 18px;
}
.panel__stats div { border-top: 1px solid var(--gold-deep); padding-top: 10px; }
.panel__stats dt { font-size: 0.9375rem; letter-spacing: 0.08em; color: var(--navy); }
.panel__stats dd { font-size: 0.78rem; color: rgba(10, 22, 40, 0.66); margin-top: 2px; }
.panel__cta {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 6px;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-deep);
  transition: border-color 0.35s ease, color 0.35s ease;
}
.panel__cta:hover { color: var(--gold-text); border-color: var(--gold-text); }

/* ════════════════════════════════════════════════════════
   PURCHASE
   ════════════════════════════════════════════════════════ */
.purchase { background: var(--ivory); padding: 16vh var(--pad-x); }
.purchase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}
.purchase__media { position: relative; }
.purchase__halo {
  position: absolute;
  inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sand) 0%, rgba(232, 223, 208, 0) 70%);
  animation: halo 8s ease-in-out infinite;
}
@keyframes halo { 50% { opacity: 0.55; transform: scale(1.05); } }
.purchase__img { position: relative; mix-blend-mode: multiply; transition: opacity 0.7s var(--ease); }
.purchase__img--back {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.purchase__media.show-back .purchase__img--front { opacity: 0; }
.purchase__media.show-back .purchase__img--back { opacity: 1; }
.purchase__flip { text-align: center; color: rgba(10, 22, 40, 0.55); margin-top: 6px; }

.purchase__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  color: var(--navy);
}
.purchase__title em { font-style: italic; }
.purchase__price {
  margin-top: 3.5vh;
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.odo { display: inline-flex; align-items: baseline; }
.odo__d { display: inline-block; }
.odo__col { display: inline-block; height: 1.05em; overflow: hidden; line-height: 1.05; vertical-align: bottom; }
.odo__stack { display: flex; flex-direction: column; transition: transform 1.1s var(--ease); }
.odo__stack span { display: block; height: 1.05em; }
.purchase__currency { font-size: 0.6875rem; letter-spacing: 0.2em; color: rgba(10, 22, 40, 0.7); }

.purchase__sizes { margin-top: 4.5vh; }
.purchase__sizes-label { display: block; color: rgba(10, 22, 40, 0.7); margin-bottom: 14px; }
.purchase__chips { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-size {
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(10, 22, 40, 0.35);
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.buy-size:hover { border-color: var(--navy); }
.buy-size.is-active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.purchase__waist { margin-top: 14px; color: rgba(10, 22, 40, 0.7); }

.purchase__cta {
  width: 100%;
  margin-top: 4.5vh;
  padding: 21px 24px;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  transition: background-color 0.45s ease;
  overflow: hidden;
}
.purchase__cta::after {
  /* the page's single coral moment */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.purchase__cta:hover { background: var(--navy-soft); }
.purchase__cta:hover::after { transform: scaleX(1); }
.purchase__cta.is-done { background: var(--gold-deep); }
.buy-note { margin-top: 16px; color: rgba(10, 22, 40, 0.7); }
.buy-note--warn { color: var(--coral-text); }

.assurances { list-style: none; margin-top: 7vh; }
.assurance { border-top: 1px solid rgba(10, 22, 40, 0.13); padding: 20px 0; }
.assurance__title { color: var(--gold-text); margin-bottom: 6px; }
.assurance p { font-size: 0.9375rem; color: rgba(10, 22, 40, 0.75); max-width: 54ch; }

.flash { animation: flash 0.42s ease; }
@keyframes flash { 50% { opacity: 0.25; } }

.footer-sentinel { height: 1px; }

/* ════════════════════════════════════════════════════════
   FOOTER — revealed like nightfall under the page
   ════════════════════════════════════════════════════════ */
#footer {
  background: var(--navy);
  color: var(--ivory);
  text-align: center;
  padding: 13vh var(--pad-x) 9vh;
}
.footer__dolphin { width: 110px; height: 60px; color: var(--gold); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.footer__wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 26px;
}
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: rgba(250, 246, 239, 0.75);
  margin-top: 14px;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 5vh;
  color: rgba(250, 246, 239, 0.62);
}
.footer__links a { text-decoration: none; transition: color 0.35s ease; }
.footer__links a:hover { color: var(--gold); }
.footer__coords { margin-top: 4vh; color: rgba(201, 169, 110, 0.85); }
.footer__legal { margin-top: 14px; color: rgba(250, 246, 239, 0.55); }

/* ════════════════════════════════════════════════════════
   RICH MODE — desktop scroll choreography
   ════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Hero: asymmetric editorial split */
  html.rich .hero__media-wrap { width: 57%; }
  html.rich .hero__media img { object-position: 50% 28%; }
  html.rich .hero__content { width: 70%; }
  html.rich .hero__title .split-line:last-child { margin-left: clamp(2rem, 9vw, 10rem); }
  html.rich .hero__content,
  html.rich .hero__veil { will-change: transform, opacity; }

  /* Descent: pinned dive */
  html.rich .descent { height: 330vh; }
  html.rich .descent__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
  }
  html.rich .descent__media img {
    height: auto;
    min-height: 102%;
    object-fit: fill;
  }

  /* Vitrine: pinned scene */
  html.rich .vitrine { height: 560vh; padding: 0; }
  html.rich .vitrine__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12vh var(--pad-x) 7vh;
  }
  html.rich .vitrine__head .vitrine__intro { display: none; }
  html.rich .vitrine__stage {
    flex: 1;
    min-height: 0;
    margin-top: 3vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
  }
  html.rich .vitrine__numeral {
    display: block;
    position: absolute;
    top: 44%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--serif);
    font-weight: 300;
    font-size: 36vh;
    line-height: 1;
    color: rgba(201, 169, 110, 0.07);
    pointer-events: none;
    transition: opacity 0.6s ease;
  }
  html.rich .vitrine__case {
    position: relative;
    height: 100%;
    max-width: none;
    aspect-ratio: 1122 / 1402;
    margin: 0 auto;
  }
  html.rich .vitrine__imgs {
    display: block;
    position: absolute;
    inset: 0;
  }
  html.rich .vitrine__img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: opacity 0.8s var(--ease), transform 1s var(--ease);
    backface-visibility: hidden;
  }
  html.rich .vitrine__img--back { opacity: 0; transform: rotateY(16deg); }
  html.rich .vitrine__stage[data-step="3"] .vitrine__img--back,
  html.rich .vitrine__stage[data-step="4"] .vitrine__img--back,
  html.rich .vitrine__stage[data-step="5"] .vitrine__img--back { opacity: 1; transform: rotateY(0); }
  html.rich .vitrine__stage[data-step="3"] .vitrine__img--front,
  html.rich .vitrine__stage[data-step="4"] .vitrine__img--front,
  html.rich .vitrine__stage[data-step="5"] .vitrine__img--front { opacity: 0; transform: rotateY(-16deg); }
  html.rich .vitrine__stage[data-step="0"] .vitrine__imgs { transform: scale(1.13); transform-origin: 62.5% 72.5%; }

  /* reflection on the gallery floor */
  html.rich .vitrine__refl {
    display: block;
    position: absolute;
    top: 64%;
    left: 0; right: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0.16;
    filter: blur(2px) brightness(0.75);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 56%, transparent 78%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85) 56%, transparent 78%);
  }
  html.rich .vitrine__rimg {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    transform: scaleY(-1);
    transition: opacity 0.8s var(--ease);
  }
  html.rich .vitrine__rimg--back { opacity: 0; }
  html.rich .vitrine__stage[data-step="3"] .vitrine__rimg--back,
  html.rich .vitrine__stage[data-step="4"] .vitrine__rimg--back,
  html.rich .vitrine__stage[data-step="5"] .vitrine__rimg--back { opacity: 1; }
  html.rich .vitrine__stage[data-step="3"] .vitrine__rimg--front,
  html.rich .vitrine__stage[data-step="4"] .vitrine__rimg--front,
  html.rich .vitrine__stage[data-step="5"] .vitrine__rimg--front { opacity: 0; }

  html.rich .vitrine__floor {
    display: block;
    position: absolute;
    left: 8%; right: 8%;
    top: 86%;
    height: 6%;
    background: radial-gradient(50% 100% at 50% 50%, rgba(201, 169, 110, 0.12), transparent 75%);
    pointer-events: none;
  }

  html.rich .vitrine__callouts { position: absolute; inset: 0; max-width: none; margin: 0; }
  html.rich .callout {
    position: absolute;
    top: var(--cy);
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    border: none;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
    pointer-events: none;
    z-index: 3;
  }
  html.rich .callout--right { left: var(--cx); }
  html.rich .callout--left {
    right: calc(100% - var(--cx));
    flex-direction: row-reverse;
    text-align: right;
  }
  html.rich .callout__dot,
  html.rich .callout__line { display: block; flex: none; margin-top: 0; }
  html.rich .callout__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(10, 22, 40, 0.6);
    margin-top: -4px;
    position: relative;
  }
  html.rich .callout--now .callout__dot::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: ping2 2.4s ease-out infinite;
  }
  @keyframes ping2 {
    0% { transform: scale(0.5); opacity: 0.9; }
    75%, 100% { transform: scale(1.5); opacity: 0; }
  }
  html.rich .callout__line {
    width: var(--ll, clamp(40px, 5vw, 96px));
    height: 1px;
    background: rgba(201, 169, 110, 0.45);
    transform: scaleX(0);
    transition: transform 0.8s var(--ease) 0.1s;
  }
  html.rich .callout--right .callout__line { transform-origin: left; }
  html.rich .callout--left .callout__line { transform-origin: right; }
  html.rich .callout__text {
    width: 250px;
    flex: none;
    padding: 0 16px;
    transform: translateY(calc(-0.55em + 12px));
    opacity: 0;
    transition: opacity 0.7s var(--ease) 0.25s, transform 0.7s var(--ease) 0.25s;
  }
  html.rich .callout__text h3 { font-size: 1.3rem; }
  html.rich .callout__text p { font-size: 0.875rem; }
  html.rich .callout--on { opacity: 0.4; pointer-events: auto; }
  html.rich .callout--on .callout__line { transform: scaleX(1); }
  html.rich .callout--on .callout__text { opacity: 1; transform: translateY(-0.55em); }
  html.rich .callout--now { opacity: 1; }
  html.rich .vitrine__step {
    display: block;
    position: absolute;
    bottom: -3vh;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    letter-spacing: 0.3em;
  }

  /* Coast: pinned horizontal walk (section height set by JS) */
  html.rich .coast__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  html.rich .coast__track {
    height: 100%;
    width: max-content;
    align-items: center;
    overflow: visible;
    padding: 0 10vw;
    gap: clamp(48px, 7vw, 120px);
    scroll-snap-type: none;
    will-change: transform;
  }
  html.rich .panel { flex: 0 0 auto; width: 27vw; max-width: 480px; }
  html.rich .panel--intro { width: 34vw; }
  html.rich .panel--close { width: 30vw; }
  html.rich .panel__fig { height: 56vh; aspect-ratio: auto; }
  html.rich .panel--close .panel__fig { height: 62vh; }
  html.rich .coast__progress {
    display: block;
    position: absolute;
    left: 10vw; right: 10vw;
    bottom: 7vh;
    height: 1px;
    background: rgba(10, 22, 40, 0.15);
  }
  html.rich .coast__progress span {
    display: block;
    height: 100%;
    background: var(--gold-deep);
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
  }

}

/* ════════════════════════════════════════════════════════
   FOOTER CURTAIN — the page lifts away to reveal the footer
   beneath it. Cheap (fixed + margin, no scroll-linked work),
   so it runs on every JS-enabled device, mobile included.
   Guarded by a max-height so a footer taller than the
   viewport can never have its top clipped off-screen.
   ════════════════════════════════════════════════════════ */
@media (min-height: 620px) {
  html:not(.no-js) main { margin-bottom: var(--footer-h); }
  html:not(.no-js) #footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 0;
  }
  html:not(.no-js) .footer__inner {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  }
  html:not(.no-js) #footer.footer-in .footer__inner { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════
   MOBILE & NARROW
   ════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .nav__price { display: none; }
  #nav { height: 64px; padding: 0 20px; }
  .nav__brand { gap: 10px; }
  .nav__name { font-size: 0.72rem; letter-spacing: 0.14em; }
  .nav__mark { width: 30px; height: 17px; }
  .nav__cta { padding: 9px 14px; font-size: 0.625rem; letter-spacing: 0.14em; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media-wrap { position: relative; width: 100%; height: 56svh; order: -1; }
  .hero__media { inset: 0; }
  .hero__media-wrap::after {
    background: linear-gradient(rgba(10, 22, 40, 0.08), rgba(250, 246, 239, 0) 30%,
                rgba(250, 246, 239, 0) 72%, var(--ivory));
  }
  .hero__content { padding: 34px var(--pad-x) 90px; }
  .hero__title { font-size: clamp(4rem, 17vw, 6.5rem); }
  .hero__cue { display: none; }
  .tide { display: none; }

  .descent__sticky { height: 92svh; }
  .descent__text { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }

  .vitrine { padding: 12vh var(--pad-x); }
  .vitrine__imgs { gap: 14px; }

  /* Coast becomes a clean vertical stack — no horizontal swipe */
  .coast__track {
    flex-direction: column;
    gap: 12vh;
    overflow-x: visible;
    padding: 12vh var(--pad-x);
    scroll-snap-type: none;
  }
  .panel { flex: none; width: 100%; max-width: 540px; margin: 0 auto; display: block; }
  .panel--intro { text-align: left; padding: 4vh 0 2vh; }
  .panel__cue { display: none; }
  .panel__lead { max-width: none; }
  .panel__fig { aspect-ratio: 4 / 5; margin-bottom: 4px; }
  .panel--close .panel__fig { aspect-ratio: 3 / 4; }
  /* cloth panel: the desktop 420% macro lands off-frame on mobile —
     show a clean blended crop of the navy cloth instead */
  .panel__fig--cloth img {
    position: static;
    width: 100%; height: 100%;
    left: auto; top: auto;
    object-fit: cover;
    object-position: 50% 64%;
    transform: scale(2.1);
    transform-origin: 50% 60%;
  }

  .purchase__inner { grid-template-columns: 1fr; gap: 7vh; }
  .purchase__media { max-width: 440px; margin: 0 auto; }
  .purchase__flip { display: none; }

  #footer { padding: 12vh var(--pad-x) 8vh; }
}

/* ════════════════════════════════════════════════════════
   REDUCED MOTION — the finished page, simply
   ════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html:not(.no-js) [data-reveal],
  html:not(.no-js) .hero__sub,
  html:not(.no-js) .hero__meta,
  html:not(.no-js) .hero__cue,
  html:not(.no-js) .footer__inner {
    opacity: 1 !important;
    transform: none !important;
  }
  .split-inner { transform: none !important; }
}
