/* milía · round 3 · The Reel, version 3
   Fashion-house base: the photographs carry the page, type stays exact in the corners.
   After the living photo, the wedding becomes a strip of film you drag, swipe or scroll through.
   Each frame can pull focus: the photograph softens and darkens like a lens racking to the
   foreground, and the real milía screen rises into the scene on a lit phone.
   Then: the rooms of milía as an index, their words, the plans as a menu, four questions, the door.
   Modes:  (no class) / .rm  = native horizontal scroll-snap strip, still swipeable; cross-fades only.
           .fx              = pinned reel, scroll advances it, drag with inertia and snap. */

:root {
  --ground: oklch(0.16 0.008 60);
  --ground-deep: oklch(0.12 0.008 60);
  --ground-lift: oklch(0.19 0.009 60);
  --cream: oklch(0.94 0.018 80);
  --cream-dim: oklch(0.94 0.018 80 / 0.72);
  --cream-faint: oklch(0.94 0.018 80 / 0.46);
  --cream-hair: oklch(0.94 0.018 80 / 0.16);
  --cream-rule: oklch(0.94 0.018 80 / 0.12);
  --ink: oklch(0.19 0.01 60);
  --shade: 0.13 0.008 60;
  --candle: 0.8 0.085 68;            /* warm light spilling from a lit screen */

  --gutter: 16px;
  --edge: 20px;
  --fedge: 16px;            /* caption inset inside a reel frame */
  --head-h: 60px;           /* the top bar: 60px phone, 72px from 760px */
  --top-h: 60px;
  --bar-h: 64px;
  --gap: 8px;               /* the thin dark gap between frames */
  --peek: 64px;             /* how much of the first frame shows under the hero */

  --t-label: 0.75rem;       /* 12px, caps only */
  --t-sub: 0.9375rem;       /* 15px */
  --t-body: 1rem;
  --t-line: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --t-hero: clamp(1.625rem, 1.3rem + 1.3vw, 2.5rem);
  --t-room: clamp(1.375rem, 1.15rem + 1vw, 2.125rem);
  --t-h2: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  --t-plan: clamp(1.875rem, 1.3rem + 2.4vw, 3.5rem);
  --t-quote: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);       /* ease-out-quint */
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --rack: 1100ms;           /* the focus pull */
  --font: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Reel frame size. The frame in focus sits a little left of centre (--lead), so the next frame
     always shows more of itself on the right than the last one does on the left. */
  --fw: 84vw;
  --fh: calc(100svh - var(--head-h) - var(--bar-h) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  --lead: calc((100vw - var(--fw)) * 0.3);
  --step: 72svh;            /* vertical scroll per frame when pinned */
  --nb-dim: 0.42;           /* how much a neighbouring frame darkens */
}

@media (min-width: 760px) { :root { --head-h: 72px; --top-h: 72px; } }
@media (min-width: 900px) {
  :root {
    --gutter: 32px; --edge: 32px; --fedge: 24px; --head-h: 72px; --bar-h: 80px; --gap: 14px; --peek: 72px;
    --fw: min(76vw, calc(var(--fh) * 1.62));
    --step: 80svh;
    --nb-dim: 0.6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
  border-radius: 2px;
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--cream); color: var(--ink); padding: 12px 16px; font-size: var(--t-sub);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type roles ---------- */
.label, .num {
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.num { font-variant-numeric: tabular-nums; }
.line {
  font-size: var(--t-line);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.line--hero { font-size: var(--t-hero); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; }
.sub {
  margin-top: 6px;
  font-size: var(--t-sub);
  line-height: 1.5;
  color: var(--cream-dim);
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-left: -0.05em;
  text-wrap: balance;
}
.eyebrow { color: var(--cream-faint); margin-bottom: 20px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* ---------- Top bar (identical on every page) ----------
   Transparent over the hero; solid ground + one hairline once the page has moved ~40px.
   Desktop: Home · The details · Pricing · Sign in, then the pill. Phone (<760px): logo, pill, menu. */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: 8px;
  background: oklch(0.16 0.008 60 / 0);
  box-shadow: inset 0 -1px 0 oklch(0.94 0.018 80 / 0);
  transition: background-color 420ms var(--ease), box-shadow 420ms var(--ease);
}
.top.solid { background: var(--ground); box-shadow: inset 0 -1px 0 var(--cream-rule); }
.logo { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 15px; width: auto; }
@media (min-width: 760px) { .logo img { height: 18px; } }

.top-nav { display: none; align-items: center; margin-right: 10px; }
.top-nav a, .top-pill {
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.top-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--cream-dim);
  transition: color 200ms var(--ease);
}
.top-nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
@media (hover: hover) { .top-nav a:hover { color: var(--cream); } }
.top-pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px 0 calc(18px + 0.18em);
  border: 1px solid var(--cream); border-radius: 999px;
  color: var(--cream);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.top-pill::before { content: ""; position: absolute; inset: -3px -2px; }
@media (hover: hover) { .top-pill:hover { background: var(--cream); color: var(--ink); } }
.top-pill:focus-visible { border-radius: 999px; }
.tp-short { display: none; }
@media (max-width: 359px) { .tp-long { display: none; } .tp-short { display: inline; } }

.menu-btn {
  display: grid; place-content: center; gap: 6px;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn i { display: block; width: 22px; height: 1px; background: var(--cream); transition: translate 300ms var(--ease); }
.menu-btn i + i { width: 14px; justify-self: end; }
@media (hover: hover) { .menu-btn:hover i + i { width: 22px; } }
.menu-btn:focus-visible { outline-offset: -2px; border-radius: 50%; }

@media (min-width: 760px) {
  .top { gap: 4px; }
  .top-nav { display: flex; }
  .menu-btn { display: none; }
}

/* the phone menu: a quiet full-screen sheet */
.sheet {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--ground);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity 320ms var(--ease);
}
.sheet[hidden] { display: none; }
.sheet.open { opacity: 1; }
.sheet-head { flex: none; height: var(--top-h); display: flex; align-items: center; justify-content: space-between; }
.sheet-close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: -10px; padding: 0 10px;
  border: 0; background: none; cursor: pointer; color: var(--cream);
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.sheet-nav { flex: 1; display: flex; align-items: center; padding: 32px 0; }
.sheet-nav ol { width: 100%; }
.sheet-nav li { border-bottom: 1px solid var(--cream-rule); opacity: 0; translate: 0 14px; transition: opacity 500ms var(--ease), translate 700ms var(--ease); }
.sheet-nav li:first-child { border-top: 1px solid var(--cream-rule); }
.sheet.open .sheet-nav li { opacity: 1; translate: none; transition-delay: calc(80ms + var(--i, 0) * 55ms); }
.sheet-nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 18px 0 20px;
  text-decoration: none; color: var(--cream-dim);
}
.sheet-nav .num { color: var(--cream-faint); min-width: 2ch; }
.sheet-nav .t { font-size: 2rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.sheet-nav a[aria-current="page"] { color: var(--cream); }
.sheet-nav a[aria-current="page"] .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.sheet-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sheet-foot .label { color: var(--cream-faint); }
html.locked, html.locked body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .sheet-nav li { translate: none; transition: opacity 300ms ease-out; }
  .sheet.open .sheet-nav li { transition-delay: 0ms; }
}

/* ---------- Corner captions (shared) ---------- */
.cap { position: relative; z-index: 2; }
.hero .cap, .words .cap { position: absolute; }
.cap--tl { top: calc(var(--head-h) + env(safe-area-inset-top) + 16px); left: var(--edge); color: var(--cream-dim); }
.cap--bl { left: var(--edge); bottom: calc(var(--edge) + 4px); max-width: min(32ch, calc(100% - 2 * var(--edge))); }
.cap--br { right: var(--edge); bottom: calc(var(--edge) + 4px); }

/* ---------- Hero: the living photo ---------- */
/* Fills the whole first screen; the scroll cue says there is more below. */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  overflow: hidden; isolation: isolate;
  background: var(--ground-deep);
}
.living { position: absolute; inset: 0; }
.poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 50%;
}
@media (min-aspect-ratio: 1/1) { .poster { object-position: 53% 50%; } }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero::before { top: 0; height: 24%; background: linear-gradient(oklch(var(--shade) / 0.6), oklch(var(--shade) / 0)); }
.hero::after { bottom: 0; height: 46%; background: linear-gradient(oklch(var(--shade) / 0), oklch(var(--shade) / 0.62) 72%, var(--ground)); }
.hero-shade { /* deepens as you scroll on into the reel */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--ground); opacity: var(--shade-o, 0);
}
.hero .cap--bl { max-width: 9ch; }
@media (min-width: 900px) { .hero .cap--bl { max-width: none; } }

/* the scroll cue: a fine line, a point of light travelling down it */
.cue {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-width: 44px; padding-top: 8px;
  color: var(--cream-dim); text-decoration: none;
}
.cue .label { writing-mode: vertical-rl; letter-spacing: 0.2em; }
.cue i { display: block; width: 1px; height: 56px; background: var(--cream-hair); position: relative; overflow: hidden; }
.cue i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(oklch(0.94 0.018 80 / 0), var(--cream));
  transform: translateY(-100%); animation: cue 2.6s var(--ease-io) 2.2s infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }
@media (hover: hover) { .cue:hover { color: var(--cream); } }
@media (min-width: 900px) { .cue i { height: 72px; } }

/* ---------- The reel ---------- */
.reel { position: relative; background: var(--ground); }
.reel-pin {
  position: relative;
  height: 100svh; min-height: 560px;
  display: grid;
  grid-template-rows: calc(var(--head-h) + env(safe-area-inset-top) + 8px) minmax(0, 1fr) calc(var(--bar-h) + env(safe-area-inset-bottom));
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.reel-view {
  grid-row: 2;
  position: relative;
  outline: none;
  /* default and reduced motion: a native strip you can swipe */
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scroll-padding-inline-start: var(--lead);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reel-view::-webkit-scrollbar { display: none; }
.reel-view:focus-visible .fr.is-on { outline: 2px solid var(--cream); outline-offset: 4px; }
.reel-track {
  display: flex; gap: var(--gap);
  height: 100%;
  padding-inline: var(--lead) calc(100vw - var(--lead) - var(--fw));
  width: max-content;
}

.fr {
  position: relative;
  flex: 0 0 var(--fw);
  width: var(--fw); height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  background: var(--ground-deep);
  -webkit-user-select: none; user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fr.is-on:not([data-focusable]) { cursor: auto; }

/* the scene: the photograph, and its out-of-focus twin laid over it */
.fr-scene { position: absolute; inset: 0 -9%; }   /* wider than the frame: room for the parallax drift */
.fr-push {
  position: absolute; inset: 0;
  transition: scale calc(var(--rack) * 1.3) var(--ease);
}
.fr-push picture { position: absolute; inset: 0; display: block; }
.fr-push img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.fr--details .fr-push img { object-position: 30% 50%; filter: brightness(0.88); }
.fr--table .fr-push img   { object-position: 56% 50%; }
.fr--vow .fr-push img     { object-position: 75% 50%; }
.fr--end .fr-push img     { object-position: 40% 60%; transform: scale(2.1); transform-origin: 36% 66%; filter: brightness(0.34) saturate(0.85); }
@media (min-width: 900px) {
  .fr--details .fr-push img { object-position: 50% 44%; }
  .fr--table .fr-push img   { object-position: 50% 50%; }
  .fr--vow .fr-push img     { object-position: 74% 50%; }
  .fr--end .fr-push img     { transform-origin: 31% 66%; }
}
/* The lens racks to the foreground: the photograph goes soft, a little darker, a little warmer.
   The blur is drawn once on a twin layer and faded in, so the pull stays smooth on a phone. */
.fr-push .soft { opacity: 0; visibility: hidden; transition: opacity calc(var(--rack) * 0.8) var(--ease-io), visibility 0s linear calc(var(--rack) * 0.8); }
.fr-push .soft img { filter: blur(14px) brightness(0.56) saturate(0.82); transform: scale(1.06); }
.fr--details .fr-push .soft img { filter: blur(14px) brightness(0.5) saturate(0.82); }
.is-focus .fr-push { scale: 1.045; }
.is-focus .fr-push .soft { opacity: 1; visibility: visible; transition: opacity var(--rack) var(--ease-io), visibility 0s; }

/* light from the screen, falling on the scene around it */
.spill {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(30% 42% at var(--sx, 50%) var(--sy, 54%), oklch(var(--candle) / 0.3), oklch(var(--candle) / 0) 72%),
    radial-gradient(60% 70% at var(--sx, 50%) var(--sy, 54%), oklch(var(--candle) / 0.07), oklch(var(--candle) / 0) 80%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity calc(var(--rack) * 0.6) var(--ease-io);
}
.is-focus .spill { opacity: 1; transition: opacity calc(var(--rack) * 1.4) var(--ease-io) calc(var(--rack) * 0.3); }

/* captions */
.fr::after { /* bottom scrim, only where type sits */
  content: ""; position: absolute; inset: auto 0 0 0; height: 48%; z-index: 3; pointer-events: none;
  background: linear-gradient(oklch(var(--shade) / 0), oklch(var(--shade) / 0.72));
}
.fr::before { /* top scrim, a little deeper in the corner where the control sits */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 26%; z-index: 3; pointer-events: none;
  background:
    radial-gradient(48% 80% at 100% 0%, oklch(var(--shade) / 0.42), oklch(var(--shade) / 0)),
    linear-gradient(oklch(var(--shade) / 0.48), oklch(var(--shade) / 0) 85%);
}
.fr--end::after { height: 70%; }
.fcap { position: absolute; z-index: 5; }
.fcap--tl { top: var(--fedge); left: var(--fedge); color: var(--cream-dim); line-height: 20px; }
.fcap--tl .num { color: var(--cream); margin-right: 8px; }
.fcap--bl { left: var(--fedge); right: var(--fedge); bottom: var(--fedge); max-width: 48ch; transition: opacity 500ms var(--ease); }
.swap { display: inline-grid; vertical-align: top; }
.swap > span { grid-area: 1 / 1; transition: opacity 500ms var(--ease), translate 600ms var(--ease); white-space: nowrap; }
.swap .sw-b { opacity: 0; translate: 0 6px; }
.is-focus .swap .sw-a { opacity: 0; translate: 0 -6px; }
.is-focus .swap .sw-b { opacity: 1; translate: 0 0; transition-delay: 200ms; }
/* on a phone the screen needs the whole frame: the line steps aside while it is up */
@media (max-width: 899px) { .is-focus .fcap--bl { opacity: 0; } }

.fr-dim {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: var(--ground-deep);
  opacity: calc(var(--ad, 0) * var(--nb-dim));
}

/* ---------- The reveal: a lit phone, or a floating screen ---------- */
.reveal {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  padding: 56px 20px 28px;
  pointer-events: none;
  container-type: size;
}
.reveal > * { pointer-events: auto; }
.reveal > .device, .reveal > .slate {
  opacity: 0; translate: 0 18%;
  transition: opacity 520ms var(--ease-in), translate 600ms var(--ease-in);
}
.is-focus .reveal > .device, .is-focus .reveal > .slate {
  opacity: 1; translate: 0 0;
  transition: opacity 700ms var(--ease) calc(var(--rack) * 0.22), translate var(--rack) var(--ease) calc(var(--rack) * 0.16);
}
@media (min-width: 900px) {
  /* phones stand on the right third; the line stays in the lower left */
  .reveal--phone { padding: 40px 10% 40px 46%; }
  .fr--details, .fr--vow { --sx: 68%; --sy: 52%; }
  .reveal--slate { padding: 64px 48px 132px; }
  .fr--table { --sy: 44%; }
}

/* The device. Dark titanium, a thin black bezel, true iPhone proportions (screen 1170 x 2532),
   corner radii taken from the screen (12.1% of its width) plus the bezel. No gloss, no notch art. */
.device {
  --bz: 2.7cqw;
  container-type: inline-size;
  position: relative;
  height: min(100%, 680px);
  aspect-ratio: 0.4752;
  max-width: 100%;
}
.room-stage .device, .reveal .device { height: min(100%, 680px); }
.bezel {
  position: absolute; inset: 0;
  padding: var(--bz);
  border-radius: calc(11.5cqw + var(--bz));
  border: 1.5px solid transparent;
  background:
    linear-gradient(oklch(0.115 0.004 60), oklch(0.115 0.004 60)) padding-box,
    linear-gradient(158deg, oklch(0.6 0.007 75), oklch(0.36 0.006 70) 22%, oklch(0.47 0.007 72) 52%, oklch(0.3 0.005 68) 80%, oklch(0.44 0.006 72)) border-box;
  box-shadow:
    0 0 0 0.5px oklch(0.2 0.005 60),
    0 2px 3px -1px oklch(0.08 0.02 50 / 0.5),
    0 30px 50px -28px oklch(0.07 0.025 45 / 0.85),
    0 70px 110px -40px oklch(0.07 0.03 45 / 0.75),
    0 0 90px 6px oklch(var(--candle) / 0.1);
}
.screen {
  position: relative; height: 100%;
  border-radius: 11.5cqw;
  overflow: hidden;
  background: oklch(0.97 0.005 80);
  isolation: isolate;
}
.screen img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  -webkit-user-drag: none; pointer-events: none;
}
/* a sequence: the incoming screen fades in on top of the one it replaces */
.screen[data-seq] img { opacity: 0; z-index: 0; transition: opacity 1200ms var(--ease-io); }
.screen[data-seq]:not(.playing) img:first-child { opacity: 1; transition: none; }
.screen[data-seq] img.prev { opacity: 1; z-index: 1; transition: none; }
.screen[data-seq] img.on { opacity: 1; z-index: 2; }
.screen::after { /* the island, faint */
  content: ""; position: absolute; z-index: 2; top: 2.6cqw; left: 50%; translate: -50% 0;
  width: 24%; height: 6.6cqw; border-radius: 99px;
  background: oklch(0.1 0.003 60 / 0.82);
}
.no-island .screen::after { display: none; }

/* a landscape screen: frameless, floating, a fine rounded edge */
.slate {
  position: relative;
  width: min(100%, 1060px);
  aspect-ratio: 2400 / 1559;
  max-height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: oklch(0.97 0.005 80);
  box-shadow:
    0 0 0 1px oklch(0.94 0.018 80 / 0.1),
    0 2px 4px -2px oklch(0.08 0.02 50 / 0.4),
    0 40px 70px -36px oklch(0.07 0.025 45 / 0.85),
    0 80px 140px -60px oklch(0.07 0.03 45 / 0.7),
    0 0 100px 6px oklch(var(--candle) / 0.06);
}
.slate img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; -webkit-user-drag: none; pointer-events: none; }
/* the seating plan on a phone: one corner of the room, close enough to read the names */
.slate--seating { aspect-ratio: 1.12; border-radius: 8px; }
.reveal .slate { width: min(100cqw, 1060px); }
.reveal .slate--seating { width: min(100cqw, 112cqh); }
.slate--seating img { object-position: 1.5% 50%; }
@media (min-width: 900px) {
  .slate--seating { aspect-ratio: 2400 / 1559; border-radius: 10px; }
  .reveal .slate, .reveal .slate--seating { width: min(100cqw, 153cqh, 1060px); }
  /* in the reel, the plan itself: the app's rail and top bar fall outside the frame */
  .reveal .slate--seating img {
    position: absolute; top: 0; left: 0; max-width: none;
    width: calc(var(--z, 1) * 100%); height: auto; aspect-ratio: 2400 / 1559;
    translate: calc(var(--zx, 0%) * -1) calc(var(--zy, 0%) * -1);
  }
  .slate--seating img { object-position: 0 0; }
}

/* the quiet control on each frame */
.see {
  position: absolute; z-index: 9; top: calc(var(--fedge) - 12px); right: calc(var(--fedge) - 12px);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px 0 14px;
  border: 0; background: none; cursor: pointer;
  color: var(--cream);
  font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.see svg {
  box-sizing: content-box; padding: 7px;
  border-radius: 50%; border: 1px solid oklch(0.94 0.018 80 / 0.42);
  transition: rotate 600ms var(--ease), border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.see-t { display: inline-grid; text-align: right; }
.see-t > span { grid-area: 1 / 1; transition: opacity 400ms var(--ease); }
.see-b { opacity: 0; }
.is-focus .see-a { opacity: 0; }
.is-focus .see-b { opacity: 1; }
.is-focus .see svg { rotate: 45deg; }
@media (hover: hover) { .see:hover svg { border-color: var(--cream); background: oklch(0.94 0.018 80 / 0.08); } }
.see:active svg { scale: 0.92; }
.see:focus-visible { outline-offset: -4px; border-radius: 99px; }
.fr.is-on .see { opacity: 1; pointer-events: auto; }
/* phones: the control sits under the line, left, where the thumb is; the top keeps the frame's name */
@media (max-width: 899px) {
  .see { top: auto; right: auto; bottom: calc(var(--fedge) - 10px); left: calc(var(--fedge) - 9px); padding: 0 14px 0 2px; flex-direction: row-reverse; }
  .see-t { text-align: left; }
  .fcap--bl { bottom: calc(var(--fedge) + 46px); }
  .reveal { padding: 52px 16px 62px; }
}

/* the last frame: the door */
.end { display: grid; gap: 22px; max-width: none; }
.end-line {
  font-size: clamp(2.5rem, 1.3rem + 3.8vw, 5rem);
  font-weight: 300; line-height: 0.96; letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.end-line span { display: block; white-space: nowrap; }
.end-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.end .price { color: var(--cream-dim); }
@media (min-width: 900px) { .end { gap: 32px; } }

/* the bar under the reel: counter, progress, hint, prev/next */
.reel-bar {
  grid-row: 3;
  display: flex; align-items: center; gap: 16px;
  padding: 0 calc(100vw - var(--lead) - var(--fw)) env(safe-area-inset-bottom) var(--lead);
}
.count { color: var(--cream); white-space: nowrap; min-width: 6.5ch; }
.count .count-all { color: var(--cream-faint); }
.progress { flex: 1; height: 1px; background: var(--cream-hair); position: relative; overflow: hidden; }
.progress i {
  position: absolute; inset: 0; background: var(--cream-dim);
  transform-origin: 0 50%; transform: scaleX(var(--prog, 0.25));
}
.hint { display: inline-flex; align-items: center; gap: 8px; color: var(--cream-dim); white-space: nowrap; }
.hint svg { overflow: visible; animation: hint-arrow 2.4s var(--ease-io) 1.5s infinite; }
@keyframes hint-arrow { 0%, 100% { translate: 0 0; } 45% { translate: 5px 0; } 70% { translate: 0 0; } }
.hint.done { color: var(--cream-faint); }
.hint.done svg { animation: none; }
.ctrl { display: flex; gap: 4px; margin-right: -12px; }
.arrow {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--cream);
  transition: color 200ms var(--ease), opacity 200ms var(--ease), background-color 200ms var(--ease);
}
@media (hover: hover) { .arrow:hover { background: oklch(0.94 0.018 80 / 0.08); } }
.arrow:active svg { transform: scale(0.9); }
.arrow[aria-disabled="true"] { opacity: 0.28; cursor: default; background: none; }
html:not(.js) .ctrl, html:not(.js) .progress, html:not(.js) .count, html:not(.js) .see { display: none; }

/* ---------- FX mode: pinned reel, scroll + drag ---------- */
.fx .reel { height: calc(100svh + 3 * var(--step)); }
.fx .reel-pin { position: sticky; top: 0; }
.fx .reel-view {
  overflow: visible;        /* the pin clips */
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
}
.fx .reel-view.is-drag, .fx .reel-view.is-drag .fr { cursor: grabbing; }
.fx .reel-track {
  padding: 0;
  transform: translate3d(var(--tx, 0px), 0, 0);
  will-change: transform;
}
/* the first time the reel arrives it leans toward the next frame, once, and settles back */
.fx .reel-track.nudge { animation: nudge 1500ms var(--ease-io); }
@keyframes nudge { 0%, 100% { translate: 0 0; } 42% { translate: -48px 0; } }
.fx .fr {
  /* neighbours shrink toward the frame in focus, so the dark gap between them stays thin */
  transform: scale(calc(1 - 0.06 * var(--ad, 0)));
  transform-origin: calc(50% - var(--dc, 0) * 50%) 50%;
}
.fx .fr-scene { transform: translate3d(calc(var(--d, 0) * -7%), 0, 0); }
.fx .fcap { opacity: calc(1 - var(--ad, 0) * 0.9); translate: calc(var(--d, 0) * 24px) 0; }
@media (max-width: 899px) { .fx .is-focus .fcap--bl { opacity: 0; } }
.fx .fr.is-on .fr-scene > .fr-push > .sharp, .fx .fr.is-on .fr-scene > .fr-push > .soft { animation: drift 14s linear both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }

/* RM mode: cross-fades. The focus pull fades the soft twin in; nothing moves or grows. */
.rm .fr-dim { transition: opacity 400ms ease-out; }
.rm .reel-track { transition: opacity 260ms ease-out; }
.rm .reel-track.fading { opacity: 0; }
.rm .is-focus .fr-push { scale: none; }
.rm .fr-push { transition: none; }
.rm .fr-push .soft { transition: opacity 600ms ease-out, visibility 0s linear 600ms; }
.rm .is-focus .fr-push .soft { transition: opacity 700ms ease-out, visibility 0s; }
.rm .reveal > .device, .rm .reveal > .slate { translate: none; transition: opacity 450ms ease-out; }
.rm .is-focus .reveal > .device, .rm .is-focus .reveal > .slate { transition: opacity 700ms ease-out 150ms; }
.rm .swap > span { translate: none; }
.rm .see svg { transition: none; }
.rm .hint svg { animation: none; }

/* ---------- Section heads (shared) ---------- */
.sec-head { padding: 0 var(--edge); }

/* ---------- Everything, in one place ---------- */
.rooms { padding: 96px 0 104px; }
.rooms .sec-head { margin-bottom: 40px; }
.rooms-grid { position: relative; padding: 0 var(--edge); }
.rooms-list { border-top: 1px solid var(--cream-rule); counter-reset: room; }
.room { border-bottom: 1px solid var(--cream-rule); }
.room h3 { font: inherit; }
.room-btn {
  position: relative;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 24px; align-items: baseline; column-gap: 8px;
  width: 100%; padding: 20px 0 22px; margin: 0;
  border: 0; background: none; text-align: left; cursor: pointer;
  color: var(--cream-dim);
  -webkit-tap-highlight-color: transparent;
  transition: color 300ms var(--ease);
}
.room-n { grid-column: 1; grid-row: 1; color: var(--cream-faint); transition: color 300ms var(--ease); }
.room-name {
  grid-column: 2; grid-row: 1;
  font-size: var(--t-room); font-weight: 300; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}
.room-line { grid-column: 2; grid-row: 2; margin-top: 8px; font-size: var(--t-sub); line-height: 1.45; }
.room-plus {
  grid-column: 3; grid-row: 1; align-self: center; justify-self: end;
  position: relative; width: 14px; height: 14px;
}
.room-plus::before, .room-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px;
  background: currentColor; transition: rotate 400ms var(--ease), opacity 300ms var(--ease);
}
.room-plus::after { rotate: 90deg; }
.room-btn[aria-expanded="true"] .room-plus::after { rotate: 0deg; opacity: 0; }
.room-btn[aria-expanded="true"] { color: var(--cream); }
.room-btn[aria-expanded="true"] .room-n { color: var(--cream); }
.room-btn:focus-visible { outline-offset: 2px; }

/* phones: each room opens inline */
.room-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease);
}
.room-panel > .room-in { min-height: 0; overflow: hidden; }
.room.open .room-panel { grid-template-rows: 1fr; }
.room-stage {
  padding: 4px 0 28px;
  opacity: 0; translate: 0 12px;
  transition: opacity 400ms var(--ease), translate 500ms var(--ease);
}
.room.open .room-stage { opacity: 1; translate: 0 0; transition-delay: 120ms; }
.room-stage .slate {
  aspect-ratio: 1.25;
  border-radius: 8px;
  box-shadow: 0 0 0 1px oklch(0.94 0.018 80 / 0.1), 0 30px 60px -36px oklch(0.07 0.025 45 / 0.9);
}
.room-stage .slate img {
  position: absolute; top: 0; left: 0;
  width: calc(var(--z, 1) * 100%); height: auto; max-width: none;
  aspect-ratio: 2400 / 1559; object-fit: fill;
  translate: calc(var(--zx, 0%) * -1) calc(var(--zy, 0%) * -1);
}
.room-stage--phone { display: grid; justify-items: center; }
.room-stage--phone .device { height: min(560px, 118vw); }
.room-stage--phone::before { /* a pool of warm light under the phone */
  content: ""; grid-area: 1 / 1; align-self: center; width: 80%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, oklch(var(--candle) / 0.1), oklch(var(--candle) / 0));
}
.room-stage--phone .device { grid-area: 1 / 1; }

@media (min-width: 900px) {
  .rooms { padding: 144px 0 152px; }
  .rooms .sec-head { margin-bottom: 64px; }
  .rooms-grid {
    display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 5vw, 96px);
  }
  .rooms-list { grid-column: 1; }
  .room-btn { padding: 22px 0 24px; grid-template-columns: 3rem minmax(0, 1fr) 24px; }
  .room-btn .room-plus { display: none; }
  @media (hover: hover) { .room-btn:hover { color: var(--cream); } .room-btn:hover .room-n { color: var(--cream); } }
  .room-btn::before { /* a hairline that draws under the active room */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; z-index: 1;
    background: var(--cream-dim); transform-origin: 0 50%; scale: 0 1;
    transition: scale 600ms var(--ease);
  }
  .room-btn[aria-expanded="true"]::before { scale: 1 1; }
  .room-btn[aria-expanded="false"] .room-name { color: var(--cream-dim); transition: color 300ms var(--ease); }
  @media (hover: hover) { .room-btn:hover .room-name { color: var(--cream); } }

  /* every panel lives in the right-hand column; the active one shows, held in view while you read */
  .room-panel {
    position: absolute; top: 0; bottom: 0; right: var(--edge);
    width: calc((100% - 2 * var(--edge) - clamp(40px, 5vw, 96px)) * 0.54);
    display: block; transition: none;
    pointer-events: none;
  }
  .room-panel > .room-in {
    position: sticky; top: calc(50svh - min(30vw, 300px));
    overflow: visible;
  }
  .room-stage {
    padding: 0;
    height: min(60vw, 600px);
    display: grid; place-items: center;
    opacity: 0; translate: 0 16px; visibility: hidden;
    transition: opacity 360ms var(--ease), translate 500ms var(--ease), visibility 0s linear 360ms;
  }
  .room.open .room-stage { opacity: 1; translate: 0 0; visibility: visible; transition: opacity 600ms var(--ease) 80ms, translate 800ms var(--ease) 80ms, visibility 0s; pointer-events: auto; }
  .room-stage::after { /* warm light pooled behind the screen */
    content: ""; grid-area: 1 / 1; width: 100%; height: 90%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, oklch(var(--candle) / 0.08), oklch(var(--candle) / 0));
  }
  .room-stage > * { grid-area: 1 / 1; }
  .room-stage .slate { aspect-ratio: 2400 / 1559; border-radius: 10px; width: 100%; }
  .room-stage .slate img { position: static; width: 100%; height: 100%; translate: none; object-fit: cover; }
  .room-stage--phone .device { height: min(100%, 600px); }
  .room-stage--phone::before { display: none; }
}

/* ---------- Their words ---------- */
.words {
  position: relative;
  height: 110svh; min-height: 600px;
  overflow: hidden; isolation: isolate;
}
.words-img { position: absolute; inset: 0; background: var(--ground-deep); }
.words-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 50%;
  transform: scale(var(--ws, 1)); transform-origin: 70% 60%;
}
@media (min-aspect-ratio: 1/1) { .words-img img { object-position: 50% 50%; } }
.words::before, .words::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.words::before { top: 0; height: 30%; background: linear-gradient(var(--ground), oklch(var(--shade) / 0)); }
.words::after { bottom: 0; height: 60%; background: linear-gradient(oklch(var(--shade) / 0), oklch(var(--shade) / 0.7) 70%, var(--ground)); }
.quote { max-width: min(24ch, calc(100% - 2 * var(--edge))); }
.quote-line {
  font-size: var(--t-quote);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.quote-line .w { opacity: var(--wo, 1); transition: opacity 180ms linear; }
.quote figcaption { margin-top: 16px; }
.quote figcaption::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--cream-faint); vertical-align: middle; margin-right: 12px; }
@media (min-width: 900px) { .quote { max-width: 36rem; } }

/* ---------- Plans: a menu, not three cards ---------- */
.plans { padding: 104px 0 24px; }
.plans .sec-head { margin-bottom: 40px; }
.menu { padding: 0 var(--edge); }
.plan:first-child { border-top: 1px solid var(--cream-rule); }
.plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "ess ess" "more more" "cta cta";
  column-gap: 16px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--cream-rule);
}
.plan--rec { padding-top: 52px; }
.plan-name {
  grid-area: name;
  font-size: var(--t-plan); font-weight: 300; line-height: 1; letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.rec {
  position: absolute; top: 14px; left: 0;
  font-size: 0.625rem; letter-spacing: 0.16em; line-height: 1;
  padding: 6px 8px 5px; border: 1px solid oklch(0.94 0.018 80 / 0.5); border-radius: 99px;
  color: var(--cream);
}
.plan-price {
  grid-area: price; align-self: start;
  font-size: var(--t-plan); font-weight: 300; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
}
.plan-price .cur { font-size: 0.5em; vertical-align: 0.62em; margin-right: 0.06em; letter-spacing: 0; color: var(--cream-dim); }
.plan-essence { grid-area: ess; margin-top: 12px; font-size: var(--t-body); color: var(--cream-dim); }
.plan--rec { --hl: 1; }
.plan--rec::before { /* the recommended row sits in a little more light */
  content: ""; position: absolute; inset: 0 calc(-1 * var(--edge)); z-index: -1;
  background: linear-gradient(90deg, oklch(var(--candle) / 0.06), oklch(var(--candle) / 0.015) 70%, oklch(var(--candle) / 0));
}
.plan { isolation: isolate; }

.more { grid-area: more; margin-top: 12px; }
.more summary, .qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px;
  list-style: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.more summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.more summary { justify-content: flex-start; gap: 12px; font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--cream-dim); }
@media (hover: hover) { .more summary:hover { color: var(--cream); } }
.more summary i, .qa summary i { position: relative; width: 11px; height: 11px; flex: none; }
.more summary i::before, .more summary i::after, .qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -0.5px; background: currentColor;
  transition: rotate 400ms var(--ease), opacity 300ms var(--ease);
}
.more summary i::after, .qa summary i::after { rotate: 90deg; }
.more[open] summary i::after, .qa[open] summary i::after { rotate: 0deg; opacity: 0; }
.incl { padding: 4px 0 8px; display: grid; gap: 0; }
.incl li {
  padding: 9px 0; font-size: var(--t-sub); color: var(--cream);
  border-top: 1px solid oklch(0.94 0.018 80 / 0.07);
  display: flex; gap: 14px; align-items: baseline;
}
.incl li::before { content: ""; flex: none; width: 10px; height: 1px; background: var(--cream-faint); translate: 0 -0.3em; }
.incl li:first-child { border-top: 0; }
.more[open] .incl, .qa[open] > p { animation: open-in 500ms var(--ease) both; }
@keyframes open-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }

.plan-cta {
  grid-area: cta; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px;
  font-size: var(--t-sub); text-decoration: none; color: var(--cream);
  border-bottom: 1px solid var(--cream-hair);
  transition: border-color 200ms var(--ease);
}
.plan-cta::after { content: "→"; transition: translate 300ms var(--ease); }
@media (hover: hover) { .plan-cta:hover { border-color: var(--cream); } .plan-cta:hover::after { translate: 3px 0; } }
.plan--rec .plan-cta {
  border: 0; padding: 0 22px; min-height: 48px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-weight: 500; font-size: var(--t-sub);
}
@media (hover: hover) { .plan--rec .plan-cta:hover { background: oklch(0.98 0.012 80); } }

.plans-notes {
  padding: 28px var(--edge) 0;
  display: grid; gap: 8px;
  font-size: var(--t-sub); color: var(--cream-dim);
}
.plans-notes p:first-child { color: var(--cream); }

@media (min-width: 900px) {
  .plans { padding: 152px 0 24px; }
  .plans .sec-head { margin-bottom: 64px; }
  .plan {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 9rem 17rem;
    grid-template-areas: "name ess price cta" "more more more more";
    column-gap: clamp(24px, 3vw, 56px);
    align-items: baseline;
    padding: 36px 0 20px;
  }
  .plan--rec { padding-top: 60px; }
  .rec { top: 22px; }
  .plan-essence { margin-top: 0; }
  .plan-price { text-align: right; align-self: baseline; }
  .plan-cta { justify-self: end; margin-top: 0; align-self: center; }
  .more { margin-top: 16px; }
  .incl { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; padding-bottom: 12px; }
  .incl li { border-top: 0; border-bottom: 1px solid oklch(0.94 0.018 80 / 0.07); }
  .plans-notes { grid-auto-flow: column; justify-content: space-between; padding-top: 32px; }
}

/* ---------- Questions ---------- */
.faq { padding: 96px 0 24px; }
.faq .sec-head { margin-bottom: 32px; }
.faq-list { padding: 0 var(--edge); }
.qa:first-child { border-top: 1px solid var(--cream-rule); }
.qa { border-bottom: 1px solid var(--cream-rule); }
.qa summary {
  padding: 18px 0;
  font-size: var(--t-line); font-weight: 300; letter-spacing: -0.015em; line-height: 1.25;
}
.qa summary i { width: 14px; height: 14px; color: var(--cream-dim); }
@media (hover: hover) { .qa summary:hover i { color: var(--cream); } }
.qa > p { padding: 0 32px 24px 0; max-width: 52ch; font-size: var(--t-body); color: var(--cream-dim); line-height: 1.55; }
@media (min-width: 900px) {
  .faq { padding: 152px 0 24px; }
  .faq { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; }
  .faq .sec-head { margin: 0; padding-right: 0; }
  .faq-list { padding-left: 0; }
}

/* ---------- Trust and the last door ---------- */
.close {
  position: relative;
  padding: 104px var(--edge) calc(48px + env(safe-area-inset-bottom));
  display: grid; gap: 40px;
}
.trust-row {
  display: flex; flex-direction: column; gap: 10px;
  color: var(--cream-dim);
}
.close-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
@media (min-width: 900px) {
  .close { grid-template-columns: 1fr auto; align-items: center; padding-block: 152px 80px; }
  .trust-row { flex-direction: row; gap: 12px 40px; }
}
.price { font-size: var(--t-line); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-size: var(--t-sub); font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.pill:focus-visible, .plan--rec .plan-cta:focus-visible { border-radius: 999px; }
@media (hover: hover) { .pill:hover { background: oklch(0.98 0.012 80); } }
.pill:active, .plan--rec .plan-cta:active { transform: scale(0.98); }

/* quiet text links onward: See everything, Compare plans */
.more-link-row { padding: 28px var(--edge) 0; }
.more-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: var(--t-sub); text-decoration: none; color: var(--cream);
  border-bottom: 1px solid var(--cream-hair);
  transition: border-color 200ms var(--ease);
}
.more-link::after { content: "→"; transition: translate 300ms var(--ease); }
@media (hover: hover) { .more-link:hover { border-color: var(--cream); } .more-link:hover::after { translate: 3px 0; } }
@media (min-width: 900px) { .rooms .more-link-row { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .more-link::after { transition: none; } }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding: 12px var(--edge) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid oklch(0.94 0.018 80 / 0.1);
  font-size: var(--t-label); letter-spacing: 0.04em; color: var(--cream-faint);
}
.foot-nav { display: flex; flex-wrap: wrap; margin-left: -10px; }
.foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; text-decoration: none; transition: color 200ms var(--ease); }
.foot-mail { color: var(--cream-dim); }
@media (hover: hover) { .foot a:hover, .foot a:hover .foot-mail { color: var(--cream); } }
.foot-c { padding: 12px 0; }

/* ---------- Film grain over everything, very light ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 25; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.4  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: grain 900ms steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Arrivals ---------- */
.js .hero .cap, .js .words .cap, .js .close .cap, .js .rise {
  opacity: 0; translate: 0 10px;
  transition: opacity 1100ms var(--ease), translate 1100ms var(--ease);
  transition-delay: var(--dl, 0ms);
}
.js .cap.in, .js .rise.in { opacity: 1; translate: 0 0; }
.js .hero .living { animation: settle 2600ms var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); opacity: 0.001; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero .cap, .js .words .cap, .js .close .cap, .js .rise { translate: none; transition: opacity 900ms ease-out; transition-delay: var(--dl, 0ms); }
  .js .hero .living { animation: fade 1400ms ease-out both; }
  /* the cue still breathes, it just does not travel */
  .cue i::after { animation: cue-rm 3.2s ease-in-out 1.6s infinite; transform: none; top: 30%; }
  .grain { animation: none; }
  .pill:active, .arrow:active svg, .plan--rec .plan-cta:active { transform: none; }
  .see:active svg { scale: none; }
  .quote-line .w { transition: none; }
  .room-panel, .room-stage, .room-plus::before, .room-plus::after, .room-btn::before { transition-duration: 1ms !important; }
  .room.open .room-stage { transition: opacity 500ms ease-out; translate: none; }
  .room-stage { translate: none; }
  .more[open] .incl, .qa[open] > p { animation: fade 400ms ease-out both; }
  .plan-cta::after { transition: none; }
}
@keyframes fade { from { opacity: 0.001; } to { opacity: 1; } }
@keyframes cue-rm { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ===================== Motion layer =====================
   Everything below only applies under html.mo (set by main.js), so without JS the page is simply at rest.
   Transforms, opacity, clip-path and filter only. Entrances: expo / quint out. Exits: shorter. */
.mo { --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); }

/* scroll progress: a 1px hairline across the very top */
.scroll-hair {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 1px; z-index: 40;
  background: var(--cream); opacity: 0.38; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
}

/* hero: captions live on their own layer so they can drift and fade independently of the photo */
.hero-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.mo .hero { background: var(--ground); }
.mo .living { transform-origin: 50% 35%; }

/* headlines: each line slides up out of its mask and comes into focus */
.mo .mk {
  display: inline-block; vertical-align: top; overflow: hidden;
  padding: 0.08em 0.08em 0.16em; margin: -0.08em -0.08em -0.16em;
}
.mo .mk-i {
  display: inline-block;
  transform: translate3d(0, 112%, 0); opacity: 0; filter: blur(8px);
  transition: transform 500ms var(--ease-in), opacity 400ms ease-in, filter 400ms ease-in;
}
.mo .sec-head.in .mk-i, .mo .fr--end.is-on .mk-i {
  transform: none; opacity: 1; filter: none;
  transition: transform 1300ms var(--ease-expo), opacity 900ms var(--ease), filter 1000ms var(--ease);
  transition-delay: calc(var(--li, 0) * 70ms + var(--hd, 120ms));
}
.mo .fr--end { --hd: 260ms; }
.mo .sec-head .eyebrow {
  opacity: 0; clip-path: inset(0 100% 0 0); translate: -6px 0;
}
.mo .sec-head.in .eyebrow {
  opacity: 1; clip-path: inset(0 0 0 0); translate: none;
  transition: opacity 800ms var(--ease), clip-path 1200ms var(--ease-expo), translate 1200ms var(--ease-expo);
}

/* hairlines: the list rules are drawn, left to right, with their rows */
.mo .rooms-list { border-top: 0; }
.mo .room { border-bottom: 0; }
.mo .plan, .mo .plan:first-child { border-top: 0; border-bottom: 0; }
.mo .qa, .mo .qa:first-child { border-top: 0; border-bottom: 0; }
.mo .qa > summary { position: relative; }
.mo .room > .hl { display: block; height: 1px; }
.mo .plan > .hl, .mo .qa > summary > .hl { position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.mo .hl, .mo .ruled::after {
  background: var(--cream-rule);
  transform: scaleX(0); transform-origin: 0 50%;
}
.mo .ruled::after { content: ""; display: block; height: 1px; }
.mo .in > .hl, .mo .in > summary > .hl, .mo .ruled.in-end::after {
  transform: none;
  transition: transform 1400ms var(--ease-expo) calc(var(--rd, 0ms) + 40ms);
}

/* rows rise 16px into place */
.mo .room .room-btn {
  opacity: 0; translate: 0 16px;
  transition-property: color, opacity, translate;
  transition-duration: 300ms, 900ms, 1100ms;
  transition-timing-function: var(--ease), var(--ease), var(--ease-expo);
  transition-delay: 0ms, calc(var(--rd, 0ms) + 120ms), calc(var(--rd, 0ms) + 120ms);
}
.mo .room.in .room-btn { opacity: 1; translate: none; }
.mo .plan, .mo .qa, .mo .plans-notes {
  opacity: 0; translate: 0 16px;
  transition: opacity 900ms var(--ease) calc(var(--rd, 0ms) + 120ms), translate 1100ms var(--ease-expo) calc(var(--rd, 0ms) + 120ms);
}
.mo .plan.in, .mo .qa.in, .mo .plans-notes.in { opacity: 1; translate: none; }

/* prices: an odometer, each digit a column of numerals rolled into place */
.odo { display: inline-block; white-space: nowrap; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.dg-s { display: block; }
.dg-s > span { display: block; height: 1em; line-height: 1; }
.mo .plan.in .dg-s {
  transform: translate3d(0, calc(var(--to) * -1em), 0);
  transition: transform calc(1300ms + var(--di) * 220ms) var(--ease-expo) calc(var(--rd, 0ms) + 260ms + var(--di) * 50ms);
}

/* desktop pills: a slight magnetic lean, and a soft fill that sweeps across on hover */
.mo .mag {
  position: relative; isolation: isolate; overflow: hidden;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease), translate 600ms var(--ease-expo);
}
.mo .mag::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: oklch(0.99 0.008 80);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 500ms var(--ease-in);
}
.mo .pill.mag:hover, .mo .plan--rec .plan-cta.mag:hover { background: var(--cream); }
.mo .mag:hover::before { transform: none; transform-origin: 0 50%; transition: transform 700ms var(--ease-expo); }

/* reduced motion: the same beats as short fades, nothing travels or scales */
.rm.mo .mk-i, .rm.mo .sec-head.in .mk-i, .rm.mo .fr--end.is-on .mk-i { transform: none; filter: none; }
.rm.mo .mk-i { transition: opacity 300ms ease-out; }
.rm.mo .sec-head.in .mk-i, .rm.mo .fr--end.is-on .mk-i { transition: opacity 600ms ease-out calc(var(--li, 0) * 90ms); }
.rm.mo .sec-head .eyebrow { clip-path: none; translate: none; }
.rm.mo .sec-head.in .eyebrow { transition: opacity 600ms ease-out; }
.rm.mo .hl, .rm.mo .ruled::after { transform: none; opacity: 0; }
.rm.mo .in > .hl, .rm.mo .in > summary > .hl, .rm.mo .ruled.in-end::after { opacity: 1; transition: opacity 600ms ease-out var(--rd, 0ms); }
.rm.mo .room .room-btn, .rm.mo .plan, .rm.mo .qa, .rm.mo .plans-notes { translate: none; }
.rm.mo .room .room-btn { transition-duration: 300ms, 600ms, 0ms; }
.rm.mo .plan, .rm.mo .qa, .rm.mo .plans-notes { transition: opacity 600ms ease-out var(--rd, 0ms); }

/* ---------- Live site: the legal identity line under the footer (filled by /site.js from LEGAL) ---------- */
.ft-legal { flex-basis: 100%; padding: 0 0 12px; line-height: 1.5; color: var(--cream-faint); }
.ft-legal:empty { display: none; }
