/* Old Perithia Estate — feuille de styles de oldperithiaestate.com.
   Marque propre au domaine (olive, lin, pierre) : elle ne reprend PAS la charte Kerkyra et ne
   dépend pas de kerkyra.css. Charte : tools/brand-guidelines.md.
   Fichier gardé un jour en cache : augmenter ?v= dans les pages à chaque modification. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
table { border-spacing: 0; }
summary { cursor: pointer; }
[hidden] { display: none !important; }


/* ---------- Fonts: Cormorant Garamond (display), Commissioner (text), GFS Didot (Greek only). All OFL. ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "GFS Didot";
  src: url("/assets/fonts/gfs-didot-greek-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0370-03FF;
}
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Commissioner";
  src: url("/assets/fonts/commissioner-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens: olive grove, linen and dry stone. See tools/brand-guidelines.md ---------- */
:root {
  --linen: #efe9dc; /* page: unbleached linen */
  --paper: #f6f2e8; /* lighter surface */
  --tahini: #e4dbc6; /* deeper warm surface */
  --stone: #cfc6b1; /* hairlines, image placeholders */
  --leaf: #a8ac8a; /* underside of an olive leaf: text on dark */
  --olive: #5c6338; /* labels, links, fine rules */
  --olive-deep: #33371f; /* dark surfaces, primary buttons */
  --ink: #262a1b; /* text */
  --honey: #b38a3a; /* the one warm accent, used sparingly */

  --display: "Cormorant Garamond", "GFS Didot", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --measure: 33rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}
h1 {
  font-weight: 300;
  font-size: clamp(2.7rem, 5.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
h2 {
  font-weight: 400;
  font-size: clamp(2.15rem, 4.3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.008em;
}
h3 {
  font-weight: 500;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}
h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.2;
}
p {
  text-wrap: pretty;
}
strong {
  font-weight: 600;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--olive-deep);
  color: var(--paper);
  padding: 0.75rem 1rem;
}
.skip:focus {
  left: 0;
}

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

.fine {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--olive);
}

/* ---------- Buttons: soft pills, one weight of line ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--olive-deep);
  font-weight: 500;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button--primary {
  background: var(--olive-deep);
  color: var(--paper);
}
.button--primary:hover {
  background: var(--olive);
  border-color: var(--olive);
}
.button--quiet {
  background: transparent;
  color: var(--olive-deep);
}
.button--quiet:hover {
  background: var(--olive-deep);
  color: var(--paper);
}
.button--on-dark {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--olive-deep);
}
.button--on-dark:hover {
  background: var(--tahini);
  border-color: var(--tahini);
}
.button--ghost {
  background: transparent;
  border-color: rgb(246 242 232 / 0.5);
  color: var(--paper);
}
.button--ghost:hover {
  border-color: var(--paper);
}

/* ---------- Masthead ---------- */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
html[data-scrolled] .masthead {
  background: rgb(239 233 220 / 0.94);
  border-bottom-color: var(--stone);
}
/* le flou d'arrière-plan coûte cher à chaque image du défilement : réservé aux grands écrans */
@media (min-width: 1000px) {
  html[data-scrolled] .masthead {
    backdrop-filter: blur(10px);
  }
}
@media (max-width: 999px) {
  html[data-scrolled] .masthead {
    background: rgb(239 233 220 / 0.98);
  }
}
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}
.masthead__nav {
  display: none;
  gap: 1.9rem;
  font-size: 0.95rem;
}
.masthead__nav a,
.masthead__enquire {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.masthead__nav a:hover,
.masthead__enquire:hover {
  border-bottom-color: currentColor;
}
.masthead__enquire {
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom-color: var(--olive);
}
@media (min-width: 1000px) {
  .masthead__nav {
    display: flex;
  }
}

/* ---------- Hero: linen, type, and one photograph under an arch ---------- */
.hero {
  display: grid;
  gap: 2.25rem;
  padding: 5.25rem var(--gutter) 3.5rem;
}
.hero__media {
  position: relative;
}
.hero__frame {
  height: min(54svh, 30rem);
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--stone);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 50%;
}
/* the drone loop sits over the photograph and fades in once it is really playing */
.hero__frame {
  position: relative;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero__video[hidden] {
  display: none;
}
.hero__video.is-playing {
  opacity: 1;
}
.hero__pause {
  position: absolute;
  left: 0.9rem; /* on small screens the second arch sits at the right */
  bottom: 0.9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(246 242 232 / 0.55);
  border-radius: 50%;
  background: rgb(51 55 31 / 0.55);
  color: var(--paper);
  cursor: pointer;
}
.hero__pause[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .hero__pause {
    left: auto;
    right: 1.1rem;
    bottom: 1.1rem;
  }
}
.hero__pause svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__pause .i-play {
  display: none;
}
.hero__pause[data-paused] .i-pause {
  display: none;
}
.hero__pause[data-paused] .i-play {
  display: inline;
}
.hero__pause:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}
/* the second, smaller arch: a face beside the place */
.hero__inset {
  position: absolute;
  right: 0;
  bottom: -1.75rem;
  width: 36%;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  border: 6px solid var(--linen);
  border-bottom: 0;
  background: var(--stone);
}
.hero__inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__body {
  padding-top: 1.25rem;
}
.hero__greek {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--olive);
  margin-bottom: 1.1rem;
}
.hero__lede {
  max-width: 30rem;
  margin-top: 1.6rem;
  font-size: 1.1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.75rem;
  margin-top: 2.1rem;
}
.hero__link {
  font-weight: 500;
  font-size: 0.975rem;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); /* wider frame: the film is 16:9 */
    align-items: end;
    gap: clamp(3rem, 6vw, 6.5rem);
    min-height: 100svh;
    padding: 6.5rem var(--gutter) clamp(3rem, 6vh, 4.5rem);
    max-width: 96rem;
    margin-inline: auto;
  }
  .hero__body {
    order: -1;
    padding-top: 0;
    padding-bottom: clamp(1rem, 5vh, 4rem);
  }
  .hero__inset {
    right: auto;
    left: -4.5rem;
    bottom: 0;
    width: 38%;
  }
  .hero__frame {
    height: min(calc(100svh - 16rem), 32rem);
    min-height: 22rem;
  }
  .hero h1 {
    max-width: 14ch;
  }
}

/* ---------- Opening statement ---------- */
.opening {
  padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--stone);
}
.opening__line {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.9vw, 3.2rem);
  line-height: 1.16;
  max-width: 24ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.opening__line em {
  font-style: italic;
}
.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--stone);
}
.glance > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.glance dd {
  order: -1;
}
.glance dd {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.05;
}
.glance dt {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--olive);
}
@media (min-width: 860px) {
  .glance {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- Bands ---------- */
.band {
  padding-block: clamp(4.5rem, 10vw, 9rem);
  position: relative;
}
.band--linen {
  background: var(--linen);
}
.band--paper {
  background: var(--paper);
}
.band--tahini {
  background: var(--tahini);
}
.band--olive {
  background: var(--olive-deep);
  color: var(--paper);
}
.band--film {
  padding-block: 0 clamp(3rem, 7vw, 6rem);
}

.hour {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--olive);
  margin-bottom: 0.9rem;
}
.band--olive .hour {
  color: var(--leaf);
}

.lead {
  max-width: 44rem;
}
.lead h2 + p,
.split__text h2 + p {
  margin-top: 1.6rem;
}
.split__text p + p,
.lead p + p {
  margin-top: 1rem;
}
.split__text > p,
.lead > p:not(.hour) {
  max-width: var(--measure);
}

.split {
  display: grid;
  gap: 2.75rem;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .split--reverse .split__text {
    order: 2;
  }
  .split__media--stack {
    position: sticky;
    top: 6rem;
  }
}

/* ---------- Figures ---------- */
.figure img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--stone);
}
.figure figcaption {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--olive);
}
.figure--portrait {
  max-width: 16rem;
  margin-top: 2.75rem;
}
.figure--portrait img {
  border-radius: 999px 999px 0 0;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* three photographs under arches */
.arches {
  display: flex;
  gap: 0.9rem;
  margin-top: clamp(3rem, 7vw, 6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  padding-inline: var(--gutter);
}
.arches::-webkit-scrollbar {
  display: none;
}
.arches .figure {
  flex: 0 0 72%;
  scroll-snap-align: center;
}
.arches .figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}
@media (min-width: 960px) {
  .arches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    overflow: visible;
    width: min(100% - 2 * var(--gutter), 66rem);
    padding-inline: 0;
    margin-inline: auto;
  }
  .arches .figure:nth-child(2) {
    margin-top: 4.5rem;
  }
  .arches--inset {
    width: 100%;
  }
}

/* ---------- Quotes ---------- */
.quote {
  margin-top: 2.25rem;
  max-width: var(--measure);
}
.quote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}
.quote footer {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--olive);
}
.quote footer::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.6rem;
}
.quote--wide {
  max-width: 46rem;
  margin: clamp(3.5rem, 8vw, 6.5rem) auto 0;
  text-align: center;
}
.quote--wide p {
  font-weight: 300;
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  line-height: 1.14;
}

.quote + p {
  margin-top: 1.75rem;
}

/* large figures are set in lining numerals; running text keeps old-style ones */
.glance dd,
.numbers dd,
.market dd,
.reputation__scores strong {
  font-variant-numeric: lining-nums;
}

/* ---------- Inventory ---------- */
.inventory {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.inventory__price {
  margin-top: 0.4rem;
  color: var(--olive);
}
.inventory table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 1rem;
}
.inventory thead th {
  text-align: left;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--olive);
  padding: 0 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--ink);
}
.inventory tbody th,
.inventory tbody td {
  text-align: left;
  vertical-align: top;
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-bottom: 1px solid var(--stone);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.inventory tbody th {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.2;
  white-space: normal;
}
.inventory tbody th small {
  display: block;
  font-family: var(--text);
  font-weight: 380;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--olive);
  margin-top: 0.2rem;
}
.wide-only {
  display: none;
}
.extras {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.extras li {
  padding-top: 1rem;
  border-top: 1px solid var(--stone);
}
.inventory__media {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.inventory__media .figure img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (min-width: 560px) {
  .wide-only {
    display: table-cell;
  }
}
@media (min-width: 960px) {
  .inventory {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .inventory__media {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .inventory__media .figure img {
    aspect-ratio: 3 / 2;
  }
}

/* ---------- Reputation ---------- */
.reputation {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: 2.75rem;
  border-top: 1px solid var(--stone);
  display: grid;
  gap: 2rem;
}
.reputation__scores {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.reputation__scores p {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--olive);
}
.reputation__scores strong {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 5.4vw, 4.25rem);
  line-height: 1;
  color: var(--ink);
}
/* logos des trois plateformes d'avis, en une seule couleur de la charte (olive), au-dessus de la note */
.reputation__logo {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.9rem;
  fill: var(--olive);
}
/* sur téléphone, les trois notes tiennent sur une seule ligne */
@media (max-width: 559px) {
  .reputation__scores {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 0.5rem;
  }
}
.reputation__press p:first-child {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  line-height: 1.32;
  max-width: 36rem;
}
.reputation__press .fine {
  margin-top: 0.75rem;
}
@media (min-width: 960px) {
  .reputation {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
}

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.numbers dd {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.9rem, 6.4vw, 5rem);
  line-height: 1;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--olive);
}
.numbers dt {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 15rem;
}
@media (min-width: 860px) {
  .numbers {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}
.subhead {
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.upside {
  display: grid;
  gap: 2rem 4rem;
  margin-top: 2rem;
  margin-bottom: 2.75rem;
}
.upside p {
  margin-top: 0.35rem;
  max-width: 30rem;
}
@media (min-width: 760px) {
  .upside {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- The long afternoon ---------- */
.climate {
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}
.climate li {
  padding-top: 0.9rem;
  border-top: 1px solid rgb(38 42 27 / 0.22);
}

/* small plates: six little photographs, like a table of mezze */
.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 0.9rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
}
.plates .figure img {
  aspect-ratio: 1;
  object-fit: cover;
}
.plates .figure:nth-child(3n + 1) img {
  border-radius: 999px 999px 0 0;
}
@media (min-width: 760px) {
  .plates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  }
}
@media (min-width: 1100px) {
  .plates {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .plates .figure:nth-child(even) {
    margin-top: 2.5rem;
  }
  .plates .figure:nth-child(3n + 1) img {
    border-radius: 0;
  }
  .plates .figure:nth-child(odd) img {
    border-radius: 999px 999px 0 0;
  }
  .plates .figure figcaption {
    font-size: 1rem;
  }
}

/* ---------- Two futures ---------- */
.futures {
  display: grid;
  gap: 3.5rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.future .figure img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.future h3 {
  margin-top: 1.75rem;
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}
.future__for {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--olive);
  margin-top: 0.2rem;
}
.future > p:not(.future__for) {
  margin-top: 1.1rem;
  max-width: var(--measure);
}
.future ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.future li {
  padding-top: 0.7rem;
  border-top: 1px solid var(--stone);
}
@media (min-width: 860px) {
  .futures {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* ---------- After dark: the market ---------- */
/* quatre repères : deux par deux sur téléphone, sur une seule ligne dès 760 px */
.market {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 1.5rem;
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.market__icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--leaf);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.market dd {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1;
  white-space: nowrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgb(168 172 138 / 0.5);
}
.market dt {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 19rem;
}
.market dt small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  color: var(--leaf);
}
@media (min-width: 760px) {
  .market {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .market__icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}
.market__read {
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.22;
  max-width: 40rem;
}
.sources {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--leaf);
}
.sources summary {
  cursor: pointer;
  width: fit-content;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.sources ul {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

/* ---------- Closing and enquiry ---------- */
.card {
  background: var(--olive-deep);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 1.25rem;
}
.card h3 {
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
}
.card > p {
  margin-top: 0.85rem;
  max-width: 32rem;
  color: rgb(246 242 232 / 0.88);
}
.card__price {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--leaf);
}
.enquiry {
  margin-top: 2rem;
  display: grid;
  gap: 1.4rem;
}
.field {
  display: grid;
  gap: 0.45rem;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field > span,
.field > legend {
  font-size: 0.9rem;
  color: var(--leaf);
}
.field > legend {
  margin-bottom: 0.45rem;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgb(246 242 232 / 0.5);
  color: var(--paper);
  padding: 0.55rem 0;
  font: inherit;
}
.field input[type="text"]:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--paper);
  box-shadow: 0 1px 0 0 var(--paper);
}
.field textarea {
  resize: vertical;
}
.choices {
  display: grid;
  gap: 0.5rem;
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgb(246 242 232 / 0.28);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.choice:has(input:checked) {
  border-color: var(--paper);
  background: rgb(246 242 232 / 0.1);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--leaf);
  outline-offset: 2px;
}
.choice input {
  accent-color: var(--leaf);
  width: 1.05rem;
  height: 1.05rem;
}
.enquiry__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.enquiry__note {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(246 242 232 / 0.8);
}

/* ---------- Film ---------- */
.film {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--olive-deep);
  border-radius: 1.25rem;
  overflow: hidden;
}
.film iframe,
.film video,
.film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film__poster img {
  object-fit: cover;
}
.film video {
  background: var(--olive-deep);
  object-fit: contain;
}
.film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  color: var(--olive-deep);
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.footer {
  background: #22251a;
  color: var(--paper);
  padding-block: 3.5rem;
}
.footer__inner {
  display: grid;
  gap: 1rem;
}
.footer__inner p {
  max-width: 46rem;
}
.footer .fine {
  color: var(--leaf);
}
.wordmark--footer {
  font-size: 1.9rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .button,
  .choice {
    transition: none;
  }
}

/* ---------- Opening mosaic: people and plants before any figure ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.mosaic .figure:first-child {
  grid-column: 1 / -1;
}
.mosaic .figure img {
  aspect-ratio: 1;
  object-fit: cover;
}
.mosaic .figure:first-child img {
  aspect-ratio: 3 / 2;
}
@media (min-width: 860px) {
  .mosaic {
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
  }
  .mosaic .figure:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
  }
  .mosaic .figure:first-child img {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
  .mosaic .figure img {
    aspect-ratio: 4 / 3;
  }
}

/* one wide and one tall photograph, same height */
.duo {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(2.5rem, 6vw, 5rem);
}
.duo .figure img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (min-width: 760px) {
  .duo {
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
  }
  .duo .figure:last-child img {
    aspect-ratio: 3 / 4;
  }
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.pair .figure img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (min-width: 760px) {
  .pair {
    gap: 1.5rem;
  }
}
.inventory__media .figure:nth-child(3) {
  grid-column: 1 / -1;
}
.inventory__media .figure:nth-child(3) img {
  aspect-ratio: 3 / 2;
}
@media (min-width: 960px) {
  .inventory__media .figure:nth-child(3) {
    grid-column: auto;
  }
}
.film__poster {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}
.film__poster img {
  width: 100%;
  height: 100%;
}

/* ---------- Les chambres, sous l'inventaire ---------- */
.rooms {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--stone);
}
.rooms__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.rooms__grid .figure:first-child {
  grid-column: 1 / -1;
}
.rooms__grid .figure img {
  aspect-ratio: 1;
  object-fit: cover;
}
.rooms__grid .figure:first-child img {
  aspect-ratio: 3 / 2;
}
@media (min-width: 760px) {
  .rooms__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .rooms__grid .figure:first-child {
    grid-column: auto;
  }
  .rooms__grid .figure img,
  .rooms__grid .figure:first-child img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Où se trouve le domaine : deux cartes dessinées ---------- */
/* Pas de bleu : la mer est le fond de la bande, les terres sont en lin, l'île en feuille d'olivier. */
.maps {
  display: grid;
  gap: 2.75rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.mapfig figcaption {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--stone);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--olive);
}
.map {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.map-land {
  fill: var(--linen);
  stroke: var(--stone);
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-land--named {
  fill: var(--tahini);
  stroke: var(--leaf);
}
.map-island {
  fill: var(--leaf);
  stroke: var(--olive);
  stroke-width: 2.4;
  stroke-linejoin: round;
}
.map text {
  font-family: var(--text);
  fill: var(--ink);
}
.map .map-country,
.map .map-sea {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  fill: var(--olive);
}
.map .map-sea {
  font-weight: 400;
  fill: var(--leaf);
}
.map .map-place {
  font-weight: 600;
}
.map-dot {
  fill: var(--ink);
}
.map-pin {
  fill: var(--honey);
  stroke: var(--paper);
  stroke-width: 4;
}
.map-halo {
  fill: rgb(179 138 58 / 0.22);
}
.map-peak {
  fill: var(--olive-deep);
  stroke: var(--olive-deep);
  stroke-width: 2;
  stroke-linejoin: round;
}
.map-ridge {
  fill: none;
  stroke: var(--olive);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-ring {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}
.map-plane {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* tailles en unités de la carte : plus grandes sur téléphone, où la carte est affichée plus petite */
.map--med .map-country { font-size: 62px; }
.map--med .map-sea { font-size: 44px; }
.map--med .map-city { font-size: 40px; }
.map--med .map-place { font-size: 50px; }
.map--island .map-country { font-size: 52px; }
.map--island .map-sea { font-size: 38px; }
.map--island .map-city { font-size: 34px; }
.map--island .map-place { font-size: 42px; }
.maps__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.22;
  max-width: 40rem;
  color: var(--olive-deep);
}
@media (min-width: 860px) {
  .maps {
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: end;
  }
  .map--med .map-country { font-size: 44px; }
  .map--med .map-sea { font-size: 31px; }
  .map--med .map-city { font-size: 27px; }
  .map--med .map-place { font-size: 34px; }
  .map--island .map-country { font-size: 42px; }
  .map--island .map-sea { font-size: 30px; }
  .map--island .map-city { font-size: 27px; }
  .map--island .map-place { font-size: 33px; }
}

/* ---------- Pictogrammes et trios de faits (charte 2.3) ----------
   Les pictogrammes sont des symboles au trait rangés en haut de la page et appelés par <use>.
   Un trio = trois faits, chacun avec son pictogramme, un titre court et une ligne. */
.ico {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band--olive .ico {
  stroke: var(--leaf);
}
.facts {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}
.facts > li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  align-content: start;
  padding-block: 1.1rem;
  border-top: 1px solid var(--stone);
}
.band--tahini .facts > li,
.band--tahini .climate li {
  border-top-color: rgb(38 42 27 / 0.22);
}
.facts strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.15;
  font-variant-numeric: lining-nums;
}
.facts span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.facts + .fine {
  margin-top: 2.5rem;
}
.facts--lead {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
@media (min-width: 760px) {
  .facts:not(.facts--stack) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .facts:not(.facts--stack) > li {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding-block: 1.25rem 0;
  }
  .facts:not(.facts--stack) span {
    max-width: 21rem;
  }
}

/* le résumé : trois repères, puis le prix sur sa ligne */
.glance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}
.glance__price {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone);
  font-size: 0.9rem;
  color: var(--olive);
}
.glance__price strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
@media (min-width: 860px) {
  .glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 3rem;
  }
}

/* ce que l'on achète : trois bâtiments, trois faits chacun */
.inventory__intro {
  margin-top: 1.25rem;
}
.estate {
  margin-top: 1.25rem;
}
.estate__part {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--ink);
}
.estate__part > .ico {
  grid-row: 1 / span 3;
  margin-top: 0.15rem;
}
.estate__part > :not(.ico) {
  grid-column: 2;
}
.estate__part h4 {
  font-weight: 500;
  font-size: 1.6rem;
}
.estate__tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--olive);
}
.estate__part ul {
  margin-top: 0.8rem;
  display: grid;
  gap: 0;
  font-variant-numeric: lining-nums;
}
.estate__part li {
  padding-block: 0.55rem;
  border-top: 1px solid var(--stone);
  font-size: 0.975rem;
  line-height: 1.5;
}
.inventory__sub {
  margin-top: 2.5rem;
}
.inventory__also {
  margin-top: 1.75rem;
}

/* clés en main */
.turnkey {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding-top: 2.75rem;
  border-top: 1px solid var(--stone);
}
.turnkey .lead h3 {
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
}
.turnkey .lead h3 + p {
  margin-top: 0.9rem;
}
.turnkey__title {
  margin-top: 2.5rem;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--olive);
}
.turnkey__title + .facts {
  margin-top: 0.9rem;
}
.turnkey__also {
  margin-top: 1.75rem;
}

/* la Coccinelle */
.beetle {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.beetle__photo {
  width: min(100%, 21rem);
  margin-inline: auto;
}
.beetle__photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: 999px 999px 0 0;
}
.beetle__text h2 + p {
  margin-top: 1.4rem;
  max-width: var(--measure);
}
.beetle__text .facts {
  max-width: var(--measure);
}
.beetle__deal {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.28;
}
@media (min-width: 860px) {
  .beetle {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
  .beetle__photo {
    width: min(100%, 26rem);
  }
}

/* trois chiffres au lieu de quatre : le premier prend la largeur sur téléphone */
.ico--fig {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
}
.numbers > div:first-child,
.market--three > div:first-child {
  grid-column: 1 / -1;
}
@media (min-width: 860px) {
  .numbers {
    grid-template-columns: repeat(3, 1fr);
  }
  .numbers > div:first-child {
    grid-column: auto;
  }
}
@media (min-width: 760px) {
  .market--three {
    grid-template-columns: repeat(3, 1fr);
  }
  .market--three > div:first-child {
    grid-column: auto;
  }
}

/* l'escalier des prix : trois marches qui montent */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ladder li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--olive);
}
.ladder li:nth-child(1) { min-height: 7.5rem; }
.ladder li:nth-child(2) { min-height: 10rem; }
.ladder li:nth-child(3) { min-height: 12.5rem; }
.ladder strong {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6.4vw, 5rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.ladder span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: 14rem;
}
.ladder__note {
  margin-top: 1.75rem;
  max-width: 44rem;
}
@media (min-width: 760px) {
  .ladder {
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 52rem;
  }
  .ladder span {
    font-size: 0.95rem;
  }
}

/* repères de la vie au village : un pictogramme devant chaque ligne */
.climate li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.climate .ico {
  width: 1.75rem;
  height: 1.75rem;
}

/* ---------- Mouvement au défilement ----------
   Tout est sous html.anim, posé par un script dans le <head> seulement si le navigateur sait
   observer le défilement et si le visiteur n'a pas demandé à réduire les animations. Sans cette
   classe (pas de script, mouvement réduit, impression), la page s'affiche entière, immobile.
   Les éléments reçoivent .rv (texte), .rv-shot (photo) ou .rv-map (carte) puis .is-in à l'écran. */
:root {
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* tant que le script n'a pas fini de préparer les éléments (.anim-go), l'état de départ se pose
   sans transition : sinon les éléments s'effaceraient lentement sous les yeux du visiteur */
html.anim:not(.anim-go) main * {
  transition: none !important;
}

/* textes : une montée courte, décalée d'un élément à l'autre par --d */
html.anim .rv {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}
html.anim .rv.is-in {
  opacity: 1;
  transform: none;
}

/* photos : l'image se lève du bas vers le haut, comme un mur qu'on monte ; la légende suit */
html.anim .rv-shot {
  transform: translateY(2rem);
  transition: transform 1s var(--ease) var(--d, 0s);
}
html.anim .rv-shot img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease) var(--d, 0s);
}
html.anim .rv-shot figcaption {
  opacity: 0;
  transition: opacity 0.6s ease calc(var(--d, 0s) + 0.4s);
}
html.anim .rv-shot.is-in {
  transform: none;
}
html.anim .rv-shot.is-in img {
  clip-path: inset(0 0 0 0);
}
html.anim .rv-shot.is-in figcaption {
  opacity: 1;
}

/* hero : l'arche se lève à l'ouverture, la photo se pose, le médaillon et le texte arrivent */
@keyframes arch-rise {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { scale: 1.14; }
  to { scale: 1; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: none; }
}
html.anim .hero__frame {
  animation: arch-rise 1.1s var(--ease) both;
}
html.anim .hero__frame img {
  animation: settle 1.6s var(--ease) both;
}
html.anim .hero__inset {
  animation: rise-in 0.9s var(--ease) 0.55s both;
}
html.anim .hero__body > * {
  animation: rise-in 0.8s var(--ease) both;
}
html.anim .hero__body > :nth-child(1) { animation-delay: 0.1s; }
html.anim .hero__body > :nth-child(2) { animation-delay: 0.2s; }
html.anim .hero__body > :nth-child(3) { animation-delay: 0.3s; }
html.anim .hero__body > :nth-child(4) { animation-delay: 0.4s; }

/* cartes : les terres apparaissent, le trait de côte de l'île se dessine, les noms se posent,
   puis le point miel tombe et son halo bat doucement */
html.anim .rv-map .map-land,
html.anim .rv-map .map text,
html.anim .rv-map .map-dot,
html.anim .rv-map .map-peak,
html.anim .rv-map .map-ring,
html.anim .rv-map .map-plane,
html.anim .rv-map figcaption {
  opacity: 0;
  transition: opacity 0.9s ease var(--d, 0s);
}
html.anim .rv-map .map-land--named { --d: 0.25s; }
html.anim .rv-map .map-country { --d: 0.7s; }
html.anim .rv-map .map-sea { --d: 0.95s; }
html.anim .rv-map .map-dot,
html.anim .rv-map .map-city { --d: 1.25s; }
html.anim .rv-map .map-place { --d: 1.9s; }
html.anim .rv-map figcaption { --d: 2.1s; }
html.anim .rv-map .map-island {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
  transition: stroke-dashoffset 2.4s ease-in-out 0.3s, fill-opacity 1.2s ease 1.5s;
}
html.anim .rv-map .map-ridge {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.3s ease-in-out 2.1s, opacity 0.2s linear 2.1s;
}
html.anim .rv-map .map--island .map-country { --d: 0.5s; }
html.anim .rv-map .map--island .map-sea { --d: 0.8s; }
html.anim .rv-map .map--island .map-peak { --d: 2.6s; }
html.anim .rv-map .map--island .map-dot,
html.anim .rv-map .map--island .map-ring,
html.anim .rv-map .map--island .map-plane,
html.anim .rv-map .map--island .map-city { --d: 2.9s; }
html.anim .rv-map .map--island .map-place { --d: 3.5s; }
html.anim .rv-map .map--island + figcaption { --d: 3.7s; }
html.anim .rv-map .map-pin,
html.anim .rv-map .map-halo {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 1.7s;
}
html.anim .rv-map .map--island .map-pin,
html.anim .rv-map .map--island .map-halo {
  transition-delay: 3.3s;
}
html.anim .rv-map.is-in .map-land,
html.anim .rv-map.is-in .map text,
html.anim .rv-map.is-in .map-dot,
html.anim .rv-map.is-in .map-peak,
html.anim .rv-map.is-in .map-ring,
html.anim .rv-map.is-in .map-plane,
html.anim .rv-map.is-in .map-ridge,
html.anim .rv-map.is-in figcaption {
  opacity: 1;
}
html.anim .rv-map.is-in .map-island {
  stroke-dashoffset: 0;
  fill-opacity: 1;
}
html.anim .rv-map.is-in .map-ridge {
  stroke-dashoffset: 0;
}
html.anim .rv-map.is-in .map-pin {
  transform: none;
}
@keyframes halo {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.9); opacity: 0.3; }
}
html.anim .rv-map.is-in .map-halo {
  transform: none;
  animation: halo 1.9s ease-in-out 2.6s infinite alternate;
}
html.anim .rv-map.is-in .map--island .map-halo {
  animation-delay: 4.2s;
}
html.anim .rv-map.is-away .map-halo {
  animation-play-state: paused;
}

/* pictogrammes du marché : le trait se dessine */
html.anim .market .rv .market__icon > * {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s ease-in-out calc(var(--d, 0s) + 0.3s);
}
html.anim .market .rv.is-in .market__icon > * {
  stroke-dashoffset: 0;
}

/* pictogrammes des trios : le trait se dessine (longueur ramenée à 1 dans les symboles) */
html.anim .rv .ico {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s ease-in-out calc(var(--d, 0s) + 0.25s);
}
html.anim .rv.is-in .ico {
  stroke-dashoffset: 0;
}
/* l'escalier des prix : les marches se posent l'une après l'autre */
html.anim .ladder > .rv:nth-child(2) { --d: 0.25s; }
html.anim .ladder > .rv:nth-child(3) { --d: 0.5s; }

/* Liés à la position de défilement (navigateurs récents ; ailleurs, rien ne bouge) */
@supports (animation-timeline: view()) {
  /* filet de progression sous l'en-tête */
  @keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  html.anim .masthead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--olive);
    transform-origin: 0 50%;
    animation: progress linear both;
    animation-timeline: scroll(root);
  }

  /* la photo du hero glisse plus lentement que la page */
  @keyframes hero-drift {
    from { translate: 0 -9%; }
    to { translate: 0 0; }
  }
  html.anim .hero__frame img {
    height: 110%;
    animation: settle 1.6s var(--ease) both, hero-drift linear both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0 90vh;
  }

  /* profondeur : dans les groupes de photos, une image sur deux dérive un peu */
  @keyframes drift {
    from { translate: 0 var(--drift, 0.75rem); }
    to { translate: 0 calc(var(--drift, 0.75rem) * -1); }
  }
  html.anim .mosaic .figure:nth-child(3),
  html.anim .plates .figure:nth-child(even),
  html.anim .pair .figure:nth-child(2),
  html.anim .duo .figure:nth-child(2),
  html.anim .rooms__grid .figure:nth-child(3),
  html.anim .figure--portrait {
    animation: drift linear both;
    animation-timeline: view();
  }
  html.anim .plates .figure:nth-child(even) {
    --drift: 1.5rem;
  }
  @media (min-width: 960px) {
    html.anim .arches .figure:nth-child(2) {
      --drift: 2.5rem;
      animation: drift linear both;
      animation-timeline: view();
    }
  }

  /* la première carte se resserre lentement sur Corfou pendant qu'on la traverse */
  @keyframes map-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
  }
  @media (min-width: 860px) {
    html.anim .map--med .map-zoom {
      transform-origin: 743px 558px;
      animation: map-zoom linear both;
      animation-timeline: view();
      animation-range: cover 35% cover 80%;
    }
  }
}

@media print {
  html.anim .rv,
  html.anim .rv-shot,
  html.anim .rv-shot img,
  html.anim .rv-shot figcaption {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
/* la rangée d'arches défile à l'horizontale sur téléphone : pas de décalage vertical, qui la ferait défiler aussi en hauteur */
html.anim .arches .rv-shot {
  transform: none;
}
