/* ============================================================
   Alexandra's Bach Club — Design Tokens & Base
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;700;800&family=Inter:wght@400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&display=swap');

:root {
  /* Palette — sampled directly from the reference artwork */
  --cream:        #F8F1D4;
  --cream-deep:   #EFE4B9;
  --blue:         #A9D3EC;
  --blue-deep:    #7CB9DE;
  --blue-ink:     #6FA9CF;
  --ink:          #2C1A0D;
  --charcoal:     #5B4E3E;

  /* Flight-map hero — a dusk ocean the rest of the site's palette still
     reads correctly against (blue routes, cream landmass and type) */
  --ocean-deep:   #0C2A3A;
  --ocean-mid:    #123C4E;
  --ocean-horizon:#2E5A5C;
  --landmass:     #EDE2B8;
  --landmass-line:rgba(44, 26, 13, 0.22);
  --beacon:       #F2D8A0;
  --beacon-deep:  #E0B466;

  /* R U THERE? — a private-club register built on the site's own
     palette: warm cream, deep ocean navy for contrast, plus a couple
     of resort accents (coral, palm) for badges and fine details */
  --rut-coral:      #C97456;
  --rut-coral-deep: #A85A40;
  --rut-palm:       #3E5C4A;
  --rut-font-serif: 'Fraunces', Georgia, serif;

  /* A warm, feminine sky-to-sand gradient — soft blue easing into
     warm sand, no pink/coral — replacing the darker ocean treatment
     on this page */
  --sand-sky:   #D9EAF3;
  --sand-cream: #F8EFDC;
  --sand-warm:  #F0DAB9;
  --sand-deep:  #E3C08D;

  /* Type */
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --edge: clamp(20px, 4vw, 56px);
  --max-width: 1400px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Subtle printed-paper grain — almost subliminal */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection { background: var(--blue); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ============================================================
   Shared chrome — corner marks used across every page
   ============================================================ */

.site-marks {
  position: fixed;
  top: var(--edge);
  right: var(--edge);
  z-index: 5;
  width: clamp(46px, 6vw, 68px);
  opacity: 0.9;
}

.site-footer-note {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 28px var(--edge) 40px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  opacity: 0.55;
}

/* ============================================================
   Landing page
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--edge) * 2.2) var(--edge) var(--edge);
  gap: clamp(28px, 5vh, 48px);
}

/* Handwritten P.S. note — casually placed, not grid-aligned */
.ps-note {
  position: absolute;
  top: clamp(28px, 8vh, 70px);
  left: clamp(16px, 6vw, 64px);
  width: clamp(180px, 22vw, 300px);
  transform: rotate(-9deg);
  z-index: 2;
}

.ps-note img {
  width: 100%;
  height: auto;
}

/* Central logo mark — the true north star of the page */
.logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-wrap img {
  width: clamp(280px, 34vw, 520px);
  height: auto;
}

/* Two invitation-style oval CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.oval-btn {
  --oval-w: clamp(230px, 21vw, 300px);
  --oval-h: clamp(88px, 8vw, 112px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--oval-w);
  height: var(--oval-h);
  padding: 6px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.oval-btn__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  letter-spacing: 0.01em;
  color: var(--blue-deep);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  text-align: center;
  padding: 0 10px;
}

.oval-btn:hover,
.oval-btn:focus-visible {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--blue-deep);
}

.oval-btn:hover .oval-btn__inner,
.oval-btn:focus-visible .oval-btn__inner {
  background: var(--blue);
  color: #fffdf6;
}

.oval-btn:active {
  transform: translateY(-1px) scale(0.99);
}

/* Entrance choreography — one orchestrated moment, not scattered fades */
.reveal {
  opacity: 0;
}

.reveal--marks   { animation: rise 0.9s var(--ease) 0.05s forwards; }
.reveal--logo    { animation: rise 1s   var(--ease) 0.55s forwards; }
.reveal--ctas    { animation: rise 0.9s var(--ease) 0.85s forwards; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The note carries its own rotation, so it gets a dedicated keyframe
   rather than the generic translateY used elsewhere. */
.ps-note.reveal--note { animation: rise-note 0.9s var(--ease) 0.30s forwards; }

@keyframes rise-note {
  from { opacity: 0; transform: rotate(-9deg) translateY(14px); }
  to   { opacity: 1; transform: rotate(-9deg) translateY(0); }
}

@media (max-width: 640px) {
  @keyframes rise-note {
    from { opacity: 0; transform: rotate(-6deg) translateY(14px); }
    to   { opacity: 1; transform: rotate(-6deg) translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; animation: none; }
}

/* ============================================================
   Interior pages (The Details / R U Coming?) — shared shell
   ============================================================ */

.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--edge) * 2.4) var(--edge) var(--edge);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page__back {
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: clamp(36px, 6vh, 64px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.page__back:hover { background: var(--blue); color: #fffdf6; }

.page__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue-deep);
  margin: 0 0 10px;
}

.page__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.05;
}

.page__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 52ch;
  margin: 0 0 36px;
}

.page__list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page__list li {
  border-bottom: 1px solid var(--cream-deep);
  padding-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.98rem;
}

.page__list .label {
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.page__form {
  display: grid;
  gap: 18px;
  max-width: 440px;
}

.page__field {
  display: grid;
  gap: 8px;
}

.page__field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--charcoal);
}

.page__field input,
.page__field select,
.page__field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.5);
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 12px 14px;
}

.page__field input:focus,
.page__field select:focus,
.page__field textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  background: rgba(255, 253, 246, 0.85);
}

.page__submit {
  justify-self: start;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blue-deep);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 13px 30px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.page__submit:hover {
  background: var(--blue);
  color: #fffdf6;
  transform: translateY(-2px);
}

.page__note {
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.7;
  max-width: 46ch;
}

/* ============================================================
   Mobile adjustments — recomposed, not just shrunk
   ============================================================ */

@media (max-width: 640px) {
  .site-marks {
    width: 44px;
    top: 18px;
    right: 18px;
  }

  .hero {
    padding-top: 110px;
  }

  .ps-note {
    position: static;
    width: 200px;
    transform: rotate(-6deg);
    margin: 0 auto -6px 6px;
  }

  .ps-note.reveal--note,
  .ps-note.reveal--note.done {
    transform: rotate(-6deg) translateY(0);
  }

  .logo-wrap img { width: 78vw; }

  .cta-row {
    flex-direction: column;
    width: 100%;
  }

  .oval-btn {
    --oval-w: min(320px, 82vw);
    --oval-h: 92px;
  }

  .page { padding-top: 100px; }
}

/* ============================================================
   Trip Details — animated flight map + countdown
   Namespaced under .flight-* to stay independent of the rest
   of the site's page shell.
   ============================================================ */

.flight-page {
  position: relative;
  z-index: 1;
  background: var(--ocean-deep);
}

/* ---- Top chrome: back link + marks, readable over the dark hero ---- */

.flight-nav {
  position: fixed;
  top: var(--edge);
  left: var(--edge);
  z-index: 6;
}

.flight-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  border: 1.5px solid rgba(248, 241, 212, 0.55);
  border-radius: 999px;
  padding: 9px 20px;
  background: rgba(12, 42, 58, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.flight-back:hover {
  background: rgba(248, 241, 212, 0.12);
  border-color: var(--cream);
}

/* Corner marks use the shared .site-marks rule above as-is on every
   page — no extra shadow/glow override. */

/* ---- Hero ---- */

.flight-hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--edge) * 2.4) var(--edge) var(--edge);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 32px);
  background: var(--ocean-deep); /* fallback while photos decode */
  overflow: hidden;
}

/* ---- Background photography ---- */

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg__slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.82) contrast(1.06) brightness(0.92) sepia(0.08);
}

/* Grain overlay for a filmic "found footage" texture */
.hero-bg__grain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark scrim so foreground content reads clearly against the photo */
.hero-bg__scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(120% 70% at 88% 92%, rgba(242, 216, 160, 0.14), transparent 60%),
    linear-gradient(185deg, rgba(12, 42, 58, 0.82) 0%, rgba(18, 60, 78, 0.66) 55%, rgba(46, 90, 92, 0.72) 100%);
}

/* ---- Headline artwork + date badge -------------------------------- */

.hero-artwork {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(300px, 44vw, 720px);
  height: auto;
  margin: 0 auto;
  opacity: 0;
  animation: heroArtworkFlyIn 1.3s cubic-bezier(.17, .67, .3, 1.24) 0.1s forwards;
}

@keyframes heroArtworkFlyIn {
  0% {
    opacity: 0;
    transform: translateX(-65vw) rotate(-7deg) scale(0.82);
  }
  65% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-artwork {
    opacity: 1;
    animation: none;
  }
}

.hero-dates {
  display: block;
  width: fit-content;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--cream);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 11px 24px;
  margin: 0 auto;
  white-space: nowrap;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

/* ---- Fare tracker (left) + map (right), side by side ---- */

.hero-content-row {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

.fare-tracker {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 280px);
  background: rgba(13, 25, 34, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(169, 211, 236, 0.25);
  border-radius: 16px;
  padding: 18px 20px;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.5s forwards;
}

.fare-tracker__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fare-tracker__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px 2px rgba(169, 211, 236, 0.7);
  animation: farePulse 1.8s ease-in-out infinite;
}

@keyframes farePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.fare-tracker__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--cream);
}

.fare-tracker__sub {
  font-size: 0.68rem;
  color: var(--blue);
  opacity: 0.85;
  margin: 0 0 12px;
}

.fare-tracker__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fare-tracker__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(248, 241, 212, 0.12);
}

.fare-tracker__list li:last-child {
  border-bottom: none;
}

.fare-tracker__city {
  font-size: 0.8rem;
  color: var(--cream);
}

.fare-tracker__city em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--blue);
  opacity: 0.75;
  margin-left: 4px;
}

.fare-tracker__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.fare-tracker__note {
  font-size: 0.62rem;
  line-height: 1.5;
  color: rgba(248, 241, 212, 0.55);
  font-style: italic;
  margin: 0;
}

.fare-tracker__updated {
  font-size: 0.6rem;
  color: var(--blue);
  opacity: 0.8;
  margin: 6px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .fare-tracker { opacity: 1; animation: none; }
  .fare-tracker__dot { animation: none; }
}

@media (max-width: 900px) {
  .hero-content-row {
    flex-direction: column;
    align-items: center;
  }

  .fare-tracker {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---- Map frame — aspect-ratio locked so % overlay labels always
   line up with the SVG's own coordinate space, at every viewport ---- */

.flight-map-frame {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 1000 / 720;
  opacity: 0;
  transform: scale(0.97);
  animation: mapIn 1.1s var(--ease) 0.35s forwards;
}

@keyframes mapIn {
  to { opacity: 1; transform: scale(1); }
}

.flight-svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flight-graticule {
  fill: none;
  stroke: rgba(248, 241, 212, 0.08);
  stroke-width: 1;
}

.flight-land {
  fill: var(--landmass);
  stroke: var(--landmass-line);
  stroke-width: 1;
  stroke-linejoin: round;
  opacity: 0.95;
}

.flight-route {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0.85;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawRoute 1.3s var(--ease) forwards;
}

@keyframes drawRoute {
  to { stroke-dashoffset: 0; }
}

.flight-plane {
  color: var(--cream);
  filter: drop-shadow(0 0 4px rgba(169, 211, 236, 0.7));
}

/* ---- HTML label overlay — crisp text regardless of SVG scaling ---- */

.flight-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.city-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

/* Boston/NYC and Dallas/Houston sit close together at national scale;
   flipping one label of each pair above its dot keeps them legible. */
.city-point--above {
  flex-direction: column-reverse;
}

.city-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px rgba(169, 211, 236, 0.85);
}

.city-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.nassau-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 1.5s forwards;
}

.nassau-marker {
  position: relative;
  width: 14px;
  height: 14px;
}

.nassau-dot {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 50%;
  background: var(--beacon);
  box-shadow: 0 0 10px 2px rgba(242, 216, 160, 0.8);
}

.nassau-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1.5px solid var(--beacon);
  animation: nassauPulse 2.6s ease-out infinite;
}

.nassau-ring--delay {
  animation-delay: 1.3s;
}

@keyframes nassauPulse {
  0%   { transform: scale(1);   opacity: 0.75; }
  100% { transform: scale(3.2); opacity: 0; }
}

.nassau-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beacon);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .hero-dates, .fare-tracker,
  .flight-map-frame, .city-point, .nassau-point {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .flight-route { stroke-dashoffset: 0; animation: none; }
  .nassau-ring { animation: none; opacity: 0; }
}


/* ---- Mobile: map keeps its aspect ratio so nothing crops or
   overlaps — it just sits smaller within a taller hero ---- */

@media (max-width: 640px) {
  .flight-hero {
    padding-top: 100px;
    justify-content: center;
  }

  .flight-nav { top: 18px; left: 18px; }

  .city-label { font-size: 0.56rem; letter-spacing: 0.06em; }
}

/* ============================================================
   R U Coming? — private members-club RSVP
   Full-bleed sky-to-sand gradient — feminine and beachy rather
   than the ocean-navy used elsewhere. Dark ink/charcoal text on
   this light background; the "I'm In" button stays the site's
   baby blue. Namespaced .rut-*.
   ============================================================ */

body.rut-page {
  background-image:
    radial-gradient(130% 70% at 50% 0%, rgba(255, 255, 255, 0.35), transparent 55%),
    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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(248, 239, 220, 0.86) 0%, rgba(240, 218, 185, 0.76) 50%, rgba(227, 192, 141, 0.72) 100%),
    url('../assets/hero/bahamas-satellite.jpg');
  background-repeat: no-repeat, repeat, no-repeat, no-repeat;
  background-position: center top, top left, center, center;
  background-size: auto, 180px 180px, auto, cover;
  background-attachment: scroll, fixed, fixed, fixed;
  background-blend-mode: normal, overlay, normal, normal;
  color: var(--charcoal);
}

/* ---- Confetti (celebration on "I'm In") ---- */

.rut-confetti {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.rut-confetti__piece {
  position: absolute;
  top: -5%;
  border-radius: 1px;
  opacity: 0.95;
  animation-name: confettiFall;
  animation-timing-function: cubic-bezier(.25, .46, .45, .94);
  animation-fill-mode: forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift), 115vh) rotate(var(--rotate));
    opacity: 0;
  }
}

/* ---- Hero ---- */

.rut-hero {
  position: relative;
  padding: calc(var(--edge) * 2.6) var(--edge) calc(var(--edge) * 1.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.rut-hero__flower {
  width: clamp(72px, 10vw, 96px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 2px 8px rgba(44, 26, 13, 0.15));
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .rut-hero__flower { opacity: 1; animation: none; }
}

/* ---- Body shell ---- */

.rut-main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--edge) * 1.4) var(--edge) calc(var(--edge) * 3.5);
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 72px);
}

/* ---- RSVP decision ---- */

.rut-decision {
  text-align: center;
  gap: 22px;
}

.rut-decision:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rut-decision__label {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--ink);
  margin: 0;
}

.rut-decision__buttons {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.rut-choice {
  font-family: var(--font-display);
  cursor: pointer;
  background: transparent;
  transition: all 0.3s var(--ease);
}

.rut-choice--yes {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 16px 38px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.55);
}

.rut-choice--yes:hover {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(124, 185, 222, 0.35);
}

.rut-choice--yes.is-active {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(124, 185, 222, 0.4);
}

.rut-choice--no {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 6px;
  border: none;
  color: var(--charcoal);
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rut-choice--no:hover {
  opacity: 1;
  color: var(--rut-coral-deep);
}

.rut-choice--no.is-active {
  opacity: 1;
  color: var(--rut-coral-deep);
  font-weight: 700;
}

/* ---- Revealed panels ---- */

.rut-panel-block:not([hidden]) {
  opacity: 0;
  animation: rise 0.8s var(--ease) forwards;
}

.rut-panel-inner {
  padding: clamp(28px, 4.5vh, 44px) clamp(22px, 3.5vw, 36px);
  border-radius: 22px;
  background: rgba(248, 239, 220, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vh, 46px);
}

.rut-panel__welcome {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--blue-deep);
  margin: 0;
}

.rut-panel__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--charcoal);
  opacity: 0.75;
  margin: 0;
}

/* ---- Member profile form ---- */

.rut-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rut-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rut-field label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--charcoal);
  opacity: 0.75;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.rut-field__num {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 0.85rem;
  opacity: 1;
}

.rut-field__optional {
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.7;
}

.rut-field input,
.rut-field select {
  border: none;
  border-bottom: 1.5px solid rgba(44, 26, 13, 0.22);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 10px 2px;
  transition: border-color 0.3s ease;
}

.rut-field input::placeholder {
  color: rgba(44, 26, 13, 0.35);
  font-style: italic;
}

.rut-field input:focus,
.rut-field select:focus {
  outline: none;
  border-color: var(--blue-deep);
}

.rut-field.is-invalid input,
.rut-field.is-invalid select {
  border-color: var(--rut-coral-deep);
}

.rut-field select option {
  background: var(--sand-cream);
  color: var(--ink);
}

/* ---- Reservation / payment ---- */

.rut-reservation {
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid rgba(44, 26, 13, 0.14);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rut-reservation__title {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--ink);
  margin: 0;
}

.rut-reservation__total {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rut-reservation__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  color: var(--ink);
}

.rut-reservation__label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--charcoal);
  opacity: 0.65;
}

.rut-reservation__scope {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rut-reservation__scope-line {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--charcoal);
}

.rut-reservation__scope-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.66rem;
  color: var(--blue-deep);
  margin-right: 7px;
}

.rut-reservation__scope-line--excludes .rut-reservation__scope-label {
  color: var(--rut-coral-deep);
}

.rut-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 4px;
}

.rut-timeline__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 156px;
  text-align: center;
  flex: 0 0 auto;
}

.rut-timeline__index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--blue-deep);
  margin-bottom: 2px;
}

.rut-timeline__node--active .rut-timeline__index {
  background: var(--blue);
  color: var(--ink);
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(124, 185, 222, 0.35);
}

.rut-timeline__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.rut-timeline__tag {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.65;
}

.rut-timeline__node--active .rut-timeline__tag {
  color: var(--blue-deep);
  opacity: 1;
}

.rut-timeline__due {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--charcoal);
  opacity: 0.6;
}

.rut-timeline__track {
  flex: 1;
  height: 1px;
  background: rgba(44, 26, 13, 0.16);
  margin: 15px -4px 0;
  position: relative;
  overflow: hidden;
}

.rut-timeline__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--blue-deep);
  transition: width 1.1s var(--ease) 0.2s;
}

.rut-panel-block:not([hidden]) .rut-timeline__fill {
  width: 40%;
}

.rut-reservation__note {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--charcoal);
  opacity: 0.85;
  margin: 0;
  max-width: 48ch;
}

/* ---- Submit button (Can't Make It path only) ---- */

.rut-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 17px 36px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-deep);
  background: var(--blue);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(124, 185, 222, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.rut-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(124, 185, 222, 0.4);
}

.rut-submit:active { transform: translateY(0); }

.rut-submit--muted {
  background: transparent;
  color: var(--rut-coral-deep);
  border-color: var(--rut-coral);
  box-shadow: none;
}

.rut-submit--muted:hover {
  background: rgba(201, 116, 86, 0.12);
  box-shadow: none;
}

.rut-submit.is-saved {
  background: var(--rut-palm);
  border-color: var(--rut-palm);
  color: var(--cream);
  box-shadow: 0 10px 24px rgba(62, 92, 74, 0.35);
}

.rut-submit.is-saved:hover {
  transform: none;
}

/* ---- Confirmation (Can't Make It path) ---- */

.rut-confirm {
  text-align: center;
  gap: 16px;
  padding: clamp(20px, 4vh, 40px) 0;
}

.rut-confirm:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rut-confirm__status {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--blue-deep);
}

.rut-confirm__title {
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--ink);
  margin: 0;
}

.rut-confirm__sub {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--charcoal);
  opacity: 0.75;
  margin: 0;
}

.rut-confirm__log {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--rut-font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.85;
}

/* ---- Mobile ---- */

@media (max-width: 640px) {
  .rut-decision__buttons {
    flex-direction: column;
    width: 100%;
  }

  .rut-choice--yes {
    width: 100%;
    text-align: center;
  }

  .rut-timeline {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .rut-timeline__track {
    width: 1px;
    height: 32px;
    margin: 0;
  }

  .rut-timeline__fill {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100% !important;
    height: 0%;
    transition: height 1.1s var(--ease) 0.2s;
  }

  .rut-panel-block:not([hidden]) .rut-timeline__fill {
    height: 40%;
  }

  .rut-reservation__total { flex-wrap: wrap; }
}
