/* ── Hero Morph — scroll-synced frame sequence (F93) ───────────────────── */
/* Dark warm hospitality stage + DOT native typography (Cormorant + Jost),
   cream/terracotta accents, radial mask feathers frame black into section bg. */

.hero-morph {
  position: relative;
  height: 550vh;                                  /* desktop scroll runway */
  background: #000;                               /* pure black matches frame bg */
  overflow: visible;
  padding: 0;                                     /* override global `section { padding }` so sticky pins at viewport top:0 (no pre-scroll) and fills full width */
}

.hero-morph-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

/* Layer 0: glow disabled — pure black behind canvas */
.hero-glow { display: none; }

/* Layer 1: canvas — no mask needed (frame bg and section bg both #000) */
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Layer 2: text overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.hero-overlay .btn-primary,
.hero-overlay a { pointer-events: auto; }

/* ── Text beats (shared base) — light tones for dark stage ─────────────── */
.hero-text {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
}

/* Intro — anchored RIGHT, positioned slightly above center, 48% width on desktop */
.hero-text--intro {
  top: 46%;
  left: 0;
  width: 50%;
  padding: 0 24px 0 max(40px, calc((100vw - 1200px) / 2 + 40px));
  transform: translateY(-50%);
}
.hero-text--intro .hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #D4714A;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-text--intro .hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: #D4714A;
}
.hero-text--intro h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7vw, 108px);
  font-weight: 300;
  line-height: 1.02;
  color: var(--cream, #F7F3EE);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  text-wrap: balance;                               /* keeps phrases intact — no orphan words */
}
.hero-text--intro h1 em {
  font-style: italic;
  color: #E89469;                                 /* brighter terracotta for dark bg */
}
.hero-text--intro p {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(247, 243, 238, 0.75);
  max-width: 460px;
  font-weight: 300;
  margin: 0;
  text-wrap: pretty;                                /* avoid trailing orphan words */
}

/* Beat + Finale — side-anchored (alternate left/right via modifier classes) */
.hero-text--beat,
.hero-text--finale {
  top: 46%;
  width: 58%;
  max-width: 860px;
  transform: translateY(-50%);
}

/* Modifier: anchor on the right side */
.hero-text--right {
  right: 0;
  padding: 0 max(67px, calc((100vw - 1200px) / 2 + 67px)) 0 24px;
  text-align: left;
}

/* Modifier: anchor on the left side */
.hero-text--left {
  left: 0;
  padding: 0 24px 0 max(40px, calc((100vw - 1200px) / 2 + 40px));
  text-align: left;
}

.hero-text--beat > p,
.hero-text--finale > p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 300;
  line-height: 1.04;
  color: var(--cream, #F7F3EE);
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;                               /* keeps phrases intact — no orphan words */
}
.hero-text--beat > p em,
.hero-text--finale > p em {
  font-style: italic;
  color: #E89469;
}

/* Finale title — 2 lines total (one sentence per line), no soft wrap inside each line */
#heroFinale2 { top: calc(28% + 10px); }
#heroFinale2 .hero-finale-title {
  font-size: clamp(34px, 3.8vw, 60px);
  line-height: 1.08;
  margin: 0;
  text-wrap: nowrap;
}
#heroFinale2 .finale-line {
  display: block;
  white-space: nowrap;
}

/* Finale CTA block — appears after title (mini-scroll 2) */
.hero-text--finale-cta {
  position: absolute;
  top: calc(50% + 20px);
  width: 58%;
  max-width: 860px;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
}
.hero-text--finale-cta.hero-text--right {
  right: 0;
  padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
  padding-left: 24px;
  text-align: left;
}
.hero-text--finale-cta .btn-primary {
  font-size: 16px;
  padding: 20px 52px;
  letter-spacing: 0.14em;
}

/* Finale QR block — appears after CTA (mini-scroll 3), right column below the CTA (last call-to-action)
   Positioned so the QR bottom edge aligns with the phone visual bottom (~77% of viewport). */
.hero-text--finale-qr {
  position: absolute;
  top: 72%;
  width: 58%;
  max-width: 860px;
  transform: translateY(-50%);
  opacity: 0;
  will-change: opacity, transform;
}
.hero-text--finale-qr.hero-text--right {
  right: 0;
  padding: 0 max(67px, calc((100vw - 1200px) / 2 + 67px)) 0 24px;
  text-align: left;
}

/* QR card — horizontal rectangular (QR image left + two-line label right) */
.hero-qr-card {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  background: rgba(247, 243, 238, 0.06);
  border: 1px solid rgba(247, 243, 238, 0.14);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-qr-card:hover {
  background: rgba(247, 243, 238, 0.10);
  border-color: rgba(232, 148, 105, 0.5);
  transform: translateY(-2px);
}
.hero-qr-img {
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}
.hero-qr-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Jost', sans-serif;
  text-align: left;
}
.hero-qr-label-main {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream, #F7F3EE);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.hero-qr-label-sub {
  display: block;
  font-size: 11px;
  font-weight: 300;
  color: rgba(247, 243, 238, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.hero-text--finale-cta .hero-finale-reassure {
  margin-top: 26px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(247, 243, 238, 0.55);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ── Reduced motion fallback ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-morph { height: 100vh; }
  .hero-morph-sticky { position: relative; overflow: visible; }
  .hero-text,
  .hero-text--intro,
  .hero-text--beat,
  .hero-text--finale,
  .hero-text--finale-cta,
  .hero-text--finale-qr { opacity: 1 !important; }
  .hero-text--beat { display: none; }
  .hero-text--intro { transform: translateY(-50%) !important; }
  .hero-text--finale {
    top: auto;
    bottom: 8%;
    transform: none !important;
  }
  .hero-glow { display: none; }
}

/* ── Mobile — phone in upper half (large), text in lower half (no overlap) ─ */
@media (max-width: 768px) {
  .hero-morph { height: 300vh; }

  /* Intro text: anchored in lower half (phone sits above at posY=28%) */
  .hero-text--intro {
    top: 68%;
    right: auto;
    left: 0;
    width: 100%;
    padding: 0 22px;
    text-align: center;
    transform: translateY(-50%);
  }
  .hero-text--intro .hero-eyebrow { justify-content: center; font-size: 10px; margin-bottom: 16px; letter-spacing: 0.22em; }
  .hero-text--intro h1 {
    font-size: clamp(34px, 9.2vw, 46px);
    line-height: 1.08;
    margin: 0 0 20px;
    letter-spacing: -0.015em;
  }
  .hero-text--intro p {
    font-size: 15.5px;
    line-height: 1.62;
    margin-left: auto;
    margin-right: auto;
    max-width: 94%;
  }

  /* Beats + finale title: centered in lower half, full width, no side anchoring */
  .hero-text--beat,
  .hero-text--finale {
    top: 68% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 22px !important;
    text-align: center !important;
    transform: translateY(-50%);
  }
  .hero-text--beat > p,
  .hero-text--finale > p {
    font-size: clamp(34px, 9.6vw, 52px);
    text-align: center;
    line-height: 1.06;
  }

  /* Finale title: up to free room for CTA + QR stacked below */
  #heroFinale2 {
    top: 62% !important;
  }
  #heroFinale2 > p {
    font-size: clamp(32px, 8.6vw, 48px) !important;
    line-height: 1.08 !important;
  }
  #heroFinale2 .finale-line {
    white-space: normal;
  }
  /* Finale CTA — stacked below title */
  .hero-text--finale-cta {
    top: 76% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 22px !important;
    text-align: center !important;
    transform: translateY(-50%);
  }
  .hero-text--finale-cta .btn-primary { font-size: 14px; padding: 15px 38px; }
  .hero-text--finale-cta .hero-finale-reassure { font-size: 12px; margin-top: 16px; line-height: 1.5; }

  /* Finale QR — stacked below CTA (bottom of viewport) */
  .hero-text--finale-qr {
    top: 92% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 22px !important;
    text-align: center !important;
    transform: translateY(-50%);
  }
  .hero-qr-card { padding: 8px 16px 8px 8px; gap: 12px; }
  .hero-qr-img { width: 62px; height: 62px; }
  .hero-qr-label-main { font-size: 13px; }
  .hero-qr-label-sub { font-size: 10px; letter-spacing: 0.05em; }

  .hero-glow { display: none; }
}

/* ── No-JS fallback — show intro text only over dark bg ─────────────── */
.no-js .hero-morph { height: 100vh; }
.no-js .hero-morph-sticky { position: relative; }
.no-js .hero-canvas { display: none; }
.no-js .hero-text--intro { opacity: 1 !important; }
.no-js .hero-text--beat,
.no-js .hero-text--finale,
.no-js .hero-text--finale-cta,
.no-js .hero-text--finale-qr { display: none; }
