/* Film (2026-11-18): one fixed view, every frame a layer in it, the scroll only drives the timeline (film.js).
   Type comes in a line at a time through a mask, product-film style. Black ground; Plaster only where the script says. */
html.is-film, html.is-film body { background: rgb(var(--c-black)); }
html.is-film #story { position: fixed; inset: 0; overflow: hidden; z-index: 1; }
html.is-film .fr { position: absolute; inset: 0; min-height: 0; height: 100%; padding: 0; visibility: hidden; opacity: 0; overflow: hidden; }
html.is-film #f-2 { visibility: visible; opacity: 1; }
.film-scroll { position: relative; width: 1px; pointer-events: none; }
html.is-film .fr--statement, html.is-film .fr--pillars, html.is-film .fr--chart { display: flex; align-items: center; }
html.is-film .fr--pillars { padding: calc(var(--cb-h) + 4rem) 0 4rem; box-sizing: border-box; }
html.is-film .fr--chart { flex-direction: column; justify-content: center; padding: calc(var(--cb-h) + 2rem) 0 2rem; box-sizing: border-box; }
html.is-film .fr--chart .tm-wrap { width: 100%; }
.stage__count { display: none !important; }

/* ---------------------------------------------------------------- line reveal */
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln__in { display: block; will-change: transform; }

/* ---------------------------------------------------------------- beats */
.beat.is-light { background: rgb(var(--c-ground)); color: rgb(var(--c-black)); }
.bt { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2rem; box-sizing: border-box;
  padding: calc(var(--cb-h) + 3rem) 8cqw 4rem; visibility: hidden; }
.bt-lines { font-family: var(--f-head); font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.bt--xl { font-size: clamp(56px, 7.6rem, 168px); line-height: .92; }
.bt--l { font-size: clamp(42px, 5.25rem, 118px); line-height: .96; }
.bt--m { font-size: clamp(28px, 3.1rem, 68px); line-height: 1.06; letter-spacing: -.03em; }
.bt--s { font-size: clamp(20px, 1.75rem, 38px); line-height: 1.15; letter-spacing: -.02em; }
.bt-lines.bt--m .ln + .ln { margin-top: .45em; }
.bt-lines.is-mute { color: rgba(11, 9, 8, .32); }
.beat:not(.is-light) .bt-lines.is-mute { color: rgba(var(--c-grey-50), .32); }
.bt-lines em { font-style: normal; color: rgb(var(--c-white)); }
.beat.is-light .bt-lines em { color: rgb(var(--c-black)); }
.bt-head { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-vmuted)); }
.bt-sub { max-width: 46ch; font-size: clamp(17px, 1.375rem, 28px); line-height: 1.38; letter-spacing: -.015em; color: rgb(var(--c-vmuted)); }
.beat.is-light .bt-sub { color: rgb(var(--c-grey-300)); }

/* lists: one item per line, title bright, detail muted on the same line */
.bt-list { display: grid; gap: .35em; font-family: var(--f-head); font-weight: 600; letter-spacing: -.035em; }
.bt-list.bt--m { font-size: clamp(30px, 3.25rem, 70px); line-height: 1.02; }
.bt-list.bt--l { font-size: clamp(40px, 4.75rem, 104px); line-height: .98; gap: .18em; }
.bt-list.bt--s { font-size: clamp(22px, 2.25rem, 48px); line-height: 1.1; gap: .25em; }
.bt-list .ln__in { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .55em; }
.bt-list b { font-weight: 600; }
.bt-list .ln__in > span { font-family: var(--f-body); font-weight: 400; font-size: max(16px, .36em); letter-spacing: -.01em; color: rgb(var(--c-vmuted)); }
.bt-list.is-num i { font-style: normal; font-family: var(--f-body); font-weight: 400; font-size: .42em; color: rgb(var(--c-vmuted)); min-width: 2.2em; align-self: center; }

/* today, struck through, then the hub's answer */
.bt-swap { display: grid; gap: 2.2rem; }
.sw { display: grid; gap: .3rem; }
.sw__a { font-size: clamp(17px, 1.375rem, 28px); color: rgb(var(--c-vmuted)); letter-spacing: -.01em; }
.sw__a .ln__in { position: relative; width: fit-content; }
.sw__x { position: absolute; left: 0; right: 0; top: 55%; height: 1.5px; background: currentColor; transform-origin: 0 50%; }
.sw__b { font-family: var(--f-head); font-weight: 600; font-size: clamp(26px, 2.6rem, 58px); line-height: 1.06; letter-spacing: -.035em; }

/* candidate, hub, ApplicantPool: three words and two arrows */
.bt-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.6rem, 78px); letter-spacing: -.035em; }
.fl__ar { width: clamp(40px, 5rem, 110px); height: 2px; background: currentColor; position: relative; transform-origin: 0 50%; }
.fl__ar::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }

/* what's included: aligned type, no boxes */
.bt-table { display: grid; gap: .1rem; font-size: clamp(16px, 1.25rem, 26px); line-height: 1.3; letter-spacing: -.01em; }
.bt-table .ln__in { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr 2fr; gap: var(--gutter); padding: .7rem 0; border-bottom: 1px solid rgba(var(--c-grey-50), .1); }
.bt-table .ln__in span:first-child { color: rgb(var(--c-vmuted)); }
.bt-table__h .ln__in { font-family: var(--f-head); font-weight: 600; font-size: 1.35em; letter-spacing: -.03em; border-bottom-color: rgba(var(--c-grey-50), .3); }

/* the two options */
.bt-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.bt-opt { display: block; color: inherit; padding-top: 1.25rem; border-top: 1px solid rgba(var(--c-grey-50), .25); transition: border-color .3s var(--ease-link); }
.bt-opt .ln__in { display: grid; gap: .5rem; }
.bt-opt__k { font-size: 15px; color: rgb(var(--c-vmuted)); }
.bt-opt__t { font-family: var(--f-head); font-weight: 600; font-size: clamp(30px, 3.2rem, 70px); letter-spacing: -.035em; line-height: 1; }
.bt-opt__p { font-family: var(--f-head); font-weight: 600; font-size: clamp(42px, 5rem, 110px); letter-spacing: -.045em; line-height: 1; }
.bt-opt__p small { font-family: var(--f-body); font-weight: 400; font-size: .24em; letter-spacing: 0; color: rgb(var(--c-vmuted)); }
@media (hover: hover) { .bt-opt:hover { border-top-color: rgb(var(--c-white)); } }
.bt-btns .ln__in { display: flex; flex-wrap: wrap; gap: .75rem; }
.bt-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem; background: rgb(var(--c-g2)); color: rgb(var(--c-white)); font-weight: 500; font-size: 15px; transition: background .25s ease; }
.bt-btn::after { content: "→"; margin-left: .8em; }
.bt-btn--fill { background: rgb(var(--c-white)); color: rgb(var(--c-black)); }
@media (hover: hover) { .bt-btn:hover { background: rgb(var(--c-g3)); } .bt-btn--fill:hover { background: rgb(var(--c-grey-50)); } }
.bt-notes { font-size: 15px; color: rgb(var(--c-vmuted)); display: grid; gap: .2rem; }
.bt--options { gap: 2.25rem; }
@media (max-width: 680px) { .bt-options { grid-template-columns: 1fr; } .bt-table .ln__in { grid-template-columns: 1fr 1fr; } .bt-table .ln__in span:first-child { grid-column: 1 / -1; } }

/* the onboarding phones */
.bt--media { flex-direction: row; align-items: center; justify-content: space-between; gap: 4rem; }
.bt-media { display: flex; gap: 2.5rem; }
.bt-media figure { display: grid; gap: 1rem; justify-items: center; }
.bt-phone { width: min(15rem, 28cqw); aspect-ratio: 390 / 844; overflow: hidden; border-radius: 2.2rem; background: #ecebe7; outline: 6px solid #1d1b19; outline-offset: 0; }
.bt-phone img { width: 100%; height: auto; display: block; }
.bt-media figcaption { font-size: 15px; color: rgb(var(--c-vmuted)); }
@media (max-width: 980px) { .bt--media { flex-direction: column; align-items: flex-start; } }

/* contact at the end */
.bt-contact { display: grid; gap: .2rem; font-size: clamp(17px, 1.25rem, 26px); color: rgb(var(--c-vmuted)); }
.bt-contact a { color: rgb(var(--c-white)); }
@media (max-width: 680px) { .bt { padding: calc(var(--cb-h) + 2rem) 1.25rem 2.5rem; } }

/* ---------------------------------------------------------------- the ways in and the rings (DualOrbit) */
.tile { aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 22%; border: 0; background: rgb(var(--c-g2)); display: grid; place-items: center; box-sizing: border-box; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--brand .tile__ic { width: 48%; aspect-ratio: 1; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.tile--glyph { background: #ffffff; color: rgb(var(--c-black)); }
.tile__glyph { width: 52%; height: auto; }
.tile__qrbadge { position: absolute; right: 9%; bottom: 9%; width: 30%; aspect-ratio: 1; background: #fff; border-radius: 14%; padding: 4%; box-sizing: border-box; }
.tile__qr { display: block; width: 100%; height: 100%; }
.ob__row { position: absolute; left: 0; right: 0; top: 56%; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; gap: min(1.6cqh, 1.1cqw); }
.ob__slot { flex: none; }
.ob__slot .tile { width: 100%; }
.ob__capture { top: 18%; }
.ob__track { display: none; }
.ob__ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ob__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ob__spin--in { animation: ob-spin 80s linear infinite; }
.ob__spin--out { animation: ob-spin 120s linear infinite reverse; }
.ob__spin--in .spoke__tile { animation: ob-spin 80s linear infinite reverse; }
.ob__spin--out .spoke__tile { animation: ob-spin 120s linear infinite; }
.spoke { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--a)); }
.spoke__tile { position: absolute; top: 0; width: 0; height: 0; }
.spoke__tile .tile { position: absolute; width: min(8.5cqh, 6cqw); transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); }
.ob__node { position: absolute; left: 0; top: 0; width: auto; height: auto; transform: translate(-50%, -50%); background: none; border: 0; display: block; }
.ob__node img { height: min(15cqh, 11cqw); width: auto; display: block; }
.ob__fill { position: absolute; inset: 0; background: #ecebe7; opacity: 0; }
.sting__logo { pointer-events: none; }   /* the brand set's Plotter render (mono, white), the write-in Michael uses */

/* ---------------------------------------------------------------- the sales flow (2026-11-18): options, option pages, booking form */
.bt-opt { display: grid; gap: 1.25rem; align-content: start; }
.bt-opt__acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.bt-link { color: rgb(var(--c-white)); text-decoration: underline; text-decoration-color: rgba(var(--c-grey-50), .35); text-underline-offset: .3em; }
@media (hover: hover) { .bt-link:hover { text-decoration-color: currentColor; } }
.bt-notes { gap: .5rem; }

/* the booking form, on the last frame */
.bt-formwrap { max-width: 860px; }
.bt-form { display: grid; gap: 1.1rem; font-size: 15px; }
.f-hp { position: absolute; left: -9999px; }
.f-opt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; margin: 0; padding: 0; }
.f-opt legend { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font-size: 13px; color: rgb(var(--c-vmuted)); }
.f-opt label { position: relative; cursor: pointer; }
.f-opt input { position: absolute; opacity: 0; pointer-events: none; }
.f-opt label > span { display: grid; gap: 2px; min-height: 60px; box-sizing: border-box; padding: 12px 14px; background: rgb(var(--c-g1)); transition: background .2s ease, box-shadow .2s ease; }
.f-opt b { font-weight: 500; font-size: 16px; color: rgb(var(--c-white)); }
.f-opt small { font-size: 13px; color: rgb(var(--c-vmuted)); }
.f-opt input:checked + span { background: rgb(var(--c-g2)); box-shadow: inset 0 0 0 1px rgba(var(--c-grey-50), .8); }
.f-opt input:focus-visible + span { outline: 2px solid rgb(var(--c-white)); outline-offset: 2px; }
@media (hover: hover) { .f-opt label:hover > span { background: rgb(var(--c-g2)); } }
.f-chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: rgba(var(--c-grey-50), .85); width: fit-content; min-height: 32px; }
.f-chk input { width: 18px; height: 18px; accent-color: #f4ede2; margin: 0; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-field { display: grid; gap: 6px; }
.f-field span { font-size: 13px; color: rgb(var(--c-vmuted)); }
.f-field input, .f-field textarea { box-sizing: border-box; width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 0; background: rgb(var(--c-g1));
  color: rgb(var(--c-white)); font: 400 16px/1.4 var(--f-body); outline: none; box-shadow: inset 0 -1px 0 rgba(var(--c-grey-50), .18); transition: box-shadow .2s ease, background .2s ease; }
.f-field textarea { resize: vertical; min-height: 64px; }
.f-field input:focus, .f-field textarea:focus { background: rgb(var(--c-g2)); box-shadow: inset 0 -2px 0 rgb(var(--c-white)); }
.f-wide { grid-column: 1 / -1; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.f-send { border: 0; cursor: pointer; font-family: var(--f-body); }
.f-send[disabled] { opacity: .6; cursor: default; }
.f-alt { font-size: 14px; color: rgb(var(--c-vmuted)); }
.f-alt a { color: rgb(var(--c-white)); }
.f-err { color: #ffb4a6; font-size: 14px; }
.f-err a { color: inherit; text-decoration: underline; }
.f-done { display: grid; gap: 4px; padding: 18px 20px; background: rgb(var(--c-g2)); }
.f-done b { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.f-done span { color: rgb(var(--c-vmuted)); }
.bt-form.is-sent .f-opt, .bt-form.is-sent .f-chk, .bt-form.is-sent .f-grid, .bt-form.is-sent .f-foot { display: none; }
@media (max-width: 680px) { .f-opt { grid-template-columns: 1fr; } .f-grid { grid-template-columns: 1fr; } }
@media (max-height: 820px) and (min-width: 681px) { .beat#f-40 .bt { gap: 1.25rem; padding-top: calc(var(--cb-h) + 2.5rem); } .beat#f-40 .bt-lines { font-size: clamp(36px, 4rem, 84px); } }

/* the menu's booking link */
.menu__book { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; min-height: 44px; padding: 0 14px; background: rgb(var(--c-white)); color: rgb(var(--c-black)); font-size: 14px; font-weight: 500; }
.menu__book::after { content: "→"; }

/* option pages and compare */
.route { background: rgb(var(--c-black)); }
.rt { box-sizing: border-box; max-width: 1100px; padding: 0 8cqw 7rem; display: grid; gap: 1.25rem; }
.rt-k { font-size: 15px; color: rgb(var(--c-vmuted)); }
.rt-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(48px, 6.5rem, 140px); line-height: .92; letter-spacing: -.045em; }
.rt-price { font-family: var(--f-head); font-weight: 600; font-size: clamp(40px, 4.5rem, 96px); line-height: 1; letter-spacing: -.045em; }
.rt-price small { font-family: var(--f-body); font-weight: 400; font-size: .26em; letter-spacing: 0; color: rgb(var(--c-vmuted)); }
.rt-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0 2.5rem; }
.rt-acts--end { margin: 2.5rem 0 0; }
.rt-sec { margin-top: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(var(--c-grey-50), .14); font-size: 13px; color: rgb(var(--c-vmuted)); }
.rt-list { display: grid; gap: .15em; font-family: var(--f-head); font-weight: 600; font-size: clamp(24px, 2.4rem, 52px); line-height: 1.12; letter-spacing: -.03em; }
.rt-list small { font-family: var(--f-body); font-weight: 400; font-size: 14px; letter-spacing: 0; color: rgb(var(--c-vmuted)); vertical-align: middle; margin-left: .5em; }
.rt-more { font-size: 16px; line-height: 1.5; color: rgb(var(--c-vmuted)); max-width: 60ch; }
.rt-inc { display: grid; }
.rt-inc div { display: grid; grid-template-columns: minmax(9rem, 1fr) 3fr; gap: var(--gutter); padding: .8rem 0; border-bottom: 1px solid rgba(var(--c-grey-50), .08); font-size: 18px; }
.rt-inc span:first-child, .rt-cmp__r span:first-child { color: rgb(var(--c-vmuted)); }
.rt-note { margin-top: 1rem; font-size: 15px; color: rgb(var(--c-vmuted)); }
.rt-cmp { display: grid; }
.rt-cmp__r { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--gutter); align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(var(--c-grey-50), .08); font-size: 17px; }
.rt-cmp__r--inc { align-items: baseline; font-size: 15px; }
.rt-cmp__h { align-items: end; padding-bottom: 1.25rem; border-bottom-color: rgba(var(--c-grey-50), .3); }
.rt-cmp__h span { display: grid; gap: .4rem; justify-items: start; }
.rt-cmp__h b { font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 2rem, 40px); letter-spacing: -.03em; line-height: 1; }
.rt-cmp__h em { font-style: normal; font-family: var(--f-head); font-weight: 600; font-size: clamp(22px, 1.75rem, 34px); letter-spacing: -.03em; }
.rt-cmp__h em small { font-family: var(--f-body); font-weight: 400; font-size: .5em; color: rgb(var(--c-vmuted)); letter-spacing: 0; }
.rt-on, .rt-off { display: block; width: 12px; height: 12px; border-radius: 50%; }
.rt-on { background: rgb(var(--c-white)); }
.rt-off { box-shadow: inset 0 0 0 1px rgba(var(--c-grey-50), .35); }
.route__bar { padding-left: 8cqw; padding-right: 8cqw; }
.route__back { color: rgb(var(--c-vmuted)); }
@media (max-width: 680px) { .rt, .route__bar { padding-left: 20px; padding-right: 20px; } .rt-cmp__r { grid-template-columns: 1.4fr 1fr 1fr; font-size: 15px; } }
.f-done[hidden], .f-err[hidden] { display: none; }
.bt-options { align-items: start; }
/* mid-size lines run wide instead of balancing into narrow two-line blocks */
.bt-lines.bt--m { font-size: clamp(26px, 2.6rem, 58px); text-wrap: pretty; max-width: 26em; }
/* quotes from the Heim team interviews */
.bt-quote { margin: 0; font-family: var(--f-head); font-weight: 500; font-size: clamp(36px, 4.4rem, 98px); line-height: 1.02; letter-spacing: -.04em; max-width: 18em; }
.bt-cite { font-size: clamp(16px, 1.25rem, 24px); color: rgb(var(--c-vmuted)); }

/* ---------------------------------------------------------------- the 16:9 frame (Michael, 2026-11-18)
   On landscape screens the whole film sits in a centred 16:9 frame with black void around it; everything inside sizes
   to the frame (cqw/cqh, and the rem below), not the window. Portrait phones keep the full screen. */
:root { --stw: 100vw; --sth: 100vh; --stx: 0px; --sty: 0px; }
@media (min-aspect-ratio: 1/1) {
  :root { --stw: min(100vw, calc(100vh * 16 / 9)); --sth: calc(var(--stw) * 9 / 16); --stx: calc((100vw - var(--stw)) / 2); --sty: calc((100vh - var(--sth)) / 2); }
}
html.is-film { font-size: calc(var(--stw) / var(--ctx) * 16); }
html.is-film #story { inset: auto; left: var(--stx); top: var(--sty); width: var(--stw); height: var(--sth); container-type: size; }
html.is-film .sting { inset: auto; left: var(--stx); top: var(--sty); width: var(--stw); height: var(--sth); container-type: size; overflow: hidden; }
html.is-film .route { inset: auto; left: var(--stx); top: var(--sty); width: var(--stw); height: var(--sth); container-type: size; }
html.is-film .cb { top: calc(var(--sty) + var(--cb-top)); }
html.is-film .cb--logo { left: calc(var(--stx) + var(--cb-x)); }
html.is-film .cb--menu { right: calc(var(--stx) + var(--cb-x)); }
html.is-film .menu { top: calc(var(--sty) + var(--cb-top) + var(--cb-h) + 6px); right: calc(var(--stx) + var(--cb-x)); max-height: calc(var(--sth) - var(--cb-top) - var(--cb-h) - 26px); overflow-y: auto; }
html.is-film .progress { left: var(--stx); right: auto; width: var(--stw); top: var(--sty); }
/* pillars (Michael, 2026-11-18): shorter columns like his storyboard sketch, the block centred in the frame */
html.is-film .fr--pillars { display: flex; align-items: center; justify-content: center; padding: 0; }
html.is-film .pil { width: min(86cqw, 1500px); margin: 0 auto; }
html.is-film .pil__c { min-height: 0; height: 44cqh; padding-left: 1.5rem; gap: .9rem; }
html.is-film .pil__n { font-size: clamp(44px, 4.5rem, 100px); margin-bottom: .4rem; }
html.is-film .pil__b { max-width: 24ch; }
html.is-film .pil { width: auto; display: grid; grid-template-columns: repeat(3, 22rem); column-gap: 5rem; justify-content: center; }
