/* HBOME mechanical home (1.35.0). One full-screen WebGL world sits behind the page: a deep red and black megastructure with a colossal
   mechanical camel, courier falcons and a voxel ring that becomes the camel head. The page text is ordinary HTML over it, on scrims.
   States on <html data-mech>: live | poster. Poster = a still frame of the same world behind the page. No inline styles (CSP). */

html{background:#050102}
body.hbome-home{background:transparent}

/* ---- the world layer ---- */
.mech-bg{position:fixed;inset:0;z-index:0;overflow:hidden;background:#050102;pointer-events:none}
.mech-poster{position:absolute;inset:0;background:#050102 url(/brand/mech/poster-wide.jpg) 62% center/cover no-repeat;transition:opacity .6s ease}
@media(max-aspect-ratio:1/1){.mech-poster{background-image:url(/brand/mech/poster-tall.jpg);background-position:center top}}
.mech-canvas{position:absolute;left:0;top:0;width:100%;height:100vh;height:100lvh;display:block;opacity:0;transition:opacity .6s ease}
html[data-mech="live"][data-mech-ready] .mech-canvas{opacity:1}
html[data-mech="live"][data-mech-ready] .mech-poster{opacity:0}
/* a vignette and a bottom scrim keep the type readable over any frame of the world */
.mech-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 60% 40%,transparent 40%,rgba(5,1,2,.7) 100%)}
html[data-mech-covered] .mech-bg{visibility:hidden}

main,.site-footer{position:relative;z-index:1}
.masthead{background:rgba(0,0,0,.88);border-bottom-color:#3a1b20}
.hbome-home .site-footer{background:rgba(5,1,2,.94);border-top:1px solid var(--hair)}

/* ---- HUD: chapter counter and the still-view control ---- */
.mech-hud{position:fixed;z-index:6;left:var(--gutter);bottom:14px;display:flex;align-items:baseline;gap:12px;padding:6px 10px;background:rgba(5,1,2,.72);border-left:2px solid var(--red);font:12px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);pointer-events:none}
.mech-count{color:var(--ink);font-variant-numeric:tabular-nums}
.mech-still{position:fixed;z-index:6;right:var(--gutter);bottom:8px;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;background:rgba(5,1,2,.78);border:1px solid var(--line);color:var(--ink);font:12px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.mech-still:hover{border-color:var(--red)}.mech-still .gi{margin:0;width:14px;height:14px}
html:not([data-mech="live"]) .mech-hud,html[data-mech-inrecord] .mech-hud,html[data-mech-inrecord] .mech-still{display:none}

/* ---- type: a wide techno face for titles and counters, nothing else ---- */
.hbome-home h1,.hbome-home .mech-panel h2,.finale h2,.record-head h2{font-family:var(--tech);font-weight:700;text-transform:uppercase;letter-spacing:.015em}
.mech-hero{position:relative;min-height:calc(100svh - 56px);display:flex;align-items:flex-end;padding-block:0 clamp(72px,12svh,120px);background:linear-gradient(90deg,rgba(5,1,2,.82) 0,rgba(5,1,2,.5) 42%,transparent 72%),linear-gradient(0deg,rgba(5,1,2,.7),transparent 45%)}
.mech-hero .wrap{width:min(100% - 2 * var(--gutter),var(--wrap))}
.mech-hero .hh-copy{gap:20px;max-width:640px}
.mech-hero h1{font-size:clamp(34px,4.6vw,76px);line-height:1.02;letter-spacing:.01em;display:block}
.mech-hero h1 .title-first,.mech-hero h1 .title-mid,.mech-hero h1 .title-last{display:block}
.mech-hero h1 .wm{display:inline;color:var(--red);font-weight:900;letter-spacing:.02em;text-shadow:0 0 28px rgba(255,59,77,.35)}
.mech-hero .lede{max-width:46ch;color:#e6d6d1}
.scroll-cue{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);display:grid;justify-items:center;gap:6px;font:12px/1 var(--mono);letter-spacing:.2em;text-transform:uppercase;color:var(--muted)}
.scroll-cue i{width:1px;height:28px;background:linear-gradient(var(--red),transparent);animation:cue 2.2s ease-in-out infinite}
@keyframes cue{0%{transform:scaleY(.2);transform-origin:top}60%{transform:scaleY(1);transform-origin:top}100%{transform:scaleY(1);transform-origin:bottom;opacity:0}}

/* ---- key figures: glass plate over the world ---- */
.kpi-strip{position:relative;padding-block:0 0;background:linear-gradient(0deg,rgba(5,1,2,.9),rgba(5,1,2,.55))}
.kpi-strip .kpi-grid{background:rgba(7,2,3,.82);border:1px solid var(--hair);border-top-color:var(--red)}
.kpi-strip .kpi{padding-inline:20px}.kpi-strip .kpi:first-child{padding-left:20px}
.kpi-value{font-family:var(--tech);font-weight:600;letter-spacing:0}

/* ---- chapter panels over the world: copy on the left, the machine on the right ---- */
.mech-panel{position:relative;min-height:100svh;display:flex;align-items:center;padding-block:96px;background:linear-gradient(90deg,rgba(5,1,2,.86) 0,rgba(5,1,2,.6) 46%,rgba(5,1,2,.08) 78%)}
.mech-panel>.wrap{width:min(100% - 2 * var(--gutter),var(--wrap))}
.mech-panel .rule{display:none}
.mech-panel h2{font-size:clamp(26px,3.3vw,52px);line-height:1.08;max-width:15ch;text-wrap:balance}
.identity .id-grid,.holder-entry .he-grid{grid-template-columns:minmax(0,560px);gap:28px;margin-top:0}
.identity .id-copy,.identity .id-panel,.holder-entry .he-copy{grid-column:auto}
.mech-panel .id-panel{background:rgba(8,2,3,.82);border-color:var(--line);border-top:2px solid var(--red)}
.mech-panel .address{font-family:var(--mono);font-size:13px;overflow-wrap:anywhere}
html[data-mech="live"] .he-stage{display:none}
.holder-entry{padding-bottom:96px}
.holder-entry .he-copy{display:grid;gap:20px;justify-items:start}
.partners-strip{padding-block:96px;min-height:80svh;background:linear-gradient(0deg,rgba(5,1,2,.7),rgba(5,1,2,.35))}
.partners-strip .ps-row{background:rgba(7,2,3,.78);padding-inline:20px;border:1px solid var(--hair)}
.ps-logo{background:#f4ebe7;border-radius:50%;padding:7px;box-sizing:content-box}.ps-round{padding:0;background:#f4ebe7}
.ps-name{font-family:var(--tech);font-weight:600;font-size:15px;letter-spacing:.04em;text-transform:uppercase}

/* ---- the record: the data stage keeps its own solid ground, the world rests behind it ---- */
.record{background:linear-gradient(180deg,rgba(5,1,2,.94),#050102 14%);border-top:1px solid var(--red);padding-block:72px 24px}
.record-head h2{font-size:clamp(28px,3.6vw,56px)}
.chapter h2{font-family:var(--display);text-transform:none;letter-spacing:-.045em;font-weight:500}
.chapter-index a:hover,.chapter-index a:focus-visible{background:var(--paper-3)}
.scene-end{background:#050102}
.holder-entry,.identity{border-top:0}

/* ---- finale: the ring above, the line at the bottom ---- */
.finale{position:relative;min-height:100svh;display:flex;align-items:flex-end;padding-block:0 clamp(90px,14svh,140px);background:linear-gradient(0deg,rgba(5,1,2,.88) 0,rgba(5,1,2,.55) 38%,transparent 62%)}
.finale .wrap{display:grid;gap:18px;justify-items:start}
.finale h2{font-size:clamp(30px,5.4vw,84px);line-height:1;max-width:none}
.finale h2 span{display:block;color:var(--red);font-size:.5em;letter-spacing:.06em;margin-top:.5em}
.finale .lede{max-width:48ch}
.finale .hh-actions{margin-top:6px}

/* ---- poster state: the same story over the still frame ---- */
html:not([data-mech="live"]) .mech-poster{opacity:1}

/* ---- phone: single column, the world in the upper half, text on a bottom scrim ---- */
@media(max-width:899px){
  .mech-hero{align-items:flex-end;min-height:calc(100svh - 56px);padding-bottom:84px;background:linear-gradient(0deg,rgba(5,1,2,.94) 0,rgba(5,1,2,.82) 40%,transparent 72%)}
  .mech-hero h1{font-size:clamp(28px,8.4vw,48px)}
  .mech-hero .hh-copy{gap:14px}
  .mech-hero .lede{font-size:16px}
  .mech-panel{min-height:auto;align-items:flex-end;padding-block:56svh 56px;background:linear-gradient(0deg,rgba(5,1,2,.94) 0,rgba(5,1,2,.86) 52%,transparent 86%)}
  .identity .id-grid,.holder-entry .he-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .partners-strip{min-height:auto;padding-block:60svh 56px;background:linear-gradient(0deg,rgba(5,1,2,.94),rgba(5,1,2,.8) 60%,transparent)}
  .finale{align-items:flex-end;padding-bottom:84px;background:linear-gradient(0deg,rgba(5,1,2,.94) 0,rgba(5,1,2,.7) 44%,transparent 70%)}
  .finale h2{font-size:clamp(26px,8vw,44px)}
  .kpi-strip .kpi{padding-inline:12px}.kpi-strip .kpi:nth-child(odd){padding-left:12px}
  .mech-hud{bottom:auto;top:64px;left:var(--gutter);max-width:calc(100% - 32px);padding:4px 8px}
  .mech-still{width:44px;padding:0;justify-content:center;border-radius:50%;bottom:12px}
  .mech-still span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .scroll-cue{display:none}
}
@media(prefers-reduced-motion:reduce){.scroll-cue i{animation:none}.mech-poster,.mech-canvas{transition:none}}
@media(forced-colors:active){.mech-hud,.mech-still{border:1px solid CanvasText}}
