/* 1200vh: 9,900 px of scroll at 900 px high. render.js spends it mostly on the moves (see SPEC 3). */
.vx{position:relative;height:1200vh;background:#0c1022}
.vx-pin{position:sticky;top:0;height:100vh;overflow:hidden;
  background:radial-gradient(60% 55% at 50% 55%,#111b36 0%,#0c1022 70%)}
/* render.js sets the canvas width and height in CSS px and the buffer to that x pixelRatio. Never scale it here. */
.vx-canvas{position:absolute;left:0;top:0;display:block;pointer-events:none}
.vx-fallback{display:none}
.vx-copy{position:absolute;top:calc(50% + 45px);width:min(34vw,420px);opacity:0;
  transform:translateY(-50%);pointer-events:none}
.vx-copy[data-side="right"]{right:6vw}
.vx-copy[data-side="left"]{left:6vw}
.vx-copy>span{font:11px 'IBM Plex Mono';letter-spacing:.04em;color:var(--accent)}
.vx-copy h2{font-size:clamp(34px,3.4vw,54px);margin:22px 0 20px}
.vx-copy p{font-size:18px;max-width:34ch;text-shadow:0 1px 15px var(--bg)}
.vx-copy .vx-spec{font-size:15px;border-top:1px solid #85aaff66;padding-top:14px}
.vx-copy .vx-spec strong{display:block;font-weight:400;color:var(--accent)}

@media(max-width:700px){
  .vx{height:1000vh}
  .vx-copy,.vx-copy[data-side]{left:24px;right:24px;width:auto;top:auto;bottom:5vh;
    transform:none;max-height:44vh;overflow:hidden;z-index:1}
  .vx-pin::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46vh;
    background:linear-gradient(rgba(12,16,34,0),#0c1022 30%);pointer-events:none;opacity:var(--vx-scrim,0)}
  .vx-copy h2{font-size:32px;margin:14px 0 12px}
  .vx-copy p{font-size:16px;max-width:none}
}

/* Static layout: reduced motion (one rendered frame) or no WebGL (assets/stills/volt-one-exploded.png, rendered from the model). */
@media(prefers-reduced-motion:reduce){
  .vx{height:auto;padding:120px 6vw 90px}
  .vx-pin{position:static;height:auto;overflow:visible;background:none}
  .vx-pin::after{content:none}
  .vx-canvas{position:relative;margin:0 auto 60px}
  .vx-copy,.vx-copy[data-side]{position:static;opacity:1!important;transform:none!important;
    width:auto;max-width:700px;margin:0 0 48px}
}
.vx.vx-static{height:auto;padding:120px 6vw 90px}
.vx-static .vx-pin{position:static;height:auto;overflow:visible;background:none}
.vx-static .vx-pin::after{content:none}
.vx-static .vx-canvas{display:none}
.vx-static .vx-fallback{display:block;width:min(100%,1100px);height:auto;margin:0 auto 60px}
.vx-static .vx-copy,.vx-static .vx-copy[data-side]{position:static;opacity:1!important;transform:none!important;
  width:auto;max-width:700px;margin:0 0 48px}

/* Backdrop chapters after the stage: 130vh (the gallery sets 105vh) so each backdrop scene gets
   about 1,170 px of scroll at 900 px high. The hero keeps 105vh so its headline stays above the fold. */
.scene-chapter:not(.first){min-height:130vh}

/* Backdrop: one fixed canvas behind the hero and the THE WAY WE BUILD run (backdrop.js).
   Replaces the AI photo. The gradient centre follows the object's side through --bd-x. */
.scene-backdrop{background:radial-gradient(55% 60% at var(--bd-x,70%) 52%,#111b36 0%,#0c1022 72%)}
.scene-backdrop>.bd-canvas{position:absolute;left:0;top:0;right:auto;bottom:auto;display:block;opacity:1}
.bd-scrim{display:none}
/* The gallery stylesheet styles .scene-backdrop>img for the old photo (cover, 35% opacity). Undo that for the stills. */
.scene-backdrop>img.bd-still{position:absolute;display:none;object-fit:contain;object-position:center;opacity:1;filter:none}
.bd-static>img.bd-still{display:block}
@media(max-width:700px){
  /* Phone scrims: one band behind each visible block of chapter text, placed by backdrop.js. */
  .bd-scrim{display:block;position:absolute;left:0;right:0;top:0;height:0;pointer-events:none;
    background:linear-gradient(rgba(12,16,34,0),rgba(12,16,34,.93) 48px,rgba(12,16,34,.93) calc(100% - 48px),rgba(12,16,34,0))}
}
@media(max-width:700px){
  /* Phone: the chapters after the stage start their text well below the object band (top 42%),
     so there is a scroll window where the object is clear of every text block. Adds about 45vh per chapter. */
  .scene-chapter:not(.first){padding-top:calc(55vh + 24px)}
  /* Hero on phones: its text starts below the object band so the machine is clear at load. */
  .scene-chapter.first{padding-top:calc(46vh + 24px)}
}

/* Hero blueprint lines, painted as SVG before the WebGL build, then faded out. */
.scene-backdrop>.bd-svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none;transition:opacity .5s}
.bd-svg path{fill:none;stroke:#85aaff;stroke-width:1;stroke-linecap:round;stroke-opacity:.85;stroke-dasharray:1;stroke-dashoffset:0;animation:bd-draw 1.6s cubic-bezier(.4,0,.2,1) both}
@keyframes bd-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.scene-backdrop>.bd-svg-out{opacity:0}
@media(prefers-reduced-motion:reduce){.bd-svg path{animation:none}}

/* Phone caption (HTML, readable at 375): the words of the 3D labels of the scene in
   view, placed by backdrop.js above the object band. Hidden on larger screens, where
   the labels are part of the 3D scene. */
.bd-caption{display:none}
@media(max-width:700px){
  .bd-caption{display:flex;flex-direction:column;gap:2px;position:absolute;left:16px;right:16px;top:0;opacity:0;pointer-events:none;
    font:11px/1.35 'IBM Plex Mono',monospace;letter-spacing:.02em;color:#8f9ab8}
  .bd-caption>span.head{color:#85aaff}
  .bd-caption>strong{font:400 22px/1.2 'IBM Plex Mono',monospace;color:#e9edf5}
}

/* Accessible copy for the meter: read by screen readers, never shown. */
.bd-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;
  overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}

/* The gallery darkened the hero from left to right for text over the old photo, which
   now dims the backdrop object on the right. Keep the shade behind the text only. On
   phones the text scrims do this job, so the gallery's chapter gradient goes. */
.volt .scene-chapter.first{background:linear-gradient(90deg,rgba(12,16,34,.7) 0%,rgba(12,16,34,.35) 35%,rgba(12,16,34,0) 58%)}
@media(max-width:700px){ .volt .scene-chapter,.volt .scene-chapter.first{background:none} }

/* Long chapters (Conner, 2026-09-28): the manifesto, VOLT ONE, VOLT CLOUD and VOLT DATA
   each get about the stage's scroll length. The text sits in a sticky .ch-pin while the
   backdrop plays the chapter's beats. One length per chapter, to tune here. The pin
   repeats the gallery's direct-child rules for the eyebrow and the link. */
#manifesto{--ch-len:487vh}
#volt-one-run{--ch-len:487vh}
#volt-cloud-run{--ch-len:487vh}
#volt-data-run{--ch-len:487vh}
.scene-chapter.long{height:var(--ch-len);min-height:0;padding:0 6vw;justify-content:flex-start}
.ch-pin{position:sticky;top:0;height:100vh;box-sizing:border-box;padding:110px 0 50px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.ch-pin>span{font:11px 'IBM Plex Mono';letter-spacing:.04em}
.ch-pin>a{margin-top:30px;font:13px 'IBM Plex Mono';padding:15px 0;border:0;border-bottom:1px solid var(--fg);background:transparent}
/* "A supercomputer you can carry." sits in the right half and ran into the right edge
   at the shared 7.5vw size. Capped so its right edge stays inside the 6vw gutter. */
@media(min-width:701px){#volt-one-run .ch-pin h2{font-size:min(6.4vw,100px)}}

/* Phrase highlight: backdrop.js sets data-beat on the section, the beat's phrase goes
   full white and the rest of the paragraph dims. Text and reading order are untouched. */
.scene-chapter.long .ph{transition:color .35s ease}
.scene-chapter.long[data-beat] p{color:rgba(233,237,245,.4)}
.scene-chapter.long[data-beat="1"] .ph[data-beat="1"],
.scene-chapter.long[data-beat="2"] .ph[data-beat="2"],
.scene-chapter.long[data-beat="3"] .ph[data-beat="3"],
.scene-chapter.long[data-beat="4"] .ph[data-beat="4"],
.scene-chapter.long[data-beat="5"] .ph[data-beat="5"],
.scene-chapter.long[data-beat="6"] .ph[data-beat="6"]{color:#fff}

@media(max-width:700px){
  #manifesto,#volt-one-run,#volt-cloud-run,#volt-data-run{--ch-len:430.5vh}
  .scene-chapter.long{padding:0 24px}
  /* Phones: text pinned in the lower part, over the scrim, the scene in the band above. */
  .ch-pin{width:100%;justify-content:flex-end;padding:calc(46vh + 16px) 0 18px}
  .ch-pin h2{font-size:10vw;margin:8px 0 12px}
  .ch-pin p{font-size:15px;line-height:1.5;margin-bottom:8px}
  .ch-pin>span{font-size:10px}
  .ch-pin>a{margin-top:8px;padding:10px 0}
}

/* Interactive hero machine (hero.js). The hit area sits over the machine only,
   so the hero text and links stay clickable. pan-y keeps vertical swipes scrolling. */
.hero-hit{position:fixed;z-index:4;touch-action:pan-y;cursor:grab}
.hero-hit:active{cursor:grabbing}
.hero-hint{position:fixed;z-index:4;transform:translateX(-50%);font:11px 'IBM Plex Mono',monospace;letter-spacing:.04em;color:#85aaff;pointer-events:none;transition:opacity .6s;white-space:nowrap}
.hero-hint.hero-hint-out{opacity:0}
.hero-explore{position:fixed;z-index:4;transform:translateX(-50%);font:12px 'IBM Plex Mono',monospace;padding:8px 14px;border:1px solid #85aaff66;background:#0c1022cc;color:#e9edf5;cursor:pointer}
.hero-explore[hidden]{display:none!important}
.hero-card{position:fixed;z-index:6;width:320px;box-sizing:border-box;padding:16px 18px;background:#0c1022ee;border:1px solid #85aaff66;color:#e9edf5;visibility:hidden}
.hero-card.on{visibility:visible}
.hero-card-count{font:11px 'IBM Plex Mono',monospace;color:#85aaff}
.hero-card-title{font-size:20px;margin:6px 0}
.hero-card-text{font-size:14px;line-height:1.5;margin:0 0 12px}
.hero-card-nav{display:flex;gap:8px}
.hero-card-nav button{font:12px 'IBM Plex Mono',monospace;padding:6px 10px;border:1px solid #85aaff66;background:transparent;color:#e9edf5;cursor:pointer}
.hero-parts-static{margin-top:24px;max-width:40ch}
.hero-parts-static li{margin:6px 0}
@media(max-width:700px){.hero-card{width:calc(100vw - 24px)}}

/* A card that would touch hero text is hidden (backdrop.js), the part stays focused. */
.hero-card.clash{visibility:hidden!important}
@media(max-width:700px){.hero-card{width:auto;padding:10px 12px}.hero-card-count{font-size:10px}.hero-card-title{font-size:15px;margin:2px 0 4px}.hero-card-text{font-size:12.5px;line-height:1.4;margin-bottom:8px}.hero-card-nav button{padding:4px 8px;font-size:11px}}

/* Phones, part card open: the hero text and links fade out (backdrop.js sets the class,
   inert and aria-hidden) so the card can use the lower screen with the machine above. */
.scene-chapter.first>*{transition:opacity .35s ease}
.scene-chapter.first.hero-text-out>*{opacity:0}

/* Hero poster (backdrop.js): a still of the closed machine, placed where the live
   model draws, shown with the page and crossfaded out on the first WebGL frame.
   The gallery stylesheet styles .scene-backdrop>img for the old photo; undo that. */
.scene-backdrop>img.hero-poster{position:absolute;display:block;max-width:none;object-fit:fill;filter:none;opacity:0;pointer-events:none;transition:opacity .12s linear}
.scene-backdrop>img.hero-poster.on{opacity:1}
.scene-backdrop>img.hero-poster.out{opacity:0;transition:opacity .4s ease}
@media(prefers-reduced-motion:reduce){.scene-backdrop>img.hero-poster{transition:none!important}}
