/* Proposal stage, carried over from Tradesmark V3 v15/hero.css (2026-11-18): view, world, backlights, drawn
   devices, models, plate, canvas and text. H&V green and mark, G3, brick phone and 8b parts removed. */
.stage { position: sticky; top: 0; width: 100%; height: 100cqh; height: 100cqh; overflow: hidden; }
.hv3-view { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 50%; contain: strict;
  font-family: var(--f-body); -webkit-font-smoothing: antialiased; background: transparent; }
.hv3-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.hv3-world * { transform-style: preserve-3d; }
.hv3-world iframe, .hv3-world .site-frame { transform-style: flat; }
.hv3-back { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; opacity: 0;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(255, 238, 214, .22), rgba(255, 238, 214, .07) 52%, rgba(255, 238, 214, 0) 100%),
    radial-gradient(closest-side at 72% 18%, rgba(196, 214, 255, .10), rgba(196, 214, 255, 0) 70%); }

/* drawn devices: the fallback until the models load */
.box { position: absolute; left: 0; top: 0; }
.face { position: absolute; backface-visibility: hidden; opacity: var(--o, 1); overflow: hidden; }
.face::after { content: ""; position: absolute; inset: 0; background: #000; pointer-events: none; opacity: var(--sh, 0); }
.dev { position: absolute; left: 0; top: 0; }
.dev--iph { --o: 0; --so: 0; }
.mac-base .face, .mac-lidbox .face { background: #c3c5c8; }
.mac-base .face--top { background: #cfd1d4; }
.mac-base .face--front { background: #b1b3b6; }
.mac-kb { position: absolute; left: 21px; right: 21px; top: 16px; height: 108px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent 0 1.2px, #1d1e20 1.2px 18.1px, transparent 18.1px 19.15px), #8e9093;
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 16.4px, transparent 16.4px 18.88px); mask: repeating-linear-gradient(180deg, #000 0 16.4px, transparent 16.4px 18.88px); }
.mac-tp { position: absolute; left: 50%; width: 150px; margin-left: -75px; top: 132px; height: 82px; border-radius: 6px; background: #c6c8cb; }
.mac-hinge, .mac-lid { position: absolute; left: 0; top: 0; }
.face--screen, .mac-lidbox .face--screen { opacity: 1; background: transparent; }
.face--screen::after { display: none; }
.mac-glass { position: absolute; inset: 0; border-radius: 9px 9px 2px 2px; background: rgba(9, 9, 10, var(--o, 1)); }
.mac-notch { position: absolute; left: 50%; top: 0; width: 37px; height: 7.4px; margin-left: -18.5px; border-radius: 0 0 2.5px 2.5px; background: rgba(9, 9, 10, var(--o, 1)); z-index: 2; }
.site-frame { position: absolute; inset: 0; overflow: hidden; }
.site-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #ecebe7; }
.dev--iph .face { background: #cfd1d3; }
.dev--iph .face--back { background: #dcdddf; border-radius: 11.5px; }
.dev--iph .face--front { border-radius: 11.5px; }
.iph-glass { position: absolute; inset: 0; border-radius: 11.5px; background: rgba(9, 9, 10, var(--o, 1)); }
.iph-island { position: absolute; left: 50%; top: 3.4px; width: 15.6px; height: 6.1px; margin-left: -7.8px; border-radius: 3.05px; background: #050505; z-index: 2; opacity: var(--o, 1); }
.iph-plateau { position: absolute; left: 3.8px; right: 3.8px; top: 3.8px; height: 48px; border-radius: 8px; background: #d2d3d5; }
.dev--iph .face--screen { background: transparent; }

/* the models (models.js) */
.hv3-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
/* the live screens ride the world over the models: an explicit order, or the model's glass painted over them (washed-out screens) */
.hv3-world { z-index: 1; }
.has-models .box { display: none; }
.scr { position: absolute; overflow: hidden; backface-visibility: hidden; opacity: var(--so, 1); background: #ecebe7; }
.scr--mac { border-radius: 2.5px 2.5px 0 0; }
.scr--iph { border-radius: 9.6px; }
.hv3-view iframe { pointer-events: none !important; }
.mac-notchfill { position: absolute; background: #292928; border-radius: 0 0 1.7px 1.7px; pointer-events: none; backface-visibility: hidden;
  opacity: calc(var(--so, 0) * var(--o, 1) * var(--nf, 0)); }
.scr-notch { position: absolute; z-index: 3; left: 50%; top: 0; width: 37px; height: 6.4px; margin-left: -18.5px; background: #000; border-radius: 0 0 1.7px 1.7px; pointer-events: none; }

/* the phone's status bar over the hub, in points, scaled to the glass */
.iph-ui { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 2; font-family: -apple-system, "SF Pro Text", "Geist", sans-serif; }
.iph-ui__top { position: absolute; left: 0; right: 0; top: 0; height: 54px; color: #111; }
.iph-ui__island { position: absolute; left: 50%; top: 13.85px; width: 94.7px; height: 36.7px; margin-left: -47.35px; border-radius: 18.35px; background: #000; }
.iph-sb__time { position: absolute; left: calc((100% - 94.7px) / 4 + 3.4px); top: 32.2px; transform: translate(-50%, -50%); font: 600 17px/22px -apple-system, "SF Pro Text", sans-serif; letter-spacing: -.41px; }
.iph-ui__home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; }

/* the plate: the hub's own ground with the Heim logo (V.15's site intro, re-skinned) */
.hv3-plate { position: absolute; overflow: hidden; z-index: 3; pointer-events: none; }
.hv3-curtain { position: absolute; left: 0; right: 0; top: 0; background: #ecebe7; }
.hv3-mark { position: absolute; }
.hv3-mark img { width: 100%; height: 100%; display: block; transform-origin: 50% 80%; }

/* into the screen */
.hv3-canvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.cv-whole { position: absolute; left: 0; top: 0; width: 1440px; transform-origin: 0 0; overflow: hidden; }
.cv-whole iframe { display: block; border: 0; background: #ecebe7; pointer-events: none; }
.cv-whole .cv-notch { width: 176.2px; height: 30.48px; margin-left: -88.1px; border-radius: 0 0 8.1px 8.1px; background: #292928; }

/* text, in the V3 kit's faces */
.tx { position: absolute; left: 0; top: 0; z-index: 4; color: var(--fg, #F4EDE2); will-change: transform, opacity; }
.tx p { margin: 0; }
.tx__label { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4em !important; font: 500 max(11px, calc(var(--sub) * .62))/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-cone)); }
.tx__label i { width: .5rem; height: .5rem; background: currentColor; flex: none; margin-top: .3em; }
.tx__num { margin: 0 0 1em !important; font: 500 max(11px, calc(var(--sub) * .62))/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--c-cone)); }
.tx__title { font-family: var(--f-head); font-weight: 600; font-size: var(--size); line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
.tx__sub { margin-top: .9em !important; font-size: var(--sub); line-height: 1.38; letter-spacing: -.015em; color: var(--fg2); max-width: 34ch; text-wrap: pretty; }
.tx__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.8em !important; }
.tx__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid currentColor; font: 600 15px/1 var(--f-body); white-space: nowrap; color: inherit; transition: background .25s ease, color .25s ease; }
.tx__btn--fill { background: rgb(var(--c-cone)); border-color: rgb(var(--c-cone)); color: rgb(var(--c-black)); }
.tx__btn::after { content: "→"; margin-left: .75em; }
@media (hover: hover) { .tx__btn--fill:hover { background: rgb(var(--c-white)); border-color: rgb(var(--c-white)); } }
.tx__rows { margin-top: 1.4em; font-size: calc(var(--sub) * .9); border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.tx__rows p { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .8em; padding: .6em 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); line-height: 1.3; }
.tx__rows p span:first-child { font: 500 .78em/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--fg2); }
.tx__rows p span:nth-child(2) { color: var(--fg2); }
.tx__rows p.is-h span { font: 500 .78em/1.5 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--c-cone)); }
.tx__fine { margin-top: 1em !important; font-size: calc(var(--sub) * .78); color: var(--fg2); max-width: 40ch; }

/* the five-stop counter (cores 01 to 05) */
.fr--stage { position: relative; }
.stage__count { position: absolute; left: calc(var(--margin) * 3.6); bottom: 6cqh; z-index: 5; display: flex; gap: 6px; opacity: 0; transition: opacity .3s ease; }
.stage__count i { width: 2.25rem; height: 2px; background: rgba(var(--c-grey-50), .22); position: relative; overflow: hidden; }
.stage__count i b { position: absolute; inset: 0; background: rgb(var(--c-cone)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.stage__count.is-on { opacity: 1; }
@media (max-width: 680px) { .stage__count { left: var(--margin); bottom: 3cqh; } }
/* the Heim reveal (video) fills its box; the box is sized by the engine */
.hv3-mark video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.hv3-mark { overflow: visible; }
/* the screens are canvases drawn at their on-slide resolution (engine.js, screenRes) */
.site-frame .scr-cv { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; pointer-events: none; background: #fff; }

/* the screens set their own corner radius in page px (engine.js placeScr) */
.scr--mac, .scr--iph { border-radius: 0; }
/* the device screens take clicks (the viewer can use the hub); nothing in the 3D world sits in front of them for the mouse */
.hv3-view .scr iframe { pointer-events: auto !important; }
.hv3-world .face, .hv3-world .dev, .hv3-world .dev__body, .hv3-world .mac-lid, .hv3-world .mac-hinge { pointer-events: none; }
.hv3-world .scr { pointer-events: auto; }
