/* ============================================
   C3LLAR — mini-site template
   The accent (--sea and its shades) is set from site.config.js by the inline script in <head>;
   the values below are only the fallback.
   ============================================ */

@font-face {
  font-family: 'Albertus';
  src: url('fonts/AlbertusMTStd-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plantin';
  src: url('fonts/Plantin Std Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f4efe6;
  --cream-2: #e9e2d5;
  --plate: #d6cdbd;
  --plate-text: #7c7262;
  --ink: #151a20;
  --ink-soft: #4d5259;
  --ink-faint: #858a90;
  --line: rgba(21, 26, 32, 0.12);
  --sea: #004488;
  --sea-deep: #002f5f;
  --sea-light: #1a5fa8;
  --sea-shadow: rgba(0, 68, 136, 0.6);
  --gold: #bd9a62;
  --night: #0e1b2a;
  --night-2: #172737;
  --white: #f7f6f2;
  --font-display: 'Albertus', Georgia, serif;
  --font-body: 'Plantin', Georgia, serif;
  --font-label: 'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--sea); color: var(--white); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container.narrow { max-width: 760px; }
.centered { text-align: center; }
.centered .section-body { margin-left: auto; margin-right: auto; }

/* ============================================
   Preloader
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.preloader.done { opacity: 0; }
.preloader.done .preloader-logo-fill { opacity: 0; transition: opacity 0.8s ease-in; }
.preloader.done .preloader-logo-img { filter: blur(0); }

.preloader-inner {
  position: absolute;
  inset: 0;
  animation: preloaderFadeIn 0.8s ease-out forwards;
}

.preloader-logo-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: url('assets/Logo_C3llar-2.svg');
  mask-image: url('assets/Logo_C3llar-2.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  will-change: transform, opacity;
}

.preloader-logo-img {
  position: absolute;
  inset: 0;
  background-color: var(--sea);
  background-image: url('assets/hero-poster.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
}

.nav.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 var(--line);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 18px; width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.35)); transition: filter 0.4s; }
.nav.scrolled .nav-logo-img, .nav-toggle.active ~ .nav-logo .nav-logo-img { filter: brightness(0); }
.nav.menu-open .nav-logo-img { filter: brightness(0); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; position: relative; }

.nav-links a {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s;
  white-space: nowrap;
}

.nav.scrolled .nav-links a { color: var(--ink-soft); text-shadow: none; }
.nav-links a:hover, .nav.scrolled .nav-links a:hover { color: var(--sea); }
.nav-links a.active { color: var(--sea-light); }
.nav.scrolled .nav-links a.active { color: var(--sea); }

.nav-cta {
  border: 1px solid rgba(246, 247, 247, 0.7);
  padding: 0.5rem 1.2rem;
  transition: all 0.3s !important;
}

.nav.scrolled .nav-cta { border-color: var(--sea); color: var(--sea) !important; }
.nav-cta:hover, .nav.scrolled .nav-cta:hover { background: var(--sea); border-color: var(--sea); color: var(--white) !important; }

.nav-links::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  height: 1px;
  width: var(--ind-w, 0px);
  background: var(--sea);
  transform: translateX(var(--ind-x, 0px));
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), width 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.nav-links.has-active::after { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: all 0.3s;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.nav.scrolled .nav-toggle span, .nav-toggle.active span { background: var(--ink); box-shadow: none; }

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: 100%; }
.nav-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }

.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink);
  transition: color 0.3s;
}

.mobile-menu-links a:hover { color: var(--sea); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--plate);
  padding-top: 5.5rem; /* keeps the centred block clear of the fixed nav */
}

.hero-bg {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  transform: scale(1.12);
  transform-origin: center center;
  will-change: transform;
}

.hero-content { will-change: transform, opacity; }

/* Dark veil for the centred title, cream fade at the very bottom to meet the page */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(14, 18, 24,0.45) 0%, rgba(14, 18, 24,0) 100%),
    linear-gradient(to bottom, rgba(14, 18, 24,0.45) 0%, rgba(14, 18, 24,0.15) 30%, rgba(14, 18, 24,0.15) 70%, rgba(14, 18, 24,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 1400px;
}

.hero-invite {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(246, 247, 247, 0.85);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out 0.3s, transform 1s ease-out 0.3s;
  display: none;
}

.hero-invite.active { display: block; }
.hero-content.visible .hero-invite { opacity: 1; transform: translateY(0); }

.hero-eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 247, 247, 0.9);
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease-out 0.4s, transform 1s ease-out 0.4s;
}

.hero-dot { margin: 0 0.35em; color: rgba(246, 247, 247, 0.5); }
.hero-content.visible .hero-eyebrow { opacity: 1; transform: translateY(0); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  /* three short lines (one <br> between each): the size follows the width but is also capped by the
     viewport height, so short desktop screens (1280×720, 1366×768) never push the title under the nav */
  font-size: clamp(3.4rem, min(12vw, 17vh), 11.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.45), 0 1px 3px rgba(0,0,0,0.25);
  margin: 0 auto 1.6rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

.hero-content.visible .hero-title { opacity: 1; transform: translateY(0); }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  color: rgba(246, 247, 247, 0.9);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease-out 1.1s, transform 1s ease-out 1.1s;
}

.hero-content.visible .hero-subtitle { opacity: 1; transform: translateY(0); }

.scroll-indicator {
  position: absolute;
  z-index: 7;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.6s ease-out 1.4s;
}

.scroll-indicator.visible { opacity: 1; }

.scroll-indicator span {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(246, 247, 247, 0.7);
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(246, 247, 247,0.9), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Sections — common
   ============================================ */

.section { padding: 7rem 0; position: relative; }

.section-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-tag.revealed { opacity: 1; transform: translateY(0); }
.section-tag.light { color: rgba(246, 247, 247, 0.7); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 2rem;
}

.section-title.light { color: var(--white); }

.section-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  max-width: 640px;
}

.section-body.light { color: rgba(246, 247, 247, 0.82); }

.section-body.highlight {
  color: var(--sea);
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ============================================
   The Journey (scrolls over the pinned hero)
   ============================================ */

.journey { padding-bottom: 0; }

.journey .container { position: relative; }

.facts {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.facts-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  text-align: center;
}

.fact { display: flex; flex-direction: column; gap: 0.6rem; flex: 0 0 auto; }
.fact-value { white-space: nowrap; }

.fact-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.fact-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================
   Plates — image or typographic placeholder
   ============================================ */

.plate {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--plate);
}

.plate-wide { aspect-ratio: 16 / 9; }

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plate-empty img { display: none; }

.plate-empty::after {
  content: attr(data-label);
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--plate-text);
}

.plate-dark { background: var(--sea-deep); }
.plate-dark.plate-empty::after { color: rgba(246, 247, 247, 0.45); }

/* ============================================
   The Places — full-screen scroll stack
   ============================================ */

.places { position: relative; background: var(--ink); }

/* One viewport of scroll per slide (intro + 4 places), driven by JS */
.places-track { position: relative; height: calc(4.7 * 134vh + 100vh); } /* 4 slides + 0.7 end hold, ~134vh of scroll per slide */

.places-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.places-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 1.5rem 0; /* sit a touch lower, clear of the tower in the top-right of the sky */
  background: var(--ink);
  overflow: hidden;
  will-change: opacity, transform;
}

/* Places intro plate: keep the subject in the middle of the frame, the title sits over it */
.places-intro-bg {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center 50%;
  transform: scale(1.06);
  will-change: transform;
}

.places-intro-copy { position: relative; z-index: 1; will-change: transform; }

.places-intro-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 50%, rgba(20, 30, 50, 0.28) 0%, rgba(20, 30, 50, 0) 100%);
}

/* darkens the sky to black as the first place rises (driven by scroll) */
.places-intro-dark {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}


.places-intro .section-tag { margin-bottom: 1.6rem; }

.places-intro-title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.6rem, 8vw, 7.5rem);
  line-height: 0.98;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.6rem;
  max-width: 11ch;
}

.places-intro-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: rgba(246, 247, 247, 0.9);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.places-intro > .section-tag.light { color: rgba(246, 247, 247, 0.85); text-shadow: 0 2px 16px rgba(0,0,0,0.4); }

/* Curtain wipe done with two opposite transforms (mask up, content down): pure compositor work */
.place-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translate3d(0, 100%, 0);
  will-change: transform;
  background: var(--ink);
  backface-visibility: hidden;
}

.place-inner {
  position: absolute;
  inset: 0;
  transform: translate3d(0, -100%, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.place-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
}

/* dims the slide underneath while the next one covers it (opacity instead of a filter) */
.place-dim {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.place-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 18, 24,0.35) 0%, rgba(14, 18, 24,0) 25%),
    linear-gradient(to top, rgba(14, 18, 24,0.82) 0%, rgba(14, 18, 24,0.45) 32%, rgba(14, 18, 24,0) 60%);
  pointer-events: none;
}

.place-text {
  position: absolute;
  left: max(2.5rem, 5vw);
  right: max(2.5rem, 5vw);
  bottom: clamp(3rem, 9vh, 6rem);
  color: var(--white);
  will-change: opacity, transform;
}

.place-town {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(246, 247, 247, 0.72);
  margin-bottom: 1rem;
}

.place-name {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.4rem, 6.6vw, 6.4rem);
  line-height: 0.98;
  color: var(--white);
  margin-bottom: 1.2rem;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.place-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(246, 247, 247, 0.86);
  max-width: 540px;
}

.places-ui {
  position: absolute;
  right: max(2.5rem, 5vw);
  bottom: clamp(3rem, 9vh, 6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.places-ui.on { opacity: 1; }

.places-counter {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(246, 247, 247, 0.9);
}

.places-counter-sep { margin: 0 0.35em; opacity: 0.5; }

.places-progress {
  width: 120px;
  height: 1px;
  background: rgba(246, 247, 247, 0.25);
  position: relative;
  overflow: hidden;
}

.places-progress span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--white);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ============================================
   Programme — Day by day
   ============================================ */

.programme .centered .section-title { margin-bottom: 3rem; }

.days { border-top: 1px solid var(--line); }

.day {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}

.day-side { position: sticky; top: 6rem; align-self: start; }

.day-num {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

/* The date is the anchor of each day: big Albertus caps in sea blue */
.day-date {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--sea);
  line-height: 0.85;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.day-dd { font-size: clamp(5rem, 9vw, 8.5rem); letter-spacing: -0.01em; }
/* the month is scaled by script to exactly the width of the number above it */
.day-mm { font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: 0.04em; margin-top: -0.7rem; line-height: 1; white-space: nowrap; }

/* the day's lead line, above the paragraphs */
.day-lead {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.day-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.day-sub { font-size: 1.25rem; color: var(--sea); }

.day-main .plate { margin-bottom: 1.8rem; }

/* Day 5 — the Grand Finale: a full-bleed plum hero inside the programme (its own colour, #753d58) */
.day-final {
  --finale: #753d58;
  --finale-deep: #4f2839;
  position: relative;
  background: var(--finale);
  color: var(--white);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 92vh;
}

.final-figure {
  aspect-ratio: auto;
  height: 100%;
  min-height: 92vh;
  margin: 0;
  background: var(--finale-deep);
}

.final-figure img { object-position: center 25%; }

.final-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(2rem, 6vw, 6rem) 6rem clamp(2.5rem, 5vw, 5rem);
}


.final-title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(3.4rem, 7.5vw, 7.5rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 1.4rem;
}


.day-final .day-desc { color: rgba(246, 247, 247, 0.84); max-width: 520px; }
.day-final .day-num { color: rgba(246, 247, 247, 0.6); }
.day-final .day-date { color: var(--white); border-bottom-color: rgba(246, 247, 247, 0.22); max-width: 260px; margin-bottom: 1.6rem; }
.day-final .day-sub { color: rgba(246, 247, 247, 0.85); margin-bottom: 1.8rem; }
.final-title { margin-bottom: 0.9rem; }

.day-desc { font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 720px; }
.day-desc:last-child { margin-bottom: 0; }

/* The Winemakers: the twelve houses, as a simple grid of cards */
.winemaker-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.winemaker {
  padding: 1.6rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.winemaker-domaine {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.winemaker-name { font-size: 1.05rem; line-height: 1.5; color: var(--ink-soft); margin: 0 0 0.5rem; }
.winemaker-village {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0;
}
@media (max-width: 1024px) { .winemaker-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .winemaker-grid { grid-template-columns: repeat(2, 1fr); } .winemaker { padding: 1.2rem 1rem 1.1rem; } }
@media (max-width: 480px) { .winemaker-grid { grid-template-columns: 1fr; } }

/* Programme intro: the two packages, under the section title */
.programme-intro {
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
  margin: -1.6rem auto 3rem;
}
.programme-intro strong { font-weight: 400; color: var(--sea); }

/* "Full Week starts" / "Long Weekend starts" under the date */
.day-flag {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sea);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.4em 0.9em 0.32em;
  margin: -0.2rem 0 1.1rem;
}

/* Each day is a list of events: title, optional tag, one line of detail */
.day-items { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.day-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.day-item:first-child { padding-top: 0.2rem; border-top: 0; }
.day-item:last-child { padding-bottom: 0.2rem; }

.day-item-title {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.day-item-tag {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sea);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.38em 0.8em 0.3em;
  margin-left: 0.6em;
  position: relative;
  top: -0.2em;
  white-space: nowrap;
}
.day-item-tag-opt { color: var(--ink-faint); }

.day-item-desc { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.day-item-fine { font-size: 0.9rem; line-height: 1.6; color: var(--ink-faint); margin: 0.5rem 0 0; }

/* The dinner options: one per line, "or" in front of each alternative */
.day-choice { list-style: none; margin: 0.7rem 0 0; padding: 0; }
.day-choice li { font-size: 1.05rem; line-height: 1.6; color: var(--ink); padding: 0.25rem 0; }
.day-or {
  display: inline-block;
  min-width: 1.6em;
  font-style: italic;
  color: var(--ink-faint);
}

.day-note {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--sea);
  margin: 1.6rem 0 0;
  max-width: 720px;
}

/* the same list on the plum Grand Finale block */
.day-final .day-items { max-width: 560px; }
.day-final .day-item { border-top-color: rgba(246, 247, 247, 0.22); }
.day-final .day-item-title { color: var(--white); }
.day-final .day-item-desc { color: rgba(246, 247, 247, 0.84); }
.day-final .day-item-tag { color: rgba(246, 247, 247, 0.85); }


/* ============================================
   The Houses — the domaines, the guests of honour, the private jet: header, then photo beside story and list
   ============================================ */

.house {
  --h-text: var(--white);
  --h-soft: rgba(246, 247, 247, 0.74);
  --h-faint: rgba(246, 247, 247, 0.55);
  --h-line: rgba(246, 247, 247, 0.14);
  --h-accent: var(--gold);
  --h-plate: var(--night-2);
  --h-plate-text: rgba(246, 247, 247, 0.45);
  overflow: hidden;
  color: var(--h-text);
}
.house-dark { background: var(--night); }
.house-deep { background: #0c1620; --h-plate: #16222e; } /* add to a .house-dark block for a deeper night */
.house-light {
  --h-text: var(--ink);
  --h-soft: var(--ink-soft);
  --h-faint: var(--ink-faint);
  --h-line: var(--line);
  --h-accent: var(--sea);
  --h-plate: var(--plate);
  --h-plate-text: var(--plate-text);
  background: var(--cream-2);
}
.house-intro { margin-bottom: 4rem; max-width: 720px; }

.house-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.house-reverse .house-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.house-reverse .house-media-sticky { order: 2; }
.house-reverse .house-body { order: 1; }

/* estate photo, pinned while the story scrolls beside it */
.house-media { position: relative; }
.house-media-sticky { position: sticky; top: 6rem; }
.house .plate { background: var(--h-plate); }
.house .plate-empty::after { color: var(--h-plate-text); }
.house-estate { aspect-ratio: 4 / 5; }
.house-estate img { object-position: center; }


.house-num {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--h-accent);
  margin-bottom: 1.2rem;
}
.house-num-sep { margin: 0 0.4em; opacity: 0.5; }

.house-lead {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  color: var(--h-text);
  margin-bottom: 1.6rem;
}

.house-desc { font-size: 1.05rem; line-height: 1.75; color: var(--h-soft); margin-bottom: 1.1rem; max-width: 640px; }

/* the wines */
.house-wines { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--h-line); }
/* optional: add .wines-hidden on a .house-wines block to keep only the dated "when" line */
.house-wines.wines-hidden .house-wines-label, .house-wines.wines-hidden .house-wine-list { display: none; }
.house-wines.wines-hidden .house-when { margin-top: 0; }

.house-wines-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--h-faint);
  margin-bottom: 1.2rem;
}

.house-wine-list { list-style: none; }
.house-wine-list li {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 0.2rem 1.6rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--h-line);
}
.house-wine-list li:last-child { border-bottom: none; }

.house-wine-name {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--h-text);
}
.house-wine-note { font-size: 0.95rem; line-height: 1.6; color: var(--h-soft); }

.house-when {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--h-accent);
  margin-top: 1.4rem;
}
.house-when-sep { margin: 0 0.5em; opacity: 0.5; }

/* full-bleed photo behind a house (the jet): the story sits straight over the aircraft, under a dark veil, in larger type */
.house-bg { position: relative; }
.house-bg > .container { position: relative; z-index: 2; }
.house-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  z-index: 0;
  pointer-events: none;
}
.house-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(14, 27, 42, 0.62) 0%,
    rgba(14, 27, 42, 0.42) 35%,
    rgba(14, 27, 42, 0.55) 70%,
    rgba(14, 27, 42, 0.9) 100%);
}
.house-bg .house-intro { font-size: 1.25rem; line-height: 1.7; max-width: 800px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.house-bg .house-grid { grid-template-columns: 1fr; }
.house-bg .house-body { max-width: 900px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.house-bg .house-num { font-size: 0.72rem; }
.house-bg .house-lead { font-size: clamp(2.2rem, 3.8vw, 3.6rem); margin-bottom: 2rem; }
.house-bg .house-desc { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.7; max-width: 820px; color: rgba(246, 247, 247, 0.9); }
.house-bg .house-wines { margin-top: 3.2rem; }
.house-bg .house-wine-list li { grid-template-columns: minmax(0, 260px) 1fr; padding: 1.1rem 0; }
.house-bg .house-wine-name { font-size: 1.45rem; }
.house-bg .house-wine-note { font-size: 1.15rem; color: rgba(246, 247, 247, 0.85); }
.house-bg .house-when { font-size: 0.7rem; margin-top: 1.8rem; }

@media (max-width: 1024px) {
  .house-grid, .house-reverse .house-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .house-reverse .house-media-sticky { order: 0; }
  .house-media { max-width: 440px; }
}

@media (max-width: 768px) {
  .house-intro { margin-bottom: 2.5rem; }
  .house-bg-img { object-position: 60% 40%; }
  .house-bg .house-intro { font-size: 1.1rem; }
  .house-bg .house-wine-name { font-size: 1.3rem; }
  .house-bg .house-wine-note { font-size: 1.05rem; }
  .house-media { max-width: none; }
  .house-wine-list li { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ============================================
   Investment
   ============================================ */

.investment { padding-bottom: 0; }
.investment-intro { margin-bottom: 3rem; }

.tiers {
  display: grid;
  grid-template-columns: repeat(var(--tiers, 2), 1fr); /* --tiers = number of formulas, set by script.js */
  max-width: calc(380px * var(--tiers, 2));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tier { padding: 2.6rem 1.5rem; }
.tier + .tier { border-left: 1px solid var(--line); }

.tier-name {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.tier-price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--sea);
  margin-bottom: 0.7rem;
}

.tier-note { font-size: 0.95rem; color: var(--ink-soft); }
.tier-dates {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
  color: var(--ink);
  margin: -0.3rem 0 1.4rem;
}
.tier-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.6rem;
}

/* second rate of a formula that prices a party on its own (see partyPrice in site.config.js) */
.tier-label-party { margin-top: 1.4rem; }

.tier-early {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 0.5rem;
}

.tier-regular {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin: 0.2rem 0 0.6rem;
}

.tier-regular-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 0.5rem;
  vertical-align: 0.25em;
}

.tiers-terms {
  max-width: 560px;
  margin: 1.8rem auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: none; border-top: 1px solid var(--line); }
  .tier { padding: 2rem 1rem; }
}

/* ============================================
   Inline text link (Investment copy)
   ============================================ */

/* ============================================
   Where to stay — three hotel cards, rates not included in the package
   ============================================ */

.hotels { background: var(--cream); border-bottom: 1px solid var(--line); }
.hotels-intro { margin-bottom: 1.2rem; max-width: 720px; }
.hotels-fine {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.4rem auto 3.5rem;
  max-width: 720px;
  line-height: 1.9;
}

.hotel-grid {
  display: grid;
  grid-template-columns: repeat(var(--hotels, 3), 1fr); /* --hotels = number of cards (max 3 per row), set by script.js */
  max-width: calc(400px * var(--hotels, 3));
  margin: 0 auto;
  gap: 2rem;
}

.hotel { background: var(--white); border: 1px solid rgba(14, 18, 24, 0.08); display: flex; flex-direction: column; }
.hotel:nth-child(2) { transition-delay: 0.1s; }
.hotel:nth-child(3) { transition-delay: 0.2s; }

.hotel-photo { aspect-ratio: 4 / 3; }
.hotel:hover .hotel-photo img { transform: scale(1.04); }

.hotel-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

.hotel-group {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}

.hotel-name {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* every available room, with the total rate for the stay */
.hotel-rooms { list-style: none; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.hotel-room-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.hotel-room-row:last-child { border-bottom: none; }
.hotel-room-name { font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); }
.hotel-room-price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sea);
  white-space: nowrap;
}
.hotel-rate-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.9rem; }

/* same footprint for the three cards: two rooms showing, the rest behind a toggle; an open card grows on its own */
.hotel-room-extra { display: none; }
.hotel.open .hotel-room-extra { display: flex; }
.hotel-grid.has-open { align-items: start; }
.hotel-more {
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0 0 0.15rem;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sea);
  cursor: pointer;
  transition: opacity 0.3s;
}
.hotel-more:hover { opacity: 0.7; }

@media (max-width: 1024px) {
  .hotel-grid { gap: 1.4rem; }
  .hotel-body { padding: 1.3rem 1.3rem 1.5rem; }
}

@media (max-width: 768px) {
  .hotels-fine { margin-bottom: 2.5rem; }
  .hotel-grid { grid-template-columns: 1fr; gap: 1.4rem; max-width: 460px; margin: 0 auto; }
  .hotel-photo { aspect-ratio: 3 / 2; }
}

.text-link { border-bottom: 1px solid currentColor; color: var(--sea); transition: opacity 0.3s; }
.text-link:hover { opacity: 0.7; }

/* ============================================
   RSVP
   ============================================ */

.rsvp { padding: 7rem 0 8rem; }
.rsvp .container { max-width: 720px; }
.rsvp-intro { margin-bottom: 3rem; }

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }

.form-group label {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.label-optional { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(14, 18, 24, 0.25);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.7rem 0;
  transition: border-color 0.3s;
  outline: none;
  resize: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--sea); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(14, 18, 24, 0.32); }

/* Places picker — segmented controls with a sliding pill (rate, guests, jet, charity night), big live total */
.picker {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: 0.6rem;
  padding: 1.6rem 1.8rem;
  background: var(--white);
  border: 1px solid rgba(14, 18, 24, 0.1);
  box-shadow: 0 18px 50px -30px rgba(14, 18, 24, 0.35);
}

/* on large screens the block steps out of the form column by 5rem on each side */
@media (min-width: 1024px) {
  .picker { width: calc(100% + 10rem); margin-left: -5rem; }
  .picker-note { width: calc(100% + 10rem); margin-left: -5rem; text-align: center; }
}

.picker-controls { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
/* step label above its segmented control, so the pills get the full width of the column */
.picker-row { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.picker-row-label { white-space: nowrap; }
.picker-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.55rem;
  border: 1px solid rgba(14, 18, 24, 0.25);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  vertical-align: middle;
}
.picker-row-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.picker-row-opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; margin-left: 0.3rem; }

/* the hotel select, styled as a pill to sit with the segmented controls */
.picker-select { position: relative; }
.picker-select select {
  width: 100%;
  height: calc(2.6rem + 8px);
  padding: 0 2.8rem 0 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--cream-2);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.picker-select select:focus-visible { outline: 1px solid var(--sea); outline-offset: 2px; }
.picker-select select.has-hotel { box-shadow: inset 0 0 0 1px var(--sea); }
.picker-select::after {
  content: '';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* optional add-ons (private jet, charity night), one line each under the package total */
.picker-total-addon { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; max-width: 11.5rem; line-height: 1.45; }
.picker-total-addon:empty { display: none; }

.picker-seg {
  --n: 3;
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  padding: 4px;
  background: var(--cream-2);
  border-radius: 999px;
  isolation: isolate;
}

/* the pill slides behind the chosen number */
.picker-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n));
  transform: translateX(calc(var(--i) * 100%));
  background: var(--sea);
  border-radius: 999px;
  box-shadow: 0 6px 18px -6px var(--sea-shadow);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform; /* slides on the compositor, no repaint per frame */
  z-index: 0;
}

/* reset the form-label styling inherited by these <label>s (the 8px bottom margin made the row, and the pill,
   taller than the text, which then sat 4px too high) */
.form-group .picker-opt, .picker-opt { position: relative; z-index: 1; display: block; margin: 0; padding: 0; cursor: pointer; letter-spacing: 0; text-transform: none; font-size: 1rem; line-height: 1; }
.picker-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.picker-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* Albertus caps have almost no descender while the font reserves one: nudge the ink down to the optical centre,
     and offset the trailing letter-spacing */
  padding: 0.22em 0 0 0.04em;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.3s;
  user-select: none;
}
.picker-opt:hover span { color: var(--ink); }
.picker-opt input:checked + span { color: var(--white); }
.picker-opt input:focus-visible + span { outline: 1px solid var(--sea); outline-offset: 2px; }

/* fixed width: the amount counts up while the pill slides, and a column that resized with the digits made the
   whole control shimmer during the animation */
.picker-total { display: flex; flex-direction: column; align-items: flex-end; text-align: right; width: 11.5rem; flex: 0 0 auto; }
.picker-total-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
  white-space: nowrap;
}
.picker-x { margin: 0 0.3em; opacity: 0.6; }
.picker-total-tier { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.35rem; }
.picker-total-price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sea);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.picker-note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--ink-faint); }

@media (max-width: 640px) {
  /* mobile: the segmented control on top, then a centred total under a hairline */
  .picker { grid-template-columns: 1fr; gap: 1.1rem; padding: 1rem 1rem 1.2rem; }
  .picker-opt span { height: 2.5rem; font-size: 1rem; }
  .picker-total {
    align-items: center;
    text-align: center;
    width: 100%;
    flex: none;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
  }
  .picker-total-label { margin-bottom: 0.45rem; }
  .picker-total-price { font-size: 2.3rem; }
  .picker-total-addon { max-width: none; text-align: center; }
  .picker-note { text-align: center; }
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-soft) !important;
  line-height: 1.5 !important;
}

.checkbox-label input[type="checkbox"] { width: auto; margin-top: 0.25rem; accent-color: var(--sea); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--sea);
  border: 1px solid var(--sea);
  color: var(--white);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0.6rem auto 0;
}

.btn-submit:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn-submit:disabled { opacity: 0.6; cursor: default; }
.btn-submit svg { transition: transform 0.3s; }
.btn-submit:hover svg { transform: translateX(4px); }

.form-success { display: none; text-align: center; padding: 3rem 0; }
.form-success.visible { display: block; }

.success-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--sea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--sea);
  margin: 0 auto 2rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1rem;
}

.form-success p { color: var(--ink-soft); font-size: 1rem; }
.success-contact { margin-top: 1.5rem; }
.success-contact a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }

.form-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ============================================
   Footer
   ============================================ */

.footer { padding: 3.5rem 0; border-top: 1px solid var(--line); }

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand { display: flex; align-items: center; }
.footer-logo-img { height: 16px; width: auto; filter: brightness(0); opacity: 0.85; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.85rem; color: var(--ink-soft); transition: color 0.3s; }
.footer-links a:hover { color: var(--sea); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--ink-faint);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================
   Scroll reveal
   ============================================ */

.reveal-text {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.revealed { opacity: 1; transform: translateY(0); }

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed { opacity: 1; transform: translateY(0); }


@media (prefers-reduced-motion: reduce) {
  .reveal-text, .reveal-up, .section-tag { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .section { padding: 5.5rem 0; }
  .day { grid-template-columns: 200px 1fr; gap: 2.5rem; }
  .day-final { grid-template-columns: 1fr; min-height: 0; }
  .final-figure { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .final-body { padding: 4rem 2.5rem 4.5rem; }
  .facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 2rem; }
}

/* Eight links in the bar: tighten them before the menu collapses at 940px */
@media (max-width: 1200px) {
  .nav { padding: 1.3rem 1.4rem; }
  .nav-links { gap: 1rem; margin-left: 1.4rem; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.12em; }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 4.5rem 0; }
  .hero-eyebrow { font-size: 0.6rem; letter-spacing: 0.22em; line-height: 2; margin-bottom: 1.4rem; }
  .hero-title { font-size: clamp(2.8rem, min(13.5vw, 9vh), 4.6rem); }
  .hero-shade {
    background:
      radial-gradient(ellipse 90% 55% at 50% 50%, rgba(14, 18, 24,0.5) 0%, rgba(14, 18, 24,0) 100%),
      linear-gradient(to bottom, rgba(14, 18, 24,0.5) 0%, rgba(14, 18, 24,0.2) 30%, rgba(14, 18, 24,0.2) 70%, rgba(14, 18, 24,0.55) 100%);
  }
  .facts { margin-top: 3.5rem; }
  .facts-grid { gap: 1.8rem 1rem; padding-top: 2rem; padding-bottom: 2rem; }
  .plate { aspect-ratio: 4 / 3; }
  .day { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.8rem 0; }
  /* mobile: a simple centred header per day — label, the date on one line, a short rule, the title */
  .day-side { position: static; text-align: center; }
  .day-num { margin-bottom: 0.7rem; }
  .day-date {
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 0.4em;
    line-height: 1;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
  }
  /* a short centred rule between the date and the title */
  .day-title::before, .final-title::before {
    content: '';
    display: block;
    width: 2.4rem;
    height: 1px;
    margin: 0 auto 1rem;
    background: var(--sea);
    opacity: 0.45;
  }
  .final-title::before { background: var(--white); opacity: 0.5; margin-bottom: 1.2rem; }
  .day-title { text-align: center; }
  .day-final { grid-template-columns: 1fr; min-height: 0; }
  .final-body { text-align: center; }
  .day-final .day-date { max-width: none; margin: 0 auto 1rem; }
  .day-final .final-title { margin-bottom: 0.6rem; }
  .day-final .day-sub { margin-bottom: 1.6rem; }
  .day-final .day-desc { text-align: left; margin-left: auto; margin-right: auto; }
  .final-figure { min-height: 0; height: auto; aspect-ratio: 4 / 5; }
  .final-body { padding: 3rem 1.5rem 3.5rem; }
  .day-dd { font-size: 2.4rem; letter-spacing: 0.01em; }
  .day-mm { font-size: 2.4rem; margin-top: 0; }
  .day-lead { font-size: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; justify-content: center; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
  .facts-grid { grid-template-columns: 1fr; }
}

/* Journey padding must survive the responsive .section overrides above */
.section.journey { padding: 6rem 0 0; }
@media (max-width: 768px) {
  .section.journey { padding-top: 4.5rem; }
}

/* ============================================
   Albertus rule — always caps, Light, slightly tight tracking
   ============================================ */

.hero-title, .section-title, .place-name, .places-intro-title, .final-title, .day-title, .day-lead, .day-item-title, .winemaker-domaine, .house-lead, .house-wine-name,
.fact-value, .tier-dates, .mobile-menu-links a, .form-success h3 {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Caps run wider: trim the sizes set above */
.section-title { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.12; }
.day-title { font-size: 1rem; letter-spacing: 0.1em; line-height: 1.2; color: var(--ink-soft); margin-bottom: 0.4rem; }
.fact-value { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.mobile-menu-links a { font-size: 1.35rem; }
.form-success h3 { font-size: 1.6rem; }

@media (max-width: 480px) {
  .section-title { font-size: 1.7rem; }
}

/* Places stack — mobile */
@media (max-width: 768px) {
  .place-text { left: 1.5rem; right: 1.5rem; bottom: 5rem; }
  .place-name { font-size: clamp(2rem, 9.5vw, 3rem); max-width: none; }
  .place-desc { font-size: 0.98rem; max-width: none; }
  .places-ui { right: 1.5rem; bottom: 1.6rem; flex-direction: row; align-items: center; gap: 0.8rem; }
  .places-progress { width: 70px; }
  .places-counter { font-size: 0.95rem; }
  .place-shade {
    background:
      linear-gradient(to bottom, rgba(14, 18, 24,0.35) 0%, rgba(14, 18, 24,0) 25%),
      linear-gradient(to top, rgba(14, 18, 24,0.9) 0%, rgba(14, 18, 24,0.6) 40%, rgba(14, 18, 24,0) 70%);
  }
}

/* Facts bar — mobile sizes (after the Albertus block so they win) */
@media (max-width: 768px) {
  .fact-value { font-size: 0.95rem; white-space: normal; }
}

/* ============================================
   Template helpers
   ============================================ */
[hidden] { display: none !important; }

/* three formulas or more stack earlier than two */
@media (max-width: 860px) {
  .tiers:not([data-count="1"]):not([data-count="2"]) { grid-template-columns: 1fr; max-width: 420px; }
  .tiers:not([data-count="1"]):not([data-count="2"]) .tier + .tier { border-left: none; border-top: 1px solid var(--line); }
}

/* a reservation with nothing to choose (one formula, one seat, no extras): the total stands alone, centred */
.picker.picker-solo { grid-template-columns: 1fr; justify-items: center; width: 100%; margin-left: 0; }
.picker.picker-solo .picker-total { align-items: center; text-align: center; width: auto; }


/* ============================================
   Monaco GP — racing red (specific to this site)
   The red itself is `accent` in site.config.js (--sea and its shades); this block decides where it floods.
   ============================================ */

:root {
  --night: #17181a;      /* asphalt, in place of the template's navy */
  --night-2: #232427;
}

/* Hero: the teaser loop has bright scenes (white jackets, sky): a slightly deeper veil than the template's
   keeps the menu, the dates and the title readable on every cut */
.hero-shade {
  background:
    radial-gradient(ellipse 76% 64% at 50% 48%, rgba(14, 18, 24, 0.6) 0%, rgba(14, 18, 24, 0) 100%),
    linear-gradient(to bottom, rgba(14, 18, 24, 0.66) 0%, rgba(14, 18, 24, 0.24) 30%, rgba(14, 18, 24, 0.2) 70%, rgba(14, 18, 24, 0.5) 100%);
}
@media (max-width: 768px) {
  .hero-shade {
    background:
      radial-gradient(ellipse 100% 58% at 50% 50%, rgba(14, 18, 24, 0.62) 0%, rgba(14, 18, 24, 0) 100%),
      linear-gradient(to bottom, rgba(14, 18, 24, 0.66) 0%, rgba(14, 18, 24, 0.26) 30%, rgba(14, 18, 24, 0.22) 70%, rgba(14, 18, 24, 0.55) 100%);
  }
}

/* Hero: the picture sinks into red, and a kerb closes it */
.hero-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--sea) 86%, transparent) 0%,
    color-mix(in srgb, var(--sea) 38%, transparent) 26%,
    color-mix(in srgb, var(--sea) 0%, transparent) 58%);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  z-index: 3;
  background: repeating-linear-gradient(90deg, var(--white) 0 44px, var(--sea) 44px 88px);
}
.scroll-indicator { bottom: calc(2.2rem + 14px); }

/* Hero: the request button, right under the title block */
.hero-cta {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 1.15rem 2.8rem;
  background: var(--white);   /* white, not red: it sits where the picture has already turned red */
  border: 1px solid var(--white);
  color: var(--sea);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease-out 1.3s, transform 1s ease-out 1.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}
.hero-content.visible .hero-cta { opacity: 1; transform: translateY(0); }
.hero-cta:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.hero-cta:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
@media (max-width: 768px) {
  .hero-cta { margin-top: 1.8rem; padding: 1.05rem 2.2rem; font-size: 0.68rem; letter-spacing: 0.22em; }
}
/* On screens too short to hold both, the button wins over the "Scroll" cue (it would sit on top of it) */
@media (min-width: 769px) and (max-height: 940px), (max-width: 768px) and (max-height: 760px) {
  .scroll-indicator { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta { transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
}

/* Menu: the request button is always the red one */
.nav-cta, .nav.scrolled .nav-cta { background: var(--sea); border-color: var(--sea); color: var(--white) !important; }
.nav-cta:hover, .nav.scrolled .nav-cta:hover { background: var(--sea-deep); border-color: var(--sea-deep); }

/* The facts: a full red band */
.facts { background: var(--sea); border-color: transparent; }
.fact-label { color: rgba(255, 255, 255, 0.88); }
.fact-value { color: var(--white); }

/* The closing line of the intro, set large */
.section-body.highlight { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; }

/* Race Day: the red block of the programme */
.day-final { --finale: var(--sea); --finale-deep: var(--sea-deep); }
.day-final .day-item { border-top-color: rgba(255, 255, 255, 0.3); }
.day-final .day-item-desc, .day-final .day-sub, .day-final .day-item-tag, .day-final .day-num { color: rgba(255, 255, 255, 0.92); }

/* Rates */
.tier-price { font-size: clamp(3rem, 5.6vw, 4.6rem); }

/* Yacht Hana — one single block after the last day of the programme: a full-bleed video loop with all the text
   over it (name, two columns of text, a row of three facts). No script. */
.section.programme { padding-bottom: 0; }   /* the block follows Day 05 directly */

.hana {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: var(--white);
  border-top: 6px solid var(--sea);
}
.hana-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hana-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 18, 24, 0.94) 0%, rgba(14, 18, 24, 0.8) 38%, rgba(14, 18, 24, 0.35) 70%, rgba(14, 18, 24, 0.15) 100%);
  pointer-events: none;
}
.hana-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 9rem max(2.5rem, 5vw) clamp(3rem, 8vh, 5rem);
}
.hana-kicker {
  display: inline-block;
  background: var(--sea);
  color: var(--white);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.6rem 1rem 0.55rem;
  margin-bottom: 1.6rem;
}
.hana-name {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(3.2rem, 11.5vw, 10.5rem);
  line-height: 0.94;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.hana-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.hana-lead {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.4;
  color: var(--white);
  max-width: 30ch;
}
.hana-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(246, 247, 247, 0.86);
  max-width: 34rem;
}
.hana-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3.2rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 247, 247, 0.28);
}
.hana-fact dt {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 247, 247, 0.72);
  margin-bottom: 0.55rem;
}
.hana-fact dd { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--white); }

@media (max-width: 860px) {
  .hana-shade { background: linear-gradient(to top, rgba(14, 18, 24, 0.9) 0%, rgba(14, 18, 24, 0.7) 55%, rgba(14, 18, 24, 0.42) 85%, rgba(14, 18, 24, 0.28) 100%); }
  .hana-inner { padding: 7rem 1.5rem 3.5rem; }
  .hana-cols { grid-template-columns: 1fr; gap: 1.3rem; }
  .hana-facts { grid-template-columns: 1fr; gap: 0; padding-top: 0; border-top: 0; }
  .hana-fact { padding: 1rem 0; border-top: 1px solid rgba(246, 247, 247, 0.24); }
}

/* The places stack now holds three places: its scroll length follows (the common rule counts four) */
.places-track { height: calc(3.7 * 134vh + 100vh); }

/* Places intro: the real picture is bright (sea, white buildings), so the veil behind the title is deeper than
   the template's, and "Monte-Carlo" stays on one line */
.places-intro-shade {
  background:
    radial-gradient(ellipse 62% 62% at 50% 54%, rgba(14, 18, 24, 0.5) 0%, rgba(14, 18, 24, 0) 100%),
    linear-gradient(to bottom, rgba(14, 18, 24, 0.3) 0%, rgba(14, 18, 24, 0.08) 30%, rgba(14, 18, 24, 0.3) 100%);
}
.places-intro-title { max-width: none; }

/* Menu bar: solid instead of frosted glass. A blur over the full-screen places stack has to be recomputed on
   every frame while the pictures move under it; at this opacity the blur was barely visible anyway. */
.nav.scrolled { background: rgba(245, 241, 234, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
