/* ============================================================
   22 Pyramid Road — home.css (home page, below the hero row)
   Built on the owner's Figma system in site.css:
   - Type: Geist Medium sentence-case for section titles (the expanded menu), Geist SemiBold uppercase for names
     on cards and rows (the room panels, LOCATION), small gold uppercase kickers, DM Sans for reading text.
   - Colour: solid gold, oxblood, navy and sky blocks with white type; ivory between them.
   - Shape: full-bleed photography, 20px photos, 25px glass, uppercase links with the Figma arrow.
   - Motion, after the location card: photos wipe in from the right, colour blocks grow, text settles in from the
     right. Everything fires once on entry, uses ease-out, and drops to plain fades under reduced motion.
   ============================================================ */

.h-wrap { width: 100%; padding-left: var(--edge, var(--gutter)); padding-right: var(--edge, var(--gutter)); }
.h-intro, .h-rooms, .h-seasons, .h-ways { padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(96px, 11vw, 168px); }
.h-intro { padding-bottom: clamp(72px, 8vw, 120px); }
/* The intro rises into the ivory the dissolve leaves behind (above its canvas), so there is less to scroll; its heading
   appears as the dissolve finishes (home.js). The section stays click-through over the panels until then. */
.js-home .h-intro.after-dissolve { position: relative; z-index: 6; margin-top: -20svh; padding-top: clamp(24px, 3vw, 40px); pointer-events: none; }
.js-home .h-intro.after-dissolve .h-wrap > * { pointer-events: auto; }
.js-home .h-intro.after-dissolve [data-after-dissolve]:not(.is-in) { pointer-events: none; }
.h-rooms, .h-ways { padding-top: clamp(72px, 8vw, 120px); }

/* ---------- Type roles ---------- */
.h-kicker { font-family: var(--font-sans); font-size: var(--xs-size); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.h-title { margin-top: var(--s-16); font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.5rem, 0.9rem + 2.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; max-width: 30ch; }
.h-accent { color: var(--oxblood); }
:is(.h-navy, .h-gold, .h-oxblood, .h-sky, .h-cta-card) .h-accent { color: inherit; }
.h-lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-soft); max-width: 34rem; }
.h-body { margin-top: var(--s-24); font-size: 1.0625rem; line-height: 1.6; max-width: 34rem; }
/* Section heads: kicker and title across the full width, the lede set in from the right beneath (editorial offset). */
.h-head-wide { display: grid; gap: var(--s-24); }
@media (min-width: 900px) { .h-head-wide { grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 6vw, 112px); } .h-head-wide > :not(.h-lede) { grid-column: 1 / -1; } .h-head-wide .h-lede { grid-column: 2; } }

/* Uppercase link with the Figma arrow (RESTAURANTS ↗), in whatever colour the block sets. */
.h-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.h-arrow { flex: none; width: 15px; height: auto; transform: rotate(-45deg); transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .h-link:hover .h-arrow, .h-way:hover .h-arrow, .h-room:hover .h-arrow { transform: rotate(-45deg) translateX(4px); } }
/* Heather's email: the address opens mail (mailto:), the button beside it copies the address. The icon swaps to a check and a small "Copied" tip for a moment. */
.h-mail { display: inline-flex; align-items: center; gap: 10px; }
.h-mail-link { padding-right: 0; }
.h-copy { position: relative; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.h-copy > svg { grid-area: 1 / 1; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.h-copy-check { opacity: 0; transform: scale(0.7); }
.h-copy.is-copied .h-copy-icon { opacity: 0; transform: scale(0.7); }
.h-copy.is-copied .h-copy-check { opacity: 1; transform: none; }
.h-copy.is-copied { background: #fff; border-color: #fff; color: var(--charcoal); }
@media (hover: hover) and (pointer: fine) { .h-copy:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.8); } }
.h-copy-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--charcoal); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.h-copy.is-copied .h-copy-tip { opacity: 1; transform: translate(-50%, 0); }
.h-link-dark { margin-top: var(--s-32); color: var(--charcoal); }
.h-links { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-32); margin-top: var(--s-24); }

/* Colour blocks */
.h-navy { background: var(--navy); color: #fff; }
.h-gold { background: var(--gold); color: #fff; }
.h-oxblood { background: var(--oxblood); color: #fff; }
.h-sky { background: var(--sky); color: #fff; }
:is(.h-navy, .h-gold, .h-oxblood, .h-sky) .h-kicker { color: rgba(255, 255, 255, 0.8); }
:is(.h-navy, .h-gold, .h-oxblood, .h-sky, .h-cta-card) :focus-visible { outline-color: #fff; }

/* Logo over the dark sections here: ivory, like over the hero row (home.js sets the class). */
.site-head.over-dark-home:not(.open) .wordmark { color: var(--ivory); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }

/* ---------- Intro: the house in numbers, as tiles built like the room panels ---------- */
.h-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); margin-top: clamp(48px, 6vw, 88px); }
.h-stats > :last-child { grid-column: 1 / -1; aspect-ratio: auto; min-height: 168px; }
@media (min-width: 900px) { .h-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); } .h-stats > :last-child { grid-column: auto; aspect-ratio: 4 / 5; min-height: 0; } }
.h-stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: 9%; border-radius: var(--r-photo); container-type: inline-size; overflow: hidden; }
.h-stat-icon { width: max(14cqw, 26px); height: auto; }
.h-stat-n { margin-top: auto; font-family: var(--font-sans); font-weight: 600; font-size: max(30cqw, 2.75rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.h-stat-l { margin-top: 6cqw; font-family: var(--font-sans); font-weight: 600; font-size: max(6.4cqw, 0.75rem); letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }

/* ---------- Room by room: index with a following photo ---------- */
.h-rooms-grid { display: grid; gap: var(--s-48); }
@media (min-width: 900px) { .h-rooms-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 112px); align-items: start; } .h-rooms .h-head { grid-column: 1 / -1; } }
.h-room-list { border-top: 1px solid var(--hair-strong); }
.h-room { position: relative; display: grid; grid-template-columns: 2.5rem 1fr auto; column-gap: var(--s-16); align-items: baseline; padding: var(--s-24) 0; border-bottom: 1px solid var(--hair); transition: color 200ms var(--ease); }
.h-room-n { font-family: var(--font-sans); font-size: var(--xs-size); font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.h-room-name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; }
.h-room-meta { grid-column: 2; margin-top: 6px; font-family: var(--font-sans); font-size: var(--small-size); font-weight: 500; color: var(--ink-mute); }
.h-room .h-arrow { grid-column: 3; grid-row: 1; align-self: center; color: var(--ink-mute); }
.h-room-why { grid-column: 2 / -1; margin-top: var(--s-12); font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }
/* Wide screens: rows dim except the one you point at; its story moves to the photo caption. */
@media (min-width: 900px) {
  .h-room-why { display: none; }
  .h-room-list.has-active .h-room { color: rgba(31, 29, 26, 0.38); }
  .h-room-list.has-active .h-room.is-active { color: var(--charcoal); }
  .h-room.is-active .h-arrow { color: var(--gold); }
}
.h-room-stage { display: none; }
@media (min-width: 900px) {
  .h-room-stage { display: block; position: sticky; top: calc(var(--head-h) + 48px); }
  .h-room-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-photo); overflow: hidden; background: var(--ivory-deep); }
  .h-room-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); filter: blur(4px); transition: opacity 420ms var(--ease-out), transform 700ms var(--ease-out), filter 420ms var(--ease-out); }
  .h-room-frame img.is-active { opacity: 1; transform: none; filter: none; }
  .h-room-caption { min-height: 4.8em; margin-top: var(--s-16); font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); max-width: 34rem; transition: opacity 200ms var(--ease-out); }
  .h-room-caption.is-swapping { opacity: 0; }
}

/* ---------- Seasons: colour-block cards ---------- */
.h-season-row { display: grid; gap: var(--s-16); margin-top: clamp(48px, 6vw, 88px); }
@media (min-width: 900px) { .h-season-row { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.6vw, 24px); } }
.h-season { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-photo); container-type: inline-size; isolation: isolate; }
.h-season-media { position: absolute; inset: 0 0 auto; height: 58%; overflow: hidden; }
.h-season-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.h-season-block { position: absolute; inset: 58% 0 0; display: grid; grid-template-rows: 1fr auto auto; padding: 6cqw; background: inherit; }
.h-season-note { font-size: max(3.6cqw, 0.875rem); line-height: 1.45; color: rgba(255, 255, 255, 0.86); max-width: 30ch; }
.h-season-name { font-family: var(--font-sans); font-weight: 600; font-size: max(8.5cqw, 1.75rem); line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.h-season-meta { margin-top: var(--s-8); font-family: var(--font-sans); font-size: max(3.2cqw, 0.75rem); font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.75); }
@media (hover: hover) and (pointer: fine) { .h-season:hover .h-season-media img { transform: scale(1.03); } }
/* Until a card arrives and its photo has loaded, a cover in the card's colour holds its season's icon (large, top-centre)
   over the photo. Then the cover dissolves away in organic blobs, after new.studio: home.js drives an SVG noise filter. */
.h-season-cover { position: absolute; inset: 0 0 42%; z-index: 2; display: none; background: inherit; pointer-events: none; }
.js-home .h-season-cover { display: block; }
.js-home .h-season.is-revealed .h-season-cover { visibility: hidden; }
.h-season-icon { display: flex; justify-content: center; padding-top: 11cqw; color: rgba(255, 255, 255, 0.92); }
.h-season-icon svg { width: max(30cqw, 88px); height: auto; }

/* ---------- Seasons: polaroid line carousel (ported from the React component to plain JS in home.js) ----------
   Prints pegged to a sagging string; drag, arrows, keys or a click on a print move them along it, and they swing with
   the speed you give them. Restyled in the site's system: Geist labels, Geist Mono counter, round arrow buttons, the
   Figma arrow link. Each print's photo starts as its season's colour and icon and dissolves in (the season system). */
.h-seasons { padding-bottom: clamp(48px, 6vw, 88px); }
.pl-root { position: relative; width: 100%; height: clamp(540px, 82svh, 780px); margin-top: clamp(16px, 3vw, 40px); overflow: hidden; color: var(--charcoal); user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; cursor: grab; }
.pl-root[data-drag="1"] { cursor: grabbing; }
.pl-root:focus-visible { box-shadow: inset 0 0 0 2px var(--navy); }
.pl-string { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; stroke: var(--ink-mute); }
.pl-card { position: absolute; left: 0; top: 0; width: var(--pl-cw, 300px); transform-origin: 50% 0; will-change: transform; visibility: hidden; }
.pl-print { margin-top: 10px; padding: 10px 10px 0; background: #fbfaf7; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 18px 30px -16px rgba(0, 0, 0, 0.4); transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 500ms ease; }
.pl-card[data-on="0"] .pl-print { transform: scale(0.9); filter: saturate(0.7) brightness(0.96); }
.pl-shot { position: relative; aspect-ratio: 1; overflow: hidden; container-type: inline-size; }
.pl-shot img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; transition: transform 1400ms var(--ease-out); }
.pl-shot .h-season-cover { inset: 0; }
.pl-shot .h-season-icon { height: 100%; align-items: center; padding-top: 0; }
.pl-shot .h-season-icon svg { width: max(30cqw, 64px); }
.pl-note { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 6px; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #3b3833; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-peg { position: absolute; left: 50%; top: 0; width: 10px; height: 26px; margin-left: -5px; border-radius: 2px; background: linear-gradient(90deg, #c9a67a, #e3c9a1 45%, #b8915f); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25); }
.pl-peg::after { content: ""; position: absolute; left: 4px; top: 8px; width: 2px; height: 7px; border-radius: 1px; background: rgba(80, 60, 30, 0.45); }
.pl-bar { position: absolute; left: var(--edge, var(--gutter)); right: var(--edge, var(--gutter)); bottom: clamp(16px, 3vh, 32px); display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); cursor: default; }
.pl-cap { flex: 1; min-width: 0; overflow: hidden; padding-bottom: 0.15em; }
.pl-cap > * { display: block; }
.pl-cap.is-new > * { animation: pl-in 550ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.pl-cap.is-new > :nth-child(2) { animation-delay: 60ms; }
.pl-title { font-family: var(--font-sans); font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.625rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { margin-top: 4px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
.pl-more { margin-top: 0; padding: 10px 0; white-space: nowrap; }
.pl-count { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--ink-mute); white-space: nowrap; }
.pl-count b { font-weight: 600; color: var(--charcoal); }
.pl-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hair-strong); border-radius: 50%; background: transparent; color: var(--charcoal); cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 160ms var(--ease-out); }
.pl-btn:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .pl-btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); } }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) { .pl-root { height: clamp(440px, 66svh, 560px); } .pl-bar { flex-wrap: wrap; } .pl-cap { flex-basis: 100%; } .pl-more { margin-right: auto; } }
@keyframes pl-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pl-cap.is-new > * { animation: none; } .pl-print { transition: none; } }
.js-home .pl-card.is-revealed .h-season-cover { visibility: hidden; }
.js-home .pl-card .pl-shot img { transform: scale(1.08); }
.js-home .pl-card.is-dissolving .pl-shot img, .js-home .pl-card.is-revealed .pl-shot img { transform: none; }

/* ---------- Outdoors: full-bleed split ---------- */
.h-split { display: grid; }
@media (min-width: 900px) { .h-split { grid-template-columns: 1fr 1fr; min-height: min(100svh, 920px); } }
.h-split-media { position: relative; min-height: 64svh; overflow: hidden; }
.h-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-split-block { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-48); padding: clamp(40px, 6vw, 96px) var(--edge, var(--gutter)); }
.h-split-block .h-body { color: rgba(255, 255, 255, 0.92); }
/* The block is half the viewport wide, so its title scales against that to hold two lines. */
@media (min-width: 900px) { .h-split-block .h-title { font-size: clamp(1.5rem, 0.6rem + 1.6vw, 2.75rem); } }
.h-tags { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.h-tags li { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: var(--r-pill); font-family: var(--font-sans); font-size: var(--xs-size); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Ways to stay: typographic index; a gold fill sweeps in under the row you point at ---------- */
.h-way-list { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--hair-strong); }
.h-way { position: relative; isolation: isolate; display: grid; grid-template-columns: 2.5rem 1fr auto; column-gap: var(--s-16); align-items: baseline; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--hair); transition: color 240ms var(--ease-out), padding 0s; }
.h-way::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--edge, var(--gutter))); z-index: -1; background: var(--gold); clip-path: inset(0 100% 0 0); transition: clip-path 420ms var(--ease-out); }
.h-way-n { font-family: var(--font-sans); font-size: var(--xs-size); font-weight: 600; color: var(--gold); transition: color 240ms var(--ease-out); }
.h-way-name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(1.5rem, 1rem + 2vw, 3rem); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; }
.h-way-note { grid-column: 2; margin-top: var(--s-12); max-width: 40rem; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); transition: color 240ms var(--ease-out); }
.h-way .h-arrow { grid-column: 3; grid-row: 1; align-self: center; width: 20px; }
@media (min-width: 900px) { .h-way { grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) auto; } .h-way-note { grid-column: 3; margin-top: 0; } .h-way .h-arrow { grid-column: 4; } }
@media (hover: hover) and (pointer: fine) {
  .h-way:hover { color: #fff; }
  .h-way:hover::before { clip-path: inset(0 0 0 0); }
  .h-way:hover .h-way-n, .h-way:hover .h-way-note { color: rgba(255, 255, 255, 0.85); }
}

/* ---------- Location ---------- */
.h-location { padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(96px, 11vw, 168px); }
.h-location-grid { display: grid; gap: var(--s-48); }
@media (min-width: 900px) { .h-location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(40px, 6vw, 112px); align-items: center; } }
.h-location .h-kicker { color: var(--sky-soft); }
.h-location .h-body { color: rgba(255, 255, 255, 0.85); }
.h-near { margin-top: var(--s-32); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.h-near li { display: flex; justify-content: space-between; gap: var(--s-16); padding: var(--s-16) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-family: var(--font-sans); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: uppercase; }
.h-near li span { font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); }
.h-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-photo); overflow: hidden; background: #0e2b52; }
.h-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Inquire: glass card over the hot tub ---------- */
.h-cta { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(100svh, 960px); padding: clamp(96px, 12vw, 180px) 0 clamp(32px, 5vw, 72px); color: #fff; overflow: hidden; }
.h-cta-bg { position: absolute; inset: 0; z-index: -1; }
.h-cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.h-cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35)); }
.h-cta-card { max-width: 568px; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-card); background: rgba(0, 0, 0, 0.36); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.h-cta-card .h-kicker { color: rgba(255, 255, 255, 0.8); }
.h-cta-card .h-body { color: rgba(255, 255, 255, 0.9); }
.h-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-32); margin-top: var(--s-32); }

/* ---------- Dissolve, after new.studio: where the hero row meets the ivory page, ivory blobs and specks rise into the
   photos as you scroll on. A canvas laid over the foot of the row; home.js paints it from a noise field. ---------- */
.hscroll { position: relative; }
.h-dissolve { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; width: 100%; height: 75svh; pointer-events: none; display: none; }
.js-home .h-dissolve { display: block; }
@media (prefers-reduced-motion: reduce) { .js-home .h-dissolve { display: none; } }

/* ============================================================
   Motion. home.js adds .is-in once, as each element enters.
   ============================================================ */
.js-home [data-in] { opacity: 0; transform: translateX(40px); transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out); }
.js-home [data-in].is-in { opacity: 1; transform: none; }
.js-home [data-in-group] > * { opacity: 0; transform: translateX(32px); transition: opacity 500ms var(--ease-out), transform 800ms var(--ease-out); }
.js-home [data-in-group].is-in > * { opacity: 1; transform: none; }
.js-home [data-in-group].is-in > :nth-child(2) { transition-delay: 60ms; } .js-home [data-in-group].is-in > :nth-child(3) { transition-delay: 120ms; }
.js-home [data-in-group].is-in > :nth-child(4) { transition-delay: 180ms; } .js-home [data-in-group].is-in > :nth-child(5) { transition-delay: 240ms; }
.js-home [data-in-group].is-in > :nth-child(n+6) { transition-delay: 300ms; }

/* Photos wipe open from their right edge while the image settles. */
.js-home [data-wipe] { clip-path: inset(0 0 0 100%); transition: clip-path 1100ms var(--ease-drawer); }
.js-home [data-wipe].is-in { clip-path: inset(0); }
.js-home [data-wipe] img { transform: scale(1.1) translateX(5%); transition: transform 1400ms var(--ease-out); }
.js-home [data-wipe].is-in img { transform: none; }
.js-home .h-room-stage[data-wipe] img:not(.is-active) { transform: scale(1.04); }

/* Colour blocks grow up into place, after the location card. */
.js-home [data-grow] { clip-path: inset(30% 0 0 0); transition: clip-path 1000ms var(--ease-drawer); }
.js-home [data-grow].is-in { clip-path: inset(0); }
.js-home .h-cta-card[data-grow] { clip-path: none; opacity: 0; transform: translateY(24px) scale(0.97); transform-origin: bottom left; transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-drawer); }
.js-home .h-cta-card[data-grow].is-in { opacity: 1; transform: none; }

/* Number tiles: each grows up from the bottom, then its contents settle, staggered across the row. */
.js-home .h-stat { clip-path: inset(100% 0 0 0 round var(--r-photo)); transition: clip-path 900ms var(--ease-drawer) var(--d, 0ms); }
.js-home .h-stat > * { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out) calc(var(--d, 0ms) + 300ms), transform 700ms var(--ease-out) calc(var(--d, 0ms) + 300ms); }
.js-home .h-stat.is-in { clip-path: inset(0 0 0 0 round var(--r-photo)); }
.js-home .h-stat.is-in > * { opacity: 1; transform: none; }

/* Season cards: photo wipes from the right, then the colour block grows up from the bottom, staggered across the row. */
.js-home .h-season .h-season-media img { transform: scale(1.08); transition: transform 1400ms var(--ease-out); }
.js-home .h-season .h-season-block { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-drawer) calc(var(--d, 0ms) + 260ms); }
.js-home .h-season.is-in .h-season-block { clip-path: inset(0); }
.js-home .h-season.is-revealed .h-season-media img, .js-home .h-season.is-dissolving .h-season-media img { transform: none; }
@media (hover: hover) and (pointer: fine) { .js-home .h-season.is-in:hover .h-season-media img { transform: scale(1.03); transition-delay: 0ms; } }

@media (prefers-reduced-motion: reduce) {
  .js-home [data-in], .js-home [data-in-group] > *, .js-home .h-cta-card[data-grow] { transform: none !important; transition: opacity 300ms var(--ease) !important; }
  .js-home [data-wipe], .js-home [data-grow], .js-home .h-season .h-season-media, .js-home .h-season .h-season-block, .js-home .h-stat { clip-path: none !important; transition: none !important; }
  .js-home .h-stat > * { transform: none !important; transition: opacity 300ms var(--ease) !important; }
  .js-home [data-wipe] img, .js-home .h-season .h-season-media img { transform: none !important; transition: none !important; }
  .js-home .h-season-cover { transition: opacity 300ms var(--ease) !important; }
  .js-home .h-season.is-dissolving .h-season-cover { opacity: 0; }
  .h-room-frame img { transform: none !important; filter: none !important; transition: opacity 200ms var(--ease) !important; }
  .h-way::before { transition: none; }
}
