/* A real HTML interface projected onto a playful WebGL monitor. */
.brand-lab{padding-block:100px 65px;border-top:1px solid #17191028;overflow:visible}
.brand-lab-heading{display:flex;align-items:end;justify-content:space-between;gap:35px;position:relative;z-index:2}
.brand-lab-heading h2{font-size:clamp(42px,5.8vw,82px);line-height:.99;letter-spacing:-.065em}
.brand-lab-heading>p{font-size:clamp(16px,1.5vw,21px);line-height:1.5;max-width:27ch;padding-bottom:7px}
.brand-machine{position:relative;max-width:1130px;aspect-ratio:1.3;margin:0 auto;isolation:isolate}
#brand-monitor{width:100%;height:100%;display:block;position:absolute;inset:0;pointer-events:none}
.machine-floor{position:absolute;left:17%;right:14%;bottom:7%;height:8%;border-radius:50%;background:#5a4d191f;filter:blur(12px);transform:rotate(-3deg);z-index:-1}
.monitor-interface{position:absolute;left:12%;top:15%;width:76%;height:66%;border:18px solid #272b23;border-radius:28px;background:#fff6b8;box-shadow:0 0 0 20px #dfd294,18px 22px 0 22px #b9a85d;overflow:hidden;transform-origin:0 0;z-index:2}
.brand-machine.webgl .monitor-interface{left:0;top:0;width:840px;height:540px;border:0;border-radius:16px;box-shadow:none;will-change:transform;opacity:0;visibility:hidden}
.brand-machine.screen-ready .monitor-interface{opacity:1;visibility:visible;transition:opacity .35s}
.brand-app{height:100%;display:flex;flex-direction:column;padding:24px 35px 18px;color:#181b12;background:#fff6b8;font-family:var(--body),sans-serif;box-sizing:border-box}
.brand-app-header{display:flex;align-items:center;gap:18px;border-bottom:1px solid #17191030;padding-bottom:12px;flex-shrink:0}
.brand-app-header>b{font:750 29px/.9 var(--display);letter-spacing:-2px}
.brand-app-header>b>span{font:10px var(--body);vertical-align:top;letter-spacing:0}
.brand-app-header>span:not(.machine-online){font-size:13px;margin-left:auto}
.machine-online{width:9px;height:9px;background:#637141;border-radius:50%;box-shadow:0 0 0 4px #63714115}
.brand-app-progress{display:flex;gap:6px;margin:14px 0 20px;flex-shrink:0}
.brand-app-progress i{height:3px;background:#17191018;flex:1;transition:background .3s}
.brand-app-progress i.done{background:#171910}
#brand-app-content{flex:1;min-height:0}
#brand-app-content h3{font:700 37px/1.05 var(--display);letter-spacing:-1.7px;max-width:27ch;margin:0 0 12px;outline:none}
#brand-app-content>p{font-size:17px;line-height:1.4;margin:0 0 19px}
.brand-choices{display:grid;gap:10px}
.brand-choice{width:100%;display:flex;align-items:center;padding:13px 19px;min-height:76px;border:1px solid #17191062;border-radius:10px;background:#fffbd9;color:#181b12;text-align:left;font:650 24px/1.22 var(--body);cursor:pointer;transition:background .18s,translate .18s,box-shadow .18s}
.brand-choice:hover{background:#ffe100;translate:0 -2px;box-shadow:0 4px 0 #171910}
.brand-app button:focus-visible,.brand-app a:focus-visible{outline:3px solid #181b12;outline-offset:3px}
.brand-app-footer{display:flex;align-items:center;gap:16px;font-size:14px;border-top:1px solid #17191025;margin-top:14px;padding-top:6px;flex-shrink:0}
#brand-privacy{margin-left:auto;opacity:.7}
#brand-back{border:0;background:none;color:inherit;min-height:38px;padding:4px 9px;margin-left:-9px;font:650 16px var(--body);cursor:pointer}
.brand-app [hidden]{display:none!important}
#brand-app-content h3.plan-title{margin-bottom:20px}
.brand-plan{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.brand-plan li{display:flex;align-items:flex-start;gap:12px;font:600 21px/1.35 var(--body)}
.brand-plan li>span{flex-shrink:0;display:grid;place-items:center;width:29px;height:29px;border:1px solid #17191044;border-radius:50%;font:650 15px/1 var(--body)}
.plan-actions{display:flex;align-items:center;gap:12px;margin-top:23px}
.plan-actions .glass-button-wrap > .glass-button .glass-button-text,.plan-actions button{display:flex;align-items:center;justify-content:center;min-height:55px;padding:8px 18px;font:700 18px/1.15 var(--body)}
.plan-actions button{border:1px solid #17191061;border-radius:999px;background:#fffbd9;color:#171910;cursor:pointer}
.plan-actions button:hover{background:#ffe100}
.machine-companion{position:absolute;z-index:3;width:170px;left:-2%;bottom:7%;pointer-events:none;transform:rotate(-8deg)}
.machine-companion img{display:block;width:100%;filter:drop-shadow(5px 7px 0 #a18c2333)}
.machine-companion>span{display:block;background:#fff6b8;border:1px solid #171910;border-radius:18px 18px 18px 0;padding:10px 13px;width:max-content;font-size:13px;transform:rotate(5deg);margin:0 0 14px -8px}
.machine-signature{position:absolute;right:8%;bottom:5%;font-size:13px;transform:rotate(-3deg)}
.machine-signature span{font-size:24px;margin-left:15px}
@media(max-width:760px){
  .brand-lab{padding-block:60px 40px}
  .brand-lab-heading{display:block}
  .brand-lab-heading h2{font-size:47px}
  .brand-lab-heading>p{font-size:17px;margin-top:20px}
  .brand-machine{aspect-ratio:.46;margin-top:5px;width:calc(100% + 24px);left:-12px}
  .brand-machine.webgl .monitor-interface{width:340px;height:700px;border-radius:14px}
  .brand-app{padding:22px 18px 15px}
  .brand-app-header{gap:10px}
  .brand-app-header>b{font-size:25px}
  .brand-app-header>span:not(.machine-online){font-size:11px}
  .brand-app-progress{margin:18px 0 22px}
  #brand-app-content h3{font-size:35px;letter-spacing:-1.4px;margin-bottom:16px}
  #brand-app-content>p{font-size:18px;margin-bottom:20px}
  .brand-choices{gap:12px}
  .brand-choice{font-size:24px;min-height:77px;padding:12px 14px}
  .brand-app-footer{font-size:13px;margin-top:12px}
  .brand-plan{gap:14px}
  .brand-plan li{font-size:21px;gap:9px}
  .brand-plan li>span{width:25px;height:25px;font-size:13px}
  .plan-actions{align-items:stretch;flex-direction:column;gap:10px;margin-top:23px}
  .plan-actions .glass-button-wrap{width:100%}
  .machine-companion{width:85px;left:5%;bottom:0}
  .machine-companion>span{font-size:10px;margin:0 0 4px -5px;padding:7px 9px}
  .machine-signature{right:4%;bottom:1%;font-size:11px}
  .machine-signature span{font-size:17px}
  .machine-floor{bottom:7%}
}
@media(prefers-reduced-motion:reduce){.brand-machine *{transition:none!important;animation:none!important}}
/* Static casing fallback keeps every control usable without WebGL. */
.brand-machine:not(.webgl){aspect-ratio:auto;min-height:0;padding:65px 10% 125px}
.brand-machine:not(.webgl) .monitor-interface{position:relative;left:0;top:0;width:100%;height:auto;transform:none}
.brand-machine:not(.webgl) .brand-app{min-height:520px}
@media(max-width:760px){
  .brand-machine:not(.webgl){padding:40px 24px 100px}
  .brand-machine:not(.webgl) .brand-app{min-height:590px;padding:20px 12px}
  .brand-machine:not(.webgl) #brand-app-content h3{font-size:29px}
  .brand-machine:not(.webgl) .brand-choice{font-size:20px}
  .brand-machine:not(.webgl) .brand-app-header>span:not(.machine-online){display:none}
  .brand-machine:not(.webgl) .machine-companion{bottom:0}
}
.brand-machine.webgl:not(.machine-arriving) #brand-monitor{visibility:hidden}
.brand-machine.webgl:not(.machine-arriving) .machine-floor{opacity:0}
.brand-machine.machine-impact .machine-companion{animation:companion-impact .5s ease-out both}
@keyframes companion-hello{from{opacity:0;translate:0 45px;rotate:-15deg}to{opacity:1;translate:0 0;rotate:0deg}}

/* A short, one-shot impact followed by the CRT boot. */
.brand-machine.machine-impact .machine-floor{animation:machine-impact-shadow .55s ease-out both}
.brand-machine.webgl.screen-ready .brand-app{animation:crt-power-on .38s cubic-bezier(.2,.75,.2,1) both}
@keyframes companion-impact{0%{translate:0 0;rotate:0deg}25%{translate:0 -17px;rotate:8deg}55%{translate:0 2px;rotate:-3deg}100%{translate:0 0;rotate:0deg}}
@keyframes machine-impact-shadow{0%{scale:.55;opacity:.25}18%{scale:1.28;opacity:.8}65%{scale:.95;opacity:.5}100%{scale:1;opacity:1}}
@keyframes crt-power-on{from{clip-path:inset(49.5% 4%);opacity:.6}45%{clip-path:inset(20% 1%);opacity:1}to{clip-path:inset(0);opacity:1}}
.brand-machine:not(.webgl) .monitor-interface{border:15px solid #30392d;outline:14px solid #c1b181;border-radius:24px;box-shadow:0 0 0 32px #dfd0a2,20px 24px 0 32px #ac9b6a}
.brand-machine:not(.webgl){padding-bottom:165px}
@media(max-width:760px){.brand-machine:not(.webgl) .monitor-interface{border-width:9px;outline-width:9px;box-shadow:0 0 0 18px #dfd0a2,10px 16px 0 18px #ac9b6a}.brand-machine:not(.webgl){padding-bottom:120px}}
@media(prefers-reduced-motion:reduce){.brand-machine.machine-impact .machine-companion,.brand-machine.machine-impact .machine-floor,.brand-machine.webgl.screen-ready .brand-app{animation:none!important}}
