/* ==========================================================================
   TEE SOCIETY -- V1 DEPARTURE: "THE EVENING COURSE"
   A dark, photography-forward fashion-house system. Forest-dominant field,
   cream editorial inserts, antique gold hairlines, Didone display type.
   Display: Bodoni Moda. UI/body: Archivo.
   Palette locked to assets/brand-system/current/brand-system.md
   ========================================================================== */

:root {
  /* Locked palette */
  --cream:        #F5F2E8;
  --cream-bright: #FAF8F1;
  --sage-soft:    #CDD2C6;
  --sage-mid:     #93A38C;
  --olive:        #4C5648;
  --forest:       #2E352B;
  --forest-deep:  #242A22;
  --gold:         #C4A46A;
  --gold-bright:  #C8A870;
  --ink:          #22241F;
  --ink-soft:     #5A5D52;

  /* Derived, palette-only alphas */
  --cream-78: rgba(245, 242, 232, 0.78);
  --cream-60: rgba(245, 242, 232, 0.60);
  --cream-h14: rgba(245, 242, 232, 0.14);
  --gold-h35: rgba(196, 164, 106, 0.35);
  --ink-h14: rgba(34, 36, 31, 0.14);

  /* Type */
  --font-display: "Bodoni Moda", "Bodoni MT", Didot, "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.1s;

  /* Rhythm */
  --pad: clamp(6.5rem, 13vw, 12rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --hairline: 1px solid var(--cream-h14);
  --hairline-ink: 1px solid var(--ink-h14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1.0313rem;
  line-height: 1.75;
  color: var(--cream);
  background: var(--forest-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 1s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--gold); color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Film grain (fixed, pointer-events none) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   THEME ENGINE
   Sections carry their own solid background by default (no-JS safe).
   When JS boots (html.theme-live), themed sections go transparent and the
   body background cross-fades between themes as they cross mid-viewport.
   ========================================================================== */
section[data-theme="deep"]  { background: var(--forest-deep); color: var(--cream); }
section[data-theme="dark"]  { background: var(--forest); color: var(--cream); }
section[data-theme="olive"] { background: var(--olive); color: var(--cream); }
section[data-theme="cream"] { background: var(--cream); color: var(--ink); }
section[data-theme="sage"]  { background: var(--sage-soft); color: var(--ink); }

html.theme-live section[data-theme] { background: transparent; }
body.bg-deep  { background-color: var(--forest-deep); }
body.bg-dark  { background-color: var(--forest); }
body.bg-olive { background-color: var(--olive); }
body.bg-cream { background-color: var(--cream); }
body.bg-sage  { background-color: var(--sage-soft); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: 0.005em;
}
.display em { font-style: italic; font-weight: 400; }
h1.display { font-size: clamp(3.1rem, 10.5vw, 9.5rem); line-height: 0.96; }
h2.display { font-size: clamp(2.3rem, 5.6vw, 5.25rem); }
h3.display { font-size: clamp(1.55rem, 3vw, 2.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); flex-shrink: 0; }
section[data-theme="cream"] .eyebrow, section[data-theme="sage"] .eyebrow { color: var(--olive); }

.lede {
  font-size: clamp(1.0938rem, 1.55vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--cream-78);
  max-width: 54ch;
}
section[data-theme="cream"] .lede, section[data-theme="sage"] .lede { color: var(--ink-soft); }

.beats p { margin-bottom: 1.2em; max-width: 58ch; }
.beats p:last-child { margin-bottom: 0; }
section[data-theme="cream"] .beats, section[data-theme="sage"] .beats { color: #3A3D34; }

.gold-rule { width: 3.5rem; height: 1px; background: var(--gold); border: 0; }

.small-note { font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--cream-60); }

/* Ghost index numerals (decorative) */
.ghost-num {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  right: clamp(0.5rem, 3vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(7rem, 20vw, 17rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-h35);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
section[data-theme="cream"] .ghost-num, section[data-theme="sage"] .ghost-num {
  -webkit-text-stroke: 1px rgba(76, 86, 72, 0.22);
}

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding-block: var(--pad); position: relative; overflow-x: clip; }
.stack-sm > * + * { margin-top: 1.1rem; }
.stack-md > * + * { margin-top: 2rem; }
.stack-lg > * + * { margin-top: 3.5rem; }
.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .lede, .center .beats p { margin-inline: auto; }
.measure { max-width: 24ch; }
.measure-narrow { max-width: 46ch; margin-inline: auto; }

/* Editorial split: asymmetric 7/5 with generous gap */
.split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.split.flip { grid-template-columns: 5fr 7fr; }
.split.even { grid-template-columns: 6fr 6fr; }
.split.flip .split-copy { order: 2; }
.split.flip .split-media { order: 1; }
.split-copy { position: relative; z-index: 1; }
.split-media { position: relative; }

/* ==========================================================================
   FRAMED IMAGERY -- sharp corners, offset gold hairline, clip reveal
   ========================================================================== */
.frame { position: relative; }
.frame::before {
  content: "";
  position: absolute;
  inset: clamp(0.9rem, 2vw, 1.4rem) clamp(-1.4rem, -2vw, -0.9rem) clamp(-1.4rem, -2vw, -0.9rem) clamp(0.9rem, 2vw, 1.4rem);
  border: 1px solid var(--gold-h35);
  pointer-events: none;
}
.frame.frame-l::before {
  inset: clamp(0.9rem, 2vw, 1.4rem) clamp(0.9rem, 2vw, 1.4rem) clamp(-1.4rem, -2vw, -0.9rem) clamp(-1.4rem, -2vw, -0.9rem);
}
.frame-core { overflow: hidden; position: relative; }
.frame-core img { width: 100%; height: 100%; object-fit: cover; }

/* Small offset accent image over a frame */
.media-accent {
  position: absolute;
  width: 48%;
  bottom: -12%;
  left: -16%;
  z-index: 2;
  box-shadow: 0 30px 60px -30px rgba(34, 36, 31, 0.5);
}
.media-accent .frame-core { border: 1px solid var(--cream-h14); }

/* Brand mark tile (Shalee's gold TS monogram on olive) */
.ts-mark {
  display: block;
  width: clamp(64px, 7vw, 92px);
  height: auto;
}
.booking-plate .ts-mark { margin: 0 auto 1.4rem; }
/* Centered mark on the olive signup section: the logo tile's own olive
   field matches the section background, so it sits borderless. */
.center .ts-mark { margin-inline: auto; }

/* Parallax drift (scroll-driven CSS, motion-safe, GPU-only) */
.px { overflow: hidden; }
.px > img { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .px > img {
      scale: 1.14;
      animation: px-drift linear both;
      animation-timeline: view();
    }
  }
}
@keyframes px-drift {
  from { transform: translateY(-4.5%); }
  to   { transform: translateY(4.5%); }
}

/* ==========================================================================
   BUTTONS -- rectangular hairline, bottom-up gold fill
   ========================================================================== */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--cream);
  transition: color 0.55s var(--ease), border-color 0.55s var(--ease), transform 0.35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--forest-deep); }
.btn:hover::after { transform: scaleY(1); }
.btn:active { transform: scale(0.98); }
.btn .ar { font-size: 0.95rem; transition: transform 0.55s var(--ease); }
.btn:hover .ar { transform: translate(3px, -3px); }

.btn-solid { background: var(--gold); color: var(--forest-deep); }
.btn-solid::after { background: var(--cream); }
.btn-solid:hover { color: var(--forest-deep); border-color: var(--cream); }

section[data-theme="cream"] .btn:not(.btn-solid),
section[data-theme="sage"] .btn:not(.btn-solid) { color: var(--ink); border-color: var(--olive); }
section[data-theme="cream"] .btn:not(.btn-solid)::after,
section[data-theme="sage"] .btn:not(.btn-solid)::after { background: var(--olive); }
section[data-theme="cream"] .btn:not(.btn-solid):hover,
section[data-theme="sage"] .btn:not(.btn-solid):hover { color: var(--cream); }

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  padding-bottom: 0.35rem;
  background: linear-gradient(var(--gold), var(--gold)) bottom left / 100% 1px no-repeat;
  transition: gap 0.5s var(--ease);
}
.text-link:hover { gap: 1rem; }
section[data-theme="cream"] .text-link, section[data-theme="sage"] .text-link { color: var(--olive); }

.a-link {
  background: linear-gradient(var(--gold), var(--gold)) bottom left / 100% 1px no-repeat;
  transition: color 0.4s var(--ease);
}
.a-link:hover { color: var(--gold-bright); }
section[data-theme="cream"] .a-link:hover, section[data-theme="sage"] .a-link:hover { color: var(--olive); }

/* ==========================================================================
   ANNOUNCEMENT STRIP
   ========================================================================== */
.announce {
  position: relative;
  z-index: 101;
  background: var(--ink);
  color: var(--cream-60);
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--cream-h14);
}
.announce a {
  color: var(--gold-bright);
  background: linear-gradient(var(--gold), var(--gold)) bottom left / 100% 1px no-repeat;
  padding-bottom: 2px;
}
.announce .announce-short { display: none; }

/* ==========================================================================
   NAV -- full-width hairline editorial bar
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease), top 0.7s var(--ease);
}
body.has-announce .nav { top: 2.6rem; }
body.scrolled .nav,
body.scrolled.has-announce .nav {
  top: 0;
  background: rgba(34, 36, 31, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--cream-h14);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav-links a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-78);
  padding: 0.4rem 0;
  background: linear-gradient(var(--gold), var(--gold)) bottom left / 0% 1px no-repeat;
  transition: color 0.5s var(--ease), background-size 0.5s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--cream);
  background-size: 100% 1px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--gold);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--forest-deep); }
.nav-cta .ar { transition: transform 0.5s var(--ease); }
.nav-cta:hover .ar { transform: translate(2px, -2px); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--cream-h14);
  flex-shrink: 0;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 1px;
  background: var(--cream);
  transition: transform 0.6s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 3.5px)); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Full-screen menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(34, 36, 31, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.3rem, 9vw, 4.2rem);
  line-height: 1.25;
  color: var(--cream);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--cream-h14);
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.4s var(--ease);
}
.menu-overlay a:hover { color: var(--gold-bright); }
body.menu-open .menu-overlay a { opacity: 1; transform: translateY(0); }
body.menu-open .menu-overlay a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .menu-overlay a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .menu-overlay a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .menu-overlay a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .menu-overlay a:nth-child(5) { transition-delay: 0.32s; }
.menu-overlay .menu-tag {
  margin-top: 2.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ==========================================================================
   HERO -- full-bleed, slow-breath entrance, scroll parallax, meta hairline
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html.js .hero-media img { animation: hero-breath 2.6s var(--ease-out) both; }
@keyframes hero-breath {
  from { scale: 1.09; filter: brightness(0.75); }
  to   { scale: 1.02; filter: brightness(1); }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media {
      animation: hero-sink linear both;
      animation-timeline: scroll(root);
      animation-range: 0 120vh;
    }
    @keyframes hero-sink {
      from { transform: translateY(0); }
      to   { transform: translateY(14%); }
    }
  }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(34, 36, 31, 0.92) 0%, rgba(34, 36, 31, 0.28) 42%, rgba(34, 36, 31, 0.38) 100%);
}
.hero-inner { padding-top: clamp(9rem, 18vh, 12rem); padding-bottom: clamp(2.5rem, 5vh, 4rem); }
.hero .eyebrow { color: var(--gold-bright); }
.hero-title { max-width: 12ch; }
.hero .lede { color: var(--cream-78); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2.75rem; }

/* Hero meta hairline row */
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-h14);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-60);
}
.hero-meta .scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(var(--gold), transparent);
}
html.js .scroll-cue::after { animation: cue-drop 2.6s var(--ease) infinite; transform-origin: top; }
@keyframes cue-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}
.hero-short { min-height: 78svh; }

/* ==========================================================================
   KINETIC TAGLINE MARQUEE
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.8rem, 4vw, 3rem);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  position: relative;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
}
/* reverse = drift left-to-right; 68s keeps the same px/s speed
   now that the sequence is twice as long (8 items per seq) */
html.js .marquee-track { animation: marquee 68s linear infinite reverse; }
.marquee-seq {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-right: clamp(2.5rem, 6vw, 5rem);
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.8rem);
  white-space: nowrap;
  color: var(--cream);
  transition: color 0.9s var(--ease);
}
/* Theme-aware: the tagline stays legible as the body background
   cross-fades (was cream-on-cream and invisible on light themes). */
body.bg-cream .marquee-item,
body.bg-sage .marquee-item { color: var(--ink); }
.marquee-item::after {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border: 1px solid var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   FULL-BLEED STATEMENT BAND
   ========================================================================== */
.band {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  isolation: isolate;
  overflow: clip;
  padding-block: var(--pad);
}
.band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(34, 36, 31, 0.58);
}
.band .display { max-width: 20ch; margin-inline: auto; }
.band .band-sub {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ==========================================================================
   HORIZONTAL EDITORIAL RAIL (scrolls inside its own container)
   ========================================================================== */
.rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.rail {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-inline: max(var(--gutter), calc((100vw - 1280px) / 2));
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 auto;
  width: clamp(272px, 76vw, 430px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--cream-h14);
  background: rgba(34, 36, 31, 0.35);
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
section[data-theme="cream"] .rail-card,
section[data-theme="sage"] .rail-card {
  border-color: var(--ink-h14);
  background: var(--cream-bright);
}
.rail-card:hover { border-color: var(--gold); transform: translateY(-6px); }
.rail-media { aspect-ratio: 4 / 5; overflow: hidden; }
.rail-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.rail-card:hover .rail-media img { transform: scale(1.05); }
.rail-media-flat {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
}
.rail-media-flat.olive { background: var(--olive); }
section[data-theme="cream"] .rail-media-flat { background: var(--sage-soft); }
section[data-theme="cream"] .rail-media-flat.olive { background: var(--olive); }
.rail-media-flat .monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3.2rem;
  letter-spacing: 0.2em;
  color: var(--gold-h35);
}
.rail-media-flat.olive .monogram { color: rgba(196, 164, 106, 0.55); }
.rail-body {
  padding: 1.6rem 1.6rem 1.9rem;
  border-top: 1px solid var(--cream-h14);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
section[data-theme="cream"] .rail-body { border-top-color: var(--ink-h14); }
.rail-kicker {
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
section[data-theme="cream"] .rail-kicker { color: #8A733F; }
.rail-body h3 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; line-height: 1.1; }
.rail-body p { font-size: 0.9063rem; line-height: 1.7; color: var(--cream-78); }
section[data-theme="cream"] .rail-body p { color: var(--ink-soft); }
.rail-body .text-link { margin-top: auto; align-self: flex-start; }

.status-pill {
  display: inline-block;
  width: max-content;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--gold-h35);
  font-size: 0.5938rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.status-pill.open { border-color: var(--gold); background: rgba(196, 164, 106, 0.12); }
section[data-theme="cream"] .status-pill { color: #8A733F; }

/* Static two-up deck (reuses rail-card outside the scroller) */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 900px;
  margin-inline: auto;
}
.duo .rail-card { width: auto; }
@media (max-width: 700px) {
  .duo { grid-template-columns: 1fr; max-width: 430px; }
}

/* ==========================================================================
   INDEX LIST (numbered editorial rows)
   ========================================================================== */
.index-list { border-top: var(--hairline); }
.index-row {
  display: grid;
  grid-template-columns: clamp(3.5rem, 8vw, 7rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: var(--hairline);
  transition: transform 0.6s var(--ease);
}
.index-row:hover { transform: translateX(0.6rem); }
.index-row .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--gold-bright);
}
.index-row h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.index-row p { max-width: 52ch; color: var(--cream-78); font-size: 0.9688rem; }
section[data-theme="cream"] .index-list { border-top: var(--hairline-ink); }
section[data-theme="cream"] .index-row { border-bottom: var(--hairline-ink); }
section[data-theme="cream"] .index-row p { color: var(--ink-soft); }
section[data-theme="cream"] .index-row .idx { color: #8A733F; }

/* ==========================================================================
   STICKY-STACKED PANELS (pillars)
   ========================================================================== */
.stack-deck { position: relative; }
.stack-panel {
  position: sticky;
  top: clamp(4rem, 10vh, 6.5rem);
  min-height: min(64svh, 620px);
  display: flex;
  align-items: center;
  border-top: 1px solid var(--gold-h35);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.stack-panel:nth-child(odd) { background: var(--forest); }
.stack-panel:nth-child(even) { background: var(--forest-deep); }
.stack-panel { overflow: hidden; isolation: isolate; }
.stack-media, .stack-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.stack-panel .stack-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(36, 42, 34, 0.82) 0%, rgba(36, 42, 34, 0.62) 55%, rgba(36, 42, 34, 0.38) 100%);
}
.stack-panel .wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
  width: min(1080px, 100% - 2 * var(--gutter));
}
.stack-panel .stack-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
}
.stack-panel h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.stack-panel p { max-width: 44ch; color: var(--cream-78); font-size: clamp(1rem, 1.4vw, 1.125rem); }

/* ==========================================================================
   BOOKING PLACEHOLDER -- corner-ticked reservation plate
   ========================================================================== */
.booking-shell { max-width: 880px; margin-inline: auto; position: relative; }
.booking-plate {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
  border: 1px solid var(--ink-h14);
  background:
    repeating-linear-gradient(-45deg, rgba(76, 86, 72, 0.045) 0 16px, transparent 16px 32px),
    var(--cream-bright);
}
.booking-plate::before, .booking-plate::after,
.booking-shell::before, .booking-shell::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.booking-shell::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.booking-shell::after { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.booking-plate::before { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.booking-plate::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.booking-plate .display { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ink); }
.booking-plate p { max-width: 46ch; color: var(--ink-soft); font-size: 0.9375rem; }

/* ==========================================================================
   FORMS -- underline editorial
   ========================================================================== */
.signup-form {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  width: 100%;
  max-width: 560px;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(245, 242, 232, 0.35);
  background: transparent;
  padding: 0.9rem 0.2rem;
  font: inherit;
  font-size: 1rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.5s var(--ease);
  border-radius: 0;
}
.signup-form input[type="email"]:focus { border-bottom-color: var(--gold); }
.signup-form input[type="email"]::placeholder { color: var(--cream-60); }
.signup-form .btn { flex-shrink: 0; }
section[data-theme="cream"] .signup-form input[type="email"],
section[data-theme="sage"] .signup-form input[type="email"] {
  color: var(--ink);
  border-bottom-color: rgba(34, 36, 31, 0.3);
}
section[data-theme="cream"] .signup-form input[type="email"]::placeholder,
section[data-theme="sage"] .signup-form input[type="email"]::placeholder { color: var(--ink-soft); }
.form-note { margin-top: 1.1rem; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--cream-60); }
section[data-theme="cream"] .form-note, section[data-theme="sage"] .form-note { color: var(--ink-soft); }
.form-success { display: none; font-size: 1.15rem; font-style: italic; font-family: var(--font-display); color: var(--gold-bright); padding: 1rem 0; }
section[data-theme="cream"] .form-success, section[data-theme="sage"] .form-success { color: var(--olive); }
.form-error { display: none; margin-top: 1.1rem; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--cream-60); }
section[data-theme="cream"] .form-error, section[data-theme="sage"] .form-error { color: var(--ink-soft); }
/* Contain the injected WeTravel embed iframe so it never exceeds its column on
   the narrowest phones (page already clips it; this keeps the right edge flush). */
.wt-embed { overflow: hidden; }
.wt-embed iframe { max-width: 100% !important; min-width: 0 !important; }
.form-col { display: flex; flex-direction: column; align-items: center; width: 100%; }
.form-col .signup-form { margin-inline: auto; }

/* ==========================================================================
   FAQ -- counted hairline accordion
   ========================================================================== */
.faq-group { max-width: 860px; margin-inline: auto; counter-reset: faq; }
.faq-cols { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; max-width: none; }
.faq-cols .faq-label { position: sticky; top: 7rem; }
.faq-item { border-bottom: var(--hairline); counter-increment: faq; }
section[data-theme="cream"] .faq-item, section[data-theme="sage"] .faq-item { border-bottom-color: var(--ink-h14); }
.faq-item:first-of-type { border-top: var(--hairline); }
section[data-theme="cream"] .faq-item:first-of-type,
section[data-theme="sage"] .faq-item:first-of-type { border-top-color: var(--ink-h14); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  text-align: left;
  padding: 1.7rem 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  transition: color 0.4s var(--ease);
}
.faq-q::before {
  content: counter(faq, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  flex-shrink: 0;
}
section[data-theme="cream"] .faq-q::before, section[data-theme="sage"] .faq-q::before { color: #8A733F; }
.faq-q:hover { color: var(--gold-bright); }
section[data-theme="cream"] .faq-q:hover, section[data-theme="sage"] .faq-q:hover { color: var(--olive); }
.faq-q .faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--cream-h14);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 300;
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease), color 0.6s var(--ease), border-color 0.6s var(--ease);
}
section[data-theme="cream"] .faq-icon, section[data-theme="sage"] .faq-icon { border-color: rgba(34, 36, 31, 0.25); }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.7s var(--ease); }
.faq-a-inner {
  padding: 0 3.4rem 1.9rem 2.55rem;
  color: var(--cream-78);
  font-size: 0.9688rem;
  max-width: 62ch;
}
section[data-theme="cream"] .faq-a-inner, section[data-theme="sage"] .faq-a-inner { color: var(--ink-soft); }

/* ==========================================================================
   FOOTER -- oversized wordmark colophon
   ========================================================================== */
.footer {
  background: var(--ink);
  color: var(--cream-78);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 2.5rem;
  border-top: var(--hairline);
  overflow-x: clip;
}
.footer .wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.5vw, 8rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  white-space: nowrap;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 3rem;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.footer-brand p { font-size: 0.9375rem; max-width: 32ch; color: var(--cream-60); }
.footer h4 {
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.3rem;
}
.footer li { margin-bottom: 0.75rem; }
.footer li a {
  font-size: 0.9375rem;
  color: var(--cream-78);
  background: linear-gradient(var(--gold), var(--gold)) bottom left / 0% 1px no-repeat;
  transition: color 0.5s var(--ease), background-size 0.5s var(--ease);
  padding-bottom: 2px;
}
.footer li a:hover { color: var(--cream); background-size: 100% 1px; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.2rem;
  font-size: 0.7188rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-60);
}

/* ==========================================================================
   REVEAL CHOREOGRAPHY (gated on html.js; content visible without JS)
   ========================================================================== */
html.js .rv {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
html.js .rv.in { opacity: 1; transform: translateY(0); }

/* Line-mask reveals for display headlines */
/* 0.18em bottom allowance: Bodoni Moda italic descenders (g, y, p)
   overhang the em box and were clipped by the line mask at 0.1em. */
.l { display: block; overflow: hidden; padding-bottom: 0.18em; margin-bottom: -0.18em; }
html.js .l .li {
  display: block;
  transform: translateY(115%);
  transition: transform 1.3s var(--ease);
}
html.js .rv-lines.in .l .li { transform: translateY(0); }
html.js .rv-lines .l:nth-child(2) .li { transition-delay: 0.12s; }
html.js .rv-lines .l:nth-child(3) .li { transition-delay: 0.24s; }

/* Clip reveal for imagery */
html.js .rv-clip {
  clip-path: inset(8% 4% 8% 4%);
  opacity: 0.5;
  transition: clip-path 1s var(--ease), opacity 1s var(--ease);
}
html.js .rv-clip.in { clip-path: inset(0 0 0 0); opacity: 1; }

/* Stagger delays */
html.js .d1 { transition-delay: 0.1s; }
html.js .d2 { transition-delay: 0.2s; }
html.js .d3 { transition-delay: 0.3s; }
html.js .d4 { transition-delay: 0.4s; }

/* ==========================================================================
   REDUCED MOTION -- everything static, everything visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  html.js .rv, html.js .rv-clip { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.js .l .li { transform: none; transition: none; }
  html.js .hero-media img { animation: none; }
  html.js .marquee-track { animation: none; }
  html.js .scroll-cue::after { animation: none; }
  .stack-panel { position: static; min-height: 0; }
  .index-row:hover, .rail-card:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1060px) {
  .split, .split.flip, .split.even { grid-template-columns: 1fr; gap: clamp(2.5rem, 7vw, 4rem); }
  .split.flip .split-copy { order: 1; }
  .split.flip .split-media { order: 2; }
  .split-media { max-width: 620px; }
  .faq-cols { grid-template-columns: 1fr; }
  .faq-cols .faq-label { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .stack-panel .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .stack-panel .stack-num { font-size: clamp(3.5rem, 10vw, 6rem); }
}

@media (max-width: 768px) {
  :root { --pad: clamp(4.5rem, 14vw, 6.5rem); }

  .nav { padding: 0.85rem var(--gutter); }
  .nav-brand { font-size: 1.05rem; letter-spacing: 0.22em; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.625rem; letter-spacing: 0.18em; min-height: 2.75rem; }
  .nav-cta .ar { display: none; }

  .announce { font-size: 0.5938rem; letter-spacing: 0.16em; padding-block: 0.65rem; }
  .announce .announce-long { display: none; }
  .announce .announce-short { display: inline; }
  body.has-announce .nav { top: 2.2rem; }

  .hero { min-height: 96svh; }
  .hero-short { min-height: 66svh; }
  .hero-inner { padding-top: clamp(7rem, 16vh, 9rem); }
  .hero-title { max-width: none; }
  .hero-meta { flex-wrap: wrap; letter-spacing: 0.2em; font-size: 0.625rem; }

  .band { min-height: 64svh; }

  .media-accent { display: none; }
  .frame::before, .frame.frame-l::before { inset: 0.7rem -0.7rem -0.7rem 0.7rem; }

  .ghost-num { font-size: clamp(5rem, 26vw, 8rem); opacity: 0.7; }

  .signup-form { flex-direction: column; align-items: stretch; gap: 1.25rem; max-width: 26rem; }
  .signup-form .btn { width: 100%; }

  .faq-q { gap: 0.9rem; padding: 1.4rem 0; }
  .faq-a-inner { padding-left: 0; padding-right: 0; }

  .booking-plate { min-height: 300px; }

  .stack-panel { padding-block: 2.5rem; min-height: min(58svh, 520px); }

  .footer .wordmark { letter-spacing: 0.05em; }
  .footer-base { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .nav-cta { padding: 0.45rem 0.7rem; font-size: 0.5625rem; }
  .nav-brand { font-size: 0.95rem; letter-spacing: 0.16em; }
}
