/* Katouna Home Lefkada — the pages of the three houses (the Big House, the Stone House, the Garden
   House). Built on main.css and taking everything from it: tokens, type, controls, the header and menu,
   the opening, the quick contact and the enquiry form. Only what a house page adds is here; what differs
   from house to house is chosen by data-house on the page.

   Contents
   1. The house's ground     2. Opening              3. The house in short
   4. Room by room           5. The photo viewer     6. Full-screen pictures (the balcony; held pictures)
   7. How a party sleeps     8. In the house         9. Enquire
  10. The other two houses  11. Motion */

/* ---------- 1. The house's ground ----------
   Each house page takes the ground of its chapter on the homepage. */
.page-house { --house-tint: var(--tint-big); }
.page-house[data-house="stone"] { --house-tint: var(--tint-stone); }
.page-house[data-house="garden"] { --house-tint: var(--tint-garden); }

/* ---------- 2. Opening ----------
   The opening of the homepage, with the house's own picture: the Big House's photograph, and the films
   of the Stone House and the Garden House (25 Oct 2026), each over its first frame, so the film and its
   still share one position. On upright screens the films bring a cut of their own (a <source> in the
   page). Every opening is built to take a film (film.js); the Big House's slot is empty until it has
   one. */
.page-house[data-house="big"] .hero__img { object-position: 64% 50%; } /* the red windows and the lit lamp */
.page-house[data-house="stone"] .hero__img { object-position: 60% 55%; } /* the table, the red shutters and the hills */
.page-house[data-house="garden"] .hero__img { object-position: 40% 50%; } /* the open red doors and the lawn */
@media (max-aspect-ratio: 4/5) {
  .page-house[data-house="big"] .hero__img { object-position: 74% 50%; }
  .page-house[data-house="stone"] .hero__img { object-position: 50% 50%; }
  .page-house[data-house="garden"] .hero__img { object-position: 45% 50%; }
}
/* A film's pause / play control: in the lower right corner on wide screens (main.css), clear of the
   words at the lower left; on upright screens just below the header, clear of the words at the foot
   and of the quick contact bar. */
@media (max-aspect-ratio: 1/1) {
  .page-house .film-toggle { top: calc(var(--header-h) + 0.75rem); bottom: auto; }
}
/* An interior lies under the header here, not a sky: over it the header's words and logo turn white,
   with a soft shade at the top of the photograph as well as under the words. */
.js .page-house .site-header[data-tone="hero"] { color: #fff; }
.js .page-house .site-header[data-tone="hero"] .site-header__logo img { filter: brightness(0) invert(1); }
.page-house .pin--house::after {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0) 22%), /* taste-skill-ignore: neutral scrim under the header */
    linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.56) 40%, rgba(0, 0, 0, 0) 68%); /* taste-skill-ignore: neutral scrim under the words, over the pale sofa */
}
@media (min-width: 56.25em) and (min-aspect-ratio: 6/5) {
  .page-house .pin--house::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 20%), /* taste-skill-ignore: neutral scrim under the header */
      radial-gradient(ellipse 70% 96% at 0% 100%, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52) 56%, rgba(0, 0, 0, 0) 82%); /* taste-skill-ignore: neutral scrim under the words */
  }
}
/* The Stone House and the Garden House open in daylight, under a white ceiling and a white pergola: the
   shade under the header and the words is deeper and reaches further (measured, section 18 of
   DESIGN_DIRECTION.md). */
.page-house:is([data-house="stone"], [data-house="garden"]) .pin--house::after {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.36) 12%, rgba(0, 0, 0, 0) 26%), /* taste-skill-ignore: neutral scrim under the header, over a white ceiling */
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 70%); /* taste-skill-ignore: neutral scrim under the words */
}
@media (min-width: 56.25em) and (min-aspect-ratio: 6/5) {
  .page-house:is([data-house="stone"], [data-house="garden"]) .pin--house::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.42) 11%, rgba(0, 0, 0, 0) 25%), /* taste-skill-ignore: neutral scrim under the header, over a white ceiling and a window */
      radial-gradient(ellipse 84% 118% at 0% 100%, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.64) 54%, rgba(0, 0, 0, 0) 86%); /* taste-skill-ignore: neutral scrim under the words, over sunlit wood and grass */
  }
}
.page-house .hero__title { font-size: var(--step-display); }

/* ---------- 3. The house in short ----------
   On the house's own ground, rising over the opening photograph: what it is, its numbers, and the
   house from outside, whole, beside the words. Its foot meets "Room by room" closely: the two sections
   share one smaller gap, not two full ones (22 Oct 2026). */
.h-intro { position: relative; background: var(--house-tint); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.5rem, 5vw, 3.5rem); align-items: start; padding-block: var(--section) var(--seam); overflow-x: clip; }
.page-house { --seam: clamp(3rem, 5.5vw, 6rem); }
.opening + .rooms { padding-top: var(--seam); }
.h-intro > * { grid-column: 1 / -1; }
.h-intro__words { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); }
/* The three houses, to move between, above the introduction as above each chapter on the homepage. */
.h-switch { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; margin-bottom: -0.25rem; font-family: var(--font-ui); font-size: var(--step-small); }
.h-switch a { padding-block: 0.45rem; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.4em; text-decoration-thickness: 2px; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.h-switch a[aria-current="page"] { color: var(--ink); text-decoration-color: var(--frame); }
@media (hover: hover) and (pointer: fine) {
  .h-switch a:hover { color: var(--ink); }
}
.h-intro__words .lead { max-width: 41ch; }
.h-intro__words p:not(.lead) { max-width: 53ch; margin-top: 0; }
.h-intro__facts { margin-top: 0.5rem; }
.h-intro__words .h-intro__more { max-width: 52ch; font-family: var(--font-ui); font-size: var(--step-small); line-height: 1.55; color: var(--muted); } /* the Stone House: for a larger party */
.h-intro__more a { color: var(--ink); }
/* The house from outside is shown whole, in its own proportions (25 Oct 2026; before, it was cut to
   the height of the words and ran off the right edge): edge to edge on phones; on wide screens inside
   the page's margins, centred on the words beside it. The Stone House's picture is upright, so it
   takes fewer columns and stands about as tall as the others. */
.h-intro__photo { margin-inline: calc(var(--margin) * -1); }
.h-intro__photo img { width: 100%; height: auto; }
@media (min-width: 56.25em) {
  .h-intro { align-items: center; }
  .h-intro__words { grid-column: 1 / 6; }
  .h-intro__photo { grid-column: 6 / -1; margin-inline: 0; }
  .page-house[data-house="stone"] .h-intro__photo { grid-column: 8 / -1; }
}

/* ---------- 4. Room by room ----------
   The house in the order a guest meets it. The rooms are tabs; each room is a strip of photographs at
   one height, each whole and as wide as its own proportions make it (25 Oct 2026: none is cut to a
   frame any more). On phones the height is set so a landscape picture fills nine tenths of the screen's
   width and the next one begins at its edge. Where more photographs continue past an edge, the strip runs
   off the edge of the screen (an experiment since 14 Nov 2026; before, that edge faded into the page, and
   on wide screens the strip ended at the page's margin). Without the script, every room follows
   the last. A room takes more photographs simply by adding them to its strip. The strip has the whole
   width of the page (2 Nov 2026), with the tabs above it naming the room, and a room's one practical
   note, if it has one, under it. */
.rooms { position: relative; background: var(--panel); padding-block: var(--section); overflow-x: clip; --strip-h: min(52svh, calc((100vw - 2 * var(--margin)) * 0.675)); }
.rooms__head { display: grid; gap: 1.1rem 2rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.rooms__tabs { display: flex; gap: 0.1rem 1.5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); font-family: var(--font-ui); font-size: var(--step-small); }
.rooms__tabs::-webkit-scrollbar { display: none; }
.rooms__tabs[hidden] { display: none; }
.rooms__tab { flex: none; padding-block: 0.6rem; color: var(--muted); white-space: nowrap; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.45em; text-decoration-thickness: 2px; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.rooms__tab[aria-selected="true"] { color: var(--ink); text-decoration-color: var(--frame); }
.rooms__steps { display: none; gap: 0.5rem; margin: 0; }
.rooms__step { display: inline-grid; place-items: center; width: 3rem; height: 3rem; background: var(--ink); color: var(--stone); transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.rooms__step svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rooms__step:active { transform: scale(0.95); }
.rooms__step[aria-disabled="true"] { opacity: 0.28; cursor: default; }
.rooms__step[aria-disabled="true"]:active { transform: none; }

.rooms__room { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; align-items: start; }
.rooms__room + .rooms__room { margin-top: clamp(3rem, 6vw, 5rem); }
.rooms__room[hidden] { display: none; }
.rooms__aside { display: grid; gap: 0.55rem; align-content: start; min-height: 1.6em; }
/* With the tabs on, a tab names the room: its name stays for screen readers and for the viewer, and the
   strip comes first. Without them, each room is headed by its name. */
.rooms:has(.rooms__tabs:not([hidden])) .rooms__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rooms:has(.rooms__tabs:not([hidden])) .rooms__strip { order: -1; }
.rooms__strip { display: flex; align-items: flex-start; gap: var(--gutter); margin: 0 calc(var(--margin) * -1); padding: 0 var(--margin) 1rem; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); scrollbar-width: thin; scrollbar-color: rgb(42 41 38 / 0.3) transparent; }
/* An experiment (14 Nov 2026, E in the independent review): where more photographs continue, the strip simply runs
   off the edge of the screen, as the films do, and nothing is faded. Before, each such edge faded into the page
   through a mask (25 Oct 2026), and on wide screens the strip ended at the page's margin; to go back, restore the
   three mask rules from versions/v24/site/css/house.css and the wide-screen rule further down. */
.rooms__strip > li { flex: none; scroll-snap-align: start; }
.rooms__strip figure { display: grid; }
.rooms__photo { display: block; overflow: hidden; cursor: zoom-in; }
.rooms__photo:focus-visible { outline-offset: -3px; }
.rooms__photo img { height: var(--strip-h); width: auto; max-width: none; transition: scale 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rooms__tab:hover { color: var(--ink); }
  .rooms__photo:hover img { scale: 1.03; }
  .rooms__step:not([aria-disabled="true"]):hover { background: var(--accent-strong); }
}
@media (min-width: 56.25em) {
  .rooms { --strip-h: min(62svh, 36rem); }
  .rooms__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .rooms__head > .head { grid-column: 1 / -1; }
  .rooms__tabs { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }
  .js .rooms__steps { display: flex; }
  /* (until 14 Nov 2026 the strip stopped at the page's margins here: margin-inline 0, padding-inline 0, scroll-padding-inline 0) */
}

/* ---------- 5. The photo viewer ----------
   One photograph at a time on a dark ground, whole, as large as the screen allows but never larger
   than the photograph itself (the script gives each its own size), its room and caption beneath. It
   opens and closes like the menu, and steps with the arrows, the keys or a swipe. */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #12160f; color: var(--grove-ink); overscroll-behavior: contain; }
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.viewer::backdrop { background: #12160f; }
.viewer__frame { position: relative; margin: max(4.25rem, calc(env(safe-area-inset-top, 0px) + 3.5rem)) var(--margin) 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: var(--own-w, 100%); max-height: var(--own-h, 100%); margin: auto; object-fit: contain; background: none; opacity: 0; transform: translateX(calc(var(--from, 0) * 0.5rem)); transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.viewer__img.is-shown { opacity: 1; transform: none; }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 1rem var(--margin) max(1rem, env(safe-area-inset-bottom, 0px)); font-family: var(--font-ui); font-size: var(--step-small); line-height: 1.45; }
.viewer__words { margin: 0; max-width: 73ch; }
.viewer__room { font-weight: 500; }
.viewer__caption { color: var(--grove-muted); }
.viewer__steps { display: flex; gap: 0.5rem; margin: 0; }
.viewer__step { display: inline-grid; place-items: center; width: 3rem; height: 3rem; background: rgb(237 235 231 / 0.1); color: var(--grove-ink); transition: background-color var(--t-hover) ease, opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.viewer__step svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.viewer__step:active { transform: scale(0.95); }
.viewer__step[aria-disabled="true"] { opacity: 0.3; cursor: default; }
.viewer__close { position: absolute; top: max(0.75rem, env(safe-area-inset-top, 0px)); right: var(--margin); min-height: 2.75rem; padding: 0 0.25rem; color: var(--grove-ink); font-family: var(--font-ui); font-size: var(--step-small); font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; }
.viewer :focus-visible { outline-color: var(--grove-ink); }
html:has(.viewer[open]) { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .viewer__step:not([aria-disabled="true"]):hover { background: rgb(237 235 231 / 0.2); }
}

/* ---------- 6. Full-screen pictures ----------
   The Big House balcony: a second photograph holds the screen with nothing over it, no words and no
   shade, as the view does on the homepage (30 Oct 2026; before, a heading and a line crossed its sky).
   The empty layer after it is what holds it. */
.h-layer { position: relative; }
.h-layer__img { object-position: 50% 64%; }
@media (max-aspect-ratio: 4/5) {
  .h-layer__img { object-position: 50% 50%; }
}

/* Held films: the Stone House's bedroom and the Garden House's walk out to the lawn (25 Oct 2026; before
   them, the owner's first film and the lawn on a summer evening). The film fills the screen with
   nothing over it but its own pause / play control: no words and no shade (30 Oct 2026; before, a
   heading and a line lay at its foot on a dark shade). It holds for a moment, then the next section
   slides over it while it settles into shade. Unlike the homepage's, it keeps the whole screen on
   upright screens too, with a cut of its own: main.css makes a film a 4:5 picture in the page there,
   which is put back here. A held photograph (no film) works the same way. */
.h-held { position: relative; }
/* The Stone House's held photograph, the table on its terrace (14 Nov 2026): on wide, short windows the glasses
   and the strawberries stay whole, and the frame cuts the top of the bottle and the sky. */
.h-held__img { object-position: 50% 62%; }
@media (max-aspect-ratio: 4/5) {
  .h-held__img { object-position: 50% 50%; }
}
.pin--held { margin-bottom: 30svh; }
.h-held > .pin--held ~ * { position: relative; }
@media (max-aspect-ratio: 1/1) {
  .page-house .pin--film.pin--held { position: sticky; top: 0; height: 100svh; min-height: 34rem; aspect-ratio: auto; margin-bottom: 30svh; }
}

/* ---------- 7. How a party sleeps ----------
   One small square per guest: the bedrooms' places in the ink, the sofa bed's two set apart and paler,
   as at a glance on the homepage. Choose how many you are and they fill in. */
.sleep { position: relative; background: var(--house-tint); /* the house's own ground since 14 Nov 2026 (before, the tan --band) */ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2rem, 5vw, 3rem); align-items: start; padding-block: var(--section); }
.sleep > * { grid-column: 1 / -1; }
.sleep__words { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.sleep__words p { max-width: 48ch; }
.sleep__try { display: grid; gap: 1.25rem; justify-items: start; }
.sleep__count { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.sleep__count[hidden] { display: none; }
.sleep__ask { margin: 0; font-family: var(--font-ui); font-size: var(--step-body); }
.sleep .stepper { grid-template-columns: 3rem 4.5rem 3rem; }
.sleep__n { display: grid; place-items: center; min-height: 3rem; background: var(--field); border-inline: 1px solid #d6d3cd; font-family: var(--font-ui); font-size: max(1rem, var(--step-body)); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; } /* taste-skill-ignore: part of a form control */
.sleep .stepper button[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.sleep__places { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; }
.sleep__group { display: grid; gap: 0.55rem; }
.sleep__squares { display: flex; gap: 0.35rem; }
.sleep__place { width: 1.5rem; height: 1.5rem; background: rgb(42 41 38 / 0.14); transition: background-color 180ms ease; }
.sleep__place.is-taken { background: var(--ink); }
.sleep__place--sofa.is-taken { background: rgb(42 41 38 / 0.5); }
.sleep__label { font-family: var(--font-ui); font-size: var(--step-small); }
@media (max-width: 30em) {
  .sleep__place { width: 1.3rem; height: 1.3rem; } /* the two groups keep to one row on a phone */
}
.sleep__says { min-height: 2.9em; max-width: 41ch; font-size: var(--step-lead); line-height: 1.45; }
.sleep__go { margin: 0; }
.sleep__more { max-width: 56ch; font-family: var(--font-ui); font-size: var(--step-body); line-height: 1.5; }
@media (min-width: 56.25em) {
  .sleep__words { grid-column: 1 / 6; }
  .sleep__try { grid-column: 7 / -1; }
}

/* ---------- 8. In the house ----------
   What the owner has confirmed or the photographs show, grouped, as plain lines of text. */
.amenities { position: relative; background: var(--stone); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2rem, 4vw, 3rem); padding-block: var(--section); }
.amenities > * { grid-column: 1 / -1; }
.amenities__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 2.25rem var(--gutter); }
.amenities__group h3 { margin: 0; font-family: var(--font-ui); font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.amenities__group ul { display: grid; gap: 0.45rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.amenities__group li { max-width: 38ch; line-height: 1.42; }
.amenities__more { max-width: 63ch; font-family: var(--font-ui); font-size: var(--step-small); line-height: 1.6; }
@media (min-width: 56.25em) {
  .amenities > .head { grid-column: 1 / 5; }
  .amenities > .amenities__groups { grid-column: 5 / -1; grid-row: 1 / span 2; }
  .amenities > .amenities__more { grid-column: 1 / 5; grid-row: 2; align-self: end; }
}

/* ---------- 9. Enquire ----------
   The homepage's enquiry, on the dark ground of the grove at night, with a picture of the house beside
   it on wide screens, held while the form passes: whole, in its own proportions, inside the page's
   margin, as tall as the screen allows (25 Oct 2026; before, it was cut to a tall frame). */
.h-enquire { position: relative; background: var(--grove); color: var(--grove-ink); padding-block: var(--section); }
.h-enquire__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2.25rem, 5vw, 3.5rem); align-items: start; }
.h-enquire__inner > * { grid-column: 1 / -1; }
/* The house's own photograph (3 Nov 2026, each the sharpest of its originals that reads whole): on phones it closes the
   section from edge to edge, after the form; on tablets it stands smaller; on wide screens it stays beside the form. */
.h-enquire__photo { margin: 0 calc(var(--margin) * -1) calc(var(--section) * -1); }
.h-enquire__photo img { width: 100%; height: auto; }
@media (min-width: 40em) {
  .h-enquire__photo { width: min(28rem, 60%); margin: 0; }
}
@media (min-width: 56.25em) {
  .h-enquire .enquire__words, .h-enquire .enquire__form { grid-column: 1 / 8; }
  .h-enquire__photo { width: auto; grid-column: 9 / -1; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 1rem); }
  .h-enquire__photo img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - var(--header-h) - 3rem); margin-left: auto; }
}

/* ---------- 10. The other two houses ---------- */
.others { position: relative; background: var(--stone); display: grid; gap: clamp(1.75rem, 3.5vw, 2.5rem); padding-block: var(--section); }
.others__list { display: grid; gap: 1.75rem var(--gutter); margin: 0; padding: 0; list-style: none; }
.others__house { display: grid; grid-template-columns: min(40%, 16rem) minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
.others__house img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } /* each house as a whole picture, one size and one proportion (4 Nov 2026) */
.others__name { margin-bottom: 0.35rem; }
.others__name a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.others__house p { max-width: 54ch; }
.others__all { max-width: 75ch; font-family: var(--font-ui); font-size: var(--step-body); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .others__name a:hover { text-decoration-color: var(--frame); }
}
@media (min-width: 56.25em) {
  .others__list { grid-template-columns: 1fr 1fr; }
  .others__house { grid-template-columns: 16rem minmax(0, 1fr); column-gap: 1.5rem; }
}

/* ---------- 11. Motion ----------
   The homepage's motion carries over (main.css). Added here: a room arrives with a short fade when
   chosen; the photo viewer opens like the menu and crossfades from one photograph to the next,
   drifting a little the way it is going; the balcony is entered and left like the view on the
   homepage; a held picture or film drifts gently into place as it rises (the film and the still under
   it together), and settles into shade as the next section slides over it, like the film on the
   homepage. The opening's film draws back with its still as the page leaves it (main.css). In a room's
   strip, a photograph comes into full light as it slides in from the faded edge: a little smaller and
   paler there, whole and full in its place, tied to the strip's own scroll (25 Oct 2026). The house
   from outside drifts a little against the words, like the pictures beside the words on the homepage.
   With reduced motion, only colour and opacity change. */
@media (prefers-reduced-motion: no-preference) {
  .rooms__room:not([hidden]) { transition: opacity 220ms var(--ease-out), translate 220ms var(--ease-out); }
  @starting-style { .js .rooms__room:not([hidden]) { opacity: 0; translate: 0 6px; } }

  .viewer { opacity: 0; transition: opacity 220ms var(--ease-out), display 220ms allow-discrete, overlay 220ms allow-discrete; }
  .viewer[open] { opacity: 1; }
  @starting-style { .viewer[open] { opacity: 0; } }
  .viewer__frame { transition: scale 260ms var(--ease-out); }
  @starting-style { .viewer[open] .viewer__frame { scale: 0.98; } }

  @supports (animation-timeline: view()) {
    .h-layer__img, .pin--held .pin__img { animation: arrive var(--ease-scroll) both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .h-intro__photo { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
  @supports (animation-timeline: view(inline)) {
    .rooms__strip > li { transform-origin: 0 100%; animation: into-light linear both; animation-timeline: view(inline); animation-range: entry 0% entry 100%; }
  }
  @supports (timeline-scope: --a) {
    .h-layer { timeline-scope: --layer-words; }
    .h-layer__words { view-timeline: --layer-words block; }
    .h-layer .pin::before { animation: shade var(--ease-scroll) both; animation-timeline: --layer-words; animation-range: exit 0% exit 100%; }
    /* A held picture or film settles into shade as the next section slides over it. */
    .h-held { timeline-scope: --over-film; }
    .h-held > .pin--held + * { view-timeline: --over-film block; }
    .pin--held::before { animation: shade var(--ease-scroll) both; animation-timeline: --over-film; animation-range: entry 0% entry 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .viewer__img { transform: none; transition: opacity 160ms ease; }
  .rooms__photo img, .rooms__step, .viewer__step { transition: none; }
}
@keyframes into-light { from { opacity: 0.5; scale: 0.96; } to { opacity: 1; scale: 1; } }
