/* ==========================================================================
   Luxury Provence — one-page site
   Concept: a day at the farmhouse. The page moves from dawn to night and
   back to dawn; colours shift with the time of day as you scroll, and every
   photograph drifts slowly (Ken Burns).
   ========================================================================== */

/* ---------- Animatable theme tokens ---------- */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #f3ebe3; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #2e2521; }
@property --muted  { syntax: '<color>'; inherits: true; initial-value: #6e5e54; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #9a4e33; }
@property --line   { syntax: '<color>'; inherits: true; initial-value: rgba(46, 37, 33, .16); }

:root {
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Avenir Next", "Helvetica Neue", sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;

  --cream: #fbf4ea;
  --paper: #fbf6ee;
  --ink: #2b2420;
  --gold: #e3b27a;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.45, 0, .25, 1);

  transition: --bg 1.6s var(--ease-soft), --fg 1.6s var(--ease-soft), --muted 1.6s var(--ease-soft),
              --accent 1.6s var(--ease-soft), --line 1.6s var(--ease-soft);
}

/* Times of day */
html[data-tone="dawn"]      { --bg: #f3ebe3; --fg: #2e2521; --muted: #6e5e54; --accent: #9a4e33; --line: rgba(46, 37, 33, .16); }
html[data-tone="morning"]   { --bg: #f5efe3; --fg: #2b2520; --muted: #6a5d50; --accent: #9a4e33; --line: rgba(43, 37, 32, .16); }
html[data-tone="afternoon"] { --bg: #eedfc6; --fg: #2b2420; --muted: #67563f; --accent: #94492c; --line: rgba(43, 36, 32, .18); }
html[data-tone="evening"]   { --bg: #e5c3aa; --fg: #2a1f1b; --muted: #5a4236; --accent: #7a3626; --line: rgba(42, 31, 27, .2); }
html[data-tone="night"]     { --bg: #17151b; --fg: #eee4d4; --muted: #a89b8a; --accent: #dca86f; --line: rgba(238, 228, 212, .16); }

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html.lb-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(16px, .35vw + 15px, 18px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
img[data-lightbox]:focus-visible { outline: none; }
.plate:has(> img:focus-visible), .print-img:has(> img:focus-visible),
.album-grid li:has(> img:focus-visible), .slides--framed:has(img:focus-visible) {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

h1, h2, h3 { font-weight: 400; margin: 0; }
h2, .hero-sub, .statement, .lede, .plate-quote p, .album-head p { text-wrap: balance; }
h2 {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 96;
}
h2 em, .statement em, .glance-title em, .village-card h2 em {
  font-style: italic;
  color: var(--accent);
}

.wrap { width: min(1320px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--cream);
  transform: translateY(-160%); transition: transform .3s;
}
.skip:focus { transform: none; }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.eyebrow, .chapter-time {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.chapter-time i { font-style: normal; opacity: .7; }
.numeral {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.35em;
  letter-spacing: 0;
  color: var(--accent);
  margin-right: .7em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 12px/1 var(--f-body);
  letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(251, 244, 234, .14); }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: var(--cream);
  transition: padding .6s var(--ease), background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.topbar.is-solid {
  padding-block: 12px;
  color: var(--fg);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.topbar.is-solid .btn--ghost:hover { background: var(--fg); color: var(--bg); }

.wordmark {
  display: inline-flex; flex-direction: column; align-items: center;
  text-decoration: none; line-height: 1;
}
.wordmark-a { font-family: var(--f-display); font-style: italic; font-size: 25px; letter-spacing: .01em; }
.wordmark-b { font-size: 9.5px; letter-spacing: .52em; text-transform: uppercase; margin: 6px -.52em 0 0; }

.topnav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.topnav a {
  position: relative;
  font-size: 11.5px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  padding-block: 6px;
}
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.topnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.topbar-cta { padding: 11px 20px; font-size: 11px; }

/* ---------- Ken Burns ---------- */
.slide, .plate {
  --kb-origin: 50% 50%;
  --kb-from: 1.02;
  --kb-to: 1.14;
  --kb-x0: 0%; --kb-y0: 0%;
  --kb-x1: 0%; --kb-y1: 0%;
}
.slide img, .plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: var(--kb-origin);
  transform: scale(var(--kb-from)) translate3d(var(--kb-x0), var(--kb-y0), 0);
  backface-visibility: hidden;
}
@keyframes kb {
  from { transform: scale(var(--kb-from)) translate3d(var(--kb-x0), var(--kb-y0), 0); }
  to   { transform: scale(var(--kb-to))   translate3d(var(--kb-x1), var(--kb-y1), 0); }
}

/* Slideshows (hero + bedrooms): each slide drifts once while it is shown */
.slides { position: absolute; inset: 0; overflow: hidden; background: #1a1512; }
.slide {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0;
  transition: opacity 2.4s var(--ease-soft);
}
.slide.is-active { opacity: 1; z-index: 2; }
.slide.is-prev { opacity: 1; z-index: 1; transition: none; } /* outgoing slide stays opaque beneath the incoming one */
.slide.is-kb img { animation: kb var(--kb-dur, 11s) linear both; }
.slides.is-paused .slide.is-kb img { animation-play-state: paused; }

/* Plates: in-page photographs drift back and forth while on screen */
.plate { position: relative; overflow: hidden; }
.plate img {
  animation: kb var(--kb-dur, 26s) var(--ease-soft) infinite alternate;
  animation-play-state: paused;
}
.plate.in-view img { animation-play-state: running; }
.plate, .print-img, .album-grid li { background: var(--bg); background: color-mix(in srgb, var(--fg) 12%, var(--bg)); }
.plate img, .print-img img, .album-grid img { transition: opacity .9s var(--ease); }
.js img.is-loading { opacity: 0; }

/* Warm, filmic grade + vignette over photographs */
.grade::before, .grade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.grade::before {
  background: linear-gradient(170deg, rgba(255, 196, 132, .22) 0%, rgba(255, 170, 110, 0) 45%, rgba(150, 70, 40, .18) 100%);
  mix-blend-mode: soft-light;
}
.grade::after {
  background: radial-gradient(130% 100% at 50% 45%, transparent 58%, rgba(28, 16, 10, .34) 100%);
}
.grade--night::before {
  background: linear-gradient(170deg, rgba(60, 40, 90, .25) 0%, rgba(0, 0, 0, 0) 50%, rgba(255, 160, 90, .16) 100%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  color: var(--cream);
  background: #1a1512;
  isolation: isolate;
}
.hero-veil {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 14, 10, .5) 0%, rgba(22, 14, 10, 0) 24%, rgba(22, 14, 10, 0) 42%, rgba(22, 14, 10, .62) 100%),
    radial-gradient(56% 46% at 50% 56%, rgba(22, 14, 10, .42), rgba(22, 14, 10, .12) 70%, transparent 100%);
}
.hero-light {
  position: absolute; inset: -20%; z-index: 3; pointer-events: none;
  background:
    radial-gradient(38% 34% at 78% 22%, rgba(255, 196, 120, .55), transparent 70%),
    radial-gradient(30% 30% at 12% 88%, rgba(255, 150, 110, .28), transparent 70%);
  mix-blend-mode: soft-light;
  animation: light-drift 22s var(--ease-soft) infinite alternate;
}
.hero:not(.in-view) .hero-light, .hero:not(.in-view) .scroll-cue svg { animation-play-state: paused; }
@keyframes light-drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1); opacity: .75; }
  to   { transform: translate3d(4%, -3%, 0) scale(1.12); opacity: 1; }
}

.hero-copy {
  position: absolute; z-index: 4;
  inset: auto var(--gutter) clamp(120px, 20vh, 220px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-shadow: 0 2px 34px rgba(20, 12, 8, .35);
}
.hero-script {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem); color: #f8e2c2; margin-bottom: .05em;
  text-shadow: 0 1px 2px rgba(20, 12, 8, .45), 0 2px 24px rgba(20, 12, 8, .5);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.8rem, 12.5vw, 11.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; font-size: .72em; margin-right: .08em; color: #f6dcb8; }
.hero-sub {
  max-width: 44ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: .02em;
}
.hero-place {
  margin: 1.4rem 0 0;
  font-size: 11.5px; font-weight: 400; letter-spacing: .44em; text-transform: uppercase;
  opacity: .9;
}
.hero-place i { font-style: normal; margin: 0 .5em; color: #f6dcb8; }

.hero-foot {
  position: absolute; z-index: 4; inset: auto var(--gutter) 26px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; text-decoration: none;
}
.scroll-cue svg { width: 12px; height: 40px; animation: cue 2.8s var(--ease-soft) infinite; }
@keyframes cue {
  0%, 100% { transform: translateY(-4px); opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.slide-ctrl, .dreams-ctrl { display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .14em; }
.slide-count b { font-weight: 500; }
.slide-bar { position: relative; width: 90px; height: 1px; overflow: hidden; }
.slide-bar::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .3; }
.slide-bar span {
  position: absolute; inset: 0; background: currentColor;
  transform: scaleX(0); transform-origin: left;
}
.slide-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
  opacity: .8; transition: opacity .3s;
}
.slide-toggle:hover { opacity: 1; }
.slide-toggle svg { width: 11px; height: 11px; }
.slide-toggle .i-play { display: none; }
.slide-toggle[aria-pressed="true"] .i-play { display: block; }
.slide-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Load choreography */
.js [data-intro] {
  opacity: 0;
  translate: 0 18px;
  filter: blur(10px);
  animation: intro-in 1.8s var(--ease) forwards;
  animation-delay: calc(.4s + var(--i, 0) * .24s);
}
@keyframes intro-in { to { opacity: 1; translate: 0 0; filter: none; } }

/* Scroll reveals */
.js [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 1.4s var(--ease), translate 1.4s var(--ease), filter 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 130ms);
}
.js [data-reveal]:not(figure):not(li):not(form):not(div) { filter: blur(6px); }
.js [data-reveal].is-revealed { opacity: 1; translate: 0 0; filter: none; }
.js .print[data-reveal] {
  transition: rotate 1s var(--ease), scale 1s var(--ease), box-shadow 1s var(--ease),
              opacity 1.4s var(--ease) calc(var(--d, 0) * 130ms), translate 1.4s var(--ease) calc(var(--d, 0) * 130ms);
}

/* ---------- Prologue ---------- */
.prologue { padding-block: clamp(100px, 14vw, 210px) clamp(80px, 10vw, 150px); }
.prologue-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.prologue-lead { grid-column: 1 / span 8; }
.statement {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.3vw, 3.05rem);
  line-height: 1.24;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 32;
  margin: 0;
}
.statement-coda {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--muted);
  margin: 1.6rem 0 0;
}
.prologue .print--lavender {
  grid-column: 9 / span 4; grid-row: 1 / span 2;
  margin-top: clamp(20px, 5vw, 80px);
  justify-self: end;
  width: min(100%, 360px);
}
.prologue-story {
  grid-column: 2 / span 6;
  margin-top: clamp(56px, 7vw, 110px);
  max-width: 60ch;
}
.prologue-story p { margin: 0 0 1.2em; }
.dropcap::first-letter {
  float: left;
  font-family: var(--f-display);
  font-size: 4.6em;
  line-height: .82;
  padding: .06em .12em 0 0;
  color: var(--accent);
}
.note {
  display: inline-flex; align-items: center; gap: .8em;
  margin-top: .6em !important;
  font-size: 12px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent);
}
.note-mark { font-size: 14px; }

.facts {
  list-style: none; padding: 0;
  margin-top: clamp(70px, 9vw, 130px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 12px 0;
  text-align: center;
}
.facts li + li { border-left: 1px solid var(--line); }
.facts b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.facts span { font-size: 11.5px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }

/* ---------- Prints (brochure photos as keepsakes) ---------- */
.print {
  position: relative;
  background: var(--paper);
  padding: 12px 12px 0;
  rotate: var(--r, 0deg);
  box-shadow:
    0 1px 1px rgba(40, 24, 14, .08),
    0 22px 44px -16px rgba(40, 20, 10, .42);
  transition: rotate 1s var(--ease), scale 1s var(--ease), box-shadow 1s var(--ease),
              opacity 1.4s var(--ease), translate 1.4s var(--ease);
}
.print::before { /* washi tape */
  content: ""; position: absolute; z-index: 3;
  top: -12px; left: 50%; width: 92px; height: 26px;
  translate: -50% 0; rotate: -3deg;
  background: rgba(233, 219, 196, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0) ;
          mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.print:hover { rotate: 0deg; scale: 1.03; box-shadow: 0 2px 2px rgba(40, 24, 14, .08), 0 34px 60px -18px rgba(40, 20, 10, .5); }
.print-img { overflow: hidden; background: #d9cbb8; }
.print-img img {
  width: 100%; height: auto;
  cursor: zoom-in;
  animation: soft-drift 18s var(--ease-soft) infinite alternate;
  animation-play-state: paused;
}
.print.in-view .print-img img { animation-play-state: running; }
@keyframes soft-drift {
  from { transform: scale(1.01); }
  to   { transform: scale(1.09) translate3d(-1.5%, -1%, 0); }
}
.print figcaption {
  font-family: var(--f-script);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1;
  text-align: center;
  color: #4d3b30;
  padding: 14px 6px 16px;
}

/* ---------- Chapters ---------- */
.chapter { padding-bottom: clamp(90px, 12vw, 180px); }
.plate--full {
  height: 92vh; height: 92svh;
  min-height: 460px; max-height: 1000px;
}
.plate img { cursor: zoom-in; }

.chapter-card {
  position: relative; z-index: 5;
  margin-top: calc(-1 * clamp(72px, 10vw, 150px));
  display: flex; flex-direction: column;
}
.chapter-card > * {
  width: fit-content;
  background: var(--bg);
}
.chapter-card .chapter-time { padding: clamp(22px, 3vw, 40px) clamp(22px, 3.4vw, 52px) 0; margin: 0; }
.chapter-card h2 { padding: .3em clamp(22px, 3.4vw, 52px) .05em; }

.spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 120px);
}
.spread-text {
  grid-column: 2 / span 4; grid-row: 1;
  position: sticky; top: 16vh;
}
.spread-text p { margin: 0 0 1.2em; }
.spread > figure, .spread > .collage { grid-column: 7 / span 6; grid-row: 1; }
.spread--reverse .spread-text { grid-column: 8 / span 4; }
.spread--reverse > figure, .spread--reverse > .collage { grid-column: 1 / span 6; }

.lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.95rem);
  line-height: 1.32;
  font-variation-settings: "opsz" 40;
}

.ticks { list-style: none; padding: 0; margin: 1.8em 0 0; border-top: 1px solid var(--line); }
.ticks li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95em;
}
.ticks li::before { content: "✦"; font-size: 10px; color: var(--accent); translate: 0 -2px; }

.plate--inset { aspect-ratio: 3 / 2; }
.plate--tile { aspect-ratio: 4 / 5; }
.cap {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 16px;
  font-size: 11px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(20, 12, 8, .6));
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  pointer-events: none;
}

.collage { position: relative; }
.collage .print { position: absolute; width: clamp(160px, 17vw, 250px); }
.print--egg { right: -3%; bottom: -26%; }
.collage--evening .print--sunset { left: -8%; bottom: -30%; width: clamp(150px, 15vw, 230px); }
.collage--spa { display: flex; justify-content: center; align-items: flex-start; gap: 0; min-height: 520px; }
.collage--spa .print { position: relative; }
.print--arch { width: clamp(200px, 22vw, 320px) !important; margin-top: 10px; }
.print--sauna { width: clamp(190px, 21vw, 300px) !important; margin: 140px 0 0 -40px; }

.trio {
  display: grid; grid-template-columns: 1fr .8fr 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: center;
  margin-top: clamp(140px, 16vw, 240px);
}
.trio .print { justify-self: center; width: min(100%, 280px); }
.trio > :last-child { margin-top: clamp(40px, 8vw, 140px); }

.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(140px, 16vw, 240px);
}
.duo .plate--tile { aspect-ratio: 4 / 3; }
.duo > :last-child { margin-top: clamp(50px, 10vw, 160px); }

.plate--quote .plate-quote {
  position: absolute; z-index: 3; inset: auto 0 0 0;
  margin: 0;
  padding: 18vh var(--gutter) clamp(160px, 18vw, 240px);
  display: flex; justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(24, 14, 8, .38) 38%, rgba(24, 14, 8, .72) 100%);
  color: var(--cream);
  text-align: center;
}
.plate-quote p {
  margin: 0; max-width: 24ch;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.2;
  font-variation-settings: "opsz" 40;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 30px rgba(0, 0, 0, .4);
}

/* ---------- Bedrooms ---------- */
.dreams {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 90px);
}
.dreams-head { grid-column: 1 / span 4; }
.dreams-head h2 { margin-bottom: .5em; }
.dreams-head p:not(.chapter-time):not(.script) { margin: 0; color: var(--fg); color: color-mix(in srgb, var(--fg) 86%, transparent); }
.dreams-script { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--accent); margin-top: .5em; }
.dreams-stage { grid-column: 6 / span 7; }
.slides--framed { position: relative; inset: auto; aspect-ratio: 3 / 2; }
.dreams-ctrl { margin-top: 18px; justify-content: flex-end; color: var(--muted); }

.baths {
  list-style: none; padding: 0;
  margin-top: clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 20px);
}
.plate--thumb { aspect-ratio: 3 / 4; --kb-from: 1.04; --kb-to: 1.12; }
.plate--thumb img { transition: filter .8s var(--ease); filter: brightness(.9); }
.plate--thumb:hover img { filter: brightness(1); }

/* ---------- At a glance ---------- */
.glance { padding-block: clamp(60px, 8vw, 120px) clamp(100px, 12vw, 180px); }
.glance-title { font-size: clamp(2.2rem, 4.6vw, 4.2rem); margin-bottom: clamp(40px, 5vw, 70px); }
.glance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3vw, 44px);
}
.glance h3 {
  font-family: var(--f-body); font-size: 12px; font-weight: 400;
  letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.2em;
}
.glance ul { list-style: none; padding: 0; margin: 0; }
.glance li {
  font-family: var(--f-display);
  font-size: 1.12rem; line-height: 1.4;
  padding: .55em 0;
  border-bottom: 1px solid var(--line);
  font-variation-settings: "opsz" 24;
}

/* ---------- The Luberon ---------- */
.plate--village { height: 100vh; height: 100svh; max-height: 1100px; }
.village-card {
  position: absolute; z-index: 4;
  left: var(--gutter); top: 50%;
  translate: 0 -50%;
  width: min(540px, calc(100% - 2 * var(--gutter)));
  padding: clamp(28px, 4vw, 56px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.js .village-card[data-reveal] { translate: 0 calc(-50% + 30px); }
.js .village-card[data-reveal].is-revealed { translate: 0 -50%; }
.village-card h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); margin-bottom: .45em; }
.village-card p { margin: 0 0 1.4em; }
.village-card em { font-style: italic; }
.villages {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-family: var(--f-display); font-style: italic; font-size: 1.05rem;
}
.villages li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--accent); font-style: normal; }

/* ---------- Album ---------- */
.album { padding-block: clamp(100px, 12vw, 180px) clamp(80px, 10vw, 140px); }
.album-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-bottom: clamp(48px, 6vw, 90px);
}
.album-head .script { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--accent); }
.album-head h2 { margin: .15em 0 .45em; }
.album-head p:last-child { margin: 0; max-width: 44ch; color: var(--muted); }
.album-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1vw, 14px);
}
.album-grid li { grid-column: span 2; aspect-ratio: 3 / 2; overflow: hidden; }
.album-grid li:nth-child(5n + 1), .album-grid li:nth-child(5n + 2) { grid-column: span 3; }
.album-grid img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
  transition: transform 1.6s var(--ease), opacity .9s var(--ease);
}
.album-grid li:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 70px 70px; text-align: center; }
.footer .print--roses { width: min(60%, 210px); margin-bottom: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer p { margin: 0; font-size: .92rem; color: var(--muted); }
.footer-small { font-size: 12px !important; letter-spacing: .12em; }
.wordmark--foot { color: var(--fg); margin-bottom: 8px; }

/* ---------- Time-of-day indicator ---------- */
.daylight {
  position: fixed; z-index: 40; left: 22px; bottom: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 112px;
  color: var(--fg);
  opacity: 0; translate: 0 10px;
  transition: opacity .8s var(--ease), translate .8s var(--ease);
  pointer-events: none;
}
.daylight.is-on { opacity: .9; translate: 0 0; }
.daylight svg { width: 112px; height: 60px; overflow: visible; }
.daylight-arc { fill: none; stroke: var(--muted); stroke-width: .8; stroke-dasharray: 1.5 4; }
.daylight-horizon { stroke: var(--muted); stroke-width: .8; opacity: .6; }
.daylight-body { transition: transform .5s linear; }
.sun { fill: #e9a24e; transition: opacity .8s; }
.sun-glow { fill: #f4b667; opacity: .28; transition: opacity .8s; }
.moon { fill: #efe5d2; opacity: 0; transition: opacity .8s; }
.daylight.is-night .sun { opacity: 0; }
.daylight.is-night .sun-glow { fill: #efe5d2; opacity: .12; }
.daylight.is-night .moon { opacity: 1; }
.daylight-label { font-size: 9.5px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(18, 13, 10, .96);
  color: var(--cream);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(18, 13, 10, .6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .6s var(--ease); touch-action: pan-y pinch-zoom; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lightbox-figure img {
  max-width: 90vw; max-height: 82vh; max-height: 82dvh;
  object-fit: contain;
  animation: lb-drift 24s var(--ease-soft) forwards;
}
@keyframes lb-drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.lightbox-figure figcaption {
  font-family: var(--f-display); font-style: italic; font-size: 1.1rem; text-align: center;
  max-width: 60ch; padding-inline: 20px; opacity: .9;
}
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(251, 244, 234, .4); border-radius: 50%;
  background: rgba(18, 13, 10, .35); color: var(--cream);
  font: 300 28px/1 var(--f-display); cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.lb-btn:hover { background: rgba(251, 244, 234, .12); border-color: var(--cream); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; translate: 0 -50%; }
.lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; left: 24px; top: 30px; font-size: 12px; letter-spacing: .2em; opacity: .7; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .topnav { display: none; }
}

@media (max-width: 900px) {
  .prologue-lead, .prologue-story { grid-column: 1 / -1; }
  .prologue .print--lavender {
    grid-column: 1 / -1; grid-row: auto;
    justify-self: center; width: min(78%, 340px);
    margin-top: 56px;
  }
  .prologue-story { margin-top: 56px; }

  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .facts li:nth-child(3) { border-left: 0; }

  .spread, .dreams { display: flex; flex-direction: column; gap: 48px; }
  .spread--reverse { flex-direction: column; }
  .spread-text { position: static; }
  .spread > figure, .spread > .collage, .dreams-stage { width: 100%; }

  .collage .print { width: clamp(150px, 42vw, 220px); }
  .print--egg { right: 4%; bottom: -22%; }
  .collage--evening .print--sunset { left: 4%; bottom: -24%; }
  .collage { margin-bottom: 70px; }
  .collage--spa { min-height: 0; margin-bottom: 20px; }
  .print--arch { width: 56% !important; }
  .print--sauna { width: 50% !important; margin: 110px 0 0 -8%; }
  .print figcaption { font-size: 1.2rem; padding: 12px 4px 13px; }

  .trio { grid-template-columns: 1fr 1fr; margin-top: 120px; }
  .trio .print { grid-column: 1 / -1; grid-row: 1; width: min(66%, 260px); margin-bottom: 20px; }
  .trio > :last-child { margin-top: 40px; }

  .duo { grid-template-columns: 1fr; margin-top: 110px; }
  .duo > :last-child { margin-top: 0; }

  .baths { grid-template-columns: repeat(5, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; width: 100%; padding-inline: var(--gutter); }
  .baths li { scroll-snap-align: center; }

  .glance-grid { grid-template-columns: 1fr 1fr; }

  .plate--village { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; }
  .plate--village img { height: 62vh; }
  .village-card, .js .village-card[data-reveal], .js .village-card[data-reveal].is-revealed {
    position: relative; left: auto; top: auto; translate: none;
    width: auto; margin: -80px var(--gutter) 0;
  }
  .js .village-card[data-reveal] { opacity: 0; }
  .js .village-card[data-reveal].is-revealed { opacity: 1; }

  .js .baths [data-reveal] { opacity: 1; translate: none; }
}

@media (max-width: 720px) {
  .daylight { display: none; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid li, .album-grid li:nth-child(5n + 2) { grid-column: span 1; }
  .album-grid li:nth-child(5n + 1) { grid-column: span 2; }
  .glance-grid { grid-template-columns: 1fr; }
  .hero-foot .slide-ctrl { gap: 10px; }
  .slide-bar { width: 50px; }
  .chapter-card { margin-top: -56px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- Reduced motion ----------
   Reduce, don't remove: slideshows still cross-fade and photographs zoom very
   slightly, but there is no panning, drifting light, blur or lift. */
@keyframes kb-gentle {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06); }
}
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.is-kb img, .plate img { animation-name: kb-gentle; }
  .print-img img, .hero-light, .scroll-cue svg, .lightbox-figure img { animation: none; }
  .js [data-intro] { translate: none; filter: none; animation-name: fade-in; }
  .js [data-reveal] { translate: none !important; filter: none !important; }
  .js .village-card[data-reveal] { translate: 0 -50% !important; }
  .print:hover { rotate: var(--r, 0deg); scale: 1; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .js .village-card[data-reveal] { translate: none !important; }
}
