/* Maison X — shared styles. Do not duplicate inline. */
/* v2 — phase 2 perf pass (font trim, preload, atm reduced-motion). */

/* ───── Variables ───── */
:root {
  --bg: #F3F4F6;
  --ink: #111114;
  --t1: rgba(17,17,20,0.85);
  --t2: rgba(17,17,20,0.6);
  --t3: rgba(17,17,20,0.62);
  --t4: rgba(17,17,20,0.2);
  --t5: rgba(17,17,20,0.08);
  --line: rgba(17,17,20,0.08);
  --f1: 'Outfit', sans-serif;
  --f2: 'DM Sans', sans-serif;
}

/* ───── Skip to content (a11y) ───── */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f1);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 9999;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

/* ───── Universal reset ───── */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--f2); font-weight: 300; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }

/* Body layout — only activates on shell pages (destinations + legal).
   Homepage <body> has no .has-shell class so these don't apply there. */
body.has-shell { min-height: 100vh; min-height: 100svh; overflow-x: hidden; display: flex; flex-direction: column; }

/* ───── Atmospheric layer (single .atm with two pseudo-element glows) ───── */
.atm {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.atm::before,
.atm::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.atm::before {
  top: -25vh;
  left: -20vw;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(215,205,185,0.56) 0%, transparent 65%);
  animation: atmBefore 20s ease-in-out infinite alternate;
}
.atm::after {
  bottom: -25vh;
  right: -20vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(185,195,210,0.44) 0%, transparent 65%);
  animation: atmAfter 24s ease-in-out infinite alternate;
}
@keyframes atmBefore {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(34px, 24px, 0) scale(1.045); }
}
@keyframes atmAfter {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, -28px, 0) scale(1.055); }
}

/* ───── Shell layout container ───── */
.has-shell .shell { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }

/* ───── Nav (sticky variant — destinations + legal) ───── */
.has-shell .nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  background: rgba(243,244,246,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--t5);
}
.has-shell .nav.is-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.has-shell .nav__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.has-shell .nav__mark { font-family: var(--f1); font-weight: 700; font-size: 12px; letter-spacing: 5px; color: var(--ink); }
.has-shell .nav__mark:hover { opacity: 1; }
.has-shell .nav__menu { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.has-shell .nav__menu a { font-family: var(--f1); font-weight: 500; font-size: 10px; letter-spacing: 3px; color: var(--t2); text-transform: uppercase; position: relative; transition: color 0.3s ease; }
.has-shell .nav__menu a:hover { color: var(--ink); opacity: 1; }
.has-shell .nav__menu a.is-current { color: var(--ink); }
.has-shell .nav__menu a::after { content:''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: center; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.has-shell .nav__menu a:hover::after, .has-shell .nav__menu a.is-current::after { transform: scaleX(1); }
.has-shell .nav__menu a.is-login { color: var(--ink); padding: 8px 14px; border: 1px solid var(--t4); border-radius: 999px; }
.has-shell .nav__menu a.is-login:hover { border-color: var(--ink); }
.has-shell .nav__menu a.is-login::after { display: none; }
.has-shell .nav__toggle { display: none; flex-direction: column; gap: 4px; padding: 8px; background: transparent; border: 0; cursor: pointer; }
.has-shell .nav__toggle span { width: 18px; height: 1px; background: var(--ink); display: block; transition: transform 0.3s ease, opacity 0.3s ease; }
.has-shell .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.has-shell .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.has-shell .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 820px) {
  .has-shell .nav__menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; background: var(--bg); pointer-events: none; opacity: 0; transition: opacity 0.4s ease; padding: 0 24px; z-index: 49; }
  .has-shell .nav.is-open .nav__menu { pointer-events: auto; opacity: 1; }
  .has-shell .nav__menu a { font-size: 14px; letter-spacing: 4px; }
  .has-shell .nav__menu a.is-login { padding: 12px 24px; }
  .has-shell .nav__toggle { display: flex; z-index: 60; }
}

/* ───── Destinations dropdown (shared homepage menu) ───── */
.has-shell .dd { position: relative; }
.has-shell .dd__trigger { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.has-shell .dd__trigger svg { width: 9px; height: 9px; color: var(--t3); transition: transform 0.3s ease; }
.has-shell .dd:hover .dd__trigger svg, .has-shell .dd.open .dd__trigger svg { transform: rotate(180deg); }
.has-shell .dd__panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); background: #FFFFFF; border: 1px solid rgba(13,13,18,.10); border-radius: 4px; box-shadow: 0 30px 70px rgba(13,13,18,.16); padding: 8px 0; min-width: 190px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.has-shell .dd__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-shell .dd:hover .dd__panel, .has-shell .dd.open .dd__panel { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.has-shell .dd__panel a { display: block; padding: 11px 20px; color: var(--t1); }
.has-shell .dd__panel a::after { display: none; }
.has-shell .dd__panel a:hover { background: rgba(13,13,18,.045); }
@media (max-width: 820px) {
  .has-shell .dd { width: 100%; text-align: center; }
  .has-shell .dd__trigger { justify-content: center; font-size: 14px; letter-spacing: 4px; }
  .has-shell .dd__trigger svg { width: 11px; height: 11px; }
  /* Dropdown is a real collapsible inside the overlay: collapsed by default,
     expands only when .dd.open (tapping DESTINATIONS toggles it). The open-state
     rule also neutralises the desktop translate(-50%) so the panel isn't dragged
     off the left edge. */
  .has-shell .dd__panel { position: static; transform: none; opacity: 1; pointer-events: auto; box-shadow: none; border: 0; background: transparent; min-width: 0; padding: 0; display: none; flex-direction: column; gap: 28px; }
  .has-shell .dd.open .dd__panel { display: flex; transform: none; margin-top: 28px; }
  .has-shell .dd__panel::before { display: none; }
  .has-shell .dd__panel a { padding: 0; font-size: 14px; letter-spacing: 4px; color: var(--t2); text-transform: uppercase; }
}

/* ───── Destination hero ───── */
.has-shell .hero {
  padding: clamp(80px, 14vw, 160px) 24px clamp(60px, 10vw, 110px);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.has-shell .hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f1); font-weight: 500; font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--t3); margin-bottom: 32px;
  opacity: 0; animation: rise 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
}
.has-shell .hero__eyebrow::before, .has-shell .hero__eyebrow::after { content:''; width: 28px; height: 1px; background: var(--t4); }
.has-shell .hero__title {
  font-family: var(--f1); font-weight: 200;
  font-size: clamp(64px, 14vw, 168px);
  letter-spacing: -4px; line-height: 0.9;
  color: var(--ink); margin-bottom: 24px;
  opacity: 0; animation: rise 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.has-shell .hero__title em { font-style: normal; font-weight: 600; }
.has-shell .hero__meta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f1); font-weight: 400; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--t3);
  opacity: 0; animation: rise 1s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}
.has-shell .hero__meta .sep { width: 24px; height: 1px; background: var(--t4); }
.has-shell .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 9px; letter-spacing: 3px; }
.has-shell .status::before { content:''; width: 5px; height: 5px; border-radius: 50%; }
.has-shell .status--active { color: var(--ink); }
.has-shell .status--active::before { background: #6b7d5a; }
.has-shell .status--soon { color: var(--t3); }
.has-shell .status--soon::before { background: var(--t4); }

/* ───── Lead ───── */
.has-shell .lead {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(70px, 9vw, 110px) 24px;
  text-align: center;
}
.has-shell .lead__line {
  font-family: var(--f1); font-weight: 200;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 52px);
  letter-spacing: -1px; line-height: 1.18;
  color: var(--ink);
  max-width: 880px; margin: 0 auto;
  text-wrap: balance;
}

/* ───── Body ───── */
.has-shell .body {
  padding: clamp(70px, 9vw, 110px) 24px;
  max-width: 680px; margin: 0 auto;
  width: 100%;
}
.has-shell .body p {
  font-family: var(--f2); font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.85;
  color: var(--t2);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.has-shell .body p:last-child { margin-bottom: 0; }

/* ───── Tags ───── */
.has-shell .tags {
  border-top: 1px solid var(--line);
  padding: 64px 24px;
  text-align: center;
}
.has-shell .tags__label {
  font-family: var(--f1); font-weight: 500; font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--t3); margin-bottom: 24px;
}
.has-shell .tags ul {
  list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 14px;
  max-width: 820px;
}
.has-shell .tags li {
  font-family: var(--f1); font-weight: 400; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--t2);
  position: relative; padding-right: 14px;
}
.has-shell .tags li:not(:last-child)::after { content: '·'; position: absolute; right: 0; color: var(--t4); }

/* ───── Cross-destination link strip ───── */
.has-shell .related { text-align: center; padding: 48px 24px 24px; font-family: var(--f1); font-weight: 400; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--t3); }
.has-shell .related__lead { display: inline-block; margin-right: 16px; }
.has-shell .related a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--t4); padding-bottom: 2px; margin: 0 8px; transition: border-color 0.3s ease; display: inline-block; }
.has-shell .related a:hover { border-bottom-color: var(--ink); }
@media (max-width: 600px) {
  .has-shell .related { padding: 32px 16px 16px; font-size: 9px; letter-spacing: 2px; line-height: 2.1; }
  .has-shell .related__lead { display: block; margin: 0 0 12px; }
  .has-shell .related a { margin: 0 4px; }
}

/* ───── CTA block ───── */
.has-shell .cta-block {
  border-top: 1px solid var(--line);
  padding: clamp(70px, 9vw, 110px) 24px;
  text-align: center;
}
.has-shell .cta-block__line {
  font-family: var(--f2); font-weight: 300; font-style: italic;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--t3); margin-bottom: 28px;
}
.has-shell .cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f1); font-weight: 500; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--t4); padding-bottom: 8px;
  transition: border-color 0.3s ease;
}
.has-shell .cta:hover { border-bottom-color: var(--ink); opacity: 1; }

/* ───── Footer ───── */
.has-shell .foot {
  padding: 32px 24px;
  font-family: var(--f1); font-weight: 500; font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--t4); text-align: center;
  border-top: 1px solid var(--t5);
}
.has-shell .foot .sep { color: var(--t4); margin: 0 6px; }
.has-shell .foot a { color: inherit; }
@media (max-width: 600px) {
  .has-shell .foot { font-size: 8px; letter-spacing: 2px; padding: 24px 16px; line-height: 2; }
}

/* ───── Fineprint footer (inverted, matches homepage) ───── */
.has-shell .fineprint {
  background: var(--ink); color: var(--bg);
  border-top: 1px solid rgba(243,244,246,0.04);
  padding: 36px 24px 44px;
  text-align: center;
  position: relative; z-index: 2;
}
.has-shell .fineprint__lines {
  font-family: var(--f1); font-weight: 500; font-size: 9px; letter-spacing: 3px;
  color: rgba(243,244,246,0.42);
  line-height: 2.4;
  text-transform: uppercase;
}
.has-shell .fineprint__lines b { font-weight: 600; color: rgba(243,244,246,0.62); letter-spacing: 5px; font-size: 10px; }
.has-shell .fineprint__lines .sep { color: rgba(243,244,246,0.22); margin: 0 6px; }
.has-shell .fineprint__lines a { color: inherit; }

/* ───── Reveal observer ───── */
.has-shell .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.has-shell .reveal.is-in { opacity: 1; transform: none; }

/* ───── Legal page hero (T&C, Privacy) ───── */
.has-shell .legal-hero {
  padding: clamp(70px, 10vw, 130px) 24px clamp(40px, 5vw, 60px);
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}
.has-shell .legal-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f1); font-weight: 500; font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--t3); margin-bottom: 24px;
}
.has-shell .legal-hero__eyebrow::before, .has-shell .legal-hero__eyebrow::after { content:''; width: 28px; height: 1px; background: var(--t4); }
.has-shell .legal-hero__title {
  font-family: var(--f1); font-weight: 200;
  font-size: clamp(44px, 8vw, 88px);
  letter-spacing: -2.5px; line-height: 0.95;
  color: var(--ink); margin-bottom: 20px;
}
.has-shell .legal-hero__title em { font-style: normal; font-weight: 600; }
.has-shell .legal-hero__updated {
  font-family: var(--f1); font-weight: 400; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--t3);
}

/* ───── Legal page body ───── */
.has-shell .legal {
  padding: clamp(40px, 6vw, 80px) 24px clamp(80px, 10vw, 130px);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid var(--line);
}
.has-shell .legal h2 {
  font-family: var(--f1); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.4px; line-height: 1.25;
  color: var(--ink);
  margin: clamp(48px, 6vw, 64px) 0 18px;
}
.has-shell .legal h2:first-child { margin-top: 0; }
.has-shell .legal h3 {
  font-family: var(--f1); font-weight: 500;
  font-size: clamp(13px, 1.4vw, 14px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin: 28px 0 12px;
}
.has-shell .legal p {
  font-family: var(--f2); font-weight: 300;
  font-size: clamp(15px, 1.4vw, 16px); line-height: 1.85;
  color: var(--t1);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.has-shell .legal p:last-child { margin-bottom: 0; }
.has-shell .legal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.has-shell .legal li {
  font-family: var(--f2); font-weight: 300;
  font-size: clamp(15px, 1.4vw, 16px); line-height: 1.85;
  color: var(--t1);
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  text-wrap: pretty;
}
.has-shell .legal li::before {
  content: '·';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--t3);
  font-weight: 700;
}
.has-shell .legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--t4);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}
.has-shell .legal a:hover { border-bottom-color: var(--ink); opacity: 1; }
.has-shell .legal__contact {
  font-family: var(--f2); font-weight: 300;
  font-size: clamp(15px, 1.4vw, 16px); line-height: 1.85;
  color: var(--t1);
  margin: 0 0 18px;
}
.has-shell .legal__contact span { display: block; }

/* ───── Keyframes ───── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ───── Reduced motion ─────
   Universal animation/transition collapse + explicit atmospheric kill on the two
   pseudo-element glows of the .atm layer. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .atm::before,
  .atm::after {
    animation: none !important;
  }
}
