/* Home only: hero entrance and exit, the room (demo) and its hand-off, the tools showcase, category tiles, the Snag
   list act, and the no-JavaScript floor for engine-driven content.
   Scroll-linked values: --rm (showroom.js, from a box's place in the viewport), --ho (home.js, the hand-off part of the
   room's pinned progress) and --d / --a (home.js, each showcase scene's distance from the one in view). All are pure
   functions of scroll position, so reversing reverses them. Nothing here moves under prefers-reduced-motion. */

/* Without JavaScript nothing waits for the engine: every section shows, settled. */
html:not(.js) [data-sc-in], html:not(.js) [data-sc-stagger] > *, html:not(.js) [data-sc-cue] { opacity: 1 !important; transform: none !important; }
html:not(.js) [data-sc-reveal] { clip-path: none !important; }

/* --------------------------------------------------------------- hero ---- */
/* Entrance: the three real tool results settle onto the paper one after another. */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .art.in-1, html.js .hero .art.in-2, html.js .hero .art.in-3 {
    animation: rm-settle 900ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  html.js .hero .art.in-1 { animation-delay: 260ms; }
  html.js .hero .art.in-2 { animation-delay: 430ms; }
  html.js .hero .art.in-3 { animation-delay: 600ms; }
  html.js .hero figcaption { animation: rm-fade 600ms ease-out both; animation-delay: 1100ms; }
}
@keyframes rm-settle { from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.97) rotate(-0.6deg); } to { opacity: 1; transform: none; } }
@keyframes rm-fade { from { opacity: 0; } to { opacity: 1; } }

/* the heading also follows the window's height, so a short or zoomed window keeps the whole first screen in view
   (home.js shrinks the rest if it still doesn't fit). Unchanged on ordinary windows: at 1440 x 900 both give ~99px. */
@media (min-width: 901px) { .hero .display { font-size: min(var(--t-hero), calc((100svh - var(--hdr)) * 0.12)); }
  /* the cards are pictures sized by the window, so their labels are too: 13px from 1300px wide, as before */
  .hero__stage .hero__art figcaption { font-size: clamp(11px, 1vw, 13px); } }
.hero__art .art img { width: 100%; height: auto; }
.hero__art:nth-child(1) .art { transform-origin: 30% 80%; }
.hero__fade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--fog); opacity: 0; }
.hero__arts { z-index: 3; }
.hero__in { z-index: 4; }

/* Exit: as the wheel turns, the film drifts down and leans in, the three results lift off the desk at their own
   depths (the Survey room card nearest, so it rises fastest), and the frame dissolves to the paper the room sits on.
   Copy only fades; it never moves against the reader. */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) {
  html.rm-live .hero__bed { translate: 0 calc(var(--rm, 0) * 16vh); scale: calc(1 + var(--rm, 0) * 0.07); }
  html.rm-live .hero__fade { opacity: clamp(0, calc((var(--rm, 0) - 0.28) / 0.5), 1); }
  html.rm-live .hero__stage > .hero__art:nth-child(1) { translate: calc(var(--rm, 0) * -7vw) calc(var(--rm, 0) * -24vh); rotate: calc(var(--rm, 0) * -3deg); scale: calc(1 + var(--rm, 0) * 0.05); }
  html.rm-live .hero__stage > .hero__art:nth-child(2) { translate: calc(var(--rm, 0) * 5vw) calc(var(--rm, 0) * -46vh); rotate: calc(var(--rm, 0) * 3deg); scale: calc(1 + var(--rm, 0) * 0.14); }
  html.rm-live .hero__stage > .hero__art:nth-child(3) { translate: calc(var(--rm, 0) * -2vw) calc(var(--rm, 0) * -12vh); rotate: calc(var(--rm, 0) * -1.5deg); }
  html.rm-live .hero__stage { opacity: calc(1 - clamp(0, calc((var(--rm, 0) - 0.6) / 0.3), 1)); }
  html.rm-live .hero__copy { opacity: calc(1 - clamp(0, calc((var(--rm, 0) - 0.42) / 0.36), 1)); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  html.rm-live .hero__phone .pposter, html.rm-live .hero__phone video { scale: calc(1 + var(--rm, 0) * 0.14); }
  html.rm-live .hero__phone .hero__art { translate: 0 calc(var(--rm, 0) * -80px); }
}

/* ------------------------------------------------------- the room (demo) -- */
/* Pinned on wide screens (home.js sets data-sc-act="pin" before the engine mounts); a normal section on phones. */
.demo-quiet { background: var(--fog); padding-inline: 0; }
.demo { padding-block: clamp(56px, 8vw, 96px); }
.demo.is-pinned { padding-block: 0; }
.demo.is-pinned [data-sc-stage] { height: 100vh; height: 100svh; display: grid; align-items: center; padding-block: calc(var(--hdr) + 12px) 24px; overflow: clip; }
.demo.is-pinned .demo__svg { max-height: 36vh; }
.demo:not(.is-pinned) .demo__grid { gap: 28px; }
@media (max-height: 760px) and (min-width: 960px) {
  .demo.is-pinned .demo__copy .lede { font-size: 1.0625rem; }
  .demo.is-pinned .demo__note { display: none; }
  .demo.is-pinned .demo__steps li { padding: 8px 0; }
  .demo.is-pinned .demo__svg { max-height: 30vh; }
}
@media (max-width: 959px) { .demo-quiet { padding-block: 56px 8px; } }
.demo__side { position: relative; }
.demo__panel { transform-origin: 50% 100%; }
.demo__note { margin: 0; max-width: 52ch; }

/* The hand-off (2 Oct 2026, evening; Ade: "the previous demonstration must disappear completely"). The room gives
   way to one phone showing the same room in the real Survey demo, against the section's plain background.
   Wide screens (pinned): once the room is finished home.js adds .is-phone. The panel fades out and is then hidden
   outright (visibility), so no faded drawing, field or result stays behind the phone and nothing hidden can take a
   click; the phone rises into the same place. Scrolling back takes the class off and the room returns as it was.
   The panel keeps its box, so nothing around it moves. Phones and reduced motion: the phone sits under the panel. */
.handoff { display: grid; justify-items: center; margin-top: 28px; }
.handoff__phone { width: min(64vw, 260px); }
.demo.is-pinned .handoff { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; pointer-events: none; }
.demo.is-pinned .handoff__phone { height: 94%; width: auto; max-width: 100%;
  opacity: 0; visibility: hidden; translate: 0 5%;
  transition: opacity 220ms ease, translate 420ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 420ms; }
.demo.is-pinned.is-phone .handoff__phone { opacity: 1; visibility: visible; translate: 0 0; pointer-events: auto;
  transition: opacity 300ms ease 140ms, translate 480ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms, visibility 0s linear 0s; }
.demo.is-pinned .demo__panel { transition: opacity 260ms ease 120ms, scale 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms, visibility 0s linear 0s; }
.demo.is-pinned.is-phone .demo__panel { opacity: 0; scale: 0.96; visibility: hidden; pointer-events: none;
  transition: opacity 200ms ease, scale 380ms cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 220ms; }

/* ------------------------------------------------------------- showcase -- */
/* One tool for each kind of job. Phones and reduced motion: each tool's layered picture sits above its copy.
   Wide screens: the copy scrolls normally beside a sticky stage; each scene is wiped in from below and its real
   screen and close-up arrive at different speeds. */
.show { padding-bottom: clamp(40px, 6vw, 80px); }
.show__item { display: grid; gap: 22px; padding-block: 32px; border-top: 1px solid var(--line); }
.show__list > .show__item:first-child { border-top: 0; padding-top: 0; }
.show__media { position: relative; aspect-ratio: 4 / 3; }
.sl { position: absolute; }
.sl--photo { inset: 0 0 16% 10%; border-radius: var(--r-card); overflow: hidden; background: #e9e4dd; }
.sl--photo img { width: 100%; height: 100%; object-fit: cover; }
.sl--main { left: 0; bottom: 0; width: 72%; }
/* a real file, cut to its first columns at 100%: given enough width that its cells read at 11-14px */
.sl--main.sl--file { width: min(100%, max(78%, 500px)); }
.sl--main .shot.ui { box-shadow: 0 0 0 1px rgba(4, 23, 43, 0.07), 0 26px 44px -18px rgba(30, 22, 14, 0.45); }
/* real screens keep their own shape: only the bottom is cut, never the sides where the amounts are */
.sl--main .shot.ui img, .sl--main .win img { width: 100%; height: auto; max-height: 34vh; object-fit: cover; object-position: top left; }
.sl--front { right: 0; top: 7%; width: 48%; }
.sl--front:has(.xl) { width: auto; max-width: 70%; }   /* sample rows take the width they need, never clipped */
.sl--front .shot.det, .sl--front .xl, .sl--front .callout { box-shadow: 0 0 0 1px rgba(4, 23, 43, 0.07), 0 30px 46px -16px rgba(30, 22, 14, 0.5); }
.callout { background: var(--paper); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.callout p { margin: 0; }
.callout__k { font-size: 0.8125rem; color: var(--slate); }
.callout__v { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; margin-top: 4px !important; }
.callout__t { font-size: 0.9375rem; color: var(--ink-2); }
.callout__t b { color: var(--ink); font-weight: 600; }
.callout__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 6px !important; font-size: 0.9375rem; }
.callout__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.risk { display: inline-grid; place-items: center; min-width: 38px; height: 30px; border-radius: 8px; padding: 0 6px; }
.risk--r { background: #f9e1df; color: var(--red); }
.risk--y { background: var(--amber-bg); color: var(--amber-ink); }
.show__copy { display: grid; gap: 12px; align-content: start; }
.show__name { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.show__name a { text-decoration: none; }
.show__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.show__task { margin: 0; color: var(--ink-2); font-size: var(--t-lede); line-height: 1.5; max-width: 42ch; text-wrap: pretty; }
.show__points { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 46ch; }
.show__points li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; }
.show__points li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%2317191c' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.show__price { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 500; }
.show__price small { font-weight: 400; color: var(--slate); font-size: 0.875rem; }
.show__stage { display: none; }
.show__all { margin: 24px 0 0; }
@media (max-width: 599px) {   /* phones (2 Oct 2026, Ade: nothing on top of anything on small screens): the photograph,
                                  then the real screen or file, then its close-up or numbers, one under another, each
                                  whole and the full width of the text. Its scroll drift is switched off below. */
  .show__media, .show__media:has(.sl--file) { aspect-ratio: auto; display: grid; gap: 12px; }
  .show__media .sl { position: static; }
  .show__media .sl--photo { aspect-ratio: 16 / 10; }
  .show__media .sl--main, .show__media .sl--main.sl--file, .show__media .sl--front, .show__media .sl--front:has(.xl) { width: auto; max-width: none; }
  .show__media .xl th, .show__media .xl td { padding: 7px 10px; }
}
@media (min-width: 900px) {   /* without the sticky stage (no JavaScript, reduced motion): picture beside copy, alternating */
  .show__item { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 56px; }
  .show__item:nth-child(even) .show__media { order: 2; }
}
@media (prefers-reduced-motion: no-preference) {
  html.rm-live .show__media .sl--photo img { translate: 0 calc((var(--rm, 0.5) - 0.5) * 10%); scale: 1.1; }
  html.rm-live .show__media .sl--main { translate: 0 calc((var(--rm, 0.5) - 0.5) * -16%); }
  html.rm-live .show__media .sl--front { translate: 0 calc((var(--rm, 0.5) - 0.5) * -34%); }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  html.js .show__grid { display: grid; grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr); gap: 64px; align-items: start; }
  html.js .show__item { min-height: 60vh; align-content: center; border-top: 0; padding-block: 4vh; grid-template-columns: minmax(0, 1fr); }
  html.js .show__item .show__media { display: none; }
  html.js .show__item .label { transition: color 200ms var(--ease); }
  html.js .show__item.is-on .label { color: var(--ink); }
  html.js .show__stage { display: block; position: sticky; top: calc(var(--hdr) + 5vh); height: calc(100vh - var(--hdr) - 10vh); height: calc(100svh - var(--hdr) - 10vh); max-height: 760px; overflow: clip; overflow-clip-margin: 24px; }
  .show__scene { position: absolute; inset: 0; }
  /* d > 0: still to come. The photograph is wiped up from the bottom; the real screen and the close-up rise from
     below the stage, opaque, at two speeds. d < 0: gone by. They lift and fade while the next scene covers them. */
  .show__scene .sl--photo { clip-path: inset(calc(clamp(0, var(--d), 1) * 100%) 0 0 0 round var(--r-card)); }
  .show__scene .sl--photo img { scale: calc(1 + var(--a) * 0.16); translate: 0 calc(var(--d) * -5%); }
  .show__scene .sl--main { translate: 0 calc(max(var(--d), 0) * 78vh + min(var(--d), 0) * 14vh); opacity: calc(1 + min(var(--d), 0) * 2.2); }
  .show__scene .sl--front { translate: 0 calc(max(var(--d), 0) * 104vh + min(var(--d), 0) * 26vh); opacity: calc(1 + min(var(--d), 0) * 2.6); }
  .show__scene .sl--main .shot.ui img, .show__scene .sl--main .win img { max-height: 40vh; }
}

/* ------------------------------------------------------- category tiles -- */
/* Five pictures that open like windows as they arrive; the photograph inside drifts more slowly than the frame. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile:nth-child(1) { grid-column: span 7; } .tile:nth-child(2) { grid-column: span 5; }
  .tile:nth-child(3) { grid-column: span 5; } .tile:nth-child(4) { grid-column: span 7; }
  .tile:nth-child(5) { grid-column: 1 / -1; }
}
.tile__link { display: grid; gap: 14px; text-decoration: none; color: var(--ink); }
.tile__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; background: #e9e4dd; }
@media (min-width: 900px) {
  .tile:nth-child(1) .tile__media, .tile:nth-child(4) .tile__media { aspect-ratio: 3 / 2; }
  .tile:nth-child(2) .tile__media, .tile:nth-child(3) .tile__media { aspect-ratio: 15 / 14; }
  .tile:nth-child(5) .tile__media { aspect-ratio: 21 / 8; }
  .tile:nth-child(5) .tile__link { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 40px; }
}
.tile__media img { position: absolute; inset: -9% 0; width: 100%; height: 118%; object-fit: cover; }
.tile__body { display: grid; gap: 6px; }
.tile__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.06; letter-spacing: -0.015em; }
.tile__for { font-size: 0.9375rem; color: var(--slate); }
.tile__counts { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.tile__link:hover .tile__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
@media (max-width: 599px) {   /* phones: picture beside the words, so all five groups fit in a couple of screens */
  .tiles { gap: 14px; }
  .tile__link { grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 14px; }
  .tile__media { aspect-ratio: 1 / 0.86; border-radius: 16px; }
  .tile__name { font-size: 1.5rem; }
  .tile__for, .tile__counts { font-size: 0.875rem; }
}
@media (hover: hover) and (pointer: fine) { .tile__media img { transition: scale 400ms var(--ease); } }
@media (prefers-reduced-motion: no-preference) {
  html.rm-live .tile__media { --m: clamp(0, calc(var(--rm, 1) / 0.4), 1);
    clip-path: inset(calc((1 - var(--m)) * 16%) calc((1 - var(--m)) * 10%) calc((1 - var(--m)) * 16%) calc((1 - var(--m)) * 10%) round var(--r-card)); }
  html.rm-live .tile__media img { translate: 0 calc((var(--rm, 0.5) - 0.5) * -14%); scale: calc(1.16 - var(--m, 1) * 0.16); }
}

/* --------------------------------------------------------- the Snag list -- */
/* 2 Oct 2026, evening (Ade: no photograph behind the phone, no floating close-ups, one clean phone per stage).
   Without motion or JavaScript: the five real screens as five small phones, each captioned with its step.
   With motion (home.js adds .is-pinned): one pinned phone against the plain section background. The phone never
   moves or resizes; its screen changes with the highlighted step, one whole screen sliding in as the last slides
   out, inside the screen's own rounded edge. home.js hides every screen that is not on show, so no strip of the
   next one can show at an edge. */
.flag { background: var(--paper); padding-block: var(--section); }
.flag__grid { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.flag__copy { display: grid; gap: 16px; align-content: center; }
.flag__steps { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); }
.flag__steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); transition: color 200ms var(--ease); }
.flag__steps .n { font-weight: 500; font-variant-numeric: tabular-nums; }
.flag__now { display: none; }
.flag__note { margin: 0; }
.flag__stage { position: relative; }
.flag__phone { display: none; }
.flag__stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 20px; }
.flag__still { margin: 0; display: grid; gap: 12px; align-content: start; }
.flag__still .device { width: min(100%, 220px); margin-inline: auto; }
.flag__still figcaption { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.flag__still .n { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }

.flag.is-pinned { padding-block: 0; }
.flag.is-pinned [data-sc-stage] { height: 100vh; height: 100svh; display: grid; align-items: center; padding-block: calc(var(--hdr) + 12px) 20px; overflow: clip; }
.flag.is-pinned .flag__steps li { color: var(--slate); }
.flag.is-pinned .flag__steps li.done { color: var(--ink-2); }
.flag.is-pinned .flag__steps li.on { color: var(--ink); font-weight: 500; }
.flag.is-pinned .flag__stage { height: min(74vh, 680px); height: min(74svh, 680px); }
.flag.is-pinned .flag__stills { display: none; }
.flag.is-pinned .flag__phone { display: block; height: 100%; width: auto; max-width: 100%; margin-inline: auto; }
.flag.is-pinned .flag__track { display: flex; height: 100%; translate: calc(var(--i, 0) * -100%) 0;
  transition: translate 460ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.flag.is-pinned .flag__screen { flex: 0 0 100%; height: 100%; margin: 0; }
.flag.is-pinned .flag__screen .device__shot { height: 100%; }
.flag.is-pinned .flag__screen figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 960px) {
  .flag.is-pinned .flag__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
}
@media (max-width: 959px) {
  .flag.is-pinned .flag__grid { gap: 12px; align-content: center; height: 100%; }
  .flag.is-pinned .flag__copy { display: contents; }
  .flag.is-pinned .flag__copy .label, .flag.is-pinned .flag__steps { display: none; }
  .flag.is-pinned .flag__copy .h2 { order: 1; font-size: clamp(1.6rem, 1.1rem + 2.8vw, 2.3rem); }
  .flag.is-pinned .flag__stage { order: 2; height: max(260px, calc(100svh - var(--hdr) - 350px)); }
  .flag.is-pinned .flag__now { order: 3; display: block; margin: 0; font-weight: 500; min-height: 3em; }
  .flag.is-pinned .actions { order: 4; }
  .flag.is-pinned .flag__note { order: 5; font-size: 0.8125rem; }
}

/* ------------------------------------------------------------- the rest -- */
/* finder results use the shared result rows, a little larger */
.finder .res a { padding: 16px; }
.finder .res b { font-size: 1.0625rem; }

/* ------------------------------------------------- short windows (third pass, 1 Oct 2026) --
   The pinned stages are one viewport tall with overflow clipped, so on a short window (a laptop at 125%, or the
   browser pane inside the Claude app, about 560 to 720px) the copy column ran past the bottom and was cut. Each
   tier takes a little out of the copy and the picture until everything fits; the drawing code is untouched. */
@media (max-height: 760px) and (min-width: 960px) {
  .flag.is-pinned [data-sc-stage] { padding-block: calc(var(--hdr) + 8px) 12px; }
  .flag.is-pinned .flag__copy { gap: 10px; }
  .flag.is-pinned .flag__copy .h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem); }
  .flag.is-pinned .flag__steps li { padding: 7px 0; font-size: 0.9375rem; }
  .flag.is-pinned .flag__note { font-size: 0.8125rem; }
  .flag.is-pinned .flag__stage { height: min(66svh, 680px); }
}
@media (max-height: 680px) and (min-width: 960px) {
  .flag.is-pinned .flag__copy .label, .flag.is-pinned .flag__note { display: none; }
  .flag.is-pinned .flag__copy .h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 1.9rem); }
  .flag.is-pinned .flag__steps li { padding: 5px 0; }   /* steps wrap rather than being cut with an ellipsis */
  .flag.is-pinned .flag__stage { height: min(60svh, 680px); }
  .demo.is-pinned .demo__note { display: none; }
  .demo.is-pinned [data-sc-stage] { padding-block: calc(var(--hdr) + 8px) 12px; }
  .demo.is-pinned .demo__copy { gap: 10px; }
  .demo.is-pinned .demo__copy .label { display: none; }
  .demo.is-pinned .demo__copy .h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.1rem); }
  .demo.is-pinned .demo__steps li { padding: 5px 0; font-size: 0.9375rem; }
  .demo.is-pinned .demo__svg { max-height: 24vh; }
  .demo.is-pinned .demo__msg:empty { display: none; }
}
@media (max-height: 580px) and (min-width: 960px) {
  .flag.is-pinned .flag__copy .h2 { font-size: 1.4rem; }
  .flag.is-pinned .flag__steps li { padding: 3px 0; font-size: 0.875rem; }
  .flag.is-pinned .actions .btn { min-height: 40px; }
  .flag.is-pinned .flag__stage { height: min(56svh, 680px); }
  .demo.is-pinned .demo__copy .h2 { font-size: 1.4rem; }
  .demo.is-pinned .demo__copy .lede { display: none; }
  .demo.is-pinned .demo__steps li { padding: 3px 0; font-size: 0.875rem; }
  .demo.is-pinned .demo__svg { max-height: 18vh; }
  .demo.is-pinned .actions .btn { min-height: 40px; }
}

/* ------------------------------------------------ phones: one thing under another (2 Oct 2026) --
   Ade: "fix overlapping images, floating cards and text; on small screens stack these elements vertically". Under
   600px nothing on the home page sits on top of anything else: the hero's real result goes under the film (the film
   keeps its own pause button), each showcase picture is a column (above), and the Snag list phone pages through on
   its own, without the photograph behind it or the close-up over it. 600px and wider are exactly as before. */
@media (max-width: 599px) {
  .hero__phone .hero__art--ph { position: static; width: auto; margin: 16px var(--gutter) 0; }
  .hero__ctl { display: none; }
  .hero__phone .vidbtn--ph { display: inline-flex; position: absolute; right: 12px; bottom: 12px; z-index: 2; }
  .hero__phone .vidbtn--ph[hidden] { display: none; }
  html.rm-live .hero__phone .hero__art { translate: none; }
  html.rm-live .show__media .sl--main, html.rm-live .show__media .sl--front { translate: none; }
  /* reduced motion: the five small phones two to a row */
  .flag__stills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
}

/* ---------- landlord-first hero (Oct 2026 drafts a, b, c) ---------- */
.lh { padding: clamp(28px, 5vw, 72px) 0 clamp(32px, 5vw, 64px); background: var(--fog, #fafafb); border-bottom: 1px solid var(--line, #e3e4e7); }
.lh__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.lh__copy .display { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; margin: 10px 0 18px; }
.lh__copy .lede { max-width: 58ch; font-size: clamp(16px, 1.25vw, 19px); }
.lh__copy .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.lh__checked { margin-top: 14px; color: var(--ink-2, #3b3e45); }
.lh__card { background: #fff; border: 1px solid var(--line, #e3e4e7); border-radius: 16px; padding: clamp(16px, 2vw, 24px); box-shadow: 0 1px 2px rgba(23,25,28,.04), 0 12px 32px rgba(23,25,28,.06); }
.lh__kick { margin: 0 0 12px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate, #5d616c); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lh__dates { list-style: none; margin: 0; padding: 0; }
.lh__dates li { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line, #e3e4e7); }
.lh__dates .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.lh__dates small { display: block; color: var(--slate, #5d616c); margin-top: 2px; font-size: 13px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #e3f2e8; color: #1c6b3b; font-weight: 600; }
.tag--draft { background: #fbefd4; color: #7a4a00; }
.lh__note { margin: 12px 0 0; font-size: 13px; color: var(--slate, #5d616c); }
.lh__reg { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.lh__reg th, .lh__reg td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line, #e3e4e7); }
.lh__reg thead th { font-size: 12px; color: var(--slate, #5d616c); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.lh__reg tbody th { font-weight: 600; }
.lh__form { display: grid; gap: 12px; }
.lh__form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.lh__form select, .lh__form input { min-height: 48px; font: inherit; font-weight: 400; padding: 8px 12px; border: 1px solid var(--line-2, #cfd1d6); border-radius: 10px; background: #fff; width: 100%; }
.lh__form .btn { justify-content: center; }
.lproof { padding-top: clamp(40px, 5vw, 72px); }
.lproof__list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.lproof__list li { border-top: 1px solid var(--line, #e3e4e7); padding-top: 12px; color: var(--ink-2, #3b3e45); }
.lproof__list b { display: block; color: var(--ink, #17191c); margin-bottom: 4px; }
@media (max-width: 899px) { .lh__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .lh__dates li { grid-template-columns: 6.4em 1fr; } .lh__reg { font-size: 14px; } .lh__copy .actions .btn { flex: 1 1 100%; justify-content: center; } }
