/* The homepage story. See js/story.js and docs/homepage-seo.md.

   The default rules here are the plain page: every chapter stacked, in its finished state, over
   a still. That is what no JavaScript and reduced motion get. Pinning and scrubbing only exist
   under html.st-pinned, and the live scene only under html.st-3d.

   Brand colours are exact. Two rules keep them readable:
   - --st-accent on the page background is only used at large sizes or for marks, because
     the light accent #ff4400 is 3.5:1 on white. Buttons use the logo gradient (#e84b19 → #fc9b04) with white text.
   - --st-muted is the brand's secondary text colour. On white it is just under 4.5:1, so small
     copy uses --st-body, a step darker, in light mode. */

:root {
  --st-accent: #ff4400;
  --st-on-accent: #fff;
  --st-bg: #fff;
  --st-bg-2: #f7f5f2;
  --st-card: #fff;
  --st-ink: #191919;
  --st-muted: #777;
  --st-body: #5c5c5c;
  --st-line: rgba(25, 25, 25, .12);
  --st-glass: rgba(255, 255, 255, .78);
  --st-shadow: 0 1px 1px rgba(25, 20, 12, .04), 0 18px 50px -14px rgba(50, 34, 16, .24);
  --st-rgb: 255, 255, 255;
  --st-gutter: clamp(20px, 5vw, 88px);
  --st-display: Manrope, system-ui, sans-serif;
  --st-grad: linear-gradient(100deg, #e84b19, #fc9b04);   /* the logo, end to end */
}
[data-theme="dark"] {
  --st-accent: #ef8000;
  --st-on-accent: #191919;   /* 8.2:1 on the amber; white was 2.1:1 (audit A11Y-01) */
  --st-bg: #111;
  --st-bg-2: #1b1b1b;
  --st-card: #222;
  --st-ink: #fff;
  --st-muted: #a0a0a0;
  --st-body: #a0a0a0;
  --st-line: rgba(255, 255, 255, .13);
  --st-glass: rgba(34, 34, 34, .8);
  --st-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 22px 56px -14px rgba(0, 0, 0, .7);
  --st-rgb: 17, 17, 17;
}

/* The working site below the story and the footer take the same colours. */
body.st-home {
  --orange: var(--st-accent);
  --grad-brand: var(--st-grad);
  --hm-ink: var(--st-ink);
  --hm-soft: var(--st-body);
  --hm-body: var(--st-body);
  --hm-bg: var(--st-bg);
  --hm-card: var(--st-card);
  --hm-peach: var(--st-bg-2);
  --hm-line: var(--st-line);
  --hm-flow: var(--st-bg-2);
  --hm-glow: var(--st-bg-2);
  --hm-pop: var(--st-bg-2);
  --hm-field: var(--st-card);
  --text: var(--st-ink);
  --border: var(--st-line);
  background: var(--st-bg);
  color: var(--st-ink);
}
body.st-home .hm-btn:not(.hm-btn--line) { background: var(--st-grad); color: #fff; }
body.st-home .hm-why { background: var(--st-bg-2); }

.st-skip:focus { left: 180px; }

/* ── Story, the plain page by default ─────────────────────────────────── */
.st-story { position: relative; color: var(--st-ink); }
.st-stage { display: none; }
.st-rail { display: none; }
.st-ch { position: relative; isolation: isolate; scroll-margin-top: 0; }
.st-ch.hm-hero { display: block; min-height: 0; margin-top: 0; z-index: auto; }
.st-pin { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 100vh; min-height: 100svh; padding: 88px var(--st-gutter) 48px; }
.st-right .st-pin { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.st-right .st-copy { order: 2; }
.st-right .st-demo { order: 1; }

/* A still fills its chapter. Only the one for the current theme shows, and because they are
   lazy, the other is never fetched. */
.st-still { position: absolute; inset: 0; z-index: -1; display: block; overflow: hidden; border-radius: 0; background: var(--st-bg-2); }
.st-still img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.st-still::after { content: ''; position: absolute; inset: 0; }
.st-still--dark { display: none; }
[data-theme="dark"] .st-still--dark { display: block; }
[data-theme="dark"] .st-still--light { display: none; }
[data-theme="dark"] .hm-hero__photo img { filter: none; }
.st-ch .hm-hero__photo::after,
[data-theme="dark"] .st-ch .hm-hero__photo::after { background: none; }
.st-ch .st-still::after,
[data-theme="dark"] .st-ch .st-still::after { background: linear-gradient(90deg, rgba(var(--st-rgb), .92) 0%, rgba(var(--st-rgb), .86) 34%, rgba(var(--st-rgb), .64) 48%, rgba(var(--st-rgb), .3) 60%, rgba(var(--st-rgb), .08) 70%, rgba(var(--st-rgb), 0) 78%); }
.st-right .st-still::after,
[data-theme="dark"] .st-right .st-still::after { background: linear-gradient(270deg, rgba(var(--st-rgb), .92) 0%, rgba(var(--st-rgb), .86) 34%, rgba(var(--st-rgb), .64) 48%, rgba(var(--st-rgb), .3) 60%, rgba(var(--st-rgb), .08) 70%, rgba(var(--st-rgb), 0) 78%); }

/* The older hero rule sets an aspect ratio. With a pinned still's full height, it makes the photo wider than the page on phones. */
.st-ch .hm-hero__photo { width: 100%; aspect-ratio: auto; }

/* ── Type ─────────────────────────────────────────────────────────────── */
.st-story h1, .st-story h2 { font-family: var(--st-display); font-weight: 700; color: var(--st-ink); letter-spacing: -.035em; text-wrap: balance; }
.st-story h2 { font-size: clamp(2.125rem, 1.4rem + 2.5vw, 3.75rem); line-height: 1.08; }
.st-story em { color: var(--st-accent); font-style: normal; }
.st-copy, .st-hero__copy, .st-end { position: relative; }
.st-num { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--st-ink); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.st-num span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--st-body); }
.st-num span::before { content: ''; width: 28px; height: 1px; background: var(--st-accent); }
.st-text { max-width: 33rem; margin-top: 20px; color: var(--st-body); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); font-weight: 500; line-height: 1.55; }
.st-lead { color: var(--st-body); font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); font-weight: 500; line-height: 1.45; }
.st-small { max-width: 30rem; margin-top: 16px; color: var(--st-body); font-size: .875rem; font-weight: 500; line-height: 1.5; }
/* Chapter copy sits straight on the scene, where grey body text can't hold its contrast over
   windows and walls. It takes the full ink colour, and a soft halo in the page colour lifts it off the picture. */
.st-ch :is(.st-copy, .st-hero__copy, .st-end) :is(.st-text, .st-lead, .st-small, .st-num span, .st-beats p) { color: var(--st-ink); }
.st-ch :is(.st-copy, .st-hero__copy, .st-end) :is(h1, h2, .st-num, .st-text, .st-lead, .st-small, .st-pains, .st-beats, .st-ticks) { text-shadow: 0 0 2px rgba(var(--st-rgb), .9), 0 0 12px rgba(var(--st-rgb), .85), 0 0 26px rgba(var(--st-rgb), .7); }
.st-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; background: var(--st-grad) border-box; color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .2s ease, background-color .2s ease; }
.st-btn:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
.st-btn--line { border-color: var(--st-ink); background: var(--st-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--st-ink); }
.st-btn--line:hover { background: var(--st-ink); color: var(--st-bg); filter: none; }
.st-story a:focus-visible, .st-after a:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 3px; }
.st-tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--st-line); border-radius: 999px; background: var(--st-card); color: var(--st-body); font-size: .75rem; font-style: normal; font-weight: 600; line-height: 1.3; }

/* ── What scrubbing does. --t is 0 to 1 coming in, --o is 1 to 0 going out. Unset, they are the
   finished picture. ───────────────────────────────────────────────────── */
[data-at], [data-out] { opacity: calc(var(--t, 1) * var(--o, 1)); will-change: auto; }
.fx-pop { transform: translate3d(0, calc((1 - var(--t, 1)) * 30px), 0) scale(calc(.88 + var(--t, 1) * .12)); }
.fx-rise { transform: translate3d(0, calc((1 - var(--t, 1)) * 26px), 0); }
.fx-card { transform: perspective(1200px) translate3d(0, calc((1 - var(--t, 1)) * 90px), calc((1 - var(--t, 1)) * -260px)) rotateX(calc((1 - var(--t, 1)) * 22deg)) rotateY(calc(var(--ry, 0deg) * var(--t, 1))); }
.fx-open { transform: perspective(1400px) translate3d(0, calc((1 - var(--t, 1)) * 70px), calc((1 - var(--t, 1)) * -180px)) rotateX(calc((1 - var(--t, 1)) * 14deg)); transform-origin: 50% 100%; }
.fx-draw { opacity: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 1)); }
.fx-pick { opacity: 1; background: color-mix(in srgb, var(--st-accent) calc(var(--t, 1) * 100%), transparent); color: color-mix(in srgb, var(--st-on-accent) calc(var(--t, 1) * 100%), var(--st-ink)); font-weight: 700; }
.fx-tick { opacity: calc(.28 + var(--t, 1) * .72); }
.fx-tick::before { background: color-mix(in srgb, var(--st-accent) calc(var(--t, 1) * 100%), var(--st-line)); }

/* ── 1. Hero ──────────────────────────────────────────────────────────── */
.st-ch--hero .st-pin { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 24px; padding: 86px var(--st-gutter) 24px; text-align: center; }
.st-hero__copy { width: 100%; max-width: 1120px; margin-top: clamp(6px, 4.5vh, 44px); }
.st-ch--hero h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 5.25rem); line-height: 1.04; }
.st-ch--hero h1 .st-display { display: block; color: var(--st-ink); }
/* The search words in the h1 (flats, rooms, PGs, rent, the city), set as a small line above
   the display text so the headline still leads (audit SEO-03). */
.st-ch--hero h1 .st-kicker { display: block; margin-bottom: .55em; color: var(--st-ink); font-size: clamp(.875rem, .8rem + .35vw, 1.0625rem); font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
.st-ch--hero .st-lead { max-width: 37rem; margin: 16px auto 0; color: var(--st-ink); }
.st-ch--hero .st-cta { justify-content: center; margin-top: 20px; }
:is(.hm-hero--rent, .hm-hero--partner) .st-hero__copy { margin-top: clamp(28px, 8vh, 84px); }
@media (min-width: 768px) { :is(.hm-hero--rent, .hm-hero--partner) .st-hero__copy { margin-top: clamp(64px, 13vh, 140px); } }
:is(.hm-hero--rent, .hm-hero--partner) h1 { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4.6rem); }
:is(.hm-hero--rent, .hm-hero--partner) .st-lead { margin-top: 12px; }
@media (min-width: 768px) { :is(.hm-hero--rent, .hm-hero--partner) h1 .st-display { max-width: 12em; margin-inline: auto; } }
@media (min-width: 768px) { :is(.hm-hero--rent, .hm-hero--partner) .st-lead { max-width: 60rem; } }
/* The scene is the design here, so the still keeps it clear, and only fades into the next chapter. */
html .st-ch--hero.hm-hero--rent .st-still::after { background: linear-gradient(180deg, rgba(var(--st-rgb), .14) 0%, rgba(var(--st-rgb), 0) 40%, rgba(var(--st-rgb), 0) 90%, rgba(var(--st-rgb), .5) 100%); }
/* Small laptops: the words stay above the Apartments sign. */
@media (min-width: 768px) and (max-height: 860px) {
  :is(.hm-hero--rent, .hm-hero--partner) h1 { font-size: min(clamp(2.5rem, 1.2rem + 3.4vw, 4.6rem), 7.4vh); }
  :is(.hm-hero--rent, .hm-hero--partner) .st-hero__copy { margin-top: 10vh; }
  .st-ch--hero:is(.hm-hero--rent, .hm-hero--partner) .st-pin { padding-top: 76px; }
}
.st-ch--hero .st-still::after,
[data-theme="dark"] .st-ch--hero .st-still::after { background: linear-gradient(180deg, rgba(var(--st-rgb), .86) 0%, rgba(var(--st-rgb), .8) 32%, rgba(var(--st-rgb), .56) 46%, rgba(var(--st-rgb), .24) 56%, rgba(var(--st-rgb), .07) 64%, rgba(var(--st-rgb), 0) 70%); }

/* The real search, floating over the building's base. */
.st-ch--hero .hm-search { position: relative; z-index: 3; width: min(1040px, 100%); margin: auto auto clamp(6px, 2.5vh, 26px); padding: 10px; border-radius: 22px; text-align: left; }
/* The card's glass is a layer behind it: a backdrop-filter on the card itself would stop the tabs blurring the page where they stand over its edge. */
.st-ch--hero .hm-search::before { content: ''; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--st-line); border-radius: inherit; background: var(--st-glass); box-shadow: var(--st-shadow); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
/* Sits well clear of the bottom of the screen, on the building, not at the foot of it. */
@media (min-width: 768px) { .st-ch--hero .hm-search { margin-bottom: clamp(20px, 7vh, 72px); } }
@media (min-width: 768px) { .st-ch--hero:is(.hm-hero--rent, .hm-hero--partner, .rx-hero) .hm-search { margin-bottom: clamp(32px, 12vh, 130px); } }
/* The pill stands across the card's top edge. */
.st-ch--hero .hm-tabs { position: relative; margin: -40px auto 12px; }
.st-ch--hero .hm-form { box-shadow: none; }
@media (min-width: 1001px) { .st-ch--hero .hm-suggest, .st-ch--hero .hm-chosen { top: auto; bottom: calc(100% + 5px); } }
.st-scroll { display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--st-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--st-ink); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.st-scroll i { position: relative; width: 22px; height: 34px; border: 1px solid currentColor; border-radius: 12px; }
.st-scroll i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--st-accent); animation: st-wheel 1.8s ease-in-out infinite; }
@keyframes st-wheel { 50% { transform: translateY(9px); opacity: .35; } }


/* ── 2. The problem ───────────────────────────────────────────────────── */
.st-ch--problem .st-pin { position: relative; }
.st-pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; max-width: 34rem; margin-top: 26px; list-style: none; color: var(--st-ink); font-size: 1rem; font-weight: 600; line-height: 1.35; }
.st-pains li { padding-top: 10px; border-top: 1px solid var(--st-line); }
.st-pile { position: relative; height: min(70vh, 620px); }
.st-scrap, .st-msg, .st-note { position: absolute; border: 1px solid var(--st-line); box-shadow: var(--st-shadow); background: var(--st-card); }
.st-scrap { width: 216px; padding: 12px; border-radius: 10px; font-size: .9375rem; line-height: 1.3; }
.st-scrap img { display: block; width: 100%; height: 84px; margin-bottom: 10px; border-radius: 5px; object-fit: cover; background: var(--st-bg-2); filter: sepia(.22) saturate(1.08); }
.st-scrap--1 img { filter: sepia(.6) saturate(.8) brightness(.92); }   /* "from an older visit": it looks it */
.st-scrap--2 img { object-position: 100% 50%; }   /* same flat, other end of the same photo */
.st-scrap b { display: block; }
.st-scrap span { color: var(--st-body); font-size: .8125rem; }
.st-scrap--1 { left: 2%; top: 4%; rotate: -5deg; }
.st-scrap--2 { left: 42%; top: 0; rotate: 4deg; }
.st-scrap--3 { left: 20%; top: 44%; rotate: 3deg; }
.st-scrap--4 { left: 62%; top: 52%; rotate: -4deg; }
.st-msg { max-width: 240px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.st-msg--in { border-color: transparent; border-radius: 16px 16px 4px 16px; background: var(--st-grad); color: #fff; font-weight: 600; }
.st-msg--1 { left: 30%; top: 30%; }
.st-msg--2 { left: 56%; top: 34%; }
.st-msg--3 { left: 6%; top: 76%; }
.st-note { padding: 7px 12px; border-radius: 999px; border-color: var(--st-accent); font-size: .8125rem; font-weight: 700; }
.st-note--1 { left: 70%; top: 18%; }
.st-note--2 { left: 34%; top: 86%; }
.st-clear { font-family: var(--st-display); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.st-clear em { color: var(--st-accent); }

/* ── Our story: one screen, scrolling freely as the camera leaves the flat ── */
.st-origin { position: relative; z-index: 1; isolation: isolate; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 88px var(--st-gutter) 48px; }
.st-origin .st-still::after,
[data-theme="dark"] .st-origin .st-still::after { background: linear-gradient(90deg, rgba(var(--st-rgb), .94) 0%, rgba(var(--st-rgb), .86) 50%, rgba(var(--st-rgb), .5) 74%, rgba(var(--st-rgb), .2) 100%); }
.st-origin__inner { flex: 1 1 0; min-width: 0; max-width: 40rem; }
.st-origin { gap: clamp(24px, 4vw, 64px); }
/* Its album staging sits past the right edge at desktop widths. <body> clips that, but iOS
   Safari before 16 has no overflow: clip and ignores overflow on <body>, so the page would
   scroll sideways there (audit XB-01). This band is not pinned, so hiding is safe here. */
.st-origin { overflow-x: hidden; overflow-x: clip; }
/* Two story illustrations, stacked like prints on a table. */
.st-album { position: relative; flex: 1 1 0; min-width: 0; max-width: 620px; aspect-ratio: 5 / 4; margin-left: auto; color: inherit; text-decoration: none; }
.st-album__card { position: absolute; width: 78%; margin: 0; padding: 8px 8px 12px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); box-shadow: var(--st-shadow); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.st-album__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--st-bg-2); }
.st-album__card figcaption { display: flex; gap: 8px; align-items: baseline; padding: 10px 6px 0; color: var(--st-ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.st-album__card figcaption span { color: var(--st-accent); font-size: .8125rem; font-weight: 700; }
.st-album__card--back { top: 0; left: 0; transform: rotate(-3deg); }
.st-album__card--front { right: 0; bottom: 6%; width: 66%; transform: rotate(2.5deg); }
.st-album__tag { position: absolute; left: 4%; bottom: 0; padding: 6px 12px; border-radius: 999px; background: var(--st-grad); color: #fff; font-size: .8125rem; font-weight: 700; box-shadow: var(--st-shadow); }
.st-album:hover .st-album__card--back, .st-album:focus-visible .st-album__card--back { transform: rotate(-5deg) translate(-8px, -6px); }
.st-album:hover .st-album__card--front, .st-album:focus-visible .st-album__card--front { transform: rotate(4deg) translate(8px, 4px); }
.st-album:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 8px; border-radius: 16px; }
@media (max-width: 1023px) {
  .st-origin { flex-direction: column; align-items: stretch; }
  .st-origin__inner { max-width: none; }
  .st-album { width: 100%; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .st-album { aspect-ratio: 4 / 5; }
  .st-album__card { width: 84%; }
  .st-album__card--front { width: 72%; }
  .st-album__card figcaption { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { .st-album__card { transition: none; } }
.st-origin h2 { margin-bottom: clamp(18px, 3.5vh, 32px); }
.st-beats { position: relative; display: grid; gap: clamp(14px, 2.6vh, 24px); padding-left: 30px; list-style: none; }
.st-beats::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #e84b19, #fc9b04); }
.st-beats li { position: relative; }
.st-beats li::before { content: ''; position: absolute; left: -31px; top: .42em; width: 14px; height: 14px; border: 3px solid var(--st-bg); border-radius: 50%; background: var(--st-accent); }
.st-beats b { display: block; color: var(--st-ink); font-size: clamp(1.125rem, 1rem + .5vw, 1.5rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.st-beats p { margin-top: 4px; color: var(--st-body); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); font-weight: 500; line-height: 1.55; }

/* ── The Roommates and Partner stories ─────────────────────────────────── */
.st-ch--hero .rm-life__menu { top: auto; bottom: calc(100% + 12px); }
.st-ch--hero .st-lead { color: var(--st-ink); }
.st-panel { width: min(480px, 100%); justify-self: center; perspective: 1400px; }
.st-panel__card { padding: 18px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); box-shadow: var(--st-shadow); font-size: .9375rem; line-height: 1.35; }
.st-panel__q { margin-top: 10px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.st-options { display: grid; gap: 7px; margin-top: 12px; font-size: .875rem; font-weight: 600; }
.st-options span { padding: 9px 12px; border: 1px solid var(--st-line); border-radius: 10px; }
.st-rows { display: grid; gap: 2px; margin-top: 10px; list-style: none; }
.st-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--st-line); font-size: .875rem; font-weight: 600; }
.st-rows meter { width: 44%; height: 7px; }
.st-rows meter::-webkit-meter-bar { height: 7px; border: 0; border-radius: 4px; background: var(--st-bg-2); }
.st-rows meter::-webkit-meter-optimum-value { border-radius: 4px; background: var(--st-accent); }
.st-rows meter::-moz-meter-bar { border-radius: 4px; background: var(--st-accent); }
.st-rows small { color: var(--st-body); font-size: .8125rem; font-weight: 500; }
.st-pill { flex: none; padding: 3px 10px; border: 1px solid var(--st-line); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.st-pill--on { border-color: var(--st-accent); background: var(--st-accent); color: var(--st-on-accent); }
.st-beds { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin-top: 12px; }
.st-beds i { aspect-ratio: 1; border: 1px solid var(--st-line); border-radius: 5px; background: var(--st-bg-2); }
.st-beds i.is-taken { opacity: 1; border-color: var(--st-accent); background: color-mix(in srgb, var(--st-accent) calc(var(--t, 1) * 100%), var(--st-bg-2)); }
.st-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: var(--st-body); font-size: .8125rem; font-weight: 500; }
.st-legend b { color: var(--st-ink); }
@media (max-width: 767px) {
  .st-panel__card { padding: 12px; font-size: .8125rem; }
  .st-panel__q { margin-top: 6px; font-size: .9375rem; }
  .st-options { gap: 4px; margin-top: 6px; font-size: .75rem; }
  .st-options span { padding: 5px 9px; }
  .st-rows { margin-top: 4px; }
  .st-rows li { padding: 5px 0; font-size: .75rem; }
  .st-beds { gap: 3px; margin-top: 6px; }
  .st-legend { gap: 8px; margin-top: 6px; font-size: .75rem; }
}

/* ── 3. Discover ──────────────────────────────────────────────────────── */
.st-map { position: relative; min-height: min(72vh, 620px); perspective: 1400px; }
.st-pcard { position: absolute; width: min(250px, 46%); padding: 8px 8px 12px; border: 1px solid var(--st-line); border-radius: 12px; background: var(--st-card); box-shadow: var(--st-shadow); font-size: .9375rem; line-height: 1.3; }
.st-pcard img { display: block; width: 100%; height: 110px; margin-bottom: 8px; border-radius: 7px; object-fit: cover; }
.st-pcard b, .st-pcard span { display: block; padding-inline: 4px; }
.st-pcard span { color: var(--st-body); font-size: .8125rem; font-weight: 500; }
.st-pcard--1 { left: 4%; top: 8%; --ry: 8deg; }
.st-pcard--2 { left: 42%; top: 38%; --ry: -8deg; }
.st-sheet { position: absolute; inset: auto 0 0 0; max-width: 560px; margin-inline: auto; overflow: hidden; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); box-shadow: var(--st-shadow); }
.st-sheet__photo { position: relative; }
.st-sheet__photo img { display: block; width: 100%; height: clamp(120px, 22vh, 210px); object-fit: cover; }
.st-sheet__photo .st-tag { position: absolute; left: 12px; top: 12px; }
.st-sheet__body { padding: 16px 18px 18px; }
.st-sheet__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.st-sheet__sub { margin-top: 2px; color: var(--st-body); font-size: .875rem; font-weight: 500; }
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-block: 12px; border-block: 1px solid var(--st-line); }
.st-stats dt { color: var(--st-body); font-size: .75rem; font-weight: 500; }
.st-stats dd { font-size: .9375rem; font-weight: 700; line-height: 1.25; }
.st-stats small { color: var(--st-body); font-size: .75rem; font-weight: 500; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.st-chips li { padding: 4px 10px; border-radius: 999px; background: var(--st-bg-2); font-size: .8125rem; font-weight: 500; }
.st-owner { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .875rem; line-height: 1.25; }
.st-owner i, .st-person > i { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--st-bg-2); color: var(--st-ink); font-size: .875rem; font-style: normal; font-weight: 700; }
.st-owner b, .st-owner small { display: block; }
.st-owner small { color: var(--st-body); font-size: .8125rem; }

/* ── 4. Your people ───────────────────────────────────────────────────── */
.st-people { position: relative; min-height: min(72vh, 600px); }
.st-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--st-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.st-person { position: absolute; display: flex; align-items: center; gap: 12px; width: min(280px, 56%); padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-card); box-shadow: var(--st-shadow); font-size: .9375rem; line-height: 1.3; }
.st-person b, .st-person small { display: block; }
.st-person small { color: var(--st-body); font-size: .8125rem; font-weight: 500; }
.st-person--1 { left: 0; top: 10%; }
.st-person--2 { left: 0; bottom: 10%; }
.st-person--you { right: 0; top: 50%; flex-wrap: wrap; width: min(300px, 52%); margin-top: -96px; border-color: var(--st-accent); }
.st-traits { flex: 1 0 100%; display: grid; gap: 6px; list-style: none; }
.st-traits li { display: grid; grid-template-columns: 70px 1fr; align-items: center; font-size: .8125rem; font-weight: 500; }
.st-traits meter { width: 100%; height: 6px; }
.st-traits meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 3px; background: var(--st-bg-2); }
.st-traits meter::-webkit-meter-optimum-value { border-radius: 3px; background: var(--st-accent); }
.st-traits meter::-moz-meter-bar { border-radius: 3px; background: var(--st-accent); }
.st-match { position: absolute; left: 12%; right: 12%; bottom: 0; padding: 14px 16px; border-radius: 14px; background: var(--st-grad); color: #fff; font-size: 1rem; line-height: 1.35; }
.st-match b { display: block; margin-top: 8px; font-family: var(--st-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.st-match small { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 500; opacity: .85; }

/* ── 5. Visit ─────────────────────────────────────────────────────────── */
.st-cal { position: relative; width: min(470px, 100%); justify-self: center; perspective: 1400px; }   /* leaves the door in the scene clear */
.st-cal__sheet { padding: 18px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); box-shadow: var(--st-shadow); transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t, 1)) * -72deg)) translate3d(0, calc((1 - var(--t, 1)) * -18px), 0); }
.st-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1rem; }
.st-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; font-size: .875rem; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; }
.st-cal__grid span { display: grid; place-items: center; width: 40px; height: 40px; margin-inline: auto; border-radius: 50%; }
.st-cal__grid .is-off { color: var(--st-muted); }
.st-cal__label { margin-top: 12px; color: var(--st-body); font-size: .8125rem; font-weight: 600; }
.st-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; font-size: .8125rem; font-weight: 600; text-align: center; }
.st-slots span { padding: 9px 2px; border: 1px solid var(--st-line); border-radius: 9px; }
.st-toast { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--st-grad); color: #fff; font-size: .9375rem; line-height: 1.3; box-shadow: var(--st-shadow); }
.st-toast i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #191919; color: #ef8000; font-style: normal; font-weight: 700; }
.st-toast b, .st-toast small { display: block; }
.st-toast small { font-size: .8125rem; font-weight: 500; opacity: .85; }

/* ── 6. Book ──────────────────────────────────────────────────────────── */
.st-summary { width: min(490px, 100%); justify-self: center; perspective: 1400px; }
.st-summary__card { padding: 20px; border: 1px solid var(--st-line); border-radius: 16px; background: var(--st-card); box-shadow: var(--st-shadow); }
.st-summary__home { margin-top: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.st-lines-list { margin-top: 12px; font-size: .9375rem; }
.st-lines-list div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-top: 1px solid var(--st-line); }
.st-lines-list dt { color: var(--st-body); font-weight: 500; }
.st-lines-list dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; list-style: none; font-size: .75rem; font-weight: 600; line-height: 1.25; }
.st-steps li { padding-top: 10px; border-top: 3px solid var(--st-accent); }
.st-steps .fx-step { opacity: 1; border-top-color: color-mix(in srgb, var(--st-accent) calc(var(--t, 1) * 100%), var(--st-line)); color: color-mix(in srgb, var(--st-ink) calc(30% + var(--t, 1) * 70%), transparent); }

/* ── 7. Agreement ─────────────────────────────────────────────────────── */
.st-doc { width: min(500px, 100%); justify-self: center; perspective: 1600px; color: var(--st-ink); font-size: .875rem; line-height: 1.4; }
.st-doc__fold { padding: 14px 24px; background: var(--st-card); box-shadow: var(--st-shadow); }
.st-doc__fold--top { padding-top: 24px; border-radius: 6px 6px 0 0; }
.st-doc__fold--end { padding-bottom: 22px; border-radius: 0 0 6px 6px; }
.st-doc__fold--mid { border-block: 1px solid var(--st-line); }
.fx-fold { opacity: 1; transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--t, 1)) * 86deg)); }
.fx-fold2 { opacity: 1; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t, 1)) * -86deg)); }
.fx-fold3 { opacity: 1; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t, 1)) * 86deg)); }
.st-doc__title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.st-doc__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--st-body); font-size: .8125rem; font-weight: 500; }
.st-doc .st-tag { background: var(--st-bg-2); border-color: var(--st-line); color: var(--st-body); }
.st-doc__parties, .st-doc__terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 12px; }
.st-doc__terms { margin-top: 0; }
.st-doc dt { color: var(--st-body); font-size: .75rem; font-weight: 500; }
.st-doc dd { font-weight: 700; }
.st-doc__clause { margin-top: 10px; color: var(--st-body); font-size: .8125rem; }
.st-doc__signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-sign { display: block; min-height: 34px; border-bottom: 1px solid var(--st-line); font-family: 'Snell Roundhand', 'Segoe Script', 'Bradley Hand', cursive; font-size: 1.375rem; line-height: 1.4; white-space: nowrap; }
.fx-sign { opacity: 1; clip-path: inset(0 calc((1 - var(--t, 1)) * 100%) 0 0); }
.st-doc__signs small { color: var(--st-body); font-size: .75rem; }
.st-doc__status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; }
.st-doc__status i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--st-grad); color: #fff; font-size: .8125rem; font-style: normal; }

/* ── 8. Move in ───────────────────────────────────────────────────────── */
.st-ch--move .st-pin { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.st-ticks { display: grid; gap: 11px; max-width: 36rem; margin-top: 22px; list-style: none; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.st-ticks li { position: relative; padding-left: 26px; color: var(--st-ink); }
.st-ticks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; border-radius: 50%; background: var(--st-accent); }
.st-ticks b { font-weight: 700; }

/* ── 9. The end ───────────────────────────────────────────────────────── */
.st-ch--end .st-pin { display: flex; justify-content: flex-start; }
.st-end { display: flex; flex-direction: column; align-items: flex-start; max-width: 780px; }
.st-end h2 { font-size: clamp(2.25rem, 1.3rem + 3vw, 4.25rem); }
.st-end .st-lead { max-width: 42rem; margin-top: 20px; color: var(--st-ink); }
.st-brand { margin-top: 30px; font-size: 1.0625rem; font-weight: 500; }
.st-brand b { font-weight: 800; color: var(--st-accent); }
.st-small--end { max-width: 40rem; margin-top: 12px; color: var(--st-ink); }
/* ── After the story ──────────────────────────────────────────────────── */
.st-after { position: relative; z-index: 1; padding-bottom: 32px; background: var(--st-bg); }
.st-after__head { padding-top: clamp(40px, 7vw, 96px); }
.st-after__title { color: var(--st-ink); font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.st-after .hm-sec h2, .st-after .hm-band h2, .st-after .hm-owner h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2.125rem); font-weight: 700; line-height: 1.15; letter-spacing: -.028em; }
.st-after .hm-sec { margin-top: 44px; }
.st-signoff { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 28px 0 18px; padding-top: 22px; border-top: 1px solid var(--st-line); color: var(--st-ink); font-size: clamp(1.125rem, 1rem + .8vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.st-signoff b { font-weight: 800; color: var(--st-accent); }

/* ── Pinned, on any device with JavaScript and motion ─────────────────── */
html.st-pinned .st-ch { height: calc(var(--st-h, 200) * 1vh); }
html.st-pinned .st-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
html.st-pinned .st-ch--hero { --st-h: 170; }
html.st-pinned .st-ch--problem { --st-h: 240; }
html.st-pinned .st-ch--discover { --st-h: 260; }
html.st-pinned .st-ch--people { --st-h: 240; }
html.st-pinned .st-ch--visit { --st-h: 200; }
html.st-pinned .st-ch--book { --st-h: 200; }
html.st-pinned .st-ch--agreement { --st-h: 220; }
html.st-pinned .st-ch--move { --st-h: 220; }
html.st-pinned .st-ch--end { --st-h: 130; }
/* The suggestions need to reach outside the hero. */
html.st-pinned .st-ch--hero .st-pin { overflow: visible; }
html.st-pinned .st-ch--hero { z-index: 3; }
/* The problem's closing line takes over the same spot as the pile. */
html.st-pinned .st-clear { position: absolute; left: var(--st-gutter); right: var(--st-gutter); bottom: 12vh; }
/* Stills sit in the pin's stage, and hand over softly from one chapter to the next. */
html.st-pinned .st-still { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; inset: auto; }
/* "Our story" is one screen and does not pin, and it is a flex row: a sticky still would become a
   flex item there, squeeze the words and the album, and make the section ~600px taller until the
   scene hid it, moving everything below it after it had been measured. */
html.st-pinned .st-origin > .st-still { position: absolute; inset: 0; height: auto; margin: 0; }
/* Short windows have no room to pin. */
@media (max-height: 599px) {
  html.st-pinned .st-ch { height: auto; }
  html.st-pinned .st-pin { position: relative; height: auto; min-height: 100svh; overflow: visible; }
  html.st-pinned .st-still { position: absolute; inset: 0; height: auto; margin: 0; }
  html.st-pinned .st-clear { position: static; }
}

/* ── With the live scene behind ───────────────────────────────────────── */
html.st-3d .st-stage { display: block; position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; background: var(--st-bg); }
html.st-3d .st-stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
html.st-live .st-stage canvas { opacity: 1; }
/* The stills stay up until the scene is ready, so a reload always opens on a picture and never on
   the bare sky below. They are rendered from the same scene, and wait for the canvas to finish
   fading in (.8s) before fading out over it. Unmasked here, because their soft edges would show
   the sky. js/story.js removes html.st-3d if the scene cannot run, and they simply stay. */
html.st-3d .st-still { transition: opacity .4s ease .8s, display 0s linear 1.2s allow-discrete; }
html.st-live .st-still { display: none; opacity: 0; }
/* Behind the canvas while it fades in: the scene's own sky (js/story-scene.mjs WARM and THEMES). */
html.st-3d .st-stage { background: linear-gradient(180deg, #fdf3e6 0%, #ffcf9e 62%); }
html.st-3d[data-theme="dark"] .st-stage { background: linear-gradient(180deg, #0b0a09 0%, #8a3a12 62%); }
/* The Rent hero's sunset, matching SUNSET in js/story-scene.mjs. Its words sit on open sky, so its scrim is light. */
html.st-3d .st-stage--sunset { background: linear-gradient(180deg, #fdf3e6 0%, #ffcf9e 62%); }
html.st-3d[data-theme="dark"] .st-stage--sunset { background: linear-gradient(180deg, #0d0a08 0%, #bc531f 62%); }
.st-stage--sunset .st-scrim[data-side="top"] { background: linear-gradient(180deg, rgba(var(--st-rgb), .14) 0%, rgba(var(--st-rgb), .1) 34%, rgba(var(--st-rgb), 0) 56%); }
html.st-3d .st-ch { z-index: 1; }
html.st-3d .st-ch--hero { z-index: 3; }
/* The ground behind the words: one layer per side, faded by js/story.js. */
.st-scrim { position: absolute; inset: 0; display: block; opacity: 0; pointer-events: none; }
.st-scrim[data-side="top"] { background: linear-gradient(180deg, rgba(var(--st-rgb), .86) 0%, rgba(var(--st-rgb), .8) 32%, rgba(var(--st-rgb), .56) 46%, rgba(var(--st-rgb), .24) 56%, rgba(var(--st-rgb), .07) 64%, rgba(var(--st-rgb), 0) 70%); }
.st-scrim[data-side="left"] { background: linear-gradient(90deg, rgba(var(--st-rgb), .92) 0%, rgba(var(--st-rgb), .86) 34%, rgba(var(--st-rgb), .64) 48%, rgba(var(--st-rgb), .3) 60%, rgba(var(--st-rgb), .08) 70%, rgba(var(--st-rgb), 0) 78%); }
.st-scrim[data-side="right"] { background: linear-gradient(270deg, rgba(var(--st-rgb), .92) 0%, rgba(var(--st-rgb), .86) 34%, rgba(var(--st-rgb), .64) 48%, rgba(var(--st-rgb), .3) 60%, rgba(var(--st-rgb), .08) 70%, rgba(var(--st-rgb), 0) 78%); }
/* A still's edges melt into the page as the next one arrives. */
html.st-pinned:not(.st-3d) .st-still { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }

/* Chapter rail: where you are, and a way to jump. Desktop only, and not on the plain page. */
@media (min-width: 1200px) and (min-height: 640px) {
  html.st-pinned .st-rail { display: block; position: sticky; top: 50vh; z-index: 4; height: 0; }
  html.st-pinned .st-rail ol { position: absolute; right: 18px; top: 0; transform: translateY(-50%); display: grid; gap: 2px; list-style: none; }
  html.st-pinned .st-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: 22px; padding-left: 8px; color: var(--st-ink); font-size: .75rem; font-weight: 600; text-decoration: none; }
  html.st-pinned .st-rail a span { position: absolute; right: 22px; padding: 2px 8px; border-radius: 6px; background: var(--st-card); box-shadow: var(--st-shadow); white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  html.st-pinned .st-rail a::after { content: ''; width: 8px; height: 8px; border: 1px solid var(--st-ink); border-radius: 50%; transition: background-color .2s ease, transform .2s ease; }
  html.st-pinned .st-rail a:hover span, html.st-pinned .st-rail a:focus-visible span { opacity: 1; transform: none; }
  html.st-pinned .st-rail a[aria-current]::after { border-color: var(--st-accent); background: var(--st-accent); transform: scale(1.35); }
}

/* ── Tablet ───────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .st-pin, .st-right .st-pin, .st-ch--move .st-pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 22px; }
  .st-right .st-copy { order: 0; }
  .st-right .st-demo { order: 1; }
  .st-cal { justify-self: center; }
  .st-still::after,
  .st-ch .st-still::after, .st-right .st-still::after,
  [data-theme="dark"] .st-ch .st-still::after, [data-theme="dark"] .st-right .st-still::after { background: linear-gradient(180deg, rgba(var(--st-rgb), .9) 0%, rgba(var(--st-rgb), .78) 40%, rgba(var(--st-rgb), .5) 62%, rgba(var(--st-rgb), .2) 82%, rgba(var(--st-rgb), .1) 100%); }
  .st-scrim[data-side="left"], .st-scrim[data-side="right"] { background: linear-gradient(180deg, rgba(var(--st-rgb), .9) 0%, rgba(var(--st-rgb), .78) 40%, rgba(var(--st-rgb), .5) 62%, rgba(var(--st-rgb), .2) 82%, rgba(var(--st-rgb), .1) 100%); }
  .st-map, .st-people { min-height: 44vh; }
  .st-pile { height: 42vh; }
  .st-sheet { position: relative; inset: auto; }
  html.st-pinned .st-map .st-sheet { position: absolute; inset: auto 0 0 0; }
}

/* ── Phones: its own layout, built for the thumb. ─────────────────────── */
@media (max-width: 767px) {
  .st-pin { padding: 76px 20px 28px; }
  html.st-pinned .st-ch--hero { height: auto; }
  html.st-pinned .st-ch--hero .st-pin { position: relative; height: auto; min-height: 100svh; }
  html.st-pinned .st-ch--problem { --st-h: 190; }
  html.st-pinned .st-ch--discover { --st-h: 200; }
  html.st-pinned .st-ch--people { --st-h: 190; }
  html.st-pinned .st-ch--visit { --st-h: 170; }
  html.st-pinned .st-ch--book { --st-h: 170; }
  html.st-pinned .st-ch--agreement { --st-h: 180; }
  html.st-pinned .st-ch--move { --st-h: 170; }
  html.st-pinned .st-ch--end { --st-h: auto; height: auto; }
  html.st-pinned .st-ch--end .st-pin { position: relative; height: auto; min-height: 100svh; }
  .st-story h2 { font-size: clamp(1.75rem, 7.6vw, 2.25rem); }
  .st-ch--hero h1 { font-size: clamp(2.125rem, 9.6vw, 2.875rem); }
  .st-num { margin-bottom: 10px; }
  .st-text { margin-top: 10px; font-size: .9375rem; line-height: 1.45; }
  .st-small { margin-top: 10px; font-size: .8125rem; }
  .st-cta { margin-top: 14px; }
  .st-btn { min-height: 46px; padding: 0 20px; font-size: .9375rem; }
  .st-ch--hero .st-pin { gap: 16px; padding-top: 74px; }
  .st-ch--hero .hm-search { padding: 8px; border-radius: 16px; }
  .st-ch--hero .hm-tabs { width: calc(100% - 8px); margin: -34px auto 8px; }
  .st-ch--hero .hm-form { border-radius: 12px; }
  .st-scroll { display: none; }
  .st-pains { gap: 8px 16px; margin-top: 14px; font-size: .875rem; }
  .st-pile { height: 34vh; min-height: 200px; }
  .st-scrap { width: 150px; padding: 8px; font-size: .8125rem; }
  .st-scrap img { height: 44px; margin-bottom: 6px; }
  .st-scrap--4 { left: auto; right: 0; }
  .st-scrap span { font-size: .75rem; }
  .st-msg { max-width: 170px; padding: 7px 10px; font-size: .8125rem; }
  .st-note { font-size: .75rem; }
  .st-map, .st-people { min-height: 40vh; }
  .st-pcard { width: 46%; font-size: .8125rem; }
  .st-pcard img { height: 62px; }
  .st-sheet__photo { display: none; }
  .st-sheet__body { padding: 12px 14px; }
  .st-sheet__title { font-size: 1rem; }
  .st-stats { margin-top: 8px; padding-block: 8px; }
  .st-stats dd { font-size: .8125rem; }
  .st-chips, .st-owner { margin-top: 8px; }
  .st-person { width: 62%; padding: 8px 10px; font-size: .8125rem; gap: 8px; }
  .st-person small { font-size: .75rem; }
  .st-person > i { width: 28px; height: 28px; font-size: .9375rem; }
  .st-person--you { width: 58%; margin-top: -64px; }
  .st-traits { display: none; }
  .st-match { left: 0; right: 0; padding: 10px 12px; }
  .st-match b { margin-top: 4px; font-size: 1.1875rem; }
  .st-match small { font-size: .75rem; }
  .st-cal__sheet, .st-summary__card { padding: 12px; }
  .st-cal__grid { gap: 1px; margin-top: 6px; font-size: .75rem; }
  .st-cal__grid span { width: 26px; height: 26px; }
  .st-slots span { padding: 6px 1px; font-size: .75rem; }
  .st-cal__label { margin-top: 6px; }
  .st-toast { margin-top: 8px; padding: 8px 12px; font-size: .8125rem; }
  .st-summary__home { margin-top: 4px; font-size: 1.25rem; }
  .st-lines-list { margin-top: 6px; font-size: .8125rem; }
  .st-lines-list div { padding-block: 5px; }
  .st-doc { font-size: .75rem; }
  .st-doc__fold { padding: 8px 14px; }
  .st-doc__fold--top { padding-top: 12px; }
  .st-doc__fold--end { padding-bottom: 12px; }
  .st-doc__title { font-size: 1.375rem; }
  .st-doc__meta { margin-top: 4px; }
  .st-doc__parties { gap: 4px 12px; margin-top: 6px; }
  .st-doc__terms { gap: 4px 12px; }
  .st-doc__clause { display: none; }
  .st-sign { min-height: 26px; font-size: 1.0625rem; }
  .st-doc__status { margin-top: 6px; }
  .st-ticks { gap: 7px; margin-top: 12px; font-size: .875rem; line-height: 1.3; }
  .st-cta--end .st-btn { width: 100%; }
  .st-cta--end { width: 100%; max-width: 340px; }
}
/* Small phones: the pin's height can't hold copy and a demo together. */
@media (max-width: 767px) and (max-height: 700px) {
  html.st-pinned .st-ch { height: auto; }
  html.st-pinned .st-pin { position: relative; height: auto; min-height: 100svh; overflow: visible; }
  html.st-pinned .st-still { position: absolute; inset: 0; height: auto; margin: 0; }
  html.st-pinned .st-clear { position: static; }
  html.st-pinned .st-pile { display: none; }
}

/* Reduced motion gets finished chapters and no moving parts, whatever has been set. */
@media (prefers-reduced-motion: reduce) {
  .st-scroll i::after { animation: none; }
  .st-btn { transition: none; }
  .st-btn:hover { transform: none; }
}

/* ── After the story: the same world, carried on to the end of the page ───
   Every section and the footer use the story's type, cards and motion. Unset, --t is 1 and
   --p is 0, so with no JavaScript or with reduced motion these are simply the finished page.
   js/story.js scrubs them from the scroll position, as it does the chapters. */
body.st-home .st-after { padding-bottom: clamp(72px, 12vh, 130px); }
.st-after > *:not(.st-world) { position: relative; z-index: 1; }

/* The city from the story's last frame stays behind everything, under a scrim. */
.st-world { position: sticky; top: 0; z-index: 0; display: block; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; pointer-events: none; }
.st-world picture { position: absolute; inset: 0; display: block; }
.st-world img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.03 + var(--w, 0) * .12)) translate3d(0, calc(var(--w, 0) * -2.5%), 0); }
.st-world__dark { display: none !important; }
[data-theme="dark"] .st-world__dark { display: block !important; }
[data-theme="dark"] .st-world__light { display: none !important; }
.st-world::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(var(--st-rgb), .84); }
.st-world::after { content: ''; position: absolute; z-index: 2; left: 50%; top: 50%; width: 90vmax; height: 90vmax; margin: -45vmax; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #fc9b04 16%, transparent), color-mix(in srgb, #e84b19 7%, transparent) 42%, transparent 68%); transform: translate3d(calc(34vw - var(--w, 0) * 68vw), calc(var(--w, 0) * 40vh - 20vh), 0); }

/* Type */
body.st-home .st-after { --st-gap: clamp(48px, 8vh, 88px); }
body.st-home .st-after__head { padding-top: clamp(64px, 11vh, 120px); }
body.st-home .st-after__title { font-size: clamp(2.5rem, 1.4rem + 4vw, 5.25rem); line-height: 1.04; }
body.st-home .st-after :is(.hm-sec, #why-roomrr, #how-it-works, #find-roommate, #find-tenant, #waitlist, #latest-blog, #faq, .hm-popular) { margin-top: var(--st-gap); }
body.st-home .st-after .hm-head { margin-bottom: 28px; }
body.st-home .st-after .hm-places__head + .hm-filters { margin-top: 24px; }
body.st-home .st-after .hm-flow { margin-top: 0; padding-block: 0; background: none; }
body.st-home .st-after :is(.hm-sec h2, .hm-band h2, .hm-owner h2, .hm-sec .hm-howtitle, .hm-band--match h2, .hm-owner h2, .hm-why h2, .hm-blog h2, .hm-sec.qa h2, .hm-sec.hm-popular h2) { color: var(--st-ink); font-family: var(--st-display); font-size: clamp(1.75rem, 1.25rem + 1.9vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
body.st-home .st-after :is(.hm-band--match h2, .hm-owner h2, .hm-blog h2, .hm-band--city h2) { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem); }
body.st-home .st-after :is(.hm-places__head h2, .hm-head h2, .hm-band h2, .hm-owner h2, .hm-blog h2, .qa__intro h2)::before { content: ''; display: block; width: 56px; height: 3px; margin-bottom: 16px; border-radius: 2px; background: var(--st-grad); transform: scaleX(var(--t, 1)); transform-origin: 0 50%; }
body.st-home .st-after .hm-why h2 span,
body.st-home .st-after .hm-why__eyebrow,
body.st-home .st-after .hm-blog__label { color: var(--st-accent); }
body.st-home .st-after .hm-howtitle svg { color: var(--st-accent); }
body.st-home .st-after :is(.hm-why__sub, .hm-band p, .hm-steps p, .hm-owner__body > p, .hm-blog__body > p, .qa__lead, .qa details p, .hm-note) { color: var(--st-body); }

/* Cards: one surface, the story's panel. */
body.st-home .st-after :is(.hm-trust, .hm-why, .hm-steps li, .hm-band, .hm-band--match, .hm-owner, .hm-blog, .qa details, .place__link, .hm-popular__panel) { border: 1px solid var(--st-line); border-radius: 20px; background: color-mix(in srgb, var(--st-card) 92%, transparent); box-shadow: var(--st-shadow); }
body.st-home .st-after :is(.hm-why__list li, .hm-popular a, .hm-cities a, .hm-pick, .place__chip) { border: 1px solid var(--st-line); background: var(--st-card); }
body.st-home .st-after .hm-why__list li { border-radius: 14px; box-shadow: none; }
[data-theme="dark"] body.st-home .st-after .hm-why { background: color-mix(in srgb, var(--st-card) 92%, transparent); }
[data-theme="dark"] body.st-home .st-after .hm-why__list li { background: none; border: 0; }
[data-theme="dark"] body.st-home .st-after .hm-why__list li + li { border-left: 1px solid var(--st-line); border-radius: 0; }
[data-theme="dark"] body.st-home .st-after .hm-why__sub, [data-theme="dark"] body.st-home .st-after .hm-why li p { color: var(--st-body); }
body.st-home .st-after :is(.hm-why__icon, .hm-step__icon, .qa__pill, .hm-popular__tile),
[data-theme="dark"] body.st-home .st-after .hm-why__icon { background: color-mix(in srgb, var(--st-accent) 14%, transparent); color: var(--st-accent); }
body.st-home .st-after .hm-trust svg, body.st-home .st-after .hm-popular a svg { color: var(--st-accent); }
body.st-home .st-after .hm-steps h3::before { background: var(--st-grad); color: #fff; }
body.st-home .st-after .hm-band__copy::before, body.st-home .st-after .hm-band--match .hm-actions::before { background: var(--st-line); }
body.st-home .st-after .qa details:hover, body.st-home .st-after .qa details[open] { border-color: var(--st-accent); background: color-mix(in srgb, var(--st-card) 92%, transparent); }
/* Labels over a photo stop being white chips. */
body.st-home .st-after :is(.place__kind, .place__save) { background: var(--st-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--st-ink); }
body.st-home .st-after .place__save[aria-pressed="true"] { color: var(--st-accent); }
[data-theme="dark"] body.st-home .st-after :is(.hm-blog__image img, .hm-owner > img) { filter: none; }

[data-theme="dark"] body.st-home .st-after .hm-why__art--dark { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%), linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to right, transparent, #000 14%), linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-composite: source-in; mask-composite: intersect; }
/* Finding a roommate and letting a property: two equal cards. */
.st-after__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: calc(1372px + 2 * var(--hm-gut)); margin: var(--st-gap) auto 0; padding-inline: var(--hm-gut); }
body.st-home .st-after .st-after__pair > :is(#find-roommate, #find-tenant) { display: flex; min-width: 0; max-width: none; margin: 0; padding: 0; }
body.st-home .st-after .st-after__pair :is(.hm-band--match, .hm-owner) { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 0; overflow: hidden; padding: 0; }
body.st-home .st-after .st-after__pair .hm-band__art { flex: none; align-self: stretch; width: 100%; max-width: none; height: 240px; padding: 18px 18px 0; object-fit: contain; object-position: 50% 100%; background: color-mix(in srgb, var(--st-accent) 9%, transparent); }
body.st-home .st-after .st-after__pair .hm-owner > img { flex: none; width: 100%; height: 240px; min-height: 0; object-fit: cover; object-position: 50% 60%; }
body.st-home .st-after .st-after__pair .hm-band__copy { padding: 26px 28px 8px; }
body.st-home .st-after .st-after__pair .hm-band__copy::before, body.st-home .st-after .st-after__pair .hm-actions::before { display: none; }
body.st-home .st-after .st-after__pair .hm-owner__body { display: flex; flex: 1; flex-direction: column; align-self: stretch; padding: 26px 28px 28px; }
body.st-home .st-after .st-after__pair .hm-owner__body > p:not(.hm-note) { margin-block: 10px 20px; }
body.st-home .st-after .st-after__pair .hm-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 20px; margin-top: auto; padding: 16px 28px 28px; }
body.st-home .st-after .st-after__pair .hm-owner__body .hm-actions { padding: 0; }
body.st-home .st-after .st-after__pair .hm-actions .hm-btn { flex: 0 1 auto; min-width: 0; font-size: .9375rem; white-space: normal; text-align: center; }
/* The FAQ's short intro stays in view beside the answers. */
@media (min-width: 1001px) {
  body.st-home .st-after .qa__intro { position: sticky; top: 96px; align-self: start; }
}
@media (max-width: 900px) {
  .st-after__pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.st-home .st-after .st-after__pair .hm-actions .hm-btn { flex: 1 1 100%; }
  body.st-home .st-after .st-after__pair .hm-band__art, body.st-home .st-after .st-after__pair .hm-owner > img { height: 190px; }
}

/* Buttons: the story's pills. */
body.st-home .st-after .hm-btn, body.st-home .st-after .hm-band--match .hm-btn, body.st-home .st-after .hm-owner .hm-btn { min-height: 50px; padding-inline: 26px; border-radius: 999px; font-weight: 700; transition: translate .25s cubic-bezier(.2, .8, .2, 1), filter .2s ease, background-color .2s ease, color .2s ease; }
body.st-home .st-after .hm-btn:hover { translate: 0 -2px; color: #fff; }
body.st-home .st-after .hm-btn--line, body.st-home .st-after .hm-band--match .hm-btn--line { border: 1px solid var(--st-ink); background: var(--st-glass); color: var(--st-ink); }
body.st-home .st-after .hm-btn--line:hover, body.st-home .st-after .hm-band--match .hm-btn--line:hover { background: var(--st-ink); color: var(--st-bg); filter: none; }
body.st-home .st-after .hm-link { color: var(--st-accent); }

/* Hover lifts use `translate`, because `transform` belongs to the scroll. */
body.st-home .st-after :is(.place__link, .hm-steps li, .hm-owner, .hm-blog, .hm-band--match, .hm-why__list li, .hm-popular a, .hm-cities a) { transition: translate .3s cubic-bezier(.2, .8, .2, 1), border-color .2s ease, box-shadow .3s ease, color .2s ease; }
body.st-home .st-after :is(.place__link, .hm-steps li, .hm-owner, .hm-blog, .hm-popular a, .hm-cities a):hover { translate: 0 -4px; border-color: var(--st-accent); }

/* The Roommates list opens with a count, not a headline. */
body.st-home .st-after .hm-sec.rm-people h2 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); letter-spacing: -.025em; }
body.st-home .st-after .hm-sec.rm-people h2 * { color: inherit; }

/* What the scroll does. */
.st-sc { opacity: var(--t, 1); }
.fx-lift { transform: perspective(1200px) translate3d(0, calc((1 - var(--t, 1)) * 80px), calc((1 - var(--t, 1)) * -140px)) rotateX(calc((1 - var(--t, 1)) * 12deg)); transform-origin: 50% 100%; }
html.st-pinned .st-after .hm-blog__image img { transform: scale(1.14) translate3d(0, calc(var(--p, 0) * 5%), 0); transition: none; }
/* This photo sits above the card's words, so it pans inside its own box. A scale would spill over them. */
html.st-pinned body.st-home .st-after .hm-owner > img { object-position: calc(50% + var(--p, 0) * 40%) 60%; }
html.st-pinned .hm-blog:hover .hm-blog__image img { transform: scale(1.14) translate3d(0, calc(var(--p, 0) * 5%), 0); }

/* Footer: the last scene, rising over the city. */
body.st-home .footer { position: relative; z-index: 2; overflow: hidden; margin-top: -32px; padding-block: clamp(56px, 9vh, 104px) 28px; border: 0; border-radius: 32px 32px 0 0; background: var(--st-bg-2); }
body.st-home .footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--st-grad); transform: scaleX(var(--f, 1)); transform-origin: 0 50%; }
/* The logo's mark, turning into place behind the links. */
body.st-home .footer::after { content: ''; position: absolute; z-index: 0; right: -6%; bottom: -14%; width: min(68vw, 880px); aspect-ratio: 426 / 213; background: url(../images/logo.webp) center / contain no-repeat; opacity: .09; transform: rotate(calc((1 - var(--f, 1)) * -24deg)) translate3d(calc((1 - var(--f, 1)) * 18%), calc((1 - var(--f, 1)) * 26%), 0); pointer-events: none; }
body.st-home .footer .container { position: relative; z-index: 1; }
body.st-home .footer-top { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
body.st-home .footer-brand p { color: var(--st-body); }
body.st-home .footer-brand a { color: var(--st-ink); }
body.st-home .footer-col h2 { color: var(--st-accent); letter-spacing: .02em; text-transform: none; font-size: .875rem; }
body.st-home .footer-col a { position: relative; display: inline-block; color: var(--st-ink); font-weight: 500; transition: translate .25s cubic-bezier(.2, .8, .2, 1), color .2s ease; }
body.st-home .footer-col a:hover { color: var(--st-accent); translate: 4px 0; }
body.st-home .footer .social-link { border: 1px solid var(--st-line); border-radius: 50%; background: var(--st-card); color: var(--st-ink); transition: translate .25s cubic-bezier(.2, .8, .2, 1), color .2s ease, border-color .2s ease; }
body.st-home .footer .social-link:hover { translate: 0 -3px; border-color: transparent; background: var(--st-grad); color: #fff; transform: none; }
body.st-home .st-signoff { flex-direction: column; align-items: flex-start; gap: 4px; margin: clamp(44px, 8vh, 88px) 0 28px; padding-top: 0; border-top: 0; font-size: clamp(1.25rem, 1rem + 1.2vw, 2.25rem); letter-spacing: -.03em; }
body.st-home .st-signoff b { font-size: clamp(3.25rem, 1.5rem + 8vw, 8.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: var(--st-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.st-home .footer-bottom { padding: 18px 64px 0 0; border-top: 1px solid var(--st-line); color: var(--st-body); }
body.st-home .back-to-top { background: var(--st-grad); color: #fff; box-shadow: var(--st-shadow); }
body.st-home .footer a:focus-visible { outline: 3px solid var(--st-accent); outline-offset: 3px; }
@media (max-width: 767px) {
  .st-world::after { display: none; }
  body.st-home .st-after :is(.hm-sec, #why-roomrr, #how-it-works, #find-roommate, #find-tenant, #waitlist, #latest-blog, #faq, .hm-popular) { margin-top: 64px; }
  body.st-home .footer { border-radius: 22px 22px 0 0; }
}

/* ── Phones: the plain page, designed for a phone ─────────────────────────
   Phones never pin the story (see the head of index.html), so here every chapter is a short,
   finished section that scrolls like an ordinary page: its picture as a rounded card, then the
   words, then the example, one after another. Nothing overlaps and nothing waits for the scroll.
   Only below 768px and only on the plain page: tablets and desktops keep the story as it was. */
@media (max-width: 767px) {
  html:not(.st-pinned) .st-ch:not(.st-ch--hero):not(.rx-match),
  html:not(.st-pinned) .st-origin {
    display: flex; flex-direction: column; gap: 0; height: auto; min-height: 0;
    padding: 44px 0 48px; background: var(--st-bg);
  }
  html:not(.st-pinned) :is(#ch-discover, #ch-visit, #ch-agreement, #pa-match, #pa-voice, .st-origin) { background: var(--st-bg-2); }
  html:not(.st-pinned) .st-ch:not(.st-ch--hero) + .st-ch:not(.st-ch--hero) { border-top: 1px solid var(--st-line); }

  /* The chapter's picture: a card at the top, never a washed-out backdrop behind the words. */
  html:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still {
    position: relative; inset: auto; z-index: 0; order: -1; height: auto; aspect-ratio: 4 / 3;
    margin: 0 20px 26px; border-radius: 22px; box-shadow: var(--st-shadow);
  }
  html:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still--dark { display: none; }
  [data-theme="dark"]:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still--dark { display: block; }
  [data-theme="dark"]:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still--light { display: none; }
  html:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still img { object-position: center 58%; }
  html:not(.st-pinned) :is(.st-ch:not(.st-ch--hero), .st-origin) > .st-still::after { display: none; }
  /* Cropped to a card, these are near-empty rooms (Rent's end too), and Our story has its own photos. */
  html:not(.st-pinned) :is(#ch-book, #ch-agreement, #ch-end, .st-origin) > .st-still { display: none !important; }

  html:not(.st-pinned) .st-ch:not(.st-ch--hero):not(.rx-match) .st-pin {
    display: flex; flex-direction: column; align-items: stretch; gap: 24px;
    height: auto; min-height: 0; padding: 0 20px; overflow: visible;
  }
  html:not(.st-pinned) .st-ch:not(.st-ch--hero) :is(.st-copy, .st-demo) { order: 0; }
  html:not(.st-pinned) .st-ch:not(.st-ch--hero) .st-demo { order: 1; width: 100%; justify-self: auto; }
  html:not(.st-pinned) .st-ch .st-text { font-size: 1rem; line-height: 1.55; }
  html:not(.st-pinned) .st-ch .st-small { font-size: .875rem; line-height: 1.5; }

  /* 02, the problem: the listings in a tidy pair of columns, and the chat beneath them. */
  html:not(.st-pinned) .st-pains { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html:not(.st-pinned) .st-pains li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--st-line); position: relative; }
  html:not(.st-pinned) .st-pains li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--st-accent); }
  html:not(.st-pinned) .st-pile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; height: auto; min-height: 0; }
  html:not(.st-pinned) .st-pile > * { position: static; rotate: none; transform: none; opacity: 1; }
  html:not(.st-pinned) .st-scrap { width: auto; padding: 8px; }
  html:not(.st-pinned) .st-scrap img { height: 72px; }
  html:not(.st-pinned) .st-msg { order: 1; grid-column: 1 / -1; justify-self: start; max-width: 78%; }
  html:not(.st-pinned) .st-msg--in { justify-self: end; }
  html:not(.st-pinned) .st-note { display: none; }
  html:not(.st-pinned) .st-clear { position: static; margin-top: 4px; font-size: 1.625rem; }

  /* 03, discover: the open home on its own, with its photo. */
  html:not(.st-pinned) .st-map { min-height: 0; perspective: none; }
  html:not(.st-pinned) .st-pcard { display: none; }
  html:not(.st-pinned) .st-map .st-sheet { position: relative; inset: auto; transform: none; opacity: 1; }
  html:not(.st-pinned) .st-sheet__photo { display: block; }
  html:not(.st-pinned) .st-sheet__photo img { display: block; width: 100%; height: 150px; object-fit: cover; }

  /* 04, your people: the cards in a column, then the match. */
  html:not(.st-pinned) .st-people { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  html:not(.st-pinned) .st-lines { display: none; }
  html:not(.st-pinned) .st-person, html:not(.st-pinned) .st-person--you,
  html:not(.st-pinned) .st-match { position: relative; inset: auto; width: auto; margin: 0; transform: none; opacity: 1; }
  html:not(.st-pinned) .st-person--you { margin-left: 18%; }
  html:not(.st-pinned) .st-person:not(.st-person--you) { margin-right: 18%; }
  html:not(.st-pinned) .st-match { margin-top: 6px; }

  /* 05 to 07: the example cards at a readable size. */
  html:not(.st-pinned) :is(.st-cal, .st-summary, .st-doc, .st-panel) { width: 100%; perspective: none; }
  html:not(.st-pinned) :is(.st-cal__sheet, .st-summary__card, .st-panel__card) { padding: 16px; transform: none; }
  html:not(.st-pinned) .st-cal__grid span { width: 34px; height: 34px; }
  html:not(.st-pinned) .st-cal__grid { font-size: .8125rem; }
  html:not(.st-pinned) .st-rows li, html:not(.st-pinned) .st-lines-list { font-size: .875rem; }
  html:not(.st-pinned) .st-doc { font-size: .8125rem; }
  html:not(.st-pinned) .st-ticks { gap: 12px; font-size: .9375rem; }

  /* Our story and the end: words first, nothing floating over them. */
  html:not(.st-pinned) .st-origin { padding-inline: 0; }
  html:not(.st-pinned) .st-origin__inner { padding-inline: 20px; }
  html:not(.st-pinned) .st-album { width: auto; margin: 28px 20px 0; }
  html:not(.st-pinned) .st-ch--end .st-end { width: 100%; }
  html:not(.st-pinned) .st-ch--end h2 { font-size: clamp(2rem, 9vw, 2.5rem); }

  /* Below the story: a plain page colour, without the faded city drifting behind the cards. */
  html:not(.st-pinned) .st-world { display: none; }
  html:not(.st-pinned) .st-after { background: var(--st-bg); }
  html:not(.st-pinned) .st-sc { --t: 1; --p: 0; transform: none; opacity: 1; }
  /* css/home.css starts the older hero's shade 40% down, and in dark mode that rule wins, which
     drew a hard line across the Rent and Partner pictures. */
  [data-theme="dark"] .st-ch .st-still::after { inset: 0; }
}
