/* ==========================================================================
   Casa Ellie — guest stylesheet (one file). Design system: docs/DESIGN-SYSTEM.md
   Settings first; every value below should come from them.
   ========================================================================== */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/assets/fonts/DM-Sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Colour: limewash & clay. Large areas are light and textured; dark is for text and photo shade only. */
  --paper: #f6f0e5;        /* pages and sheets */
  --plaster: #ece2d2;      /* quiet surfaces, veil behind stories */
  --stone: #e4d8c5;        /* menu, footer, feature bands */
  --ink: #33281f;          /* all text */
  --ink-2: #6f604f;        /* secondary text */
  --ink-3: #86745f;        /* labels, hints */
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 8%, transparent);
  --primary: #a05a38;      /* clay: what you can press (cream text on it 4.9:1; as text on paper 4.6:1) */
  --primary-hover: #8f4f2c; /* hover deepens, so contrast holds */
  --primary-text: #8f4f2c;  /* clay used as text on light surfaces (5.6:1) */
  --on-primary: #fdf6ec;
  --shade: #1e0f0b;        /* only for shading photos */

  /* Type: two families, few sizes. */
  --serif: "Instrument Serif", serif;
  --sans: "DM Sans", sans-serif;
  --t-micro: 11px;   /* eyebrows, tiny labels */
  --t-label: 12px;   /* labels, captions */
  --t-small: 14px;   /* secondary UI */
  --t-body: 16px;    /* UI and body */
  --t-lead: 18px;    /* larger UI text */
  --type-display: clamp(60px, 7vw + 34px, 148px);
  --type-title: clamp(54px, 5.6vw + 34px, 124px);
  --type-dialog: clamp(34px, 1.4vw + 29px, 48px);
  --type-subtitle: clamp(28px, 1vw + 24px, 44px);
  --type-card: clamp(28px, 1.6vw + 22px, 52px);
  --type-card-small: clamp(24px, 0.6vw + 22px, 31px);
  --type-lede: clamp(24px, 0.6vw + 22px, 30px);
  --t-story: clamp(21px, 0.9vw + 16px, 26px);

  /* Space. */
  --gutter: clamp(24px, 5.5vw, 100px);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* Shape. */
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --radius-pill: 999px;

  /* Depth. */
  --shadow-soft: 0 8px 24px color-mix(in srgb, var(--shade) 12%, transparent);
  --shadow-lift: 0 18px 48px color-mix(in srgb, var(--shade) 18%, transparent);

  /* Motion: calm. Three durations, two curves. */
  --dur-fast: 0.2s;
  --dur: 0.4s;
  --dur-slow: 0.8s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* everything settles */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1); /* sheets and the story photo */

  /* Older names, kept so nothing breaks. */
  --forest: var(--ink);
  --muted: var(--ink-3);
  --muted-strong: var(--ink-2);
  --linen: var(--plaster);
  --tint: #e9dfcd;
  --forest-soft: #cdbfa9;
  --gold: #b98a5a;
  --green: var(--primary-hover);
  --scrim: color-mix(in srgb, var(--plaster) 86%, transparent);
  --ease: var(--ease-out);
  --ease-morph: var(--ease-sheet);
}

/* ---------- styles ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
em {
  font-weight: 400;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
::selection {
  background: var(--forest);
  color: var(--paper);
}
[hidden] {
  display: none !important;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.section-pad {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-size: var(--t-micro);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h2 {
  font-size: var(--type-title);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 15px 22px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-size: var(--t-label);
  font-weight: 500;
  transition:
    background var(--dur-fast),
    transform var(--dur-fast) var(--ease-out);
}
.pill:hover {
  transform: translateY(-2px);
}
.pill:active {
  transform: scale(0.98);
}
.pill svg {
  width: 18px;
  height: 18px;
}
.light {
  background: var(--paper);
  color: var(--forest);
}
.light:hover {
  background: var(--linen);
}
.forest {
  background: var(--forest);
  color: var(--paper);
}
.forest:hover {
  background: var(--green);
}
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 10px 0;
  font-size: var(--t-micro);
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 47%, transparent);
}
.text-link svg {
  width: 17px;
  height: 17px;
  transition: transform var(--dur-fast);
}
.text-link:hover svg {
  transform: translate(2px, -2px);
}
.round-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
}
.round-button:hover {
  background: var(--tint);
}
.round-button svg {
  width: 18px;
  height: 18px;
}
.flip {
  transform: rotate(180deg);
}
.skip-link {
  position: absolute;
  left: 20px;
  top: 10px;
  padding: 14px;
  background: var(--paper);
  z-index: 80;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- booking ---------- */
dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 80px #07180c55;
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: dialog-in var(--dur) var(--ease-out);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}
.dialog-top .eyebrow {
  margin-bottom: 8px;
}
.dialog-top h2 {
  font-size: var(--type-dialog);
}
.dialog-top .round-button {
  background: var(--linen);
  width: 35px;
  height: 35px;
}
.booking-dialog {
  width: 460px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 40px);
  border-radius: var(--radius-card);
  padding: 30px;
  overflow-y: auto;
}
.chosen-dates {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 27px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.chosen-dates > div {
  flex: 1;
}
.chosen-dates > div > span {
  display: block;
  font-size: var(--t-micro);
  color: var(--muted);
  margin-bottom: 6px;
}
.chosen-dates strong {
  font-size: var(--t-label);
  font-weight: 500;
}
.date-direction {
  font-size: var(--t-lead);
  color: var(--muted);
}
.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 13px;
}
.calendar-heading h3 {
  font-family: var(--sans);
  font-size: var(--t-label);
  font-weight: 500;
}
.calendar-heading .round-button {
  height: 32px;
  width: 32px;
  border: 1px solid var(--line);
  background: none;
}
.calendar-heading svg {
  height: 14px;
  width: 14px;
}
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.calendar-weekdays {
  text-align: center;
  font-size: var(--t-micro);
  color: var(--muted);
  margin-bottom: 8px;
}
.calendar-days button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: var(--t-micro);
  border-radius: var(--radius-s);
  min-height: 37px;
}
.calendar-days button:hover {
  background: var(--tint);
}
.calendar-days button.selected {
  background: var(--forest);
  color: var(--paper);
}
.calendar-days button.in-range {
  background: var(--tint);
  border-radius: 2px;
}
.calendar-days .blank {
  aspect-ratio: 1;
}
.booking-guests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
  margin-top: 20px;
}
.booking-guests > div > strong {
  display: block;
  font-size: var(--t-label);
  font-weight: 500;
}
.booking-guests > div > span {
  display: block;
  font-size: var(--t-micro);
  color: var(--muted);
  margin-top: 5px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stepper > button {
  border: 1px solid color-mix(in srgb, var(--ink) 27%, transparent);
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  font-size: var(--t-lead);
}
.stepper > span {
  font-size: var(--t-label) !important;
  color: var(--ink) !important;
  width: 14px;
  min-width: 14px;
  text-align: center;
  margin: 0 !important;
}
.booking-notice {
  font-size: var(--t-micro);
  color: var(--muted);
  margin: 17px 0;
}
.booking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.booking-footer .pill {
  min-height: 45px;
  padding: 13px 18px;
  font-size: var(--t-micro);
}
.text-button {
  font-size: var(--t-micro);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.design-annotation {
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 14px;
  font-size: var(--t-micro);
  line-height: 1.5;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 17px 22px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 4px 30px color-mix(in srgb, var(--ink) 13%, transparent);
  font-size: var(--t-label);
  z-index: 50;
  max-width: 90vw;
  line-height: 1.5;
  text-align: center;
}
.gallery-dialog {
  width: min(1200px, calc(100vw - 48px));
  max-width: none;
  height: min(870px, calc(100dvh - 48px));
  max-height: none;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.gallery-dialog[open] {
  display: flex;
}
.gallery-top {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 25px;
}
.gallery-top h2 {
  font-size: var(--type-dialog);
}
.gallery-top > span {
  font-size: var(--t-micro);
  color: var(--muted);
  margin-left: auto;
}
.gallery-top .round-button {
  width: 35px;
  height: 35px;
  background: var(--linen);
}
.gallery-stage {
  position: relative;
  min-height: 0;
  flex: 1;
  margin: 0 25px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--linen);
  display: grid;
  place-items: center;
}
.gallery-stage > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.gallery-stage .round-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  border: 1px solid var(--line);
}
.gallery-prev {
  left: 15px;
}
.gallery-next {
  right: 15px;
}
.gallery-bottom {
  padding: 18px 25px 23px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.gallery-bottom > p {
  font-size: var(--t-micro);
  flex: 1;
}
.gallery-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px;
  max-width: 65%;
}
.gallery-thumbnails button {
  padding: 0;
  flex-shrink: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  height: 45px;
  width: 61px;
  opacity: 0.6;
}
.gallery-thumbnails button[aria-pressed="true"] {
  opacity: 1;
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.gallery-thumbnails img {
  height: 100%;
  width: 100%;
}

.request-dialog {
  width: min(920px, calc(100vw - 24px));
}
.request-close {
  position: absolute;
  z-index: 2;
}
.request-photo img {
  width: 100%;
  height: 100%;
  min-height: 470px;
}
.request-body {
  padding: 70px 40px 44px;
}
.request-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}
.policy-dialog {
  width: 520px;
  max-width: calc(100vw - 24px);
}
@media (max-width: 799px) {
  .request-photo {
    height: 190px;
  }
  .request-photo img {
    min-height: 0;
  }
  .request-body {
    padding: 32px 20px;
  }
  .booking-dialog {
    width: calc(100vw - 20px);
  }
}
/* Native scroll stays native; the surface owns its edges and fixed actions. */
:root {
  --scroll-thumb: color-mix(in srgb, var(--ink) 33%, transparent);
  --scroll-thumb-hover: color-mix(in srgb, var(--ink) 53%, transparent);
  --surface-radius: 22px;
}
html {
  scrollbar-color: var(--scroll-thumb) var(--paper);
  scrollbar-width: thin;
}
/* Release the browser gutter under a full-window backdrop without reflowing
   the document behind it. Native dialog geometry uses the complete viewport. */
html:has(body:is(.modal-open, .menu-open)) {
  overflow: hidden;
  scrollbar-gutter: auto;
}
body:is(.modal-open, .menu-open) {
  width: calc(100% - var(--page-scrollbar-gap, 0px));
}
:is(
  .booking-scroll,
  .request-scroll,
  .policy-scroll,
  .paper-panel,
  .gallery-thumbnails
) {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  overscroll-behavior: contain;
}
:is(
  html,
  .booking-scroll,
  .request-scroll,
  .policy-scroll,
  .paper-panel,
  .gallery-thumbnails
)::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
:is(
  html,
  .booking-scroll,
  .request-scroll,
  .policy-scroll,
  .paper-panel,
  .gallery-thumbnails
)::-webkit-scrollbar-track {
  background: transparent;
}
:is(
  html,
  .booking-scroll,
  .request-scroll,
  .policy-scroll,
  .paper-panel,
  .gallery-thumbnails
)::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-pill);
}
:is(
    html,
    .booking-scroll,
    .request-scroll,
    .policy-scroll,
    .paper-panel,
    .gallery-thumbnails
  )::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-hover);
}
.paper-panel::-webkit-scrollbar-track {
  margin-block: var(--surface-radius);
}

/* Keep keyboard rings inside photograph rails instead of clipping their edges. */
:is(
  .paper-card,
  .guest-card,
  .world-portal,
  .guest-room-photo,
  .connected-deck button,
  .guest-connected button
):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.booking-dialog {
  --booking-inset: 28px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--surface-radius);
  max-height: calc(100dvh - 40px);
}
.booking-dialog[open] {
  display: flex;
  flex-direction: column;
}
.booking-dialog > .dialog-top {
  flex: 0 0 auto;
  padding: 20px var(--booking-inset) 12px;
  align-items: center;
  gap: 16px;
}
.booking-dialog .dialog-top h2 {
  font: var(--type-dialog)/1.02 var(--serif);
  letter-spacing: -0.035em;
}
.booking-dialog .dialog-top .round-button {
  width: 44px;
  height: 44px;
  background: transparent;
}
.booking-dialog .dialog-top .round-button:hover {
  background: color-mix(in srgb, var(--forest) 8%, var(--paper));
}
.booking-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0 8px;
  padding: 0 calc(var(--booking-inset) - 8px) 8px;
  scroll-padding-block: 12px;
}
.booking-dialog .chosen-dates {
  margin-top: 0;
  padding: 12px 16px;
  gap: 16px;
}
.booking-dialog .chosen-dates > div > span {
  font-size: var(--t-label);
  margin-bottom: 6px;
}
.booking-dialog .chosen-dates strong {
  font-size: var(--t-small);
  line-height: 1.4;
}
.booking-dialog .calendar-heading {
  margin: 12px 0 8px;
}
.booking-dialog .calendar-heading h3 {
  font: 500 var(--t-small)/1.4 var(--sans);
  letter-spacing: 0;
}
.booking-dialog .calendar-heading .round-button {
  width: 44px;
  height: 44px;
}
.booking-dialog .calendar-weekdays {
  font-size: var(--t-micro);
  margin-bottom: 8px;
}
.booking-dialog .calendar-days button,
.booking-dialog .calendar-days .blank {
  aspect-ratio: auto;
  height: 44px;
  min-height: 44px;
}
.booking-dialog .calendar-days {
  gap: 3px 2px;
}
.booking-dialog .calendar-days button {
  font-size: var(--t-small);
}
.booking-dialog .booking-guests {
  margin-top: 16px;
  padding: 16px 0;
  border-bottom: 0;
}
.booking-dialog .booking-guests > div > strong {
  font-size: var(--t-small);
}
.booking-dialog .stepper {
  gap: 16px;
}
.booking-dialog .stepper > button {
  width: 44px;
  height: 44px;
  font-size: 20px;
}
.booking-dialog .stepper > span {
  font-size: var(--t-small) !important;
  min-width: 22px;
}
.booking-bottom {
  flex: 0 0 auto;
  padding: 16px var(--booking-inset) 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.booking-dialog .booking-footer {
  gap: 16px;
}
.booking-dialog .booking-footer .pill {
  font-size: var(--t-small);
  min-height: 48px;
  padding: 12px 20px;
  gap: 20px;
}
.booking-dialog .booking-footer .text-button {
  font-size: var(--t-label);
  min-height: 44px;
  padding: 8px 2px;
}
.booking-dialog .design-annotation {
  font: var(--t-micro)/1.5 var(--sans);
  color: var(--muted);
  max-width: none;
  border: 0;
  margin: 12px 0 0;
  padding: 0;
}

.request-dialog {
  padding: 8px;
  overflow: hidden;
  border-radius: var(--surface-radius);
}
.request-dialog[open] {
  display: block;
}
.request-scroll {
  max-height: calc(100dvh - 56px);
  overflow: auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  border-radius: calc(var(--surface-radius) - 8px);
}
.request-dialog .request-body {
  min-width: 0;
}
.request-dialog .request-body h2 {
  font: var(--type-dialog)/0.96 var(--serif);
  letter-spacing: -0.035em;
}
.request-dialog .request-close {
  width: 44px;
  height: 44px;
  right: 20px;
  top: 20px;
}
.request-dialog .request-help {
  font: var(--t-label)/1.8 var(--sans);
  max-width: none;
  margin-top: 28px;
}
.request-dialog .request-summary {
  font: var(--t-body)/1.8 var(--sans);
  max-width: none;
  margin-top: 28px;
}
.request-dialog .request-body .text-link {
  min-height: 44px;
  font-size: var(--t-small);
}
.request-dialog .request-body .pill {
  min-height: 48px;
  font-size: var(--t-small);
}
.policy-dialog {
  padding: 8px;
  overflow: hidden;
  border-radius: var(--surface-radius);
}
.policy-dialog > .round-button {
  position: absolute;
  right: 20px;
  top: 20px;
  float: none;
  margin: 0;
  width: 44px;
  height: 44px;
}
.policy-scroll {
  overflow: auto;
  max-height: calc(100dvh - 56px);
  padding: 44px 28px 28px;
}
.policy-dialog .policy-scroll h2 {
  font: var(--type-dialog)/1.05 var(--serif);
  margin: 24px 0;
}
.policy-dialog .policy-scroll p {
  font: var(--t-small)/1.8 var(--sans);
  color: var(--muted);
}
.gallery-dialog {
  border-radius: var(--surface-radius);
}
.gallery-dialog .gallery-top {
  flex: 0 0 auto;
}
.gallery-dialog .gallery-top h2 {
  font: var(--type-dialog)/1.05 var(--serif);
}
.gallery-dialog .gallery-top .round-button {
  width: 44px;
  height: 44px;
}
.gallery-dialog .gallery-stage .round-button {
  width: 44px;
  height: 44px;
}
.gallery-dialog .gallery-bottom {
  flex: 0 0 auto;
  min-width: 0;
}
.gallery-dialog .gallery-thumbnails {
  padding: 6px;
  max-width: 100%;
  scroll-padding-inline: 6px;
}
.gallery-dialog .gallery-thumbnails button {
  height: 48px;
  min-width: 61px;
}
.gallery-dialog .gallery-thumbnails button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 799px) {
  :root {
    --surface-radius: 18px;
  }
  .booking-dialog {
    --booking-inset: 20px;
    padding: 0;
    max-height: calc(100dvh - 24px);
    margin: auto 10px 12px;
    border-radius: var(--surface-radius);
  }
  .booking-dialog > .dialog-top {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .booking-dialog .calendar-days button,
  .booking-dialog .calendar-days .blank {
    height: 44px;
    min-height: 44px;
  }
  .booking-bottom {
    padding-top: 12px;
    padding-bottom: 16px;
  }
  .request-dialog {
    max-height: calc(100dvh - 24px);
  }
  .request-scroll {
    display: block;
    max-height: calc(100dvh - 40px);
  }
  .request-dialog .request-body {
    padding: 28px 20px;
  }
  .request-dialog .request-close {
    right: 16px;
    top: 16px;
  }
  .policy-dialog {
    max-height: calc(100dvh - 24px);
  }
  .policy-scroll {
    max-height: calc(100dvh - 40px);
    padding-inline: 20px;
  }
  .gallery-dialog .gallery-top {
    padding: 16px 20px;
    gap: 16px;
  }
}

/* ---------- site ---------- */
/* Casa Ellie v30 — one composition system; historic page layers are no longer loaded. */
:root {
  --gutter: clamp(24px, 6vw, 100px);
  --radius: 24px;
  --chapter-space: clamp(72px, 10vw, 160px);
}
html {
  scroll-padding-top: 90px;
}
body {
  overflow-x: clip;
}
h1,
h2,
h3 {
  font-weight: 400;
}
.page-pad {
  padding: var(--chapter-space) var(--gutter);
}
.forest {
  background: var(--forest);
  color: var(--paper);
}
.anchor {
  display: block;
  position: absolute;
  top: 0;
  pointer-events: none;
}
.essential-line {
  font-size: var(--t-label);
  line-height: 1.7;
  margin-top: 26px;
  color: var(--muted);
}
.quiet-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-height: 44px;
  font: 500 var(--t-small)/1.5 var(--sans);
  border-bottom: 1px solid currentColor;
  padding: 10px 0;
}
.quiet-link svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.quiet-link:hover svg {
  transform: translate(2px, -2px);
}
.chapter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 52px;
}
.chapter-heading h2 {
  font: var(--type-title)/0.94 var(--serif);
  letter-spacing: -0.035em;
}
.chapter-heading .quiet-link {
  flex-shrink: 0;
  margin-bottom: 8px;
}
.chapter-heading .quiet-link:empty {
  display: none;
}
.site-header {
  background: linear-gradient(color-mix(in srgb, var(--shade) 50%, transparent), transparent);
  text-shadow: 0 1px 12px color-mix(in srgb, var(--shade) 31%, transparent);
  position: absolute;
  inset: 0 0 auto;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--paper);
}
.brand {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.header-book {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--t-body);
  min-height: 44px;
}
.header-book svg {
  display: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
}
.mobile-menu span {
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur);
}
.mobile-menu[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
.mobile-menu[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--forest);
  color: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: auto;
  padding: 130px var(--gutter) 60px;
  gap: 6vw;
}
.menu-picture {
  width: 100%;
  height: calc(100dvh - 190px);
  min-height: 320px;
  border-radius: var(--radius);
  object-position: 50% 65%;
}
.menu-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
.menu-links a {
  font: var(--type-title)/0.95 var(--serif);
  letter-spacing: -0.03em;
  padding: 8px 0;
}
.menu-links a[aria-current="page"] {
  color: var(--gold);
}
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  max-height: 1100px;
  isolation: isolate;
  color: var(--paper);
  overflow: hidden;
  background: var(--forest);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hero-media.is-playing video {
  opacity: 1;
}
.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--shade) 27%, transparent),
      transparent 28%,
      color-mix(in srgb, var(--shade) 22%, transparent) 58%,
      color-mix(in srgb, var(--shade) 43%, transparent)
    ),
    linear-gradient(90deg, color-mix(in srgb, var(--shade) 27%, transparent), transparent 65%),
    radial-gradient(ellipse 75% 45% at 18% 55%, color-mix(in srgb, var(--shade) 35%, transparent), transparent 70%);
}
.hero-copy h1 {
  text-shadow: 0 2px 28px color-mix(in srgb, var(--shade) 25%, transparent);
}
.hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 17%;
}
.hero-copy h1 {
  font: var(--type-display)/0.88 var(--serif);
  letter-spacing: -0.035em;
  max-width: 1000px;
}
.hero-copy em {
  font-weight: 400;
}
.hero-facts {
  font-size: var(--t-small);
  line-height: 1.6;
  margin-top: 26px;
}
.home-cover .hero-copy {
  top: 21%;
  bottom: auto;
}
.home-cover .hero-copy h1 {
  font-size: var(--type-display);
}
.home-cover .hero-media img {
  object-position: 50% 65%;
}
.hero-rail {
  overflow-anchor: none;
  scroll-behavior: auto;
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  gap: 16px;
  overflow: auto;
  scrollbar-width: none;
  padding: 4px var(--gutter);
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: none;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 var(--gutter),
    #000 calc(100% - var(--gutter)),
    transparent
  );
}
.hero-rail::-webkit-scrollbar {
  display: none;
}
.hero-rail .visual-card {
  width: clamp(175px, 19vw, 285px);
  height: clamp(168px, 19vw, 250px);
  flex: none;
  border-radius: var(--radius-card);
  scroll-snap-align: start;
}
.hero-rail .card-label {
  font-size: var(--type-card-small);
  left: 22px;
  bottom: 22px;
}
.hero-rail .visual-card > svg {
  right: 20px;
  bottom: 24px;
  width: 18px;
  height: 18px;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 25px;
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: 50%;
}
.home-cover .hero-scroll {
  bottom: 310px;
}
.house-cover .hero-media img {
  object-position: 50% 56%;
}
.area-cover .hero-media img {
  object-position: 50% 52%;
}
.stay-cover .hero-media img {
  object-position: 50% 63%;
}
.story-cover .hero-media img {
  object-position: 50% 48%;
}
.visual-card {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  text-align: left;
  color: var(--paper);
  background: var(--forest-soft);
  isolation: isolate;
}
.visual-card:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 55%,
    color-mix(in srgb, var(--shade) 44%, transparent) 82%,
    color-mix(in srgb, var(--shade) 63%, transparent)
  );
  pointer-events: none;
}
.visual-card > img,
.visual-card > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-out);
}
.visual-card > video {
  opacity: 0;
  transition:
    opacity var(--dur),
    transform var(--dur-slow) var(--ease-out);
}
.visual-card.is-playing > video {
  opacity: 1;
}
.visual-card:hover > img,
.visual-card:hover > video {
  transform: scale(1.025);
}
.visual-card:active {
  transform: scale(0.994);
}
.visual-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
}
.card-label {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  left: 30px;
  right: 30px;
  font: var(--type-card)/0.96 var(--serif);
  letter-spacing: -0.025em;
}
.visual-card > svg {
  display: none;
  position: absolute;
  right: 28px;
  bottom: 32px;
  z-index: 2;
  width: 22px;
  height: 22px;
}
.visual-card.selected-origin {
  opacity: 0;
}
.house-chapter {
  position: relative;
}
.house-spread {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr;
  align-items: end;
  gap: 6vw;
}
.spread-main {
  height: 660px;
  max-height: 80svh;
}
.spread-small {
  height: 390px;
}
.spread-main > img,
.spread-main > video {
  object-position: 50% 45%;
}
.spread-small > img {
  object-position: 50% 55%;
}
.experience-chapter {
  padding-bottom: 70px;
}
.portrait-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--paper) 27%, transparent) transparent;
}
.portrait-rail .visual-card {
  flex: 0 0 calc((100% - 48px) / 3);
  height: clamp(430px, 44vw, 650px);
  scroll-snap-align: start;
}
.portrait-rail .card-label {
  font-size: var(--type-card);
}
.rail-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
}
.rail-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
}
.rail-controls button:hover {
  background: #b98a5a22;
}
.area-chapter {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 9vw;
  align-items: end;
}
.area-picture {
  height: 560px;
}
.area-chapter .chapter-heading {
  display: block;
  margin: 0;
}
.area-chapter .quiet-link {
  margin-top: 40px;
}
.invitation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--linen);
}
.invitation-photo {
  position: relative;
  min-height: 600px;
}
.invitation-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-position: 50% 60%;
}
.invitation-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px var(--gutter);
  gap: 44px;
}
.invitation-body h2 {
  font-size: var(--type-title);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.footer {
  background: var(--forest);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 65px var(--gutter) 85px;
}
.footer-brand {
  width: 84px;
  height: 84px;
}
.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-contact,
.footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
  font-size: var(--t-small);
}
.footer a:not(.footer-brand) {
  min-height: 32px;
  padding-block: 6px;
}
.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-bottom {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 17%, transparent);
  font-size: var(--t-label);
  color: var(--linen);
}
.footer-bottom button {
  font-size: var(--t-label);
  margin-left: auto;
  min-height: 44px;
}
.booking-dock {
  position: fixed;
  bottom: 22px;
  right: var(--gutter);
  z-index: 16;
  border-radius: var(--radius-pill);
  padding: 5px;
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 4px 24px color-mix(in srgb, var(--shade) 15%, transparent);
  border: 1px solid var(--line);
}
.booking-dock button {
  min-height: 44px;
}
.dock-dates,
.dock-guests {
  display: none;
}
.dock-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--t-small);
  padding: 9px 21px;
}
.dock-submit svg {
  display: none;
}
.booking-dock.at-cover {
  visibility: hidden;
  pointer-events: none;
}
.sleep-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 0.75fr 1.3fr;
  gap: 7vw;
  align-items: end;
}
.sleep-picture {
  height: 600px;
}
.gather-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: end;
}
.cooking-card {
  height: 650px;
  grid-row: span 2;
}
.dinner-card {
  height: 410px;
}
.quiet-card {
  height: 285px;
}
.outdoor-chapter .chapter-heading .quiet-link {
  display: none;
}
.outdoor-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.7fr;
  gap: 4vw;
  align-items: end;
}
.garden-card {
  height: 720px;
  max-height: 85svh;
}
.pergola-card {
  height: 420px;
}
.practice-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: end;
  padding: var(--chapter-space) var(--gutter);
}
.practice-chapter .chapter-heading {
  margin: 0;
}
.practice-chapter .visual-card {
  height: 650px;
  max-height: 85svh;
}
.history-chapter {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 9vw;
  align-items: end;
}
.history-picture {
  height: 510px;
}
.history-chapter .quiet-link {
  margin-top: 8px;
}
.regional-chapter {
  position: relative;
}
.regional-layout {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8vw;
  align-items: end;
}
.regional-main {
  height: 660px;
}
.regional-side {
  height: 430px;
}
.local-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 28px;
}
.village-card {
  height: 660px;
  grid-row: span 2;
}
.culture-card {
  height: 380px;
}
.taste-card {
  height: 252px;
}
.island-chapter {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 5vw;
  align-items: end;
}
.island-pair {
  display: flex;
  gap: 22px;
  align-items: end;
}
.island-pair .visual-card {
  height: 430px;
  flex: 1;
}
.island-pair .card-label {
  font-size: var(--type-card);
}
.map-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 30px;
}
.map-invitation h2 {
  font-size: var(--type-title);
}
.stay-plan {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 52px;
}
.stay-plan h2 {
  font-size: var(--type-title);
}
.stay-chapters {
  padding-top: 0;
}
.stay-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 28px;
}
.group-card {
  height: 670px;
  grid-row: span 2;
}
.arrival-card {
  height: 370px;
}
.essentials-card {
  height: 272px;
}
.stay-extras-layout {
  display: flex;
  gap: 28px;
  align-items: flex-end;
}
.stay-extras-layout .visual-card {
  flex: 1;
  height: 510px;
}
.stay-extras-layout .card-label {
  font-size: var(--type-card);
}
/* One inset editorial surface, one native scroller, fixed access to return and booking. */
.paper-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  overflow: hidden;
}
.paper-dialog[open] {
  animation: none;
}
.paper-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.paper-scrim {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shade) 68%, transparent);
  backdrop-filter: blur(3px);
}
.paper-panel {
  position: absolute;
  inset: 12px;
  background: var(--paper);
  border-radius: var(--radius-sheet);
  overflow: hidden;
  color: var(--forest);
}
.paper-scroll {
  height: calc(100% - 64px);
  margin-top: 64px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--ink) 33%, transparent) transparent;
  scrollbar-width: thin;
  scroll-padding: 88px 0 40px;
  clip-path: inset(0 round 0 0 28px 28px);
}
.paper-scroll::-webkit-scrollbar {
  width: 8px;
}
.paper-scroll::-webkit-scrollbar-track {
  margin-block: 28px;
}
.paper-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ink) 33%, transparent);
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.paper-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 8;
}
.paper-bar button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--forest);
  min-height: 44px;
  padding: 8px 0;
  font-size: var(--t-small);
  font-weight: 500;
}
.paper-bar svg {
  width: 18px;
  height: 18px;
}
.paper-close svg {
  transform: rotate(180deg);
}
.paper-hero {
  position: relative;
  height: 68svh;
  min-height: 380px;
  max-height: 760px;
  overflow: hidden;
  background: var(--forest);
  color: var(--paper);
}
.paper-hero > img,
.paper-hero > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.paper-hero > video {
  opacity: 0;
  transition: opacity var(--dur);
}
.paper-hero.is-playing > video {
  opacity: 1;
}
.paper-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 13%, transparent), transparent 35%, color-mix(in srgb, var(--shade) 54%, transparent));
}
.paper-hero h2 {
  position: absolute;
  left: clamp(26px, 6vw, 100px);
  right: 35px;
  bottom: 60px;
  font: var(--type-title)/0.9 var(--serif);
  white-space: pre-line;
  letter-spacing: -0.035em;
  max-width: 1000px;
}
.paper-pull {
  position: absolute;
  bottom: 10px;
  left: calc(50% - 35px);
  width: 70px;
  height: 44px;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}
.paper-pull span {
  width: 35px;
  height: 3px;
  background: color-mix(in srgb, var(--paper) 61%, transparent);
  border-radius: var(--radius-s);
}
.paper-editorial {
  padding: 80px clamp(26px, 6vw, 100px) 108px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  column-gap: 9vw;
  row-gap: 50px;
  max-width: 1440px;
  margin: 0 auto;
}
.editorial-prose {
  min-width: 0;
}
.editorial-prose > p {
  font: var(--type-lede)/1.35 var(--serif);
  letter-spacing: -0.015em;
  margin-bottom: 34px;
  max-width: 650px;
}
.detail-passage {
  margin-top: 28px;
}
.detail-passage h3 {
  font: var(--type-subtitle)/1.15 var(--serif);
  margin-bottom: 14px;
}
.detail-passage p {
  font: var(--t-body)/1.85 var(--sans);
  color: var(--muted-strong);
  max-width: 650px;
}
.detail-passage .quiet-link {
  font-size: var(--t-small);
  margin-top: 13px;
}
.editorial-picture {
  margin: 0;
  align-self: start;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  height: 420px;
}
.editorial-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.paper-flight {
  will-change: transform, opacity;
  contain: layout paint;
  position: fixed;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
  transform-origin: 0 0;
  background: var(--forest);
  perspective: 1200px;
  box-shadow: 0 18px 60px color-mix(in srgb, var(--shade) 19%, transparent);
}
.fold-leaf {
  will-change: transform;
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
}
.fold-leaf img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
}
.fold-top {
  top: 0;
  transform-origin: 50% 100%;
}
.fold-top img {
  top: 0;
}
.fold-bottom {
  bottom: 0;
  transform-origin: 50% 0%;
}
.fold-bottom img {
  bottom: 0;
}
.fold-leaf:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 0%, transparent), color-mix(in srgb, var(--shade) 8%, transparent));
}
.paper-panel.is-opening .paper-scroll {
  visibility: hidden;
}
.paper-dialog .paper-bar button:focus-visible {
  outline-offset: 2px;
}
#paper-map {
  grid-column: 1/-1;
}
#paper-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-card);
}
#paper-map p {
  font: var(--t-label)/1.7 var(--sans);
  margin-top: 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (min-width: 1600px) {
  .home-cover .hero-copy {
    top: 24%;
  }
  .hero-rail {
    bottom: 45px;
  }
  .home-cover .hero-scroll {
    bottom: 335px;
  }
}
@media (max-width: 1000px) {
  .spread-main {
    height: 560px;
  }
  .spread-small {
    height: 330px;
  }
  .area-picture {
    height: 480px;
  }
  .cooking-card,
  .village-card,
  .group-card {
    height: 590px;
  }
  .dinner-card {
    height: 340px;
  }
  .quiet-card {
    height: 222px;
  }
  .culture-card {
    height: 330px;
  }
  .taste-card {
    height: 232px;
  }
  .arrival-card {
    height: 320px;
  }
  .essentials-card {
    height: 242px;
  }
  .island-chapter {
    display: block;
  }
  .island-pair {
    max-width: 720px;
    margin-left: auto;
  }
  .paper-editorial {
    column-gap: 6vw;
  }
  .editorial-picture {
    height: 360px;
  }
}
@media (max-width: 799px) {
  :root {
    --gutter: 24px;
    --radius: 20px;
    --chapter-space: 76px;
  }
  .site-header {
    padding: 18px 20px;
  }
  .brand {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .header-actions {
    gap: 10px;
  }
  .header-book {
    gap: 9px;
  }
  .hero {
    height: 100svh;
    min-height: 680px;
    max-height: 950px;
  }
  .hero-copy {
    left: 24px;
    right: 18px;
    bottom: 20%;
  }
  .hero-copy h1 {
    line-height: 0.91;
  }
  .home-cover .hero-copy {
    top: 25%;
  }
  .hero-facts {
    font-size: var(--t-small);
    max-width: 320px;
    margin-top: 22px;
  }
  .home-cover .hero-media img {
    object-position: 54% 62%;
  }
  .hero-rail {
    bottom: 24px;
    gap: 12px;
  }
  .hero-rail .visual-card {
    width: 168px;
    height: 204px;
    border-radius: var(--radius-card);
  }
  .hero-rail .card-label {
    left: 18px;
    bottom: 22px;
  }
  .hero-rail .visual-card > svg {
    right: 16px;
  }
  .hero-scroll {
    right: 24px;
    bottom: 26px;
  }
  .home-cover .hero-scroll {
    display: none;
  }
  .mobile-navigation {
    display: block;
    padding: 145px 28px 70px;
  }
  .menu-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    opacity: 0.17;
    border-radius: 0;
    z-index: -1;
  }
  .menu-links {
    gap: 32px;
  }
  .menu-links a {
    max-width: 320px;
  }
  .chapter-heading {
    display: block;
    margin-bottom: 32px;
  }
  .chapter-heading .quiet-link {
    margin-top: 22px;
    margin-bottom: 0;
  }
  .house-spread {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .spread-main {
    height: 490px;
    max-height: none;
    width: 84%;
  }
  .spread-small {
    height: 290px;
    width: 70%;
    justify-self: end;
    margin: 0;
  }
  .card-label {
    left: 24px;
    bottom: 26px;
    right: 24px;
  }
  .visual-card > svg {
    right: 22px;
    bottom: 28px;
    width: 18px;
    height: 18px;
  }
  .portrait-rail {
    margin-inline: -4px -24px;
    padding-right: 24px;
    gap: 18px;
  }
  .portrait-rail .visual-card {
    flex-basis: 76vw;
    height: 450px;
  }
  .experience-chapter {
    padding-bottom: 38px;
  }
  .area-chapter {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
    align-items: stretch;
  }
  .area-picture {
    height: 440px;
    width: 82%;
    align-self: flex-end;
  }
  .area-chapter .quiet-link {
    margin-top: 24px;
  }
  .invitation {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .invitation-photo {
    min-height: 380px;
  }
  .invitation-body {
    padding: 60px 24px 68px;
    gap: 28px;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
    padding: 45px 24px 90px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-contact,
  .footer nav {
    font-size: var(--t-small);
  }
  .footer-bottom {
    gap: 14px;
    flex-wrap: wrap;
    font-size: var(--t-label);
  }
  .footer-bottom button {
    margin-left: auto;
    font-size: var(--t-label);
  }
  .footer-bottom a {
    margin-left: auto;
  }
  .booking-dock {
    bottom: 16px;
    right: 18px;
  }
  .sleep-chapter {
    display: block;
  }
  .sleep-chapter .chapter-heading {
    margin-bottom: 0;
  }
  .essential-line {
    font-size: var(--t-micro);
    margin: 24px 0 34px;
    max-width: 240px;
  }
  .sleep-picture {
    height: 450px;
  }
  .gather-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .cooking-card {
    height: 470px;
    grid-row: auto;
    width: 86%;
  }
  .dinner-card {
    height: 400px;
    width: 85%;
    justify-self: end;
  }
  .quiet-card {
    height: 275px;
    width: 80%;
  }
  .outdoor-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .garden-card {
    height: 530px;
    max-height: none;
    width: 90%;
  }
  .pergola-card {
    height: 320px;
    width: 76%;
    justify-self: end;
  }
  .practice-chapter {
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: stretch;
  }
  .practice-chapter .visual-card {
    height: 480px;
    max-height: none;
    width: 90%;
    align-self: flex-end;
  }
  .history-chapter {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 35px;
  }
  .history-picture {
    height: 410px;
    width: 85%;
  }
  .history-chapter .chapter-heading {
    margin-bottom: 24px;
  }
  .regional-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .regional-main {
    height: 500px;
    width: 88%;
  }
  .regional-side {
    height: 310px;
    width: 73%;
    justify-self: end;
    margin: 0;
  }
  .local-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .village-card {
    grid-row: auto;
    height: 490px;
    width: 83%;
  }
  .culture-card {
    height: 300px;
    width: 88%;
    justify-self: end;
  }
  .taste-card {
    height: 330px;
    width: 74%;
  }
  .island-pair {
    display: block;
  }
  .island-pair .visual-card {
    height: 360px;
    width: 86%;
    margin-bottom: 26px;
  }
  .island-pair .visual-card:nth-child(2) {
    margin: 0 0 0 auto;
    width: 78%;
  }
  .map-invitation {
    display: block;
    padding-top: 0;
  }
  .map-invitation .quiet-link {
    margin-top: 26px;
  }
  .stay-plan {
    display: block;
    padding-bottom: 35px;
  }
  .stay-plan .quiet-link {
    margin-top: 25px;
  }
  .stay-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .group-card {
    grid-row: auto;
    height: 470px;
    width: 86%;
  }
  .arrival-card {
    height: 370px;
    width: 80%;
    justify-self: end;
  }
  .essentials-card {
    height: 290px;
    width: 88%;
  }
  .stay-extras-layout {
    display: block;
  }
  .stay-extras-layout .visual-card {
    height: 420px;
    width: 84%;
    margin: 0 0 28px;
  }
  .stay-extras-layout .visual-card:nth-child(2) {
    margin: 0 0 28px auto;
  }
  .stay-extras-layout .visual-card:nth-child(3) {
    height: 310px;
    margin-top: 0;
    width: 82%;
  }
  .paper-panel {
    inset: 8px;
    border-radius: var(--radius-card);
  }
  .paper-scroll {
    clip-path: inset(0 round 0 0 22px 22px);
  }
  .paper-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 8;
  }
  .paper-bar button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--forest);
    min-height: 44px;
    padding: 8px 0;
    font-size: var(--t-small);
    font-weight: 500;
  }
  .paper-hero {
    height: 58svh;
    min-height: 340px;
    max-height: 570px;
  }
  .paper-hero h2 {
    left: 26px;
    right: 20px;
    bottom: 58px;
  }
  .paper-editorial {
    display: flex;
    flex-direction: column;
    padding: 42px 26px 112px;
    gap: 32px;
  }
  .editorial-prose > p {
    line-height: 1.4;
    margin-bottom: 30px;
  }
  .detail-passage p {
    font-size: var(--t-body);
    line-height: 1.85;
  }
  .editorial-picture {
    position: relative;
    top: auto;
    height: 330px;
    width: 100%;
    flex-shrink: 0;
  }
  .rail-controls button {
    width: 40px;
    height: 40px;
  }
  #paper-map iframe {
    height: 340px;
  }
  .paper-scroll::-webkit-scrollbar-track {
    margin-block: 22px;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 20px;
  }
  .hero {
    min-height: 590px;
  }
  .home-cover .hero-copy {
    top: 24%;
  }
  .hero-facts {
    font-size: var(--t-label);
    margin-top: 18px;
  }
  .hero-rail .visual-card {
    width: 150px;
    height: 177px;
  }
  .hero-rail {
    bottom: 20px;
  }
  .header-actions {
    gap: 4px;
  }
  .brand {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .header-book {
    font-size: var(--t-small);
    gap: 8px;
  }
  .paper-bar button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--forest);
    min-height: 44px;
    padding: 8px 0;
    font-size: var(--t-small);
    font-weight: 500;
  }
  .paper-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 8;
  }
  .paper-hero {
    min-height: 320px;
  }
  .paper-editorial {
    padding-inline: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
html.motion-off {
  scroll-behavior: auto;
}
.motion-off .visual-card > img,
.motion-off .visual-card > video {
  transition: none;
  transform: none !important;
}

.picture-action {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: var(--paper);
  color: var(--forest);
}

.gallery-top .round-button {
  margin-left: auto;
}

@media (max-width: 799px) {
  .rail-controls button {
    width: 44px;
    height: 44px;
  }
}

/* Continuous editorial scenes, inside the existing card experience. */
.paper-journal {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-block: 28px 16px;
  width: 100%;
  min-width: 0;
}
.journal-spread {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 6vw;
  min-width: 0;
}
.journal-spread:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}
.journal-spread:nth-child(even) .journal-media {
  order: 2;
}
.journal-media {
  margin: 0;
  position: relative;
  height: 440px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--forest);
  min-width: 0;
}
.journal-media img,
.journal-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-media video {
  opacity: 0;
  transition: opacity var(--dur);
}
.journal-media.is-playing video {
  opacity: 1;
}
.journal-copy {
  min-width: 0;
}
.journal-copy h3 {
  font: var(--type-subtitle)/1.04 var(--serif);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.journal-copy p {
  font: var(--t-body)/1.85 var(--sans);
  color: var(--muted-strong);
  max-width: 600px;
}
.journal-copy p + p {
  margin-top: 20px;
}
@media (max-width: 1000px) {
  .journal-spread {
    gap: 5vw;
  }
  .journal-media {
    height: 370px;
  }
  .journal-copy p {
    font-size: var(--t-body);
  }
}
@media (max-width: 799px) {
  .paper-journal {
    gap: 52px;
    padding-block: 8px 16px;
  }
  .journal-spread,
  .journal-spread:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .journal-spread:nth-child(even) .journal-media {
    order: 0;
  }
  .journal-copy {
    order: -1;
  }
  .journal-media {
    height: 340px;
    width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-card);
  }
  .journal-copy h3 {
    margin-bottom: 20px;
  }
  .journal-copy p {
    font-size: var(--t-body);
    line-height: 1.85;
  }
}

.paper-scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.journal-media.landscape {
  height: auto;
  aspect-ratio: 1.5;
  width: 100%;
}

/* Shared editorial metadata appears after the story, without competing with its cover. */
.paper-technical {
  grid-column: 1/-1;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.paper-technical h3 {
  font: 500 var(--t-small)/1.5 var(--sans);
  margin: 0 0 18px;
}
.paper-technical dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.paper-technical dl > div {
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 13%, transparent);
  min-width: 0;
}
.paper-technical dt {
  font: var(--t-label)/1.5 var(--sans);
  color: var(--muted-strong);
}
.paper-technical dd {
  font: 500 var(--t-body)/1.65 var(--sans);
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .paper-technical dl {
    grid-template-columns: 1fr;
  }
}

/* Legible page navigation; photographic cards remain the story invitations. */
.desktop-navigation {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  margin-left: auto;
  margin-right: clamp(28px, 4vw, 64px);
}
.desktop-navigation a {
  font: 500 var(--t-body)/1.4 var(--sans);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-block: 8px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.desktop-navigation a:hover,
.desktop-navigation a[aria-current="page"] {
  border-bottom-color: currentColor;
}
.mobile-menu .menu-word {
  font: 500 var(--t-small)/1 var(--sans);
  height: auto;
  width: auto;
  background: transparent;
  transform: none;
}
.mobile-menu[aria-expanded="true"] .menu-word {
  transform: none;
}
.route-home .portrait-rail .visual-card {
  flex-basis: calc((100% - 24px) / 2);
}
.paper-at-glance {
  margin-top: 36px;
  padding-top: 22px;
}
.paper-at-glance dl {
  grid-template-columns: 1fr;
  gap: 0;
}
.paper-at-glance dl > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  align-items: baseline;
}
.paper-at-glance dt {
  font-size: var(--t-small);
}
.paper-at-glance dd {
  font-size: var(--t-small);
  margin: 0;
  font-weight: 400;
}
.paper-next {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
.stay-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding-top: 35px;
}
.stay-overview h2 {
  font-size: var(--type-title);
}
.stay-overview-heading > p {
  font: var(--t-body)/1.8 var(--sans);
  margin-top: 28px;
  max-width: 290px;
  color: var(--muted);
}
.stay-overview dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.stay-overview dl > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.stay-overview dt {
  font: 500 var(--t-small)/1.6 var(--sans);
  margin-bottom: 8px;
}
.stay-overview dd {
  font: var(--t-body)/1.8 var(--sans);
  margin: 0;
  color: var(--muted-strong);
}
@media (min-width: 1000px) {
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 999px) {
  .desktop-navigation {
    display: none;
  }
  .header-actions {
    gap: 20px;
  }
}
@media (max-width: 799px) {
  .header-actions {
    gap: 12px;
  }
  .header-book {
    font-size: var(--t-small);
  }
  .site-header {
    gap: 16px;
  }
  .mobile-menu {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }
  .hero-facts {
    max-width: 330px;
  }
  .route-home .portrait-rail .visual-card {
    flex-basis: 76vw;
  }
  .hero-rail .card-label {
    right: 18px;
    line-height: 1.02;
  }
  .stay-overview {
    display: block;
    padding-top: 24px;
  }
  .stay-overview-heading > p {
    max-width: 330px;
    margin-top: 22px;
    margin-bottom: 32px;
  }
  .stay-overview dl {
    display: block;
  }
  .stay-overview dl > div {
    padding: 20px 0;
  }
  .paper-at-glance dl > div {
    display: block;
  }
  .paper-at-glance dd {
    margin-top: 4px;
  }
}
@media (max-width: 360px) {
  .site-header {
    padding-inline: 16px;
    gap: 8px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-book {
    font-size: var(--t-small);
  }
  .brand {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* The first view remains complete in short laptop and phone windows. */
@media (min-width: 800px) and (max-height: 720px) {
  .hero {
    min-height: 100svh;
  }
  .home-cover .hero-copy {
    top: 23%;
  }
  .hero-rail {
    bottom: 22px;
  }
  .hero-rail .visual-card {
    height: clamp(145px, 27svh, 185px);
  }
  .hero-facts {
    margin-top: 18px;
  }
}
@media (max-width: 799px) and (max-height: 720px) {
  .hero {
    min-height: 100svh;
  }
  .home-cover .hero-copy {
    top: 22%;
  }
  .hero-rail .visual-card {
    height: clamp(156px, 28svh, 190px);
  }
  .hero-rail {
    bottom: 20px;
  }
}

/* Desktop paper cards: always portrait, never full width (Ben, 7 Oct).
   One rule for every section: groups sit side by side on a shared bottom edge. */
@media (min-width: 800px) {
  :root {
    --card-width: clamp(300px, 27vw, 420px);
  }
  :is(
      .house-spread,
      .gather-layout,
      .outdoor-layout,
      .regional-layout,
      .local-layout,
      .stay-layout,
      .portrait-rail,
      .island-pair,
      .stay-extras-layout
    ) {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(16px, 2vw, 28px);
    grid-template-columns: none;
    overflow: visible;
  }
  main > section:not(.hero) .visual-card {
    flex: 0 1 var(--card-width);
    width: var(--card-width);
    max-width: var(--card-width);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 5;
    grid-row: auto;
    grid-column: auto;
    align-self: end;
    margin: 0;
    transform: none;
  }
}

/* Scroll to return (v33): a quiet pill at the end of reading. The ring fills
   with the pull and the pill turns forest once release would fold the story home. */
.fold-return {
  position: absolute;
  z-index: 9;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--forest);
  box-shadow: 0 6px 28px color-mix(in srgb, var(--shade) 13%, transparent);
  font: 500 var(--t-small)/1 var(--sans);
  transform: translate(-50%, 0);
  animation: fold-arrive var(--dur) var(--ease-out) both;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast) var(--ease-out);
}
.fold-return[hidden] {
  display: none;
}
.fold-return.is-committed {
  background: var(--forest);
  color: var(--paper);
  transform: translate(-50%, 0) scale(1.04);
}
.fold-ring {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.fold-ring svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  fill: none;
  stroke-width: 2.5;
}
.fold-track {
  stroke: currentColor;
  opacity: 0.16;
}
.fold-progress {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: calc(100.5 * (1 - var(--fold-progress, 0)));
}
.fold-arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
.fold-return.is-committed .fold-arrow {
  transform: rotate(180deg);
}
.fold-return:hover {
  transform: translate(-50%, -1px);
}
@keyframes fold-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fold-return {
    animation: none;
    transition: none;
  }
}

/* Slim footer: logo, two ways to reach us, the small print. */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  padding: 40px var(--gutter) 34px;
}
.footer-brand {
  width: 56px;
  height: 56px;
}
.footer-contact {
  flex-direction: row;
  gap: 28px;
  padding-top: 0;
  font-size: var(--t-body);
}
.footer-bottom {
  margin-left: auto;
  padding-top: 0;
  border-top: 0;
  gap: 22px;
  opacity: 0.75;
}
.footer-bottom button {
  margin-left: 0;
}
@media (max-width: 1000px) {
  .footer {
    padding: 30px 24px 28px;
  }
  .footer-bottom {
    margin-left: 0;
    width: 100%;
  }
}

/* The floating booking pill glides in after the cover and steps aside for the closing and footer. */
.booking-dock {
  transition:
    opacity var(--dur) var(--ease-out),
    translate var(--dur-slow) var(--ease-out);
}
.booking-dock.at-cover,
.booking-dock.at-end {
  visibility: visible;
  opacity: 0;
  translate: 0 18px;
  pointer-events: none;
}

/* The cover is always exactly one screen: no caps on tall displays, no overflow on short ones. */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  max-height: none;
}
@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
  }
}

/* Menu: the word stays level (an older icon rule rotated the first span), plus a way to book or ask. */
.mobile-menu[aria-expanded="true"] span.menu-word,
.mobile-menu span.menu-word {
  transform: none;
}
.menu-foot {
  display: grid;
  gap: 22px;
  justify-items: start;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 17%, transparent);
}
.menu-book {
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--forest);
  font: 500 var(--t-body)/1 var(--sans);
  transition: transform var(--dur-fast);
}
.menu-book:active {
  transform: scale(0.97);
}
.menu-contact {
  display: flex;
  gap: 28px;
  font: var(--t-body)/1 var(--sans);
}
.menu-contact a {
  padding-block: 10px;
  opacity: 0.85;
}
@media (min-width: 1001px) {
  .menu-foot {
    grid-column: 2;
    margin-top: 0;
  }
}

/* The cover title arrives on first paint, without waiting for scripts. */
.hero-copy {
  animation: cover-in var(--dur-slow) var(--ease-out) var(--dur-fast) both;
}
@keyframes cover-in {
  from {
    opacity: 0.01;
    transform: translate3d(0, 22px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    animation: none;
  }
}

/* ---------- booking-refinement ---------- */
/* A quiet, directly editable date range for the whole-villa stay. */
.booking-dialog {
  --booking-inset: 32px;
  width: 820px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  border-radius: var(--radius-sheet);
}
.booking-dialog > .dialog-top {
  padding: 24px var(--booking-inset) 16px;
}
.booking-dialog .dialog-top h2 {
  font-size: var(--type-dialog);
  line-height: 1.05;
}
.booking-scroll {
  padding-bottom: 0;
  overscroll-behavior: contain;
}
.booking-dialog .chosen-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.booking-dialog .date-field {
  display: block;
  text-align: left;
  padding: 6px 0 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.booking-dialog .date-field:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.booking-dialog .date-field[aria-pressed="true"]:after {
  transform: scaleX(1);
}
.booking-dialog .date-field > span {
  display: block;
  font: var(--t-small)/1.4 var(--sans);
  color: var(--muted);
  margin-bottom: 7px;
}
.booking-dialog .date-field strong {
  display: block;
  font: 500 var(--t-lead)/1.4 var(--sans);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.booking-dialog .date-field:hover strong {
  color: var(--green);
}
.booking-dialog .date-field:focus-visible {
  outline-offset: 4px;
  border-radius: 2px;
}
.date-guidance {
  font: var(--t-small)/1.5 var(--sans);
  color: var(--muted);
  margin: 10px 0 8px;
  min-height: 20px;
}
.booking-calendar {
  position: relative;
}
.booking-dialog .calendar-heading {
  position: relative;
  margin: 0 0 8px;
  height: 44px;
}
.booking-dialog .calendar-heading .round-button {
  position: absolute;
  top: 0;
  border: 0;
  background: transparent;
}
.booking-dialog #previous-month {
  left: 0;
}
.booking-dialog #next-month {
  right: 0;
}
.booking-dialog .calendar-heading .round-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--forest) 7%, var(--paper));
}
.booking-dialog .calendar-heading svg {
  width: 18px;
  height: 18px;
}
.booking-dialog #month-label,
.booking-dialog #second-month-label {
  font: 500 var(--t-body)/44px var(--sans);
  letter-spacing: 0;
  text-align: center;
  position: absolute;
  top: 0;
  width: calc((100% - 32px) / 2);
  margin: 0;
  pointer-events: none;
}
.booking-dialog #month-label {
  left: 0;
}
.booking-dialog #second-month-label {
  right: 0;
}
.calendar-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.booking-dialog .calendar-weekdays {
  font: var(--t-label)/24px var(--sans);
  gap: 0;
  margin-bottom: 4px;
}
.booking-dialog .calendar-days {
  gap: 3px 0;
}
.booking-dialog .calendar-days button,
.booking-dialog .calendar-days .blank {
  height: 44px;
  min-height: 44px;
  aspect-ratio: auto;
}
.booking-dialog .calendar-days button {
  position: relative;
  isolation: isolate;
  background: transparent;
  border-radius: 0;
  font: var(--t-small)/1 var(--sans);
  opacity: 1;
}
.booking-dialog .calendar-days button > span {
  position: relative;
  z-index: 2;
}
.booking-dialog .calendar-days button:before,
.booking-dialog .calendar-days button:after {
  content: "";
  position: absolute;
  top: 4px;
  height: 36px;
  z-index: 0;
  pointer-events: none;
}
.booking-dialog .calendar-days button:before {
  left: 0;
  right: 0;
  background: transparent;
}
.booking-dialog .calendar-days button:after {
  width: 36px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}
.booking-dialog .calendar-days button:hover:not(:disabled):after {
  background: color-mix(in srgb, var(--forest) 9%, var(--paper));
}
.booking-dialog .calendar-days button.in-range:before,
.booking-dialog .calendar-days button.range-start:before,
.booking-dialog .calendar-days button.range-end:before {
  background: color-mix(in srgb, var(--forest) 10%, var(--paper));
}
.booking-dialog .calendar-days button.range-start:before {
  left: 50%;
}
.booking-dialog .calendar-days button.range-end:before {
  right: 50%;
}
.booking-dialog .calendar-days button.in-range.row-start:before {
  border-radius: 18px 0 0 var(--radius-card);
}
.booking-dialog .calendar-days button.in-range.row-end:before {
  border-radius: 0 18px 18px 0;
}
.booking-dialog .calendar-days button.selected {
  color: var(--paper);
}
.booking-dialog .calendar-days button.selected:after,
.booking-dialog .calendar-days button.selected:hover:after {
  background: var(--forest);
}
.booking-dialog .calendar-days button.preview-end:not(.selected):after {
  background: color-mix(in srgb, var(--forest) 12%, var(--paper));
  box-shadow: inset 0 0 0 1px var(--forest);
}
.booking-dialog .calendar-days button:disabled {
  color: color-mix(in srgb, var(--ink) 38%, var(--paper));
  opacity: 1;
}
.booking-dialog .calendar-days button:disabled.selected {
  color: var(--paper);
}
.booking-dialog .calendar-days button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
  border-radius: var(--radius-s);
  z-index: 3;
}
.booking-dialog .calendar-days button.today > span:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}
.booking-dialog .booking-guests {
  margin-top: 12px;
  padding: 14px 0;
  border-bottom: 0;
}
.booking-dialog .booking-guests > div > strong {
  font: 500 var(--t-body)/1.5 var(--sans);
}
.booking-dialog .booking-guests > div > span {
  font: var(--t-label)/1.5 var(--sans);
  color: var(--muted);
  margin-top: 3px;
}
.booking-dialog .stepper {
  gap: 12px;
}
.booking-dialog .stepper > button {
  width: 44px;
  height: 44px;
  font: 22px/1 var(--sans);
  border-color: var(--line);
}
.booking-dialog .stepper > button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--forest) 7%, var(--paper));
}
.booking-dialog .stepper > span {
  font-size: var(--t-body) !important;
  min-width: 24px;
}
.booking-bottom {
  padding: 16px var(--booking-inset) 20px;
}
.booking-dialog .booking-footer {
  align-items: center;
  gap: 20px;
}
.booking-selection {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.booking-selection > strong {
  font: 500 var(--t-small)/1.5 var(--sans);
}
.booking-dialog .booking-footer .text-button {
  font: var(--t-label)/1.5 var(--sans);
  text-underline-offset: 4px;
  color: var(--muted);
}
.booking-dialog .booking-footer .pill {
  min-height: 48px;
  padding: 12px 24px;
  font-size: var(--t-small);
  gap: 28px;
}
.booking-dialog .design-annotation {
  font: var(--t-label)/1.5 var(--sans);
  margin-top: 12px;
}
@media (max-width: 799px) {
  .booking-dialog {
    --booking-inset: 24px;
    width: 440px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    border-radius: var(--radius-card);
  }
  .booking-dialog > .dialog-top {
    padding: 24px var(--booking-inset) 14px;
  }
  .booking-dialog .chosen-dates {
    gap: 20px;
  }
  .booking-dialog .date-field strong {
    font-size: var(--t-lead);
  }
  .booking-dialog #month-label {
    width: 100%;
  }
  .calendar-months {
    display: block;
  }
  .calendar-second {
    display: none;
  }
  .booking-dialog .booking-guests {
    padding: 16px 0;
  }
  .booking-bottom {
    padding: 16px var(--booking-inset) 20px;
  }
  .booking-selection {
    display: block;
  }
  .booking-dialog .booking-footer .text-button {
    display: block;
    min-height: 30px;
    padding: 4px 0;
  }
  .booking-dialog .booking-footer .pill {
    gap: 16px;
    padding-inline: 20px;
  }
}
@media (max-width: 359px) {
  .booking-dialog {
    --booking-inset: 18px;
  }
  .booking-dialog .date-field strong {
    font-size: var(--t-body);
  }
  .booking-dialog .booking-guests > div > span {
    max-width: 130px;
    font-size: var(--t-label);
  }
  .booking-dialog .stepper {
    gap: 8px;
  }
  .booking-dialog .booking-footer .pill {
    padding-inline: 16px;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-dialog .date-field:after {
    transition: none;
  }
}

/* Phone: the planner is a sheet that rises from the bottom edge. */
@media (max-width: 799px) {
  .booking-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    max-height: calc(100dvh - 28px);
    border-radius: 26px 26px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .booking-dialog[open] {
    animation: sheet-up var(--dur-slow) var(--ease-out);
  }
  .booking-dialog > .dialog-top::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--forest) 18%, transparent);
  }
  .booking-dialog > .dialog-top {
    position: relative;
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}
.booking-dialog .date-guidance {
  transition: color var(--dur-fast);
}
.booking-dialog .date-guidance.is-preview {
  color: var(--forest);
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  .booking-dialog[open] {
    animation: none;
  }
}

/* ---------- patterns ---------- */
/* The four section layouts: feature, pair, rail, list. Built on the Codex tokens. */
.pattern .chapter-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.chapter-text {
  max-width: 34em;
  font: var(--t-lead)/1.7 var(--sans);
  opacity: 0.82;
}
.pattern .quiet-link {
  justify-self: start;
}
.pattern-cards {
  display: flex;
  gap: 14px;
}
.pattern-cards .visual-card {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 5;
  height: auto;
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Phone */
@media (max-width: 799px) {
  .pattern-feature .pattern-cards .visual-card {
    width: 88%;
  }
  .pattern-pair .pattern-cards {
    flex-direction: column;
    gap: 18px;
  }
  .pattern-pair .pattern-cards .visual-card {
    width: 84%;
  }
  .pattern-pair .pattern-cards .visual-card:nth-child(2) {
    align-self: flex-end;
  }
  .pattern-rail .pattern-cards {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pattern-rail .pattern-cards::-webkit-scrollbar {
    display: none;
  }
  .pattern-rail .pattern-cards .visual-card {
    width: 74%;
    scroll-snap-align: start;
  }
}

/* Desktop: portrait cards with a capped width on a shared bottom edge */
@media (min-width: 800px) {
  .pattern-cards {
    align-items: flex-end;
    gap: clamp(16px, 2vw, 28px);
  }
  .pattern-cards .visual-card {
    width: clamp(300px, 27vw, 420px);
  }
  .pattern-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: clamp(32px, 5vw, 96px);
  }
  .pattern-feature .chapter-heading {
    margin-bottom: 0;
  }
}

/* One booking action per device: header on desktop, the floating dock on phones. */
@media (max-width: 799px) {
  .header-book {
    display: none;
  }
}
@media (min-width: 800px) {
  .booking-dock {
    display: none !important;
  }
}

/* Inner-page heroes: stronger shade for readable titles (audit). */
.page-cover .hero-wash,
.home-cover .hero-wash {
  background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 35%, transparent) 0%, color-mix(in srgb, var(--shade) 8%, transparent) 32%, color-mix(in srgb, var(--shade) 15%, transparent) 55%, color-mix(in srgb, var(--shade) 70%, transparent) 100%);
}
.hero-scroll {
  display: none;
}

/* Open stories have no header bar: just a small floating return over the cover. */
.paper-bar {
  height: auto;
  padding: 14px;
  background: none;
  border: 0;
  pointer-events: none;
  right: auto;
}
.paper-bar .paper-close {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: color-mix(in srgb, var(--shade) 25%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.paper-bar .paper-close span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.paper-bar .paper-close:hover {
  background: color-mix(in srgb, var(--shade) 40%, transparent);
}
.paper-bar .paper-close:active {
  transform: scale(0.94);
}
.paper-scroll {
  height: 100%;
  margin-top: 0;
  clip-path: inset(0 round 28px);
}
.paper-hero {
  touch-action: pan-x;
  cursor: grab;
}
.paper-hero:active {
  cursor: grabbing;
}

/* ---------- landing ---------- */
/* Landing pages: the campaign LP's one screen, in the site's styling.
   Title, facts and one glassy booking row sit on the photo; tall cards run along the bottom. */
.route-landing .lp-cover .hero-copy {
  top: auto;
  bottom: calc(var(--lp-rail-bottom) + var(--lp-card-h) + 26px);
}
.route-landing .lp-cover {
  --lp-card-w: 150px;
  --lp-card-h: 196px;
  --lp-rail-bottom: 18px;
}
.route-landing .hero-rail {
  bottom: var(--lp-rail-bottom);
}
.route-landing .hero-rail .visual-card {
  width: var(--lp-card-w);
  height: var(--lp-card-h);
}
.route-landing .hero-copy h1 {
  font-size: clamp(50px, 6.2vw, 92px);
}
.route-landing .hero-facts {
  margin-top: 14px;
  font-size: var(--t-small);
}
.lp-booking {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.lp-stays {
  display: flex;
  gap: 6px;
  flex: none;
}
.lp-stay,
.lp-more {
  min-height: 44px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 7%, transparent);
  color: var(--paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.lp-stay {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  width: 50px;
  padding: 0;
}
.lp-stay strong {
  font: 500 var(--t-label)/1 var(--sans);
}
.lp-stay span {
  font: var(--t-micro)/1 var(--sans);
  opacity: 0.85;
}
.lp-more {
  width: 34px;
  padding-bottom: 7px;
  font: var(--t-lead)/1 var(--sans);
}
.lp-stay:hover,
.lp-more:hover {
  background: color-mix(in srgb, var(--paper) 19%, transparent);
}
.lp-stay:active,
.lp-more:active {
  transform: scale(0.96);
}
.lp-stay[aria-pressed='true'] {
  background: var(--paper);
  color: var(--forest);
}
.lp-stay[data-later] {
  display: none;
}
.lp-price {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--paper);
}
.lp-price strong {
  font: 500 var(--t-body)/1 var(--sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lp-price span {
  font: var(--t-micro)/1.2 var(--sans);
  opacity: 0.85;
  white-space: nowrap;
}
.lp-check {
  margin-left: auto;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 24px;
  background: var(--paper);
  color: var(--forest);
  font: 600 var(--t-label)/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.lp-check:hover {
  background: #fff;
}
.lp-check:active {
  transform: scale(0.97);
}
/* Phone: one simple line — two stays, "…", and the price inside the button. */
.lp-long {
  display: none;
}
.lp-booking .lp-price:has(+ .lp-check .lp-short) {
  display: none;
}
@media (min-width: 800px) {
  .lp-long {
    display: inline;
  }
  .lp-short {
    display: none;
  }
  .lp-booking .lp-price:has(+ .lp-check .lp-short) {
    display: grid;
  }
  .route-landing .lp-cover {
    --lp-card-w: 205px;
    --lp-card-h: 245px;
    --lp-rail-bottom: 38px;
  }
  .lp-booking {
    gap: 22px;
    margin-top: 24px;
  }
  .lp-stay {
    display: flex;
    align-items: baseline;
    gap: 5px;
    width: auto;
    padding: 0 22px;
  }
  .lp-stay strong {
    font-size: var(--t-small);
  }
  .lp-stay span {
    font-size: var(--t-micro);
  }
  .lp-stay[data-later] {
    display: flex;
  }
  .lp-stay[data-more],
  .lp-more:not(.always) {
    display: none;
  }
  .lp-price strong {
    font-size: var(--t-lead);
  }
  .lp-price span {
    font-size: var(--t-micro);
  }
  .lp-check {
    margin-left: 0;
    padding: 0 22px;
    font-size: var(--t-small);
  }
}
/* Landing pages are one screen: no floating dock over the offer. */
.route-landing .booking-dock {
  display: none !important;
}

/* Fit by height as well as width, so short screens never push the title into the header. */
.route-landing .lp-cover {
  --lp-card-h: min(196px, 26svh);
  --lp-card-w: calc(var(--lp-card-h) * 0.77);
}
.route-landing .hero-copy h1 {
  font-size: min(clamp(46px, 6.2vw, 92px), 9.5svh);
}
@media (max-width: 380px) {
  .lp-booking {
    gap: 8px;
  }
  .lp-stay {
    width: 46px;
  }
  .lp-more {
    width: 30px;
  }
  .lp-check {
    padding: 0 13px;
  }
}
@media (min-width: 800px) {
  .route-landing .lp-cover {
    --lp-card-h: min(245px, 29svh);
    --lp-card-w: calc(var(--lp-card-h) * 0.84);
  }
}
/* Mid-size screens: three stays and "…", so the line stays on one row. */
@media (min-width: 800px) and (max-width: 1180px) {
  .lp-booking {
    gap: 14px;
  }
  .lp-stay[data-mid] {
    display: none;
  }
  .lp-more.mid {
    display: block;
  }
  .lp-stay {
    padding: 0 16px;
  }
}

/* Landing header: logo, the place, and share (as on the campaign LP). No site menu. */
.lp-header { justify-content: flex-start; gap: 12px; }
.lp-place { display: flex; align-items: center; gap: 6px; margin: 0 0 0 auto; font-size: var(--t-label); font-weight: 500; letter-spacing: .01em; }
.lp-place svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lp-share { position: relative; }
.lp-share-button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: color-mix(in srgb, var(--ink) 25%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 31%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background var(--dur-fast); }
.lp-share-button:hover { background: color-mix(in srgb, var(--ink) 44%, transparent); }
.lp-share-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lp-share-note { position: absolute; right: 0; top: calc(100% + 8px); max-width: 70vw; padding: 9px 13px; border-radius: 10px; background: var(--paper); color: var(--ink, var(--ink)); text-shadow: none; font-size: var(--t-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; translate: 0 -4px; pointer-events: none; transition: opacity var(--dur-fast), translate var(--dur-fast); }
.lp-share-note.on { opacity: 1; translate: 0 0; }
@media (min-width: 700px) { .lp-header { gap: 18px; } .lp-place { margin-left: 18px; margin-right: auto; font-size: var(--t-small); } }

/* Stay chips: equal size, dates centred (baseline-aligned inside, centred as a row). */
@media (min-width: 800px) {
  .lp-stays { gap: 8px; }
  .lp-stay {
    display: grid;
    grid-auto-flow: column;
    align-items: baseline;
    align-content: center;
    justify-content: center;
    column-gap: 5px;
    height: 44px;
    min-height: 0;
    width: 104px;
    padding: 0;
  }
  .lp-stay[data-later] { display: grid; }
  .lp-stay[data-more] { display: none; }
  .lp-more { width: 44px; height: 44px; min-height: 0; }
}
@media (min-width: 800px) and (max-width: 1180px) {
  .lp-stay { width: 92px; padding: 0; }
  .lp-stay[data-mid] { display: none; }
}
.lp-more { display: grid; place-items: center; padding: 0 0 6px; }
.lp-more:not(.always) { display: none; }
@media (max-width: 799px) { .lp-more { display: grid; } }
@media (min-width: 800px) and (max-width: 1180px) { .lp-more.mid { display: grid; } }
.lp-booking .lp-more { width: 44px; height: 44px; min-height: 0; }

/* Phone: roomier stay chips that use the free space before the button. */
@media (max-width: 799px) {
  .lp-booking { gap: 8px; }
  .lp-stays { gap: 6px; }
  .lp-stay { width: 60px; height: 44px; min-height: 0; gap: 3px; }
  .lp-stay strong { font-size: var(--t-small); }
  .lp-stay span { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .lp-stay { width: 54px; }
  .lp-check { padding: 0 13px; }
}

/* Larger cards, close to the main site's cover cards (was 150×196 phone, 205×245 desktop). */
.route-landing .lp-cover {
  --lp-card-h: min(240px, 29svh);
  --lp-card-w: calc(var(--lp-card-h) * 0.8);
}
@media (min-width: 800px) {
  .route-landing .lp-cover {
    --lp-card-h: min(clamp(250px, 22vw, 340px), 34svh);
    --lp-card-w: calc(var(--lp-card-h) * 0.8);
  }
}

/* ---------- reveal ---------- */
/* Cards arrive in a staggered rise: opacity, translate and scale only (compositor-friendly).
   Uses the individual translate/scale properties so GSAP's transform on open is untouched. */
html.rv-on :is(.hero-rail, .pattern-cards) > .visual-card:not(.rv-done) {
  opacity: 0;
  translate: 0 56px;
  scale: 0.94;
}
html.rv-on :is(.hero-rail, .pattern-cards) > .visual-card:not(.rv-done) > img {
  scale: 1.14;
}
html.rv-on :is(.hero-rail, .pattern-cards) > .visual-card.rv-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    translate 1.25s var(--ease-out),
    scale 1.25s var(--ease-out);
  transition-delay: var(--rv-delay, 0s);
  will-change: opacity, translate, scale;
}
html.rv-on :is(.hero-rail, .pattern-cards) > .visual-card.rv-in > img {
  scale: 1;
  transition: scale 1.8s var(--ease-out);
  transition-delay: var(--rv-delay, 0s);
}
/* Hero rails rise straight up from below the screen edge, one after another. */
html.rv-on .hero-rail > .visual-card:not(.rv-done) {
  translate: 0 120px;
}
html.rv-on .hero-rail > .visual-card.rv-in {
  translate: 0 0;
}

/* ---------- story ---------- */
/* Open stories: return control, reading layout, no repeats, a real ending. */

/* 1. Return: one control that changes material with what's under it. */
.paper-bar {
  transition:
    translate var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out);
}
.paper-bar.is-tucked {
  translate: 0 -84px;
  opacity: 0;
}
.paper-bar .paper-close {
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    width var(--dur) var(--ease-out),
    transform var(--dur-fast);
}
.paper-bar.on-paper .paper-close {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--forest);
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ink) 14%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
.paper-bar .paper-close svg {
  transition: transform var(--dur) var(--ease-out);
}
.paper-bar .paper-close svg {
  transition: translate var(--dur) var(--ease-out);
}
/* Nudge with `translate`, so the arrow keeps its rotation and still points back. */
.paper-bar .paper-close:hover svg {
  translate: -3px 0;
}
/* With a mouse, it reads as a labelled pill. */
@media (hover: hover) and (pointer: fine) {
  .paper-bar {
    padding: 22px;
  }
  .paper-bar .paper-close {
    width: auto;
    gap: 8px;
    padding: 0 18px 0 14px;
    border-radius: var(--radius-pill);
  }
  .paper-bar .paper-close span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font: 500 var(--t-small)/1 var(--sans);
  }
}

/* 3. A scene whose photo already appeared keeps its words only. */
.journal-spread.no-media {
  display: block;
  max-width: 640px;
}

/* 4. Desktop reading: words on the left at a comfortable size, pictures on the right. */
@media (min-width: 1000px) {
  .editorial-prose > p {
    max-width: 640px;
  }
  .detail-passage p,
  .journal-copy p {
    font-size: var(--t-lead);
    line-height: 1.75;
  }
  .journal-spread,
  .journal-spread:nth-child(even) {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 6vw;
  }
  .journal-spread .journal-copy,
  .journal-spread:nth-child(even) .journal-copy {
    order: 0;
    position: sticky;
    top: 110px;
    padding-top: 12px;
  }
  .journal-spread .journal-media,
  .journal-spread:nth-child(even) .journal-media {
    order: 1;
    height: min(560px, 62vh);
  }
  .journal-spread .journal-media.landscape {
    height: auto;
  }
}

/* 5. At a glance: small facts in a two-by-two grid. */
.paper-at-glance dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.paper-at-glance dl > div {
  display: block;
  padding: 14px 0;
}
.paper-at-glance dd {
  margin-top: 4px;
}

/* 2. The ending: the next story, then the booking. */
.paper-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 26px;
  justify-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.paper-next-story {
  position: relative;
  width: 100%;
  height: clamp(240px, 42vw, 380px);
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  text-align: left;
  background: var(--forest);
  cursor: pointer;
}
.paper-next-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.1s var(--ease-out);
}
.paper-next-story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(transparent 35%, color-mix(in srgb, var(--shade) 72%, transparent));
}
.paper-next-story:hover img {
  transform: scale(1.04);
}
.paper-next-story:active {
  transform: scale(0.99);
}
.next-text {
  position: absolute;
  left: 26px;
  right: 70px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}
.next-text small {
  font: 500 var(--t-label)/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.next-text strong {
  font: 400 clamp(30px, 4vw, 46px)/1 var(--serif);
  letter-spacing: -0.02em;
}
.paper-next-story > svg {
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform var(--dur) var(--ease-out);
}
.paper-next-story:hover > svg {
  transform: translateX(4px);
}
.paper-next #paper-book {
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--paper);
  font: 500 var(--t-body)/1 var(--sans);
  transition: transform var(--dur-fast), box-shadow var(--dur);
}
.paper-next #paper-book:hover {
  box-shadow: 0 8px 22px color-mix(in srgb, var(--ink) 25%, transparent);
}
.paper-next #paper-book:active {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .paper-bar,
  .paper-bar .paper-close,
  .paper-next-story img {
    transition: none;
  }
}

/* Cover drift: the photo moves at a third of the reading speed, the title fades as you read. */
#paper-hero {
  overflow: hidden;
}
#paper-hero > img,
#paper-hero > video {
  translate: 0 calc(var(--pp, 0) * 1px);
  scale: calc(1 + var(--pf, 0) * 0.06);
  will-change: translate;
}
#paper-hero h2 {
  translate: 0 calc(var(--pp, 0) * -0.25px);
  opacity: calc(1 - var(--pf, 0) * 1.6);
}

/* Cards answer a press: a quick give, a soft spring back. */
.visual-card {
  transition: scale var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.visual-card:active {
  scale: 0.965;
  transition-duration: var(--dur-fast);
  transition-timing-function: var(--ease-out);
}
@media (hover: hover) {
  .visual-card:hover {
    box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 20%, transparent);
  }
}

/* The return pill speaks: Return → Keep going → Let go to return. */
.fold-label {
  min-width: 7.5em;
  text-align: left;
  transition: opacity var(--dur-fast);
}
@media (prefers-reduced-motion: reduce) {
  #paper-hero > img,
  #paper-hero > video,
  #paper-hero h2 {
    translate: none;
    scale: none;
  }
  .visual-card {
    transition: none;
  }
}

/* Cover cards: larger and portrait, sized by height too so titles always keep clear. */
.hero {
  --rail-h: min(clamp(250px, 25vw, 370px), 38svh);
}
.hero-rail .visual-card {
  height: var(--rail-h);
  width: calc(var(--rail-h) * 0.8);
}
@media (max-width: 799px) {
  .hero {
    --rail-h: min(250px, 31svh);
  }
}

/* Desktop: an open story is a portrait sheet centred over the page, read like on a phone. */
@media (min-width: 800px) {
  .paper-panel {
    inset: 20px 0;
    width: min(720px, calc(100vw - 48px));
    margin-inline: auto;
    border-radius: 28px;
    box-shadow: 0 30px 90px color-mix(in srgb, var(--shade) 40%, transparent);
  }
  .paper-scroll {
    clip-path: inset(0 round 28px);
  }
  .paper-hero {
    width: 100%;
    height: min(calc(min(720px, 100vw - 48px) * 1.2), 80vh);
    min-height: 0;
    max-height: none;
  }
  .paper-hero h2 {
    left: 34px;
    right: 30px;
    bottom: 48px;
    font-size: clamp(44px, 4.4vw, 64px);
  }
  .paper-editorial {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 46px 40px 120px;
    max-width: none;
  }
  .editorial-prose > p {
    font-size: 26px;
    line-height: 1.35;
    max-width: none;
  }
  .detail-passage p,
  .journal-copy p {
    font-size: var(--t-lead);
    line-height: 1.8;
    max-width: none;
  }
  .editorial-picture {
    height: 380px;
  }
  .paper-journal {
    gap: 60px;
  }
  .journal-spread,
  .journal-spread:nth-child(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .journal-spread .journal-copy,
  .journal-spread:nth-child(even) .journal-copy {
    order: -1;
    position: static;
    padding-top: 0;
  }
  .journal-spread .journal-media,
  .journal-spread:nth-child(even) .journal-media {
    order: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .journal-spread .journal-media.landscape {
    aspect-ratio: 3 / 2;
  }
  .paper-next-story {
    height: 340px;
  }
  .next-text strong {
    font-size: 40px;
  }
}

/* Covers with cards: a larger title that sits just above the cards (never collides with them). */
.hero:not(.lp-cover):has(.hero-rail) {
  --rail-b: 30px;
}
.hero:not(.lp-cover) .hero-rail {
  bottom: var(--rail-b, 30px);
}
.hero:not(.lp-cover):has(.hero-rail) .hero-copy {
  top: auto;
  bottom: calc(var(--rail-b) + var(--rail-h) + 8px + clamp(28px, 4.5svh, 52px));
}
.hero:not(.lp-cover):has(.hero-rail) .hero-copy h1 {
  font-size: min(clamp(68px, 10vw, 168px), 15svh);
  line-height: 0.86;
}
.hero:not(.lp-cover):has(.hero-rail) .hero-facts {
  margin-top: clamp(14px, 2.4svh, 26px);
}
@media (max-width: 799px) {
  .hero:not(.lp-cover):has(.hero-rail) {
    --rail-b: 24px;
  }
  .hero:not(.lp-cover):has(.hero-rail) .hero-copy h1 {
    font-size: min(clamp(58px, 17vw, 84px), 10.5svh);
  }
}

/* The travelling photo between card and story. */
.photo-flight {
  position: absolute;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
  background: var(--forest);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--shade) 25%, transparent);
  will-change: left, top, width, height;
  contain: layout paint;
}
.photo-flight > img,
.photo-flight > canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Facts line under cover titles: readable beside the large serif (was 12–14px). */
.hero-facts,
.route-landing .hero-facts {
  font-size: clamp(18px, 1.2vw + 12px, 28px);
  line-height: 1.35;
  letter-spacing: 0.005em;
  max-width: 36em;
}
@media (max-width: 380px) {
  .hero-facts,
  .route-landing .hero-facts { font-size: var(--t-lead); }
}
/* Short screens: tuck the facts line closer to the title so the cards keep their breathing room. */
@media (max-height: 760px) {
  .hero:not(.lp-cover):has(.hero-rail) .hero-facts { margin-top: 8px; }
}
@media (max-height: 760px) and (min-width: 800px) {
  .hero-facts,
  .route-landing .hero-facts { font-size: clamp(18px, 1.2vw + 12px, 22px); }
}

/* Card labels scale with their card (was a fixed ~26px). */
.visual-card { container-type: inline-size; }
.visual-card .card-label,
.hero-rail .visual-card .card-label {
  font-size: clamp(24px, 15cqi, 54px);
  line-height: 0.98;
}


/* Opening (container transform): the sheet is revealed through a growing clip, so its
   content is visible in place; only the cover waits under the flying photo. */
.paper-panel.is-opening .paper-scroll { visibility: visible; }
.paper-panel.is-opening #paper-hero { background: transparent; }
.paper-panel.is-opening #paper-hero > img,
.paper-panel.is-opening #paper-hero > video { visibility: hidden; }

/* One corner radius for the sheet and everything clipped inside it. */
.paper-panel { border-radius: var(--radius-sheet); }
.paper-scroll { clip-path: inset(0 round var(--radius-sheet)); }

/* Story motion (see docs/STORY-MOTION.md): one travelling surface, short fades around it. */
.photo-flight { box-shadow: none; color: var(--paper); }
.photo-flight > .flight-card,
.photo-flight > .flight-cover { position: absolute; inset: 0; pointer-events: none; }
.photo-flight > .flight-card { z-index: 2; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--shade) 44%, transparent) 82%, color-mix(in srgb, var(--shade) 63%, transparent)); }
.photo-flight > .flight-cover { z-index: 1; }
.photo-flight .card-label { z-index: 3; }
/* A flat dim (no live blur: blurring the page every frame is what made it stutter). */
.paper-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--shade) 72%, transparent); }
/* No sheet shadow: it was cut by the reveal and appeared late; the dim already sets it apart. */
@media (min-width: 800px) { .paper-panel { box-shadow: none; } }

/* Travelling title and film (story open/close). */
.flight-text { position: absolute; left: 0; top: 0; z-index: 13; margin: 0; pointer-events: none; transform-origin: 0 100%; will-change: transform, opacity; }
.photo-flight > video.flight-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.photo-flight > video.flight-film.on { opacity: 1; }

/* Open stories: no visible scrollbar (it took a strip off the photo and looked out of place).
   Scrolling works as before by touch, wheel, trackpad and keyboard. */
.paper-scroll { scrollbar-width: none; }
.paper-scroll::-webkit-scrollbar { display: none; width: 0; }

/* Story reading: one voice. Every line of the story is the serif at one size; headings are
   the same size in italic. Practical details are small sans with an icon. */
#paper-dialog { --story-size: clamp(21px, 0.9vw + 16px, 26px); }
#paper-dialog .editorial-prose > p,
#paper-dialog .journal-copy h3,
#paper-dialog .journal-copy p,
#paper-dialog .detail-passage h3,
#paper-dialog .detail-passage p {
  font: 400 var(--story-size)/1.34 var(--serif);
  letter-spacing: -0.01em;
  color: var(--forest);
  max-width: 34em;
}
#paper-dialog .journal-copy h3,
#paper-dialog .detail-passage h3 { font-style: italic; margin: 0 0 0.35em; }
#paper-dialog .journal-copy p + p { margin-top: 0.7em; }
#paper-dialog .detail-passage { margin-top: 0; }
#paper-dialog #paper-passages { display: grid; gap: 1.6em; }
#paper-dialog #paper-passages:empty { display: none; }
#paper-dialog .detail-passage .quiet-link { margin-top: 0.8em; font: 500 var(--t-body)/1.3 var(--sans); }
#paper-dialog .paper-editorial { gap: 1.6em; }
#paper-dialog .editorial-prose { display: grid; gap: 1.6em; }

/* At a glance: the technical part. */
#paper-dialog .paper-at-glance { margin-top: 0.4em; padding-top: 22px; border-top: 1px solid var(--line); }
#paper-dialog .paper-at-glance h3 { font: 600 var(--t-label)/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-strong); margin: 0 0 18px; }
#paper-dialog .paper-at-glance dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
#paper-dialog .paper-at-glance dl > div { display: grid; grid-template-columns: 22px 1fr; gap: 0 12px; padding: 0; border: 0; align-items: start; }
#paper-dialog .paper-at-glance .glance-icon { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--forest); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#paper-dialog .paper-at-glance dt { font: 400 var(--t-small)/1.3 var(--sans); color: var(--muted-strong); }
#paper-dialog .paper-at-glance dd { font: 500 var(--t-body)/1.4 var(--sans); color: var(--forest); margin: 3px 0 0; }
@media (max-width: 520px) {
  #paper-dialog .paper-at-glance dl { grid-template-columns: 1fr; gap: 16px; }
}

/* Header: "Quiet glass" (chosen 8 Oct). Always pinned; transparent over the cover, then a
   frosted linen bar with a smaller seal, forest text and a solid booking button. */
.site-header:not(.lp-header) {
  position: fixed;
  background: none;
  transition:
    padding var(--dur) var(--ease-sheet),
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    -webkit-backdrop-filter var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out),
    text-shadow var(--dur) var(--ease-out);
}
.site-header:not(.lp-header)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--shade) 50%, transparent), transparent);
  transition: opacity var(--dur) var(--ease-out);
}
/* The seal follows the text colour (white on the cover, forest on linen). */
.site-header .brand {
  background: currentColor;
  -webkit-mask: url(/media/casa-ellie-logo.svg) center / contain no-repeat;
  mask: url(/media/casa-ellie-logo.svg) center / contain no-repeat;
  transition: width var(--dur) var(--ease-sheet), height var(--dur) var(--ease-sheet), flex-basis var(--dur) var(--ease-sheet);
}
.site-header .brand img { opacity: 0; }
.site-header:not(.lp-header) .header-book {
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 50%, transparent);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.site-header:not(.lp-header) .header-book:hover { box-shadow: inset 0 0 0 1px var(--paper); }

.site-header.is-scrolled:not(.lp-header) {
  padding-block: 9px;
  background-color: color-mix(in srgb, var(--paper) 85%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  color: var(--forest);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
  text-shadow: none;
}
.site-header.is-scrolled:not(.lp-header)::before { opacity: 0; }
.site-header.is-scrolled:not(.lp-header) .brand { width: 48px; height: 48px; flex-basis: 48px; }
.site-header.is-scrolled:not(.lp-header) .header-book { background: var(--forest); color: var(--paper); box-shadow: none; }
.site-header.is-scrolled:not(.lp-header) .header-book:hover { background: var(--primary-hover); }
@media (max-width: 799px) {
  .site-header.is-scrolled:not(.lp-header) { padding-inline: 20px; }
  .site-header.is-scrolled:not(.lp-header) .brand { width: 44px; height: 44px; flex-basis: 44px; }
}
/* With the menu open, the header sits on the forest menu: back to its cover look. */
body.menu-open .site-header.is-scrolled:not(.lp-header) {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--paper);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .brand, .site-header .header-book { transition: none; }
}

/* Palette: Limewash & clay (chosen 8 Oct, replaces Terracotta & cream).
   Large surfaces are light, textured limewash (generated noise, a few hundred bytes);
   dark is only for text and the soft shade on photos; clay marks what you can press.
   Titles stay one colour. */
:root {
  --tex-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.270 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-plaster: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.01' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0 0.17 0 0 0 0.490 -0.168'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.405 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.006' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.24 0 0 0 0 0.17 0 0 0 0.560 -0.192'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.405 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body { background: var(--tex-paper), var(--paper); }
::selection { background: color-mix(in srgb, var(--primary) 80%, transparent); color: var(--on-primary); }
:is(button, a, summary):focus-visible { outline-color: var(--primary); }

/* Actions in clay. */
:is(button, a).forest, .paper-next #paper-book, .calendar-days button.selected, .booking-dialog .date-field:after,
.booking-dialog .calendar-days button.selected:hover:after, .fold-return.is-committed { background: var(--primary); color: var(--on-primary); }
:is(button, a).forest:hover, .paper-next #paper-book:hover { background: var(--primary-hover); }
/* The old dark section tone becomes a limewash band with ink text. */
section.forest { background: var(--tex-stone), var(--stone); color: var(--ink); }
#paper-dialog .paper-at-glance .glance-icon { stroke: var(--primary); }
.lp-check, .lp-stay[aria-pressed='true'] { color: var(--primary); }
#paper-dialog .detail-passage .quiet-link, #paper-dialog .paper-next .quiet-link { color: var(--primary); }

/* Header: frosted limewash once scrolled, ink text, clay button. */
.site-header.is-scrolled:not(.lp-header) { background-color: color-mix(in srgb, var(--paper) 85%, transparent); color: var(--ink); }
.site-header.is-scrolled:not(.lp-header) .header-book { background: var(--primary); color: var(--on-primary); }
.site-header.is-scrolled:not(.lp-header) .header-book:hover { background: var(--primary-hover); }

/* Menu: a limewash screen with ink text (was a flat dark overlay). */
.mobile-navigation { background: var(--tex-stone), var(--stone); color: var(--ink); }
.menu-links a[aria-current="page"] { color: var(--ink); font-style: italic; }
.menu-foot { border-top-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.menu-book { background: var(--primary); color: var(--on-primary); }
.menu-picture { border-radius: var(--radius-card); }
body.menu-open .site-header:not(.lp-header),
body.menu-open .site-header.is-scrolled:not(.lp-header) { color: var(--ink); text-shadow: none; background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
body.menu-open .site-header:not(.lp-header)::before { opacity: 0; }

/* Footer: limewash, ink text, seal in ink. */
.footer { background: var(--tex-stone), var(--stone); color: var(--ink); }
.footer-brand { background: var(--ink); -webkit-mask: url(/media/casa-ellie-logo.svg) center / contain no-repeat; mask: url(/media/casa-ellie-logo.svg) center / contain no-repeat; }
.footer-brand img { opacity: 0; }

/* Closing section and quiet surfaces: plaster. */
.invitation { background: var(--tex-plaster), var(--plaster); }

/* Open stories and the planner sit on a light limewash veil, not a dark tint. */
.paper-scrim { background: var(--tex-plaster), color-mix(in srgb, var(--plaster) 88%, transparent); }
dialog::backdrop { background: color-mix(in srgb, var(--plaster) 80%, transparent); }
.paper-panel { background: var(--tex-paper), var(--paper); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
@media (min-width: 800px) { .paper-panel { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); } }
.booking-dialog { background: var(--tex-paper), var(--paper); }
.paper-bar { background: transparent; }
#paper-hero, .photo-flight, .journal-media, .paper-next-story, .hero { background-color: var(--plaster); }

/* Story close (Ben, 8 Oct): a single round X that appears only at the end of a story,
   inviting you to keep scrolling. As you pull on, it grows and its colours invert (cream →
   ink); full inversion is the "let go to return" point. No rings, no label. */
#paper-dialog .paper-next #paper-book { display: none; }
#paper-dialog .fold-return,
#paper-dialog .fold-return[hidden] {
  --inv: min(1, calc(var(--fold-progress, 0) / 0.55));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--paper) calc(var(--inv) * 100%), var(--ink));
  background: color-mix(in srgb, var(--ink) calc(var(--inv) * 100%), var(--paper));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 12%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 14px));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px) scale(0.86);
  animation: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur-slow) var(--ease-sheet);
  cursor: pointer;
}
#paper-dialog .fold-return.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(calc(1 + var(--inv) * 0.5));
}
/* While pulling, size and colour follow the finger exactly. */
#paper-dialog .fold-return.is-shown[style*="--fold-progress: 0."] { transition: opacity var(--dur) var(--ease-out); }
#paper-dialog .fold-return.is-committed { transform: translate(-50%, 0) scale(1.5); }
#paper-dialog .fold-ring svg:first-child { display: none; }
#paper-dialog .fold-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#paper-dialog .fold-ring { width: 52px; height: 52px; }
#paper-dialog .fold-arrow { width: 18px; height: 18px; stroke-width: 1.6; transform: none; }
#paper-dialog .fold-return.is-committed .fold-arrow { transform: none; }
@media (hover: hover) { #paper-dialog .fold-return.is-shown:hover { transform: translate(-50%, 0) scale(calc(1.06 + var(--inv) * 0.5)); } }
/* The X sits outside the sheet, in the space below it (Ben, 14 Oct): the sheet is shorter
   so the X never covers the story. */
#paper-dialog { --x-room: calc(92px + env(safe-area-inset-bottom)); }
#paper-dialog .paper-panel { bottom: var(--x-room); }
#paper-dialog .fold-return,
#paper-dialog .fold-return[hidden] { bottom: calc((var(--x-room) - 52px) / 2); }

/* Story photos run edge to edge of the sheet, square corners (Ben, 8 Oct). */
#paper-dialog .paper-editorial { --bleed: 26px; }
@media (min-width: 800px) { #paper-dialog .paper-editorial { --bleed: 40px; } }
#paper-dialog :is(.journal-media, .editorial-picture) {
  margin-inline: calc(-1 * var(--bleed));
  width: calc(100% + 2 * var(--bleed));
  max-width: none;
  border-radius: 0;
}
#paper-dialog :is(.journal-media, .editorial-picture) :is(img, video) { border-radius: 0; }

/* A faint X at the top while reading (top right): light over the cover, ink over text.
   It gives way to the bottom X once you reach the end. */
#paper-dialog .paper-bar { justify-content: flex-end; padding: 16px; background: transparent; border: 0; box-shadow: none; transition: opacity var(--dur) var(--ease-out), translate var(--dur) var(--ease-out); }
#paper-dialog .paper-bar .paper-close {
  width: 40px; height: 40px; min-height: 0; padding: 0; gap: 0;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--paper); background: color-mix(in srgb, var(--ink) 20%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: none; opacity: 0.7;
  transition: opacity var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur-fast);
}
#paper-dialog .paper-bar.on-paper .paper-close { color: var(--ink); background: color-mix(in srgb, var(--paper) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); opacity: 0.55; }
#paper-dialog .paper-bar .paper-close:hover,
#paper-dialog .paper-bar .paper-close:focus-visible { opacity: 1; }
#paper-dialog .paper-bar .paper-close .close-x { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transform: none; translate: none; }
#paper-dialog .paper-close span { display: none; }
#paper-dialog:has(.fold-return.is-shown) .paper-bar { opacity: 0; pointer-events: none; }
#paper-dialog .paper-bar { left: auto; right: 0; width: auto; }
#paper-dialog .paper-bar.is-tucked { translate: none; opacity: 1; }
#paper-dialog:has(.fold-return.is-shown) .paper-bar.is-tucked { opacity: 0; }

/* Desktop header: logo left, page links centred on the screen, booking right. */
@media (min-width: 1000px) {
  .site-header:not(.lp-header) .desktop-navigation {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    margin: 0;
  }
  .site-header:not(.lp-header) .header-actions { margin-left: auto; }
}

/* Story ending (Ben, 8 Oct): as simple as possible. After the last lines, one centred link
   to the next story (small label, serif title), then the closing X. No photo, no lines. */
#paper-dialog .paper-next { border-top: 0; padding: 56px 0 calc(52px + max(26px, env(safe-area-inset-bottom) + 14px) + 40px); gap: 0; justify-items: center; }
#paper-dialog .paper-editorial { padding-bottom: 0; }
#paper-dialog .paper-next-story {
  display: block; width: auto; max-width: 100%; height: auto; margin: 0; padding: 8px 12px;
  border: 0; border-radius: 0; background: transparent; color: var(--ink); text-align: center; overflow: visible; isolation: auto;
}
#paper-dialog .paper-next-story::after,
#paper-dialog .paper-next-story img,
#paper-dialog .paper-next-story > svg { display: none; }
#paper-dialog .paper-next-story .next-text { position: static; display: grid; gap: 8px; justify-items: center; }
#paper-dialog .paper-next-story .next-text small { color: var(--muted); opacity: 1; font-size: var(--t-micro); letter-spacing: 0.1em; }
#paper-dialog .paper-next-story .next-text strong { font: 400 clamp(26px, 1.6vw + 18px, 34px)/1.05 var(--serif); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color var(--dur); }
#paper-dialog .paper-next-story:hover .next-text strong,
#paper-dialog .paper-next-story:focus-visible .next-text strong { text-decoration-color: currentColor; }

/* Parallax on story photos: the picture sits slightly enlarged in its frame and drifts
   against the scroll (story.js sets --py from -1 to 1). */
#paper-dialog :is(.journal-media, .editorial-picture) { overflow: hidden; }
#paper-dialog :is(.journal-media, .editorial-picture) > :is(img, video) {
  scale: 1.16;
  translate: 0 calc(var(--py, 0) * -7%);
  will-change: translate;
}
@media (prefers-reduced-motion: reduce) {
  #paper-dialog :is(.journal-media, .editorial-picture) > :is(img, video) { scale: none; translate: none; }
}

/* "forest" is also a button style; its hover must never recolour a whole section. */
section.forest:hover { background: var(--tex-stone), var(--stone); }

/* ==========================================================================
   Components: one definition per kind of control (design system, 8 Oct).
   ========================================================================== */

/* Focus: one clay ring, for keyboard users only. */
:is(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Primary button: a clay pill. */
.pill.forest, .menu-book, .dock-submit, .site-header.is-scrolled:not(.lp-header) .header-book {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), scale var(--dur-fast) var(--ease-out);
}
:is(.pill.forest, .menu-book, .dock-submit, .site-header.is-scrolled:not(.lp-header) .header-book):hover { background: var(--primary-hover); }
:is(.pill, .menu-book, .dock-submit, .header-book, .lp-check):active { scale: 0.98; }
.pill:disabled, .pill[aria-disabled="true"] { opacity: 0.45; }

/* Round button: a quiet circle. */
.round-button {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: background-color var(--dur) var(--ease-out), scale var(--dur-fast) var(--ease-out);
}
.round-button:hover { background: var(--plaster); }
.round-button:active { scale: 0.96; }

/* Text links: the underline sweeps away and redraws on hover. */
.quiet-link, .text-link, .footer a:not(.footer-brand), .menu-contact a {
  border-bottom: 0;
  background: linear-gradient(currentColor, currentColor) left 100% / 100% 1px no-repeat;
  text-decoration: none;
}
.footer a:not(.footer-brand), .menu-contact a { background-size: 0 1px; }
@keyframes underline-sweep {
  0% { background-size: 100% 1px; background-position: right 100%; }
  45% { background-size: 0 1px; background-position: right 100%; }
  46% { background-size: 0 1px; background-position: left 100%; }
  100% { background-size: 100% 1px; background-position: left 100%; }
}
@media (hover: hover) {
  :is(.quiet-link, .text-link, .footer a:not(.footer-brand), .menu-contact a):hover { animation: underline-sweep var(--dur-slow) var(--ease-out) both; text-decoration: none; }
}

/* Desktop menu: the underline grows from the centre; the current page keeps a full line. */
.desktop-navigation a {
  border-bottom: 0;
  background: linear-gradient(currentColor, currentColor) center 100% / 0 1px no-repeat;
  transition: background-size var(--dur) var(--ease-out);
}
.desktop-navigation a:hover, .desktop-navigation a[aria-current="page"] { background-size: 100% 1px; }

/* Cards: on hover the photo slowly leans in and the label lifts a little. */
@media (hover: hover) and (pointer: fine) {
  .visual-card > img.card-image { transition: transform var(--dur-slow) var(--ease-out); }
  .visual-card:hover > img.card-image { transform: scale(1.04); }
  .visual-card .card-label { transition: translate var(--dur) var(--ease-out); }
  .visual-card:hover .card-label { translate: 0 -3px; }
  .visual-card:hover { box-shadow: var(--shadow-lift); }
}
.visual-card { transition: scale var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.visual-card:active { scale: 0.98; transition-duration: var(--dur-fast); }

/* Section titles settle in as they arrive (reveal.js adds .rv-text-in). */
html.rv-on :is(.chapter-heading, .invitation-body) > :is(h2, p, .quiet-link) {
  opacity: 0;
  translate: 0 16px;
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
}
html.rv-on :is(.chapter-heading, .invitation-body).rv-text-in > :is(h2, p, .quiet-link) { opacity: 1; translate: 0 0; }
html.rv-on :is(.chapter-heading, .invitation-body).rv-text-in > :nth-child(2) { transition-delay: 0.08s; }
html.rv-on :is(.chapter-heading, .invitation-body).rv-text-in > :nth-child(3) { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  html :is(.chapter-heading, .invitation-body) > * { opacity: 1 !important; translate: none !important; }
}

/* Smooth scrolling (smooth.js / Lenis). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Clay as text uses the deeper text clay, so it always reads (WCAG AA). */
.lp-check, .lp-stay[aria-pressed='true'], #paper-dialog .detail-passage .quiet-link, #paper-dialog .paper-next .quiet-link { color: var(--primary-text); }

/* Footer: the small print is ink on the light stone (it was pale linen, meant for a dark footer). */
.footer-bottom {
  color: var(--ink-2);
  opacity: 1;
}

/* Card rows on desktop: cards keep a generous size (four fill the width); longer rows
   continue past the edge and scroll sideways instead of shrinking. */
@media (min-width: 800px) {
  .pattern-rail .pattern-cards {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    scroll-padding-inline: 0;
  }
  .pattern-rail .pattern-cards::-webkit-scrollbar {
    display: none;
  }
  .pattern-rail .pattern-cards .visual-card {
    flex: 0 0 max(260px, calc((100% - 3 * clamp(16px, 2vw, 28px)) / 4));
    width: auto;
    height: auto;
    scroll-snap-align: start;
  }
}

/* Rows that scroll sideways clip whatever leaves their box, so give the cards' lift and hover
   shadow room inside the row (padding) without moving the layout (matching negative margin). */
.portrait-rail,
.hero-rail,
.pattern-rail .pattern-cards {
  padding-top: 24px;
  padding-bottom: 64px;
  margin-top: -24px;
  margin-bottom: -64px;
}

/* Phone menu (option C, 13 Oct): the house from above, crisp, and a stone sheet with the
   three pages and the booking button within thumb reach. */
.mobile-navigation {
  display: block;
  padding: 0;
  background: var(--shade);
  color: var(--ink);
  overflow: hidden;
}
.mobile-navigation .menu-picture {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 52dvh;
  min-height: 0;
  opacity: 1;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 45%;
  z-index: 0;
}
.mobile-navigation::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  z-index: 1;
  background: linear-gradient(color-mix(in srgb, var(--shade) 45%, transparent), transparent);
  pointer-events: none;
}
.menu-sheet {
  position: absolute;
  inset: auto 0 0 0;
  top: calc(52dvh - 28px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 30px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--tex-stone), var(--stone);
  overflow: auto;
}
.mobile-navigation .menu-links {
  display: grid;
  gap: 0;
  justify-content: stretch;
}
.mobile-navigation .menu-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  padding: 10px 0;
  font: 400 clamp(30px, 8.6vw, 60px)/1.08 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-navigation .menu-book {
  white-space: nowrap;
}
@media (max-width: 380px) {
  .mobile-navigation .menu-foot {
    flex-wrap: wrap;
  }
}
.mobile-navigation .menu-links a svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.5;
  transition: transform var(--dur) var(--ease-out), stroke var(--dur);
}
.mobile-navigation .menu-links a:active svg,
.mobile-navigation .menu-links a:hover svg {
  transform: translateX(4px);
  stroke: var(--primary);
}
.mobile-navigation .menu-links a[aria-current="page"] {
  font-style: italic;
}
.mobile-navigation .menu-foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-navigation .menu-contact {
  gap: 18px;
  font-size: var(--t-small);
}
/* Over the photo, the logo and "Close" are light. */
body.menu-open .site-header:not(.lp-header),
body.menu-open .site-header.is-scrolled:not(.lp-header) {
  color: var(--on-primary);
}

/* ── Guest reviews: one pull-quote at a time in the display serif; stars and names stay quiet. */
.pattern-reviews {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 400 var(--t-small)/1.5 var(--sans);
  color: var(--muted);
}
.review-stars {
  color: var(--primary-text);
  letter-spacing: 0.14em;
  font-size: 13px;
}
.forest .review-rating,
.forest .review-rating .review-stars {
  color: inherit;
}
.review-stage {
  display: grid;
  min-height: 5.8em;
  align-items: center;
  max-width: 24ch;
  cursor: pointer;
  font: 400 clamp(32px, 3.4vw + 14px, 58px)/1.12 var(--serif);
}
.review-slide {
  margin: 0;
  grid-area: 1 / 1;
  animation: review-in var(--dur-slow, 0.6s) var(--ease-out, ease-out) both;
}
.review-slide blockquote,
.review-slide p {
  margin: 0;
  text-wrap: balance;
}
.review-slide figcaption {
  margin-top: 22px;
  font: 400 var(--t-small)/1.4 var(--sans);
  color: var(--muted);
}
.forest .review-slide figcaption {
  color: inherit;
  opacity: 0.8;
}
@keyframes review-in {
  from { opacity: 0; transform: translateY(6px); }
}
.review-dots {
  display: flex;
  gap: 8px;
}
.review-dots button {
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.review-dots button::before {
  content: "";
  display: block;
  height: 2px;
  margin: 10px auto;
  width: 8px;
  background: var(--line);
  transition: width var(--dur) var(--ease-out), background var(--dur);
}
.review-dots button[aria-selected="true"]::before {
  width: 24px;
  background: var(--ink);
}
.review-dots button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.pattern-reviews .review-all {
  margin-top: 6px;
  justify-self: center;
  width: auto;
}
@media (max-width: 799px) {
  .review-stage { min-height: 7.6em; max-width: 18ch; }
}
@media (prefers-reduced-motion: reduce) {
  .review-slide { animation: none; }
}
/* Language switch (EN · FR · DE): only rendered for signed-in admins until PUBLIC_LOCALES opens a language. */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .06em; color: inherit; }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 28px; min-height: 32px; text-decoration: none; color: inherit; }
.lang-switch a { opacity: .62; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }
.lang-switch span[aria-current] { font-weight: 600; }
.lang-switch i { font-style: normal; opacity: .4; }
.header-actions > .lang-switch { margin-left: clamp(16px, 3vw, 40px); }
.mobile-navigation .menu-foot:has(.lang-switch) { flex-wrap: wrap; row-gap: 10px; }
.lang-switch.in-menu { flex: 0 0 100%; order: -1; font-size: 14px; }
@media (max-width: 1279px) { .header-actions > .lang-switch { display: none; } }
/* "Français ?" / "Deutsch?" hint for public languages (never an automatic switch). */
.lang-hint { position: fixed; z-index: 60; left: 16px; bottom: 96px; display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--paper, #f6f0e5); color: var(--ink, #2b2620); box-shadow: 0 6px 24px rgb(0 0 0 / .14); font-size: 14px; }
.lang-hint[hidden], .lang-hint a[hidden] { display: none; }
.lang-hint a { color: inherit; }
.lang-hint button { min-width: 36px; min-height: 36px; font-size: 18px; line-height: 1; }
