/* userpage.ai deck mode. Every rule is scoped to html.deck, which the loader adds when JavaScript runs.
   The page is a game of scenes: one screen each, nothing scrolls. The pictures fill the screen; words,
   easter eggs and the button that plays the next scene appear where they belong, when they belong.
   html.still marks reduced motion: the same scenes, stills instead of clips, no ambient animation.
   Without JavaScript none of this applies and the page reads top to bottom (see index.html). */

html.deck{
  --plan:#0a1f30;
  --edge:max(var(--gutter),calc((100% - var(--max)) / 2 + var(--gutter)));
  --banner-h:min(32vh,max(calc(100vw / 4.3739),26vh));
  /* glass */
  --glass:rgba(14,34,58,.42);
  --glass-line:rgba(255,255,255,.14);
  --blue:rgba(22,52,92,.52);
  height:100%;overflow:hidden;overscroll-behavior:none;background:var(--plan);
}
html.deck body{height:100%;overflow:hidden;background:var(--plan)}
html.deck main{position:fixed;inset:0;z-index:1}
html.deck header.top{position:fixed;top:0;left:0;right:0}

/* ---------- header: the company name, in gold, glowing a little more with every scene ---------- */
html.deck .mark{position:relative;line-height:1.4}
html.deck .mark-text{color:var(--gold);padding:0 2px;
  text-shadow:0 0 calc(2px + 12px * var(--p,0)) rgba(255,208,128,calc(.05 + .33 * var(--p,0)))}
/* a red underline tracks the progress */
html.deck .mark-text::after{content:"";position:absolute;left:2px;bottom:-3px;height:2px;width:calc((100% - 4px) * var(--p,0));border-radius:2px;
  background:linear-gradient(90deg,#9e2f27,#d24a3b);box-shadow:0 0 6px rgba(210,74,59,.4)}
/* a very subtle sparkle */
html.deck .sparks{display:block;position:absolute;inset:0;pointer-events:none}
html.deck .sparks i{position:absolute;width:7px;height:7px;opacity:0;
  background:radial-gradient(circle,#fff6dc 0 1px,transparent 1.5px),linear-gradient(#ffe3a3,#ffe3a3) center/1px 100% no-repeat,linear-gradient(#ffe3a3,#ffe3a3) center/100% 1px no-repeat;
  animation:twinkle 7s ease-in-out infinite}
html.deck .sparks i:nth-child(1){left:9%;top:6%;animation-delay:.6s}
html.deck .sparks i:nth-child(2){left:52%;top:62%;animation-delay:3.1s}
html.deck .sparks i:nth-child(3){left:86%;top:10%;animation-delay:5.2s}
@keyframes twinkle{0%,82%,100%{opacity:0;transform:scale(.3) rotate(0)}88%{opacity:.85;transform:scale(1) rotate(45deg)}94%{opacity:0;transform:scale(.4) rotate(90deg)}}
/* "Follow the build" arrives in the header once you leave the first scene; on phones it is the temple symbol */
html.deck .hdr-cta{display:inline-flex;position:absolute;right:var(--gutter);top:50%;margin-top:-19px;padding:11px 17px;font-size:14px;visibility:hidden;opacity:0}
html.deck .cta-glyph{display:none;width:21px;height:21px}
/* back a scene */
html.deck .hdr-back{display:grid;place-items:center;position:absolute;left:var(--gutter);top:50%;width:38px;height:38px;margin-top:-19px;padding:0;border-radius:50%;
  border:1px solid rgba(212,173,98,.35);background:transparent;color:var(--gold);cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,background .2s}
html.deck .hdr-back.on{opacity:.75;visibility:visible}
html.deck .hdr-back:hover{opacity:1;background:rgba(212,173,98,.14)}
html.deck .hdr-back svg{width:19px;height:19px}

/* ---------- backdrop: the horizon banner on the first screen, a soft blurred plan behind the rest ---------- */
html.deck #backdrop{display:block;position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:var(--plan)}
html.deck .bd-plan{position:absolute;left:50%;top:var(--top-bar);height:var(--banner-h);aspect-ratio:1942/444;
  transform:translateX(-50%);transform-origin:50% 50%;will-change:transform;--fade:0;
  -webkit-mask-image:linear-gradient(180deg,#000 52%,rgba(0,0,0,var(--fade)) 100%),linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(180deg,#000 52%,rgba(0,0,0,var(--fade)) 100%),linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);mask-composite:intersect}
html.deck .bd-pan{position:absolute;inset:0;will-change:transform}
html.deck .bd-pan img{position:absolute;inset:0;width:100%;height:100%;max-width:none}
html.deck .bd-soft{opacity:0}
html.deck .bd-life{position:absolute;inset:0;width:100%;height:100%;opacity:0}
html.deck .bd-dim{position:absolute;inset:0;background:var(--plan);opacity:0}

/* ---------- scenes: one screen each, stacked; motion.js shows one at a time ---------- */
html.deck .scene{position:absolute;inset:0;padding:calc(var(--top-bar) + 22px) var(--edge) 22px;border:0;overflow:hidden;visibility:hidden;opacity:0;
  display:grid;grid-template-columns:minmax(280px,400px) minmax(0,1fr);grid-template-areas:"copy stage";gap:clamp(28px,4vw,56px);align-items:center}
html.deck .hero{visibility:visible;opacity:1}
html.deck .scene>*{max-width:none;margin:0}
/* a scene's still loads only once the scene is next up (motion.js marks it near) */
html.deck .scene:not(.near) .art>.still{display:none}
html.deck .copy{grid-area:copy;display:grid;align-content:center;min-height:0}
html.deck .copy>*+*{margin-top:0}
html.deck .copy>*{margin-bottom:14px}
html.deck .stage{grid-area:stage;margin:0;position:relative;height:100%;min-height:0;display:grid;place-items:center;padding:12px 0;container-type:size}
/* the art keeps its own shape and fits the stage */
html.deck .art{grid-area:1/1;position:relative;z-index:0;isolation:isolate;width:min(100cqw,calc(100cqh * var(--ar)));aspect-ratio:var(--ar);border-radius:14px;overflow:hidden;background:#0b1828;border:1px solid rgba(42,69,98,.8);box-shadow:0 24px 60px rgba(0,0,0,.35)}
html.deck .art>.still,html.deck .art>video,html.deck .art>canvas,html.deck .art>.layer{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.deck .art>video,html.deck .art>.layer,html.deck .art>canvas{opacity:0;transition:opacity .3s ease}
html.deck .art>.on{opacity:1}
html.deck .art>svg.fx{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:900}
html.deck .art.cut>*{transition:none!important}
/* full-screen scenes: the picture is the screen, with a little air above and below */
html.deck .scene.full{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage";padding:calc(var(--top-bar) + 10px) 14px 12px}
html.deck .scene.full .stage{padding:0}
html.deck .dock{display:none}

/* ---------- the overlay: words, easter eggs and buttons, on the picture or in the space beside it ---------- */
/* motion.js measures the art inside its stage (--al, --at, --aw, --ah); .pt elements sit at a point of the art
   (--x, --y as fractions), anchored by --ax/--ay; data-pin elements sit in a corner of the stage */
html.deck .ov{position:absolute;inset:0;pointer-events:none;z-index:5;display:block;margin:0}
html.deck .ov>*,html.deck .ov .heading>*,html.deck .grp>*{pointer-events:auto}
html.deck .ov>*{position:absolute;margin:0;opacity:0;visibility:hidden;translate:0 10px;
  transition:opacity .5s ease,translate .5s cubic-bezier(.2,.8,.2,1),visibility .5s}
html.deck .ov>.on{opacity:1;visibility:visible;translate:0 0}
html.deck .pt{left:calc(var(--al,0px) + var(--aw,0px) * var(--x,.5));top:calc(var(--at,0px) + var(--ah,0px) * var(--y,.5));
  transform:translate(calc(var(--ax,-50%) + var(--sx,0px)),var(--ay,-50%))}
html.deck .pt.al{--ax:0%}
html.deck .pt.ar{--ax:-100%}
html.deck .pt.at{--ay:0%}
html.deck .pt.ab{--ay:-100%}
/* an easter egg placed by its point of light: the dot sits exactly at the spot */
html.deck .pt.ad{--ax:-5.5px}
/* an element as wide as a share of the picture (--w) */
html.deck .pt.fw{max-width:calc(var(--aw,800px) * var(--w,.3))}
html.deck .ov>.say.fw{font-size:clamp(13px,calc(var(--aw,800px) * .021),17px)}
/* an element set on a plane of the drawing (motion.js works out its perspective) */
html.deck .ov>[data-plane]{left:0;top:0;transform-origin:0 0;transform:var(--m,none)}
html.deck .ov>.alert{width:300px}
html.deck [data-pin]{max-width:min(400px,max(260px,calc((100% - var(--aw,0px)) / 2 - 28px)))}
html.deck [data-pin="tl"]{left:8px;top:8px}
html.deck [data-pin="tr"]{right:8px;top:8px}
html.deck [data-pin="bl"]{left:8px;bottom:8px}
html.deck [data-pin="br"]{right:8px;bottom:8px}
html.deck [data-pin="ml"]{left:8px;top:48%;transform:translateY(-50%)}

/* glass */
html.deck .glass,html.deck .box.full,html.deck .say,html.deck .alert,html.deck .act{
  -webkit-backdrop-filter:blur(14px) saturate(1.25);backdrop-filter:blur(14px) saturate(1.25)}
html.deck .glass{background:var(--glass);border:1px solid var(--glass-line);border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 32px rgba(0,0,0,.32)}

/* titles that write themselves */
html.deck .ttl{font:500 clamp(22px,2.6vw,34px)/1.15 var(--serif);color:var(--cream);text-shadow:0 2px 18px rgba(5,15,28,.8)}
html.deck .ttl.glass{padding:12px 18px 13px}
html.deck .ttl.plain{white-space:nowrap;text-shadow:0 2px 14px rgba(5,15,28,.95),0 0 24px rgba(212,173,98,.25)}
html.deck [data-type] .ch{opacity:0}
html.deck [data-type] .ch.in{opacity:1}
html.deck [data-type].typing::after{content:"";display:inline-block;width:2px;height:.85em;margin-left:3px;vertical-align:-.08em;background:var(--gold);animation:caret 1s steps(2,start) infinite}
@keyframes caret{to{visibility:hidden}}

/* easter eggs: no bubble, just gold words with a point of light; tap or hover explains them */
html.deck .egg{display:inline-flex;align-items:center;gap:7px;padding:4px 2px;border:0;background:none;cursor:help;white-space:nowrap;
  font:600 11.5px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#f3d593;text-shadow:0 1px 3px rgba(5,15,28,.95),0 0 12px rgba(5,15,28,.9)}
html.deck .egg::before{content:"";width:7px;height:7px;border-radius:50%;background:#ffe3a3;box-shadow:0 0 0 3px rgba(255,227,163,.18),0 0 10px rgba(255,214,140,.9)}
html.deck .egg:hover,html.deck .egg:focus-visible{color:#fff4d8}
/* near the right edge of its picture, an easter egg's words run to the left of its point of light */
html.deck .egg.flip{flex-direction:row-reverse}
html.deck .pt.ad.flip{--ax:calc(-100% + 5.5px)}
/* its explainer opens around it: the egg's own words become the box's title, in place, and the box only
   moves (up or left) when it would leave the screen */
html.deck .tip{position:fixed;inset:auto;left:var(--tx,50%);top:var(--ty,50%);margin:0;max-width:min(320px,calc(100vw - 24px));
  padding:8px 14px 13px 12px;border-radius:12px;border:1px solid rgba(212,173,98,.55);background:rgba(13,30,50,.95);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#e3eaf2;font:400 14.5px/1.5 var(--sans);box-shadow:0 18px 44px rgba(0,0,0,.5)}
html.deck .tip b{display:flex;align-items:center;gap:7px;width:max-content;padding:4px 2px;margin:0 0 6px;font:600 11.5px/1 var(--sans);
  letter-spacing:.12em;text-transform:uppercase;color:#fff4d8;white-space:nowrap}
html.deck .tip b::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:#ffe3a3;box-shadow:0 0 0 3px rgba(255,227,163,.18),0 0 10px rgba(255,214,140,.9)}
/* on the book's cream paper the labels are written in ink */
html.deck .egg.ink{color:#5a3b12;text-shadow:0 0 6px rgba(255,248,232,.95),0 0 14px rgba(255,248,232,.85)}
html.deck .egg.ink::before{background:#b8862f;box-shadow:0 0 0 3px rgba(184,134,47,.22),0 0 8px rgba(184,134,47,.6)}
html.deck .egg.ink:hover,html.deck .egg.ink:focus-visible{color:#2e1d06}
/* the dashboard keeps its terms hidden until you point at it */
html.deck .stage[data-reveal="hover"] .egg.on{opacity:0}
html.deck .stage[data-reveal="hover"].peek .egg.on,html.deck .stage[data-reveal="hover"] .egg.on:focus-visible{opacity:1}

/* speech: blue glass with a gold outline, and a tail toward the speaker */
html.deck .say{max-width:min(380px,80vw);padding:13px 17px 14px;border-radius:18px;border:1.5px solid rgba(212,173,98,.85);background:var(--blue);color:var(--cream);
  font:400 16.5px/1.45 var(--serif);box-shadow:0 12px 30px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.08)}
html.deck .say::after,html.deck .act.bub::after{content:"";position:absolute;width:16px;height:16px;background:inherit;border:0 solid;border-color:inherit}
html.deck [data-tail^="b"]::after{top:100%;margin-top:-8px;border-right-width:1.5px;border-bottom-width:1.5px;transform:rotate(45deg);clip-path:polygon(100% 0,100% 100%,0 100%)}
html.deck [data-tail^="t"]::after{bottom:100%;margin-bottom:-8px;border-left-width:1.5px;border-top-width:1.5px;transform:rotate(45deg);clip-path:polygon(0 0,100% 0,0 100%)}
html.deck [data-tail$="l"]::after{left:26px}
html.deck [data-tail$="r"]::after{right:26px}
html.deck [data-tail="l"]::after{left:-8px;right:auto;top:var(--tail-y,50%);margin:-8px 0 0;border-left-width:1.5px;border-bottom-width:1.5px;transform:rotate(45deg);clip-path:polygon(0 0,0 100%,100% 100%)}
html.deck [data-tail="r"]::after{right:-8px;left:auto;top:50%;margin:-8px 0 0;border-right-width:1.5px;border-top-width:1.5px;transform:rotate(45deg);clip-path:polygon(0 0,100% 0,100% 100%)}
/* the visitor's own words, when they aren't a button */
html.deck .say.user{font:500 15.5px/1.4 var(--sans);background:rgba(30,62,104,.5)}
/* a thought, drawn in the blueprint's gold line */
html.deck .think{width:min(250px,21vw,calc(var(--aw,1200px) * .28));aspect-ratio:260/170}
html.deck .think svg{display:block;position:absolute;inset:0;width:100%;height:100%}
html.deck .think span{position:absolute;left:12%;right:8%;top:22%;bottom:28%;display:grid;place-items:center;padding:0;border:0;background:none;
  font:italic 500 clamp(17px,1.6vw,22px)/1.2 var(--serif);color:#f6e2b6;text-align:center;text-shadow:0 0 12px rgba(212,173,98,.45)}

/* the buttons that play the next scene: gold glass */
html.deck .act{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border-radius:999px;cursor:pointer;white-space:nowrap;
  font:600 16px/1 var(--sans);letter-spacing:.01em;color:#1a1408;
  background:linear-gradient(140deg,rgba(255,232,178,.94),rgba(222,184,110,.88) 42%,rgba(184,140,66,.9));
  border:1px solid rgba(255,240,205,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -10px 18px rgba(120,80,20,.22),0 12px 28px rgba(0,0,0,.38);
  transition:opacity .5s ease,translate .5s cubic-bezier(.2,.8,.2,1),visibility .5s,filter .2s}
html.deck .act:hover{filter:brightness(1.07) saturate(1.05)}
html.deck .act.on{animation:ready 3.4s ease-in-out .6s infinite}
@keyframes ready{0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -10px 18px rgba(120,80,20,.22),0 12px 28px rgba(0,0,0,.38),0 0 0 0 rgba(212,173,98,0)}
  50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.65),inset 0 -10px 18px rgba(120,80,20,.22),0 12px 28px rgba(0,0,0,.38),0 0 26px 3px rgba(212,173,98,.35)}}
/* a button that is the visitor's line of dialogue: a gold glass speech bubble */
html.deck .act.bub{border-radius:20px;padding:15px 24px;font:600 16.5px/1.3 var(--sans);white-space:normal;text-align:left;max-width:min(340px,80vw)}
html.deck .act.bub::after{background:rgba(206,166,92,.92)}
/* the book's controls */
html.deck .chev{display:grid;place-items:center;width:58px;height:58px;padding:0 0 4px;border-radius:50%;font:400 34px/1 var(--serif)}
html.deck .chev.ff{width:46px;height:46px;font-size:26px;padding-bottom:3px;margin-top:62px}
html.deck .chev.prev{color:#1a1408;background:linear-gradient(140deg,rgba(255,232,178,.6),rgba(184,140,66,.55));border:1px solid rgba(255,240,205,.6);cursor:pointer;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.deck .chev:not(.ff){margin-left:18px}
html.deck .chev.prev{margin-left:-18px}
/* 11 · the book's controls are shapes: a gold glass chevron forward, a blue one back, a blue fast-forward */
html.deck .chev.shaped{width:62px;height:100px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;font-size:0;
  -webkit-backdrop-filter:none;backdrop-filter:none;animation:none;filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}
html.deck .chev.shaped .gs{position:absolute;inset:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  background:linear-gradient(140deg,rgba(255,232,178,.95),rgba(222,184,110,.9) 42%,rgba(184,140,66,.92));
  clip-path:polygon(13.3% 5%,51.7% 5%,91.7% 50%,51.7% 95%,13.3% 95%,53.3% 50%)}
html.deck .chev.shaped svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html.deck .chev.shaped path{fill:none;stroke:rgba(255,240,205,.9);stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
html.deck .chev.shaped.prev .gs,html.deck .chev.shaped.ff .gs{background:linear-gradient(140deg,rgba(74,116,168,.8),rgba(28,58,98,.85))}
html.deck .chev.shaped.prev .gs{clip-path:polygon(86.7% 5%,48.3% 5%,8.3% 50%,48.3% 95%,86.7% 95%,46.7% 50%)}
html.deck .chev.shaped.prev path,html.deck .chev.shaped.ff path{stroke:rgba(212,173,98,.95)}
html.deck .chev.shaped.ff{width:74px;height:44px;margin:84px 0 0 12px}
html.deck .chev.shaped.ff .gs{clip-path:polygon(4% 10%,48% 50%,48% 10%,96% 50%,48% 90%,48% 50%,4% 90%)}
html.deck .chev.shaped.on{animation:shapeglow 3.4s ease-in-out .6s infinite}
html.deck .chev.shaped:hover,html.deck .chev.shaped:focus-visible{filter:drop-shadow(0 8px 14px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(255,214,140,.7))}
@keyframes shapeglow{0%,100%{filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}50%{filter:drop-shadow(0 8px 14px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(255,214,140,.6))}}
/* 7 · "Cut them off", twice the size, on the case */
html.deck .ov>.act.huge{padding:28px 56px;font-size:32px}
/* 15 · the box at work: a bar that fills; its easter eggs are the status markers */
html.deck .meter{width:calc(var(--aw,800px) * .81);height:10px;border-radius:999px;background:rgba(10,26,44,.72);border:1px solid rgba(212,173,98,.55);
  box-shadow:inset 0 1px 3px rgba(0,0,0,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.deck .meter i{position:absolute;left:0;top:0;bottom:0;width:calc(var(--p,0) * 100%);border-radius:inherit;background:linear-gradient(90deg,#b98a3c,#f3d593);box-shadow:0 0 12px rgba(255,214,140,.6)}
html.deck .meter b{position:absolute;left:calc(var(--t) * 100%);top:-6px;bottom:-6px;width:1.5px;background:rgba(243,213,147,.85)}

/* boxes: the important words, on glass */
html.deck .box{padding:0;border-radius:16px;border:1px solid transparent;
  transition:opacity .5s ease,translate .5s cubic-bezier(.2,.8,.2,1),visibility .5s,background .6s,border-color .6s,padding .6s,box-shadow .6s}
html.deck .box.full{padding:16px 18px 18px;background:var(--glass);border-color:var(--glass-line);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.35)}
html.deck .box.yes.full{background:linear-gradient(160deg,rgba(212,173,98,.24),rgba(14,34,58,.5) 60%);border-color:rgba(212,173,98,.5)}
html.deck .box .tag{position:relative;white-space:nowrap;font:700 14px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#f3c9bd;text-shadow:0 1px 10px rgba(5,15,28,.9)}
html.deck .box.yes .tag{color:#f3d593}
html.deck .box .tag-a{display:block;position:absolute;left:0;top:0;opacity:0}
html.deck .box .tag .w{display:inline-block;white-space:pre}
html.deck .box .more{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .6s ease,opacity .6s ease .2s}
html.deck .box .more>*{min-height:0;overflow:hidden}
html.deck .box.full .more{grid-template-rows:1fr;opacity:1}
html.deck .box h3{font-size:19px;margin:10px 0 6px}
html.deck .box p:not(.tag){color:#d3dce6;font-size:14.5px;line-height:1.5}
/* while the family asks: a speech bubble between the three houses */
/* the boxes inside the trust frame: a little smaller, so they fit the space Michael gave them */
html.deck #trust .ov>.box.full{padding:13px 15px 14px}
html.deck #trust .ov>.box .tag{font-size:clamp(11px,calc(var(--aw,800px) * .0165),13px)}
html.deck #trust .ov>.box h3{font-size:16.5px;margin:8px 0 4px}
html.deck #trust .ov>.box p:not(.tag){font-size:clamp(12.5px,calc(var(--aw,800px) * .017),13.5px);line-height:1.45}
/* 10 · the box the words fly into: there, but unseen, until they land */
html.deck .box.full.quiet{background:transparent;border-color:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.deck .box.quiet .more{opacity:0}
html.deck .box.yes .tag .w{transition:opacity .35s ease}
html.deck .box.quiet .tag .w{opacity:0}
.flying{position:fixed;z-index:60;margin:0;pointer-events:none;white-space:nowrap;transform-origin:0 0;line-height:1.2}
/* 10 · "Always.": one bubble, three tails, one to each home */
html.deck .say.trio{width:calc(var(--aw,800px) * .425);height:calc(var(--ah,800px) * .154);max-width:none;padding:0;border:0;background:none;
  box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
html.deck .say.trio::after{display:none}
html.deck .say.trio svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html.deck .say.trio path{fill:rgba(18,42,72,.88);stroke:#d4ad62;stroke-width:1.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
html.deck .say.trio .t{position:absolute;left:20%;right:20%;top:53%;bottom:3%;display:grid;place-items:center;font:italic 500 21px/1 var(--serif);color:var(--cream)}
html.deck .box.as-say{max-width:min(420px,40vw);padding:12px 18px;border-color:rgba(212,173,98,.85);background:var(--blue);border-radius:18px;border-width:1.5px}
html.deck .box.as-say .tag{font:500 18px/1.3 var(--serif);letter-spacing:0;text-transform:none;color:var(--cream)}
html.deck .heading{max-width:min(420px,max(260px,calc((100% - var(--aw,0px)) / 2 - 28px)))}
html.deck .heading .ttl{display:block}
html.deck .heading .sub{margin-top:8px;font:italic 400 18px/1.35 var(--serif);color:#e8d3a6;text-shadow:0 2px 12px rgba(5,15,28,.9)}
/* in the frame: the heading takes the picture's top left; a title that has left takes no room */
html.deck .heading.pt{max-width:calc(var(--aw,800px) * .82)}
html.deck .heading.pt .ttl{font-size:clamp(18px,calc(var(--aw,800px) * .041),34px)}
html.deck #trust .heading>:not(.on){display:none}
html.deck .heading>*{opacity:0;transition:opacity .5s ease}
html.deck .heading>.on{opacity:1}

/* the alert: red glass, with traces running through it */
html.deck .grp{display:grid;gap:14px;justify-items:start;max-width:min(380px,34vw)}
html.deck .grp>*{opacity:0;visibility:hidden;translate:0 10px;transition:opacity .5s ease,translate .5s cubic-bezier(.2,.8,.2,1),visibility .5s}
html.deck .grp>.on{opacity:1;visibility:visible;translate:0 0}
html.deck .alert{position:relative;overflow:hidden;display:grid;gap:4px;padding:15px 18px 16px 46px;border-radius:14px;color:#ffd9d2;
  background:linear-gradient(150deg,rgba(150,28,26,.5),rgba(70,12,16,.55));border:1px solid rgba(255,110,96,.7);
  box-shadow:0 0 0 1px rgba(255,90,80,.15),0 14px 34px rgba(60,0,0,.45),inset 0 1px 0 rgba(255,200,190,.15);font:400 14.5px/1.45 var(--sans)}
html.deck .alert b{font:700 12px/1.2 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#ffb0a2}
html.deck .alert::before{content:"!";position:absolute;left:15px;top:15px;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  font:800 13px/1 var(--sans);color:#2a0606;background:#ff8a7a;box-shadow:0 0 12px rgba(255,120,100,.8)}
html.deck .trace{display:block;position:absolute;inset:0;width:100%;height:100%;color:rgba(255,130,115,.32);fill:rgba(255,150,130,.5);pointer-events:none}
html.deck .trace path{stroke-dasharray:6 10;animation:trace 4s linear infinite}
@keyframes trace{to{stroke-dashoffset:-64}}
html.deck .alert>b,html.deck .alert>span{position:relative}

/* the dashboard's notice as he comes home */
html.deck .notice{display:grid;gap:3px;padding:11px 16px 11px 40px;color:var(--cream);font:400 13px/1.3 var(--sans)}
html.deck .notice::before{content:"";position:absolute;left:15px;top:50%;width:12px;height:12px;margin-top:-6px;border-radius:50%;background:#7fd38a;box-shadow:0 0 10px rgba(127,211,138,.8)}
html.deck .notice b{font:500 17px/1.2 var(--serif);color:var(--cream)}
html.deck .notice span{color:var(--muted);letter-spacing:.04em}

/* text glow-up */
html.deck .glow{text-shadow:0 0 24px rgba(212,173,98,.22),0 0 2px rgba(241,232,214,.18)}
html.deck .hero h1{background:linear-gradient(115deg,var(--cream) 0 42%,#fff3d2 47%,#ffffff 50%,#fff3d2 53%,var(--cream) 58% 100%);background-size:300% 100%;background-position:100% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:-.6px 0 rgba(255,70,110,.2),.6px 0 rgba(70,200,255,.2);animation:shine 20s linear 1.5s infinite}
@keyframes shine{0%{background-position:100% 0}15%{background-position:0% 0}100%{background-position:0% 0}}
html.deck .breathe{animation:breathe 5s ease-in-out infinite}
@keyframes breathe{0%,100%{text-shadow:0 2px 6px rgba(212,173,98,.12)}50%{text-shadow:0 3px 16px rgba(212,173,98,.55),0 0 2px rgba(255,236,190,.35)}}

/* a soft glow that breathes over a held frame, so something is always moving */
html.deck .glowspot{position:absolute;z-index:900;left:var(--gx,50%);top:var(--gy,50%);width:var(--gs,26%);aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(255,220,150,.35),rgba(255,220,150,0) 65%);mix-blend-mode:screen;opacity:0;transition:opacity .6s ease}
html.deck .glowspot.on{opacity:1;animation:spot 3.2s ease-in-out infinite}
@keyframes spot{0%,100%{transform:translate(-50%,-50%) scale(.85);filter:brightness(.8)}50%{transform:translate(-50%,-50%) scale(1.12);filter:brightness(1.25)}}

/* ---------- 1 · banner ---------- */
html.deck .hero{display:block;padding:0}
html.deck .hero .banner{display:none}
html.deck .hero .copy{display:block;position:relative;max-width:var(--max);margin:0 auto;padding:calc(var(--top-bar) + var(--banner-h) - clamp(26px,5vh,52px)) var(--gutter) 0}
html.deck .hero .copy>*{margin-bottom:0}
html.deck .hero .eyebrow{color:var(--cream);text-shadow:0 1px 14px rgba(10,31,48,.95),0 0 3px rgba(10,31,48,.9)}
html.deck .hero h1{font-size:min(clamp(44px,8vw,92px),9vh);margin:12px 0 14px;padding-bottom:.08em}
@media (min-width:900px){html.deck .hero h1 br{display:none}}
@media (min-width:900px){
  html.deck #os{grid-template-columns:minmax(0,1fr) minmax(280px,400px);grid-template-areas:"stage copy"}
  /* scene 3's Unlock the door: the big button under the pictures */
  html.deck .ov>.act.big{padding:19px 44px;font-size:19px;min-width:280px}
}
html.deck .hero .lede{font-size:clamp(16px,min(1.9vw,2.4vh),21px)}
html.deck .hero .act.big{margin-top:clamp(18px,3.2vh,32px);min-width:min(340px,100%);padding:19px 40px;font-size:19px;opacity:0;visibility:hidden;translate:0 10px}
html.deck .hero .act.big.on{opacity:1;visibility:visible;translate:0 0}
html.deck .hero .foot{position:absolute;left:0;right:0;bottom:0;max-width:var(--max);margin:0 auto;padding:0 var(--gutter) clamp(16px,3vh,28px);display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px}
html.deck .hero .foot .actions{margin:0;flex-direction:row}
html.deck .hero .byline{margin:0}

/* ---------- 2 · the OS: the arena word lights while its card plays; the dashboard powers on like a CRT ---------- */
html.deck .arena{transition:color .5s ease,text-shadow .5s ease;border-radius:4px}
html.deck .arena.lit{color:var(--cream);text-shadow:0 0 12px rgba(255,214,140,.7),0 0 2px rgba(255,236,190,.6)}
html.deck #os .art.power{animation:crt .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes crt{0%{transform:scale(1,.006);filter:brightness(3)}35%{transform:scale(1,.006);filter:brightness(3)}60%{transform:scale(1,1.02);filter:brightness(1.6)}100%{transform:none;filter:none}}
html.deck #os .stage,html.deck #close .stage{padding:4px 0}
html.deck .copy .act{justify-self:start;margin-top:8px;opacity:0;visibility:hidden;translate:0 10px}
html.deck .copy .act.on{opacity:1;visibility:visible;translate:0 0}

/* ---------- 3 · home: on phones the two panels stack (drawn into a canvas) ---------- */
html.deck #home .split{z-index:500}
html.deck #home .beam{opacity:0}
html.deck #home .beam.on{opacity:1}

/* ---------- 4-7 · the architect: the art is cropped a little so its own card border falls outside ---------- */
html.deck #work .art>video,html.deck #work .art>.still,html.deck #work .art>svg.fx{transform:scale(1.055)}
html.deck #work .ring{opacity:0}

/* ---------- 11-16 · the workbook, the drawing, the vault, the build guide ---------- */
html.deck .art.bare{background:none;border:0;box-shadow:none;overflow:visible}
/* the vault's clips sit on black: behind them, a navy that melts into the page, for them to lighten onto */
html.deck .art.bare.vaulted{background:#0c1d30;box-shadow:0 0 70px 36px #0c1d30;transition:background .6s,box-shadow .6s}
html.deck .art.lfl{container-type:size;--ph:min(88cqh,66cqw);--pw:calc(var(--ph) * .73)}
html.deck .art.lfl>.still{opacity:0}
html.deck .lfl .b3d,html.deck .lfl .b3d-sketch{position:absolute;inset:0;margin:auto}
html.deck .lfl .b3d{z-index:450}
html.deck .b3d{width:calc(var(--pw) * 2);height:var(--ph);perspective:2400px}
html.deck .b3d-book{position:relative;width:100%;height:100%;--tl:0;--tr:1;--mt:calc(var(--pw) * .05)}
html.deck .b3d-closed{position:absolute;top:0;left:calc(50% - var(--pw) / 2);width:var(--pw);height:var(--ph);transform-style:preserve-3d;--T:calc(var(--pw) * .11);z-index:2}
html.deck .bc-face{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden}
html.deck .bc-face img{display:block;width:100%;height:100%;object-fit:cover}
html.deck .bc-front{transform:translateZ(calc(var(--T) / 2));border-radius:2px 5px 5px 2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.3)}
html.deck .bc-back{transform:rotateY(180deg) translateZ(calc(var(--T) / 2))}
html.deck .bc-spine{left:calc(50% - var(--T) / 2);width:var(--T);transform:rotateY(-90deg) translateZ(calc(var(--pw) / 2))}
html.deck .bc-spine img{object-fit:fill}
html.deck .bc-fore{left:calc(50% - var(--T) / 2);width:var(--T);transform:rotateY(90deg) translateZ(calc(var(--pw) / 2 - 2px));background:linear-gradient(90deg,#d9ccb0,#f3ead6 30%,#e6dbc3)}
html.deck .bc-foot{top:calc(50% - var(--T) / 2);height:var(--T);transform:rotateX(-90deg) translateZ(calc(var(--ph) / 2 - 2px));background:linear-gradient(180deg,#e6dbc3,#f3ead6 40%,#d9ccb0)}
/* the page block: a thin, dense band along the bottom edge of each side, deeper as pages pile up there.
   About 220 pages, so it reads as a texture, not as stripes. */
html.deck .b3d-edge{position:absolute;top:0;width:50%;height:100%;pointer-events:none}
html.deck .b3d-edge-l{left:0;--t:calc(var(--tl) * var(--mt))}
html.deck .b3d-edge-r{left:50%;--t:calc(var(--tr) * var(--mt))}
html.deck .b3d-edge::before{content:"";position:absolute;top:100%;height:var(--t);
  background:linear-gradient(180deg,rgba(255,255,255,.25),rgba(0,0,0,.18)),repeating-linear-gradient(180deg,#efe5cf 0 .5px,#ddd0b4 .5px 1px);
  box-shadow:0 10px 24px rgba(0,0,0,.4)}
html.deck .b3d-edge-l::before{left:calc(var(--t) * -.25);right:0;border-radius:0 0 0 6px;clip-path:polygon(calc(var(--t) * .25) 0,100% 0,100% 100%,0 100%)}
html.deck .b3d-edge-r::before{left:0;right:calc(var(--t) * -.25);border-radius:0 0 6px 0;clip-path:polygon(0 0,calc(100% - var(--t) * .25) 0,100% 100%,0 100%)}
html.deck .leaf{position:absolute;left:50%;top:0;width:50%;height:100%;transform-origin:0 50%;transform-style:preserve-3d}
html.deck .face{position:absolute;inset:0;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:0 5px 5px 0;background:#f6efe0}
html.deck .face.back{transform:rotateY(180deg);border-radius:5px 0 0 5px}
html.deck .face img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html.deck .face::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(45,32,14,.32),rgba(45,32,14,.06) 7%,rgba(45,32,14,0) 14%)}
html.deck .face.back::after{background:linear-gradient(270deg,rgba(45,32,14,.32),rgba(45,32,14,.06) 7%,rgba(45,32,14,0) 14%)}
html.deck .face.cover::after,html.deck .face.backcover::after{background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(0,0,0,0) 5%)}
html.deck .face.blank{background:linear-gradient(180deg,#f8f2e5,#f1e9d8)}
html.deck .face.cover,html.deck .face.backcover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
html.deck .b3d-sketch{width:calc(var(--ph) * 1.2);height:calc(var(--ph) * .9);mix-blend-mode:multiply;opacity:0;border-radius:2px;z-index:460}
html.deck .b3d-sketch svg{display:block;width:100%;height:100%;overflow:visible}
html.deck .sk-scribble{stroke-dasharray:1;stroke-dashoffset:1}
html.deck .sk-pencil{opacity:0}
/* a reading lamp over the closed book, its light never quite steady */
html.deck .art.lfl::after{content:"";position:absolute;inset:-6% -10%;z-index:470;pointer-events:none;opacity:0;transition:opacity .8s ease;
  background:radial-gradient(45% 55% at 42% 12%,rgba(255,206,130,.2),rgba(255,206,130,0) 70%)}
html.deck .art.lfl.lamp::after{opacity:1;animation:lamp 5.3s linear infinite}
@keyframes lamp{0%{opacity:.86}11%{opacity:1}16%{opacity:.9}30%{opacity:1}52%{opacity:.82}58%{opacity:.96}77%{opacity:1}100%{opacity:.86}}
/* the vault: its clips sit on black, so they are lightened onto the navy; it leaves room for a button below */
/* the vault clips (and the close, which is also a .layer) sit in the vault's place: 87 % high, whole, lightened onto the backing */
html.deck .lfl>.vault-still,html.deck .lfl>video,html.deck .lfl>.vault-clip{inset:0 0 13% 0;height:87%;object-fit:contain;mix-blend-mode:lighten}
/* the desk around the book fills the frame */
html.deck .lfl>video[data-clip="lfl/computer-to-book"],html.deck .lfl>video[data-clip="lfl/desk-idle"]{inset:0;height:100%;object-fit:cover;mix-blend-mode:normal}
/* the desk is the room around the book, not a box: its edges fade into the backdrop */
html.deck .lfl>video[data-clip="lfl/computer-to-book"],html.deck .lfl>video[data-clip="lfl/desk-idle"]{
  -webkit-mask-image:radial-gradient(ellipse at 50% 50%,#000 52%,transparent 74%);mask-image:radial-gradient(ellipse at 50% 50%,#000 52%,transparent 74%)}
html.deck .lfl>.vault-still,html.deck .lfl>.guide{transition:none}
html.deck .lfl>.guide{display:block;pointer-events:none;opacity:1;z-index:800}
html.deck .guide img{position:absolute;left:50%;top:44%;width:23%;height:auto;margin:0;border-radius:3px;box-shadow:0 14px 34px rgba(0,0,0,.5);opacity:0}
html.deck .intro{max-width:min(380px,calc(var(--al,0px) + var(--aw,0px) * .23 - 24px));display:grid;gap:12px}
html.deck .ov>.intro::before{content:"";position:absolute;inset:-48px -56px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(9,22,38,.88),rgba(9,22,38,.7) 55%,rgba(9,22,38,0))}
html.deck .intro h2{font-size:clamp(28px,3vw,40px)}
html.deck .intro .lede{font-size:16px}
html.deck .intro .cap{color:var(--muted);font-size:14.5px}
html.deck .intro .cap b{color:var(--cream);font-weight:600}
html.deck .snip{max-width:min(210px,19vw,calc(var(--aw,1100px) * .22));padding:9px 12px;color:var(--cream);font:400 13.5px/1.4 var(--sans);text-align:center}

/* ---------- 18 · map: the line to each new city glows as it draws ---------- */
html.deck #map .mstill{transition:none}
html.deck .map-fx{filter:drop-shadow(0 0 4px rgba(255,214,140,.9))}

/* ---------- 19 · horizon ---------- */
html.deck #outward .ttl{max-width:min(520px,60%);display:grid;gap:8px}
html.deck #outward .ttl h2{font-size:clamp(24px,2.6vw,34px)}
html.deck #outward .ttl .lede{font:400 14.5px/1.5 var(--sans);color:#d3dce6}
html.deck #outward .path{display:flex;flex-wrap:wrap;gap:4px 8px;font:400 13px/1.4 var(--sans);color:var(--muted)}
html.deck #outward .path b{color:var(--cream);font-weight:600;transition:color .4s ease,text-shadow .4s ease}
html.deck #outward .path i{font-style:normal;color:var(--gold)}
html.deck #outward .path b.lit{color:var(--gold);text-shadow:0 0 12px rgba(212,173,98,.6)}

/* ---------- 20 · close: out of full screen, like the OS ---------- */
html.deck #close .copy>*{margin-bottom:0}
html.deck #close .copy{gap:14px}
html.deck #close h2{font-size:clamp(34px,4.6vw,58px);animation:breathe 6s ease-in-out infinite}
html.deck #close .actions{margin:6px 0 0}
html.deck #close footer{position:absolute;left:var(--edge);right:var(--edge);bottom:14px;margin:0;font-size:13px}
html.deck #close{padding-bottom:64px}

/* ---------- phones: the picture on top; the words and buttons dock beneath it ---------- */
@media (max-width:899px){
  /* the picture and its words, one group in the middle of the screen: motion.js sizes the stage to the picture */
  html.deck .scene{grid-template-columns:minmax(0,1fr);grid-template-areas:"stage" "copy";grid-template-rows:auto auto;align-content:center;gap:8px;padding:calc(var(--top-bar) + 10px) 16px 16px}
  html.deck .hero{align-content:normal}
  html.deck .scene.full{grid-template-areas:"top" "stage" "dock";grid-template-rows:auto auto auto;padding:calc(var(--top-bar) + 8px) 12px 12px}
  html.deck .stage{padding:0}
  html.deck .copy{align-content:start}
  html.deck .pt{left:calc(var(--al,0px) + var(--aw,0px) * var(--mx,var(--x,.5)));top:calc(var(--at,0px) + var(--ah,0px) * var(--my,var(--y,.5)))}
  /* home: the clip's two panels stack, drawn into a canvas */
  html.deck #home .art{--ar:5/7!important}
  html.deck #home .art>video[data-clip="home/plan-to-twin"],html.deck #home .art>.still[src*="plan-to-twin"]{object-fit:contain}
  html.deck #home .art>svg.fx{display:none}
  html.deck .dock{grid-area:dock;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:0}
  html.deck .dock.up{grid-area:top}
  /* scenes 4-7: the button right under the video */
  html.deck #work .dock>.act{order:-1}
  html.deck .dock .alert{width:100%}
  html.deck .dock>*{position:static;transform:none;max-width:100%;margin:0;opacity:0;visibility:hidden;translate:0 8px;transition:opacity .5s ease,translate .5s ease,visibility .5s}
  html.deck .dock>:not(.inbeat){display:none}
  html.deck .dock>.on{opacity:1;visibility:visible;translate:0 0}
  html.deck .dock>.box{transition:opacity .5s ease,translate .5s ease,visibility .5s,background .6s,border-color .6s,box-shadow .6s}
  html.deck .dock>.act,html.deck .dock>.act.bub{align-self:stretch;max-width:none}
  html.deck .dock>.act.bub{align-self:flex-end;max-width:85%}
  html.deck .dock>.say.user{align-self:flex-start}
  html.deck .dock .box,html.deck .dock .grp,html.deck .dock .intro,html.deck .dock .heading{max-width:none;width:100%}
  html.deck .ov>.think{width:calc(var(--aw,340px) * .42)}
  html.deck .ov>.say.trio .t{font-size:17px}
  /* on the picture, a bubble keeps its width wherever its point is */
  html.deck .ov>.pt.fw,html.deck .ov>.act.bub{width:max-content}
  html.deck .dock .heading .ttl{font-size:22px}
  /* scene 10: his bubbles point up at his head */
  html.deck #trust .ov>[data-tail="l"]{--tail-y:26px}
  /* a bubble on the picture takes its share of it (--mw on phones); docked, it takes the dock's width */
  html.deck .pt.fw{max-width:calc(var(--aw,800px) * var(--mw,var(--w,.3)))}
  html.deck .dock>.pt.fw{max-width:none}
  html.deck .dock .chev{display:inline-grid}
  html.deck .dock .ttl{font-size:21px}
  html.deck .dock .say{font-size:15px}
  html.deck .dock .snip{max-width:none;text-align:left}
  /* the map's dialogue: each speaker's newest line takes the place of their last, so the map keeps its size */
  html.deck #map .dock{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;align-content:start}
  html.deck #map .dock>[data-k="l2"],html.deck #map .dock>[data-k="l4"]{grid-area:1/1}
  html.deck #map .dock>[data-k="l1"],html.deck #map .dock>[data-k="l3"],html.deck #map .dock>[data-k="l5"]{grid-area:2/1}
  html.deck #map .dock>.act{grid-area:3/1;justify-self:stretch}
  html.deck .box .tag{white-space:normal}
  html.deck .egg,html.deck .tip b{font-size:10px;letter-spacing:.08em;gap:5px}
  html.deck .egg::before,html.deck .tip b::before{width:6px;height:6px}
  html.deck .pt.ad{--ax:-5px}
  html.deck .tip{font-size:14px}
  html.deck .copy>*{margin-bottom:8px}
  html.deck .copy .act{order:-1;justify-self:stretch;margin:0 0 6px}
  html.deck .scene h2{font-size:26px}
  html.deck .lede{font-size:15.5px}
  html.deck .notice{padding:8px 12px 8px 32px;font-size:11.5px}
  html.deck .notice::before{left:12px;width:10px;height:10px;margin-top:-5px}
  html.deck .notice b{font-size:14px}
  html.deck #outward .ttl{max-width:none}
  html.deck .chev.pt{--ax:-50%}
  html.deck .chev:not(.ff),html.deck .chev.prev{margin-left:0}
  html.deck .chev.shaped{width:40px;height:64px}
  html.deck .chev.shaped.ff{width:50px;height:30px;margin:54px 0 0}
  html.deck .intro{gap:8px}
  html.deck .intro h2{font-size:22px}
  html.deck .intro .lede{font-size:14px;line-height:1.45}
  html.deck .intro .cap{font-size:13px;line-height:1.45}
  /* the header keeps the whole name; the button is the symbol */
  html.deck .mark{font-size:15.5px}
  html.deck .hdr-cta{width:40px;height:40px;margin-top:-20px;padding:0;justify-content:center;border-radius:50%}
  html.deck .cta-glyph{display:block}
  html.deck .cta-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html.deck .hdr-back{left:12px}
  /* the hero: the big button under the words, the other two at the bottom */
  html.deck .hero .act.big{width:100%;padding:17px 24px;font-size:18px}
  html.deck .hero .foot{gap:10px 16px}
  html.deck .hero .foot .actions{gap:6px}
  html.deck .hero .btn{padding:10px 11px;font-size:13px;gap:6px}
  html.deck #close{padding-bottom:16px}
  html.deck #close footer{position:static;margin-top:16px;flex-direction:column;gap:4px;font-size:12.5px}
}
/* short phones: a slimmer banner and hero */
@media (max-width:899px) and (max-height:760px){
  html.deck{--banner-h:20vh}
  html.deck .hero h1{font-size:min(clamp(40px,8vw,92px),8.2vh);margin:6px 0 8px}
  html.deck .hero .lede{font-size:15px;line-height:1.5}
  html.deck .hero .act.big{margin-top:12px;padding:14px 20px}
}
@media (min-width:900px) and (max-height:760px){
  html.deck .ov>.act.big{padding:15px 34px;font-size:17px;min-width:0}
  html.deck .scene h2{font-size:clamp(26px,3.4vw,38px)}
  html.deck .lede{font-size:16px}
}

/* ---------- reduced motion: stills, no ambient animation ---------- */
html.still *,html.still *::before,html.still *::after{animation:none!important;transition:none!important}
html.still .hero h1{background:none;color:var(--cream)}
