/* =========================================================
   The Longevity Code Gala — stylesheet
   Typography follows the presentation (Cambria → Caladea).
   Palette: night navy, warm ivory, champagne accents.
   ========================================================= */

:root {
  --night: #111727;
  --night-2: #172036;
  --night-3: #1e2944;
  --ivory: #f6f1e8;
  --ivory-2: #ede5d7;
  --paper: #fbf8f2;
  --charcoal: #1f2026;
  --ink: #2b2c33;
  --muted: #6a6862;
  --champagne: #b99a64;
  --champagne-light: #dcc79f;
  --line: rgba(31, 32, 38, 0.14);
  --line-light: rgba(246, 241, 232, 0.16);
  --gold-line: rgba(185, 154, 100, 0.55);

  --serif: "Caladea", Cambria, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(84px, 11vw, 150px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: inherit;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--ivory-2); }
.section--dark {
  background: var(--night);
  color: var(--ivory);
  overflow: hidden;
}
.section--dark p { color: rgba(246, 241, 232, 0.78); }

/* corner light bars, as in the presentation */
.section--dark::before,
.section--dark::after {
  content: "";
  position: absolute;
  height: 10px;
  width: min(34%, 420px);
  pointer-events: none;
}
.section--dark::before { top: 0; right: 0; background: linear-gradient(to left, rgba(64, 92, 160, 0.55), transparent); }
.section--dark::after { bottom: 0; left: 0; background: linear-gradient(to right, rgba(64, 92, 160, 0.55), transparent); }

/* ---------- Titles ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 1.4rem;
}
.eyebrow::before,
.eyebrow::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow--plain::before,
.eyebrow--plain::after { display: none; }
.eyebrow--left { justify-content: flex-start; }
.eyebrow--left::after { display: none; }
.section--dark .eyebrow,
.closing .eyebrow { color: var(--champagne-light); }

.title {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 400;
}

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); }
.section--dark .lead { color: rgba(246, 241, 232, 0.8); }
.partners .lead { color: inherit; }

.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head .lead { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid transparent;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--gold { background: var(--champagne); color: #fff; border-color: var(--champagne); }
.btn--gold:hover { background: #a6874f; border-color: #a6874f; }
.btn--dark { background: var(--night); color: var(--ivory); border-color: var(--night); }
.btn--dark:hover { background: var(--night-3); border-color: var(--night-3); }
.btn--ghost { border-color: var(--champagne); color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--champagne); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--champagne);
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link-arrow::after { content: "→"; letter-spacing: 0; }
.link-arrow:hover { gap: 16px; color: var(--champagne); }

/* ---------- Frames ---------- */
.frame { position: relative; isolation: isolate; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(246, 241, 232, 0.55);
  pointer-events: none;
}
.frame::before {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid var(--gold-line);
  z-index: -1;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(17, 23, 39, 0.78);
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.is-scrolled { background: rgba(17, 23, 39, 0.97); border-bottom-color: var(--line-light); }
/* backdrop-filter would trap the fixed mobile menu inside the header */
.site-header.is-open { backdrop-filter: none; background: var(--night); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 90px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 52px; }
.brand-word { width: 190px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  position: relative; padding: 6px 0; white-space: nowrap;
  color: rgba(246, 241, 232, 0.85); transition: color 0.3s;
}
.nav-links a:hover { color: var(--champagne-light); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--champagne); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 46px; padding: 0 22px; font-size: 0.74rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  color: inherit; cursor: pointer; position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; content: "";
  transition: transform 0.3s var(--ease), background 0.3s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 24px var(--gutter) 48px;
    background: var(--night);
    border-top: 1px solid var(--line-light);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    font-size: 1.2rem; letter-spacing: 0.14em;
    padding: 16px 0; border-bottom: 1px solid var(--line-light);
  }
  .nav-links a::after { display: none; }
  .nav .btn { min-height: 56px; }
}
@media (max-width: 480px) {
  .header-inner { height: 76px; }
  .nav { top: 76px; }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; }
  .brand-word { width: 150px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--ivory);
  background: var(--night) url("../img/pattern.jpg") repeat center / 540px auto;
  overflow: hidden;
  padding: 150px 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(17, 23, 39, 0.35), rgba(17, 23, 39, 0.92) 72%),
    linear-gradient(to bottom, rgba(17, 23, 39, 0.6), rgba(17, 23, 39, 0.25) 40%, rgba(17, 23, 39, 0.96));
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 980px; margin: 0 auto; }
.hero-logo {
  width: clamp(230px, 28vw, 330px); margin: 0 auto 44px;
  filter: drop-shadow(0 12px 50px rgba(121, 212, 223, 0.18));
  animation: rise 1.4s var(--ease) both;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
  margin-bottom: 26px;
  animation: rise 1.4s 0.15s var(--ease) both;
}
.hero-text { max-width: 660px; margin: 0 auto 12px; color: rgba(246, 241, 232, 0.8); }
.hero-cities {
  display: flex; justify-content: center; align-items: center; gap: 18px;
  font-size: 1.05rem; letter-spacing: 0.32em; text-transform: uppercase;
  margin: 34px 0 40px; color: var(--champagne-light);
}
.hero-cities i { width: 6px; height: 6px; border: 1px solid var(--champagne); transform: rotate(45deg); display: block; }
.hero .btn-row { justify-content: center; animation: rise 1.4s 0.3s var(--ease) both; }
.hero .btn--ghost { color: var(--ivory); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line-light);
  background: rgba(17, 23, 39, 0.7);
}
.hero-strip .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 76px; padding-top: 12px; padding-bottom: 12px;
}
.hero-strip-label { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne-light); margin: 0; }
.hero-strip-label strong { font-weight: 400; color: var(--ivory); margin-left: 10px; letter-spacing: 0.16em; }
.countdown { display: flex; gap: 26px; }
.countdown div { text-align: center; min-width: 46px; }
.countdown b { display: block; font-weight: 400; font-size: 1.7rem; line-height: 1; }
.countdown span { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246, 241, 232, 0.6); }

@media (max-width: 720px) {
  .hero { padding-bottom: 190px; }
  .hero-strip .wrap { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .hero-cities { font-size: 0.86rem; gap: 12px; letter-spacing: 0.24em; }
  .hero .btn-row .btn { width: 100%; }
  .hero h1 br { display: none; }
}

/* Event hero (Davos page) */
.hero--photo { background: var(--night); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero--photo::before {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(17, 23, 39, 0.6), rgba(17, 23, 39, 0.45) 40%, rgba(17, 23, 39, 0.96)),
    radial-gradient(ellipse at center, transparent, rgba(17, 23, 39, 0.6));
}
.hero-kicker { font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--champagne-light); margin-bottom: 22px; }
.event-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 46px; margin: 30px 0 38px; }
.event-meta div { text-align: center; }
.event-meta small { display: block; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne-light); }
.event-meta span { font-size: 1.3rem; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.split-media img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 520px; margin: 0 14px; }
}

.vision-quote {
  font-style: italic; font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5;
  color: var(--charcoal); border-left: 1px solid var(--champagne);
  padding-left: 24px; margin: 32px 0 0;
}

/* ---------- Editions ---------- */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.edition {
  position: relative;
  border: 1px solid var(--line-light);
  padding: 56px 40px 48px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(30, 41, 68, 0.55), rgba(17, 23, 39, 0.2));
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.edition::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(185, 154, 100, 0.18);
  pointer-events: none; transition: border-color 0.5s var(--ease);
}
.edition:hover { transform: translateY(-6px); border-color: var(--gold-line); }
.edition:hover::before { border-color: rgba(185, 154, 100, 0.45); }
.edition-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--night); background: var(--champagne-light); padding: 6px 12px; margin-bottom: 26px;
}
.edition-badge--empty { visibility: hidden; }
.edition h3 { font-size: clamp(2rem, 3vw, 2.5rem); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; color: var(--ivory); }
.section--dark .edition-when { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-light); margin-bottom: 24px; }
.edition-rule { width: 40px; height: 1px; background: var(--champagne); margin: 0 auto 24px; }
.edition p { font-size: 1rem; flex: 1; margin-bottom: 32px; }
.edition .link-arrow { color: var(--ivory); }
@media (max-width: 960px) {
  .editions { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .edition-badge--empty { display: none; }
}

/* ---------- Experience ---------- */
.experience-head { text-align: center; max-width: 860px; margin: 0 auto clamp(48px, 6vw, 72px); }
.experience-head .lead { max-width: 660px; margin: 0 auto; }
.features { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.feature { padding: 44px 44px 44px 0; border-bottom: 1px solid var(--line); }
.feature:nth-child(odd) { border-right: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: 44px; padding-right: 0; }
.feature .title,
.experience-head .title { color: var(--charcoal); }
.feature .title { margin-bottom: 14px; }
.feature p { color: var(--muted); }
@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 34px 0; border-right: 0; }
}

.experience-media { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; margin-top: 90px; }
.experience-media .frame img { aspect-ratio: 1707 / 1482; }
.experience-media .frame:last-child img { object-position: center 35%; }
@media (max-width: 680px) {
  .experience-media { grid-template-columns: 1fr; gap: 48px; margin-left: 14px; margin-right: 14px; }
  .experience-media .frame:last-child img { aspect-ratio: 4 / 5; }
}

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-light); }
.person { padding: 36px 24px 12px; border-right: 1px solid var(--line-light); text-align: center; }
.person:last-child { border-right: 0; }
.section--dark .person-title {
  font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--champagne-light); margin-bottom: 12px; line-height: 1.45;
}
.person p { font-size: 1rem; }
.section--dark .people-note {
  margin: 74px 0 0; text-align: center; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ivory);
}
@media (max-width: 1000px) {
  .people { grid-template-columns: 1fr 1fr; }
  .person { border-right: 0; border-bottom: 1px solid var(--line-light); padding-bottom: 30px; }
}
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- Featured edition ---------- */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 640px; background: var(--night); color: var(--ivory); border-top: 1px solid var(--line-light); }
.featured-media { position: relative; overflow: hidden; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: clamp(52px, 7vw, 100px); display: flex; flex-direction: column; justify-content: center; }
.featured-body p { color: rgba(246, 241, 232, 0.78); }
.featured-body .featured-date { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--champagne-light); line-height: 1.1; margin-bottom: 14px; }
.featured-body .featured-venue { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); margin-bottom: 4px; }
.featured-body .featured-during { font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 30px; }
.featured-body .btn-row { margin-top: 20px; }
.featured-body .btn--ghost { color: var(--ivory); }
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 300px; }
}

/* ---------- Partnerships (home) ---------- */
.partners { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(56px, 8vw, 120px); align-items: center; }
.partners .split-media img { aspect-ratio: 2 / 3; object-position: center 30%; }
.partners-pillars { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.partners-pillars li {
  border: 1px solid var(--gold-line); padding: 8px 16px;
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal);
}
@media (max-width: 860px) {
  .partners { grid-template-columns: 1fr; }
  .partners .split-media { max-width: 460px; margin: 0 14px; }
}

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 48px; flex-wrap: wrap; }
.gallery-tab {
  border: 1px solid var(--line-light); background: transparent; color: rgba(246, 241, 232, 0.8);
  font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 12px 24px; cursor: pointer; transition: all 0.3s var(--ease);
}
.gallery-tab:hover { border-color: var(--champagne); color: var(--ivory); }
.gallery-tab.is-active { background: var(--champagne); color: #fff; border-color: var(--champagne); }
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery-item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0;
  background: var(--night-2); cursor: zoom-in; overflow: hidden; break-inside: avoid;
  position: relative;
}
.gallery-item img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid transparent;
  transition: border-color 0.5s var(--ease); pointer-events: none;
}
.gallery-item:hover::after { border-color: rgba(246, 241, 232, 0.5); }
.gallery-item.is-hidden,
.gallery.is-collapsed .gallery-item.is-extra { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 40px; }
.gallery-more[hidden] { display: none; }
.gallery-more .btn--ghost { color: var(--ivory); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery-item { margin-bottom: 8px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 14, 24, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 72px 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 84vh; max-width: min(1200px, 100%); width: auto; object-fit: contain; }
.lightbox-btn {
  position: absolute; width: 50px; height: 50px;
  border: 1px solid var(--line-light); background: rgba(17, 23, 39, 0.6);
  color: var(--ivory); font-family: var(--serif); font-size: 1.4rem; cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(56px, 8vw, 120px); align-items: center; }
.founder-photo img { aspect-ratio: 4 / 5; object-position: center top; }
.founder-body p:first-of-type { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--charcoal); }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 440px; margin: 0 14px; }
}

/* ---------- Closing ---------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--ivory);
  text-align: center;
  padding: clamp(110px, 13vw, 180px) 0;
}
.closing-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.3; }
.closing::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(17, 23, 39, 0.4), rgba(17, 23, 39, 0.94) 75%); }
.closing .wrap { position: relative; z-index: 2; max-width: 860px; }
.closing p { color: rgba(246, 241, 232, 0.8); margin: 0 auto 40px; max-width: 580px; }
.closing .btn--ghost { color: var(--ivory); }

/* ---------- Enquiry form ---------- */
.enquiry { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 8vw, 120px); }
.enquiry-aside .lead { margin-bottom: 36px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 2px; }
.contact-list a { font-size: 1.2rem; color: var(--charcoal); transition: color 0.3s; word-break: break-word; }
.contact-list a:hover { color: var(--champagne); }
.enquiry-note { font-size: 0.98rem; color: var(--muted); margin-top: 24px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label,
.field legend { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--charcoal); padding: 0; }
.field input,
.field select,
.field textarea {
  font: inherit; font-size: 1.05rem; color: var(--charcoal);
  background: transparent; border: 0; border-bottom: 1px solid rgba(31, 32, 38, 0.3);
  padding: 10px 0 12px; border-radius: 0; width: 100%;
  transition: border-color 0.3s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--champagne) 50%), linear-gradient(135deg, var(--champagne) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--champagne); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--champagne); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.field .chip { position: relative; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; border: 1px solid rgba(31, 32, 38, 0.25);
  padding: 10px 18px; font-size: 0.95rem; cursor: pointer; transition: all 0.25s var(--ease);
}
.chip:hover span { border-color: var(--champagne); }
.chip input:checked + span { background: var(--night); border-color: var(--night); color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; }
.form-note { font-size: 0.9rem; color: var(--muted); max-width: 42ch; margin: 0; }
.form-error { grid-column: 1 / -1; color: #9b3b2f; font-size: 0.95rem; margin: 0; display: none; }
.form-error.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  display: none; border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: 6px;
  padding: 56px 40px; text-align: center; background: var(--paper); margin: 6px;
}
.form-success.is-visible { display: block; }
.form-success .title { color: var(--charcoal); }
.form-success p { color: var(--muted); max-width: 46ch; margin: 0 auto; }
@media (max-width: 860px) { .enquiry { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Davos page blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--champagne); line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

.davos-media img { aspect-ratio: 4 / 3; }

.timeline { border-top: 1px solid var(--line-light); margin-top: 40px; }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: 30px;
  padding: 28px 0; border-bottom: 1px solid var(--line-light); align-items: baseline;
}
.timeline time { font-size: 1.6rem; font-weight: 700; color: var(--champagne-light); line-height: 1; }
.timeline h3 { font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; color: var(--ivory); }
.timeline p { font-size: 1rem; }
.section--dark .timeline-note { margin-top: 26px; font-size: 0.95rem; font-style: italic; color: rgba(246, 241, 232, 0.55); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }

.ticket { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--paper); border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: 6px; margin: 6px; }
.ticket-head { padding: clamp(36px, 5vw, 64px); border-right: 1px dashed var(--gold-line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.ticket-tier { font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); margin-bottom: 6px; }
.ticket-price { font-size: clamp(3rem, 6vw, 4.4rem); color: var(--charcoal); line-height: 1; }
.ticket-body { padding: clamp(36px, 5vw, 64px); }
.ticket-body h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; color: var(--charcoal); }
.ticket-note { font-size: 0.98rem; color: var(--muted); margin-top: 26px; }
@media (max-width: 760px) { .ticket { grid-template-columns: 1fr; } .ticket-head { border-right: 0; border-bottom: 1px dashed var(--gold-line); } }

.checklist li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); font-size: 1rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 21px;
  width: 6px; height: 6px; border: 1px solid var(--champagne); transform: rotate(45deg);
}

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.tier { background: var(--paper); border: 1px solid var(--gold-line); padding: 48px 38px; display: flex; flex-direction: column; text-align: center; position: relative; }
.tier::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(185, 154, 100, 0.22); pointer-events: none; }
.tier .checklist { text-align: left; flex: 1; margin-bottom: 34px; }
.tier--top { background: var(--night); color: var(--ivory); border-color: var(--champagne); }
/* same navy hue, each package a step lighter */
.tier--mid { background: #1d3363; }
.tier--light { background: #2c4f93; }
.tier--dark { color: var(--ivory); }
.tier--dark .checklist li { border-color: var(--line-light); color: rgba(246, 241, 232, 0.86); }
.tier--dark .tier-desc { color: rgba(246, 241, 232, 0.72); }
.tier--dark .tier-label { color: var(--champagne-light); }
.tier--dark .tier-price { color: var(--champagne-light); }
.tier--dark .btn--dark { background: transparent; border-color: var(--champagne); color: var(--ivory); }
.tier--dark .btn--dark:hover { background: var(--champagne); color: #fff; }
.tier-label { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); margin-bottom: 14px; }
.tier h3 { font-size: 1.35rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.tier-price { font-size: 2.6rem; color: var(--champagne); line-height: 1; margin-bottom: 20px; }
.tier-desc { color: var(--muted); font-size: 1rem; margin-bottom: 26px; min-height: 5em; }
.tier .btn { width: 100%; padding: 0 18px; }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr; max-width: 580px; margin: 0 auto; } .tier-desc { min-height: 0; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #0c111e url("../img/pattern.jpg") repeat center / 540px auto;
  color: rgba(246, 241, 232, 0.7); position: relative; padding: 90px 0 36px;
}
.site-footer::before { content: ""; position: absolute; inset: 0; background: rgba(12, 17, 30, 0.9); }
.site-footer .wrap { position: relative; }
.footer-top { text-align: center; padding-bottom: 54px; border-bottom: 1px solid var(--line-light); }
.footer-logo { width: 230px; margin: 0 auto 26px; }
.footer-cities { font-size: 0.82rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--champagne-light); margin-bottom: 10px; }
.footer-tagline { font-style: italic; font-size: 1.3rem; color: var(--ivory); }
.footer-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin-top: 26px; font-size: 1.05rem; }
.footer-contacts a { color: var(--ivory); transition: color 0.3s; }
.footer-contacts a:hover { color: var(--champagne-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.74rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--champagne-light); }
@media (max-width: 560px) { .footer-bottom { flex-direction: column; align-items: center; text-align: center; } .footer-links { justify-content: center; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-logo, .hero h1, .hero .btn-row { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--night); color: var(--ivory); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

/* ---------- Legal page ---------- */
.page-hero {
  position: relative; text-align: center; color: var(--ivory);
  background: var(--night) url("../img/pattern.jpg") repeat center / 540px auto;
  padding: 170px 0 80px;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(17, 23, 39, 0.88); }
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { color: var(--champagne-light); }
.page-hero .title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.page-hero-date { font-style: italic; color: rgba(246, 241, 232, 0.7); margin: 0; }

.legal { display: grid; grid-template-columns: 260px 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.legal-toc { position: sticky; top: 120px; border-top: 1px solid var(--gold-line); padding-top: 22px; }
.legal-toc-title { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 14px; }
.legal-toc ol { list-style: decimal; padding-left: 20px; color: var(--muted); }
.legal-toc li { padding: 4px 0; font-size: 0.95rem; }
.legal-toc a { color: var(--ink); transition: color 0.3s; }
.legal-toc a:hover { color: var(--champagne); }
.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal);
  margin: 2.6em 0 0.9em; padding-top: 1.4em; border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.legal-body p, .legal-body li { color: var(--ink); }
.legal-body ul { list-style: none; margin: 0 0 1.1em; }
.legal-body ul li { position: relative; padding: 4px 0 4px 24px; }
.legal-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 6px; height: 6px; border: 1px solid var(--champagne); transform: rotate(45deg);
}
.legal-body a { color: var(--charcoal); border-bottom: 1px solid var(--gold-line); transition: color 0.3s; }
.legal-body a:hover { color: var(--champagne); }
.legal-intro { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; }
.legal-contacts li::before { display: none; }
.legal-body .legal-contacts li { padding-left: 0; }
.cookie-table { border: 1px solid var(--gold-line); margin: 0 0 1.4em; }
.cookie-row { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row p { margin: 0; }
.legal-body .cookie-cat { font-weight: 700; color: var(--charcoal); margin-bottom: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.cookie-cat span { font-weight: 400; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne); }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ---------- Cookie settings dialog ---------- */
.cookie-dialog {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(10, 14, 24, 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.cookie-dialog.is-open { opacity: 1; visibility: visible; }
.cookie-panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--gold-line); outline: 1px solid var(--gold-line); outline-offset: -8px;
  padding: 44px 40px 36px;
}
.cookie-panel .title { font-size: 1.35rem; color: var(--charcoal); margin-bottom: 10px; }
.cookie-panel > p { font-size: 0.98rem; color: var(--muted); }
.cookie-panel > p a { color: var(--charcoal); border-bottom: 1px solid var(--gold-line); }
.cookie-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; background: none; font-family: var(--serif); font-size: 1.5rem; color: var(--charcoal); cursor: pointer;
}
.cookie-option { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cookie-option:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-option strong { display: block; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 4px; }
.cookie-option small { display: block; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.cookie-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; margin-top: 2px; }
.cookie-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cookie-switch span { position: absolute; inset: 0; border: 1px solid rgba(31, 32, 38, 0.3); border-radius: 13px; background: var(--ivory-2); transition: background 0.3s, border-color 0.3s; }
.cookie-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.3s var(--ease); }
.cookie-switch input:checked + span { background: var(--night); border-color: var(--night); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + span { opacity: 0.55; }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--champagne); outline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cookie-actions .btn { flex: 1 1 140px; min-height: 48px; padding: 0 16px; font-size: 0.72rem; }
.cookie-saved { margin: 14px 0 0; font-size: 0.9rem; font-style: italic; color: var(--champagne); min-height: 1.4em; }
@media (max-width: 480px) { .cookie-panel { padding: 40px 22px 28px; } }
