/* ============================================================
   Giulietta & Giulio — les villas du golfe · Porto-Vecchio
   Direction: "Riviera modern-heritage" — sun-washed paper over
   deep sea-slate ink; lagoon + Cala Rossa granite accents.
   ============================================================ */

:root {
  /* palette */
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --ivory: #fbf8f2;
  --ink: #122b36;
  --ink-2: #1b3a47;
  --ink-soft: #46606c;
  --lagoon: #0e7c8c;
  --lagoon-bright: #17a9bb;
  --granite: #b34a31;
  --gold: #d99a2b;
  --line: rgba(18, 43, 54, 0.14);
  --line-light: rgba(251, 248, 242, 0.22);

  /* type */
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --text-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --text-hero: clamp(2.5rem, 1rem + 5.6vw, 5.6rem);
  --text-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem);
  --text-h3: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
  --text-eyebrow: clamp(0.68rem, 0.64rem + 0.2vw, 0.8rem);

  /* rhythm */
  --space-section: clamp(4.5rem, 3rem + 6vw, 10rem);
  --space-panel: clamp(2rem, 1.4rem + 2.5vw, 4rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 26px;

  /* motion */
  --duration-fast: 160ms;
  --duration-normal: 340ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html {
  /* one-pager hygiene: nothing may create sideways scroll (clip, not hidden,
     so position: sticky keeps working) */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- background canvas + CSS fallback sky ---------- */
#bg-canvas,
.bg-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.bg-fallback {
  background:
    radial-gradient(120% 70% at 70% 12%, rgba(244, 162, 89, 0.35), transparent 60%),
    radial-gradient(90% 60% at 20% 90%, rgba(15, 163, 177, 0.4), transparent 65%),
    linear-gradient(180deg, #163a4a 0%, #0f5e6e 46%, #0a4356 100%);
}
body.webgl-on .bg-fallback { display: none; }

.page { position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.4rem);
  color: var(--ivory);
  transition: background var(--duration-normal), color var(--duration-normal),
    box-shadow var(--duration-normal);
}
.site-header.is-solid {
  background: rgba(246, 241, 231, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.75;
}
.main-nav { display: flex; gap: clamp(0.8rem, 2vw, 1.6rem); }
.main-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: opacity var(--duration-fast), border-color var(--duration-fast);
}
.main-nav a:hover { opacity: 1; border-bottom-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.lang-switch { display: flex; gap: 0.15rem; }
.lang-switch button {
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  opacity: 0.6;
  padding: 0.38rem 0.5rem;
  cursor: pointer;
  transition: opacity var(--duration-fast), border-color var(--duration-fast);
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] {
  opacity: 1;
  border-color: currentColor;
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.header-call:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .main-nav { display: none; }
}
@media (max-width: 560px) {
  .header-call .call-label { display: none; }
  .brand-sub { display: none; }
}

/* ---------- coast rail (signature) ---------- */
.coast-rail {
  position: fixed;
  left: clamp(0.6rem, 1.4vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
}
@media (min-width: 1140px) { .coast-rail { display: block; } }
.coast-rail svg { overflow: visible; }
.coast-rail .coast-path {
  fill: none;
  stroke: var(--line-light);
  stroke-width: 1.5;
}
.coast-rail .coast-path-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}
.coast-rail .landmark { cursor: pointer; }
.coast-rail .landmark circle {
  fill: rgba(251, 248, 242, 0.45);
  transition: fill var(--duration-fast), r var(--duration-fast);
}
.coast-rail .landmark.is-active circle,
.coast-rail .landmark:hover circle { fill: var(--gold); }
.coast-rail .landmark text {
  font: 500 0.62rem var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: rgba(251, 248, 242, 0.85);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.coast-rail .landmark.is-active text,
.coast-rail .landmark:hover text { opacity: 1; }
.coast-rail .sun-marker { fill: var(--gold); }
body.on-paper .coast-rail .coast-path { stroke: var(--line); }
body.on-paper .coast-rail .landmark text { fill: var(--ink-soft); }
body.on-paper .coast-rail .landmark circle { fill: rgba(18, 43, 54, 0.3); }
body.on-paper .coast-rail .landmark.is-active circle { fill: var(--granite); }
body.on-paper .coast-rail .sun-marker { fill: var(--granite); }

/* ---------- generic section plumbing ---------- */
section { position: relative; }
.scene-moment {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
  padding: var(--space-section) clamp(1.2rem, 4vw, 3rem);
  overflow: clip; /* the text scrim bleeds past .inner — never past the section */
}
.scene-moment .inner {
  max-width: 60rem;
  position: relative;
  /* soft scrim so type stays readable over bright satellite terrain */
  text-shadow: 0 1px 2px rgba(14, 34, 44, 0.55), 0 4px 26px rgba(14, 34, 44, 0.4);
}
.scene-moment .inner::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  background: radial-gradient(ellipse at center, rgba(16, 36, 46, 0.34), rgba(16, 36, 46, 0) 68%);
  z-index: -1;
  pointer-events: none;
}
.hero .inner {
  text-shadow: 0 1px 2px rgba(14, 34, 44, 0.55), 0 4px 26px rgba(14, 34, 44, 0.4);
}
.panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: var(--space-section) 0;
}
.panel + .panel { border-radius: 0; border-top: 1px solid var(--line); }
.panel.panel-ink {
  background: linear-gradient(200deg, #16323f 0%, var(--ink) 55%, #0d222c 100%);
  color: var(--ivory);
}
.panel-flush-bottom { border-radius: 0; }
.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--granite);
  margin: 0 0 1.1rem;
}
.panel-ink .eyebrow, .scene-moment .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 1.2rem;
  letter-spacing: 0.005em;
}
h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
.lead {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 300;
  max-width: 46rem;
  color: var(--ink-soft);
}
.panel-ink .lead, .scene-moment .lead { color: rgba(251, 248, 242, 0.85); }
.view-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1rem + 3vw, 3.2rem);
  line-height: 1.25;
  margin: 0;
}
.view-line em { font-style: italic; color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font: 500 0.95rem var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    background var(--duration-fast), color var(--duration-fast),
    border-color var(--duration-fast);
}
.btn:active { transform: scale(0.98); }
.btn .arrow { transition: transform var(--duration-fast) var(--ease-out-expo); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--lagoon); color: var(--ivory); }
.btn-primary:hover { background: var(--lagoon-bright); }
.btn-whatsapp { background: #1f9d55; color: var(--ivory); }
.btn-whatsapp:hover { background: #23b562; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; align-items: flex-end; text-align: left; }
.hero .inner { max-width: none; width: min(1180px, 92vw); margin: 0 auto; padding-bottom: 14vh; }
.hero h1 { max-width: 16em; text-wrap: balance; }
.hero .lead { max-width: 40rem; }
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.7);
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.6rem;
  margin: 0.7rem auto 0;
  background: linear-gradient(rgba(251, 248, 242, 0.8), transparent);
}

/* ---------- fact strip ---------- */
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0 2.6rem;
  border-block: 1px solid var(--line);
}
.fact {
  flex: 1 1 auto;
  padding: 1.1rem 1.4rem;
  border-right: 1px solid var(--line);
  min-width: 8.5rem;
}
.fact:last-child { border-right: none; }
.fact b {
  display: block;
  font: 400 1.5rem var(--font-display);
  color: var(--ink);
}
.fact span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* ---------- villa chapters ---------- */
.villa-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.4rem, 3vw, 3.4rem);
  align-items: start;
}
.villa-copy { position: sticky; top: 5.5rem; }
@media (max-width: 900px) {
  .villa-grid { grid-template-columns: 1fr; }
  .villa-copy { position: static; }
}
.amenity-list {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.55rem 1.4rem;
}
.amenity-list li {
  padding-left: 1.35rem;
  position: relative;
  font-size: 0.95rem;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--granite);
}

/* gallery mosaic */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(90px, 11vw, 150px);
  gap: 0.6rem;
}
.gallery .ph {
  border: none;
  padding: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(160deg, var(--paper-2), #e2d5be);
}
.gallery .ph:nth-child(6n + 1) { grid-column: span 4; grid-row: span 2; }
.gallery .ph:nth-child(6n + 2) { grid-column: span 2; grid-row: span 2; }
.gallery .ph:nth-child(6n + 3) { grid-column: span 2; }
.gallery .ph:nth-child(6n + 4) { grid-column: span 2; }
.gallery .ph:nth-child(6n + 5) { grid-column: span 2; }
.gallery .ph:nth-child(6n + 6) { grid-column: span 4; grid-row: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out-expo);
}
.gallery .ph:hover img { transform: scale(1.04); }
.gallery .ph-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.gallery-more {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.gallery .ph.ph-all {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem;
  background: var(--ink);
  color: var(--ivory);
  transition: background var(--duration-fast);
}
.gallery .ph.ph-all:hover { background: var(--ink-2); }
.gallery .ph.ph-all .ph-all-count {
  font: 400 1.7rem var(--font-display);
  color: var(--gold);
}
.gallery .ph.ph-all .ph-all-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(13, 30, 38, 0.92);
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  border-radius: var(--radius-m);
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  background: none;
  border: 1px solid var(--line-light);
  color: var(--ivory);
  border-radius: 999px;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox .lb-close { top: 1.4rem; right: 1.4rem; }
.lightbox .lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(251, 248, 242, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* ---------- compare table ---------- */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.compare th, .compare td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font: 400 1.15rem var(--font-display);
  border-bottom: 2px solid var(--ink);
}
.compare tbody th {
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  width: 11rem;
}

/* ---------- minutes grid (le lieu) ---------- */
.minutes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}
.minute {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  background: var(--ivory);
}
.minute .place { font-size: 0.95rem; }
.minute .place small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.minute .time {
  font: 400 1.25rem var(--font-display);
  color: var(--lagoon);
  white-space: nowrap;
}

/* ---------- map ---------- */
.map-block { margin-top: 2.4rem; }
#map {
  height: clamp(340px, 52vh, 540px);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--paper-2);
  z-index: 1;
}
.map-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.8rem; }
.pin {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(251, 248, 242, 0.75), 0 1px 6px rgba(18, 43, 54, 0.35);
}
.pin-villa { width: 16px; height: 16px; background: var(--gold); box-shadow: 0 0 0 5px rgba(217, 154, 43, 0.3), 0 1px 6px rgba(18, 43, 54, 0.45); }
.pin-beach { width: 11px; height: 11px; background: var(--lagoon-bright); }
.pin-town { width: 11px; height: 11px; background: var(--ink-2); }
.leaflet-tooltip.map-label {
  font: 500 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(251, 248, 242, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  box-shadow: none;
}
.leaflet-tooltip.map-label.villa-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--ink);
  border-color: rgba(217, 154, 43, 0.6);
}

/* ---------- quotes ---------- */
.quote-wall {
  columns: 3;
  column-gap: 1rem;
  margin-top: 2.4rem;
}
@media (max-width: 1000px) { .quote-wall { columns: 2; } }
@media (max-width: 640px) { .quote-wall { columns: 1; } }
.quote {
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--ivory);
  padding: 1.3rem 1.4rem;
  margin: 0 0 1rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.45;
  margin: 0 0 0.8rem;
}
.quote figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote.q-gold { border-color: rgba(217, 154, 43, 0.5); }
.quote-trans {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
}
.quote-trans[hidden] { display: none; }
.quote-note { font-style: italic; }
.quote-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--lagoon);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.quote-toggle:hover { color: var(--lagoon-bright); }

/* ---------- booking ---------- */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 940px) { .book-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 1.8rem 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-light);
}
.steps li::before {
  content: counter(step);
  font: 400 1.3rem var(--font-display);
  color: var(--gold);
  min-width: 1.4rem;
}
.perks { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.perks li {
  display: inline-block;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  margin: 0 0.4rem 0.55rem 0;
  font-size: 0.82rem;
}
.book-form {
  background: rgba(251, 248, 242, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-l);
  padding: var(--space-panel);
}
.book-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 540px) { .book-form .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.7);
}
.field input, .field select, .field textarea {
  background: rgba(13, 30, 38, 0.55);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-s);
  color: var(--ivory);
  font: 300 0.95rem var(--font-body);
  padding: 0.7rem 0.85rem;
}
.field textarea { resize: vertical; min-height: 5.2rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.form-note { font-size: 0.8rem; color: rgba(251, 248, 242, 0.65); margin-top: 1rem; }
.field-hint {
  font-size: 0.78rem;
  color: rgba(251, 248, 242, 0.6);
  margin: -0.3rem 0 0.9rem;
}
.form-error { color: #f2b8a0; font-size: 0.85rem; min-height: 1.2em; margin-top: 0.6rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.2rem;
  font: 400 1.12rem var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--granite);
  transition: transform var(--duration-fast);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- footer ---------- */
.site-footer {
  background: #0b1d25;
  color: rgba(251, 248, 242, 0.75);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: inherit; }
.site-footer .brand-name { color: var(--ivory); }
.footer-legal {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem;
  opacity: 0.65;
}

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: none;
  gap: 0.5rem;
}
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  .sticky-cta .btn { padding: 0.7rem 1.1rem; font-size: 0.85rem; }
}

/* ---------- reveal defaults (JS adds .rv) ---------- */
.rv { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
}

/* ---------------- prelude (hero intro film) ---------------- */
.prelude {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #05080d;
  overflow: clip;
  opacity: 1;
  transition: opacity 900ms ease;
}
.prelude.is-leaving { opacity: 0; pointer-events: none; }
.prelude-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1200ms ease;
}
.prelude-video.is-live { opacity: 1; }
.prelude-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 8, 13, 0.62), rgba(5, 8, 13, 0) 38%),
    linear-gradient(to bottom, rgba(5, 8, 13, 0.35), rgba(5, 8, 13, 0) 24%);
  opacity: 0;
  transition: opacity 1200ms ease;
}
.prelude.has-title .prelude-veil { opacity: 1; }
.prelude-title {
  position: absolute;
  left: 50%;
  bottom: clamp(3rem, 9vh, 6.5rem);
  transform: translate(-50%, 18px);
  text-align: center;
  width: min(92vw, 40rem);
  opacity: 0;
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.prelude.has-title .prelude-title {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.prelude-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 246, 252, 0.82);
  margin: 0 0 0.55rem;
}
.prelude-name {
  font-family: "Marcellus", serif;
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  color: #f4f8fc;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 26px rgba(4, 10, 18, 0.55);
}
.prelude-skip {
  position: absolute;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vh, 2rem);
  appearance: none;
  border: 1px solid rgba(244, 248, 252, 0.35);
  background: rgba(6, 12, 20, 0.35);
  color: rgba(244, 248, 252, 0.85);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 500ms ease, background 200ms ease;
  backdrop-filter: blur(6px);
}
.prelude.skip-ready .prelude-skip { opacity: 1; }
.prelude-skip:hover,
.prelude-skip:focus-visible { background: rgba(6, 12, 20, 0.65); }
html.prelude-lock,
html.prelude-lock body { overflow: clip; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .prelude { display: none; }
}

/* prelude villa identity + switch */
.prelude-brand {
  position: absolute;
  top: clamp(1rem, 3vh, 2rem);
  left: clamp(1.1rem, 3vw, 2.4rem);
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 248, 252, 0.92);
  text-shadow: 0 1px 14px rgba(4, 10, 18, 0.6);
  opacity: 0;
  transition: opacity 700ms ease;
}
.prelude.skip-ready .prelude-brand { opacity: 1; }
.prelude-switch {
  position: absolute;
  top: clamp(1rem, 3vh, 2rem);
  right: clamp(1.1rem, 3vw, 2.4rem);
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 248, 252, 0.28);
  background: rgba(6, 12, 20, 0.34);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 700ms ease;
}
.prelude.skip-ready .prelude-switch { opacity: 1; }
.prelude-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(244, 248, 252, 0.72);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 300ms ease;
}
.prelude-switch button[aria-pressed="true"] { color: #0b1622; }
.prelude-knob {
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: 0.22rem;
  width: calc(50% - 0.22rem);
  border-radius: 999px;
  background: rgba(244, 248, 252, 0.92);
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.prelude-switch[data-villa="giulietta"] .prelude-knob { transform: translateX(0); }
@media (max-width: 640px) {
  .prelude-brand { font-size: 0.92rem; max-width: 40vw; line-height: 1.25; }
  .prelude-switch button { font-size: 0.7rem; padding: 0.38rem 0.7rem; }
}

/* ---------------- immersive twilight hero ---------------- */
.hero-immersive {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background: #0a1020;
  isolation: isolate;
}
.hi-scene {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hi-scene.is-active { opacity: 1; }
.hi-bg, .hi-cut {
  position: absolute;
  inset: -3.5%;
  width: 107%;
  height: 107%;
  object-fit: cover;
  will-change: transform;
}
.hi-bg { z-index: 1; }
.hi-cut { z-index: 3; }
.hi-name {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 24%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: clamp(4.6rem, 16vw, 15rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(248, 240, 226, 0.9);
  text-shadow: 0 2px 40px rgba(10, 16, 32, 0.35);
  white-space: nowrap;
  will-change: transform;
}
.hi-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.hi-ui > * { pointer-events: auto; }
.hi-switch {
  position: absolute;
  top: calc(var(--header-h, 64px) + clamp(0.6rem, 2vh, 1.4rem));
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 240, 226, 0.3);
  background: rgba(10, 16, 32, 0.35);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
}
.hi-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(248, 240, 226, 0.75);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 300ms ease;
}
.hi-switch button[aria-pressed="true"] { color: #0b1622; }
.hi-knob {
  position: absolute;
  top: 0.22rem;
  bottom: 0.22rem;
  left: 0.22rem;
  width: calc(50% - 0.22rem);
  border-radius: 999px;
  background: rgba(248, 240, 226, 0.94);
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hi-switch[data-villa="giulietta"] .hi-knob { transform: translateX(0); }
.hi-facts {
  position: absolute;
  right: clamp(1rem, 3.5vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(21rem, 86vw);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(5, 8, 16, 0.35);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  overflow: clip;
}
.hi-facts-list {
  display: none;
  margin: 0;
  padding: 1.15rem 1.35rem;
  list-style: none;
}
.hi-facts-list.is-active { display: block; }
.hi-facts-list li {
  padding: 0.55rem 0;
  color: rgba(250, 248, 244, 0.92);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hi-facts-list li:last-child { border-bottom: 0; }
.hi-facts-list li b {
  font-family: "Marcellus", serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-right: 0.15rem;
}
.hi-memo {
  position: absolute;
  left: clamp(1.1rem, 3.5vw, 3rem);
  bottom: clamp(1.2rem, 4.5vh, 2.6rem);
  margin: 0;
  max-width: 18em;
  font-family: "Marcellus", serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(248, 240, 226, 0.88);
  text-shadow: 0 1px 18px rgba(10, 16, 32, 0.5);
}
.hi-consult {
  position: absolute;
  left: 50%;
  bottom: clamp(1.2rem, 4.5vh, 2.6rem);
  transform: translateX(-50%);
}
.hi-scrollcue {
  position: absolute;
  right: clamp(1.1rem, 3.5vw, 3rem);
  bottom: clamp(1.2rem, 4.5vh, 2.6rem);
  color: rgba(248, 240, 226, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.hi-scrollcue:hover { color: rgba(248, 240, 226, 1); }
@media (max-width: 900px) {
  .hi-name { top: 20%; font-size: clamp(3.4rem, 19vw, 7rem); }
  .hi-facts {
    top: auto;
    transform: none;
    bottom: clamp(4.6rem, 12vh, 7rem);
    right: 50%;
    transform: translateX(50%);
    width: min(22rem, 92vw);
  }
  .hi-memo { display: none; }
  .hi-scrollcue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hi-bg, .hi-cut, .hi-name { transform: none !important; }
}
