/* Artwork bands. The homepage banner sits on the right and feathers into the
   cream page on every side. The quantum band is dark: its artwork is
   screen-blended into a near-black field. */
body.editorial-site .editorial-cover.has-hero-band{padding-top:0!important}
.hero-band{position:relative;isolation:isolate;overflow:hidden}
.hero-band-art{position:absolute;z-index:-1;pointer-events:none}
.hero-band-art picture,.hero-band-art img{display:block;width:100%;height:100%}

/* Homepage banner: the scene cut into a city (assets/hero/scene.webp, 3:2,
   made by tools/hero_banner.py: style "arcology", or the earlier "monolith").
   The buildings, the monolith and their reflections live in the photo's own
   alpha, so the art has no box edge: the cream page shows above and between
   the buildings. Picture and overlays share one stage locked to the photo's
   shape, anchored at --ax/--ay. The art starts beside the copy, and the low
   end of the skyline keeps clear of it. */
.editorial-cover .hero-band-art{--ax:1;--ay:.5;--fill:.8;top:0;bottom:0;right:0;max-width:1120px;container-type:size;
  left:calc(max(0px,(100% - 1440px) / 2) + clamp(24px,5.5vw,80px) + 490px);
  --fade-x:linear-gradient(90deg,transparent 0,#000 5%);
  --fade-y:linear-gradient(180deg,transparent 0,#000 4%);
  -webkit-mask-image:var(--fade-x),var(--fade-y);-webkit-mask-composite:source-in;
  mask-image:var(--fade-x),var(--fade-y);mask-composite:intersect}
.editorial-cover .hero-band-stage{position:absolute;inset:0}
/* The stage keeps the photo's 3:2 shape: as wide as the box, and at least
   --fill of its height. */
@supports (width:1cqw){
  .editorial-cover .hero-band-stage{inset:auto;width:max(100cqw,100cqh * 1.5 * var(--fill));height:calc(max(100cqw,100cqh * 1.5 * var(--fill)) / 1.5);
    left:calc((100cqw - max(100cqw,100cqh * 1.5 * var(--fill))) * var(--ax));top:calc((100cqh - max(100cqw,100cqh * 1.5 * var(--fill)) / 1.5) * var(--ay))}
}
.editorial-cover .hero-band-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:calc(var(--ax) * 100%) calc(var(--ay) * 100%)}
/* Hairlines: antennas with a node, the horizon under the city, lit windows. */
.hb-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.hb-horizon{fill:none;stroke:url(#hb-horizon);stroke-width:1;vector-effect:non-scaling-stroke}
.hb-antennas path{fill:none;stroke:#3a6d96;stroke-opacity:.6;stroke-width:1;vector-effect:non-scaling-stroke}
.hb-antennas circle{fill:#9fd6f2}
.hb-windows rect{fill:#ffd9a3}
/* Light, seen only on the buildings (fx.webp is their silhouette): every
   12s a thin scan of light crosses the city toward the monolith, and the
   doorway glows as it arrives; a few windows light up; dust drifts in the
   light. Transform and opacity only. */
.hb-fx{position:absolute;inset:0;pointer-events:none;
  -webkit-mask:url(/assets/hero/fx.webp) 0 0/100% 100% no-repeat;mask:url(/assets/hero/fx.webp) 0 0/100% 100% no-repeat}
.hb-scan{position:absolute;top:0;bottom:0;left:0;width:2.4%;opacity:0;will-change:transform,opacity;
  background:linear-gradient(90deg,rgba(90,175,240,0),rgba(110,190,250,.55) 38%,rgba(225,246,255,.95) 50%,rgba(110,190,250,.55) 62%,rgba(90,175,240,0));
  animation:hb-scan 12s cubic-bezier(.4,0,.6,1) 1.5s infinite}
@keyframes hb-scan{0%{transform:translateX(150%);opacity:0}3%{opacity:1}25%{opacity:1}28%{transform:translateX(2620%);opacity:0}100%{transform:translateX(2620%);opacity:0}}
.hb-glow{position:absolute;width:34%;height:110%;border-radius:50%;transform:translate(-50%,-50%);
  background:radial-gradient(closest-side,rgba(255,214,150,.7),rgba(255,190,120,.25) 55%,rgba(255,190,120,0));
  opacity:.3;animation:hb-glow 12s ease-in-out 1.5s infinite;will-change:opacity}
@keyframes hb-glow{0%,26%{opacity:.3}33%{opacity:.8}50%{opacity:.4}100%{opacity:.3}}
.hb-mote{position:absolute;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;opacity:0;
  background:radial-gradient(circle,#fff8ea 0,rgba(255,238,206,.65) 40%,rgba(255,238,206,0) 70%);
  animation:hb-mote var(--d) ease-in-out infinite;animation-delay:var(--t);will-change:transform,opacity}
@keyframes hb-mote{0%{opacity:0;transform:translate(0,0)}35%{opacity:.85}70%{opacity:.55}100%{opacity:0;transform:translate(5px,-24px)}}
.hb-win{position:absolute;width:3px;height:2px;background:#ffe4b8;box-shadow:0 0 5px 1px rgba(255,210,150,.55);opacity:0;
  animation:hb-win var(--d) ease-in-out infinite;animation-delay:var(--t);will-change:opacity}
@keyframes hb-win{0%,55%{opacity:0}62%,86%{opacity:1}93%,100%{opacity:0}}
/* Arcology: a train runs along the railway into the light (the strip is
   masked to where the deck shows in front of the near towers), and the
   doorway glows as the train arrives. */
.hb-rail{position:absolute;overflow:hidden;pointer-events:none}
.hb-train{position:absolute;top:29%;bottom:29%;left:0;width:9%;opacity:0;will-change:transform,opacity;
  background:repeating-linear-gradient(90deg,rgba(255,226,172,.95) 0 2px,rgba(255,226,172,.18) 2px 4px);
  box-shadow:0 0 6px 1px rgba(255,205,140,.45);animation:hb-train 16s linear 1s infinite}
.hb-train::after{content:"";position:absolute;right:-3px;top:-25%;bottom:-25%;width:5px;border-radius:50%;
  background:#fff6e2;box-shadow:0 0 8px 3px rgba(255,240,210,.7)}
@keyframes hb-train{0%{transform:translateX(-110%);opacity:0}3%{opacity:1}40%{opacity:1}42%{transform:translateX(1112%);opacity:0}100%{transform:translateX(1112%);opacity:0}}
/* City lights: round beacons (.hb-lt) and neon strips down one side of a
   tower (.hb-lt.v), in red (.r), neon cyan (.c) and ice blue (.b). Each has
   its own rhythm (--p), period (--d) and offset (--t), set by the generator,
   so together they flash with no visible pattern. */
.hb-lt{position:absolute;width:3px;height:3px;margin:-1.5px 0 0 -1.5px;border-radius:50%;pointer-events:none;
  background:var(--c);box-shadow:0 0 5px 1.5px var(--g);opacity:.2;
  animation:var(--p,hb-beacon) var(--d,3s) linear var(--t,0s) infinite;will-change:opacity}
.hb-lt.v{width:2px;height:var(--h);margin:0 0 0 -1px;border-radius:1px;box-shadow:0 0 5px 1px var(--g)}
.hb-lt.r{--c:#ff4b58;--g:rgba(255,60,75,.6)}
.hb-lt.c{--c:#56e4ff;--g:rgba(70,220,255,.6)}
.hb-lt.b{--c:#aedcff;--g:rgba(150,210,255,.55)}
@keyframes hb-beacon{0%,100%{opacity:.18}5%{opacity:1}14%{opacity:.18}}
@keyframes hb-strobe{0%,100%{opacity:.12}3%{opacity:1}6%{opacity:.12}9%{opacity:1}12%{opacity:.12}}
@keyframes hb-breathe{0%,100%{opacity:.2}50%{opacity:1}}
@keyframes hb-flicker{0%,100%{opacity:.9}6%{opacity:.25}8%{opacity:.95}30%{opacity:.9}31%{opacity:.2}34%{opacity:.85}60%{opacity:.95}62%{opacity:.15}63%{opacity:.9}}
.hb-glow-train{animation-name:hb-glow-train;animation-duration:16s;animation-delay:1s}
@keyframes hb-glow-train{0%,38%{opacity:.3}45%{opacity:.8}62%{opacity:.4}100%{opacity:.3}}
/* Without container queries the overlay cannot be kept aligned with the
   cropped photo, so it is left out. Reduced motion keeps the still city,
   its hairlines and steady city lights. */
@supports not (width:1cqw){.hb-fx,.hb-lines,.hb-rail,.hb-lt{display:none}}
@media (prefers-reduced-motion:reduce){.hb-fx,.hb-rail{display:none}.hb-lt{animation:none;opacity:.8}}
body.editorial-site .editorial-cover .hero-band-inner{padding-top:clamp(56px,7vw,112px);padding-bottom:clamp(56px,7vw,104px)}
body.editorial-site .editorial-cover .hero-band .editorial-cover-top{grid-template-columns:minmax(0,600px)!important;gap:30px!important;align-items:start!important}
body.editorial-site .editorial-cover .hero-band .editorial-cover-aside{max-width:470px!important;padding:0}
body.editorial-site .editorial-cover .hero-band .editorial-cover-aside p+p{display:block!important}
/* Small laptops: the art box is narrower than it is tall, so the photo is
   shown a little smaller to keep more of the city in view. */
@media (min-width:1100px) and (max-width:1359px){
  .editorial-cover .hero-band-art{--fill:.72}
}
/* Narrower screens: the art sits above the copy instead of beside it. */
@media (max-width:1099px){
  .editorial-cover .hero-band{display:flex;flex-direction:column}
  .editorial-cover .hero-band-art{--ax:.9;--ay:.72;--fill:1;position:relative;inset:auto;width:100%;max-width:none;height:clamp(240px,46vw,460px);z-index:0;
    --fade-x:linear-gradient(#000,#000);
    --fade-y:linear-gradient(180deg,transparent 0,rgba(0,0,0,.6) 5%,#000 11%,#000 82%,transparent)}
  body.editorial-site .editorial-cover .hero-band-inner{padding-top:0;padding-bottom:44px;margin-top:-16px;position:relative}
}
@media (max-width:760px){
  .editorial-cover .hero-band-art{height:clamp(240px,72vw,330px)}
}

/* Many doors, one lit (assets/hero/doors.webp, made by tools/quantum_doors.py):
   the artwork's stage and light, shared by the homepage's quantum section and
   the /quantum band. The stage is locked to the picture's 3:2 shape and
   anchored at --ax/--ay inside its .qd-art box; .qd-art--right mirrors it, so
   the nearest monolith stands at the right edge and the row recedes toward
   the copy. */
.qd-stage{position:absolute;inset:0}
@supports (width:1cqw){
  .qd-stage{inset:auto;width:max(100cqw,100cqh * 1.5 * var(--fill));height:calc(max(100cqw,100cqh * 1.5 * var(--fill)) / 1.5);
    left:calc((100cqw - max(100cqw,100cqh * 1.5 * var(--fill))) * var(--ax));top:calc((100cqh - max(100cqw,100cqh * 1.5 * var(--fill)) / 1.5) * var(--ay))}
}
.qd-stage img{position:absolute;inset:0;width:100%;height:100%;display:block}
.qd-art--right .qd-stage{transform:scaleX(-1)}
/* Its light: a scan checks each door every 10s; dark doors flicker cyan as
   it passes and the gold door glows when it arrives. The rooftop lights and
   the dust are the banner's (.hb-lt, .hb-mote). */
.qd-fx{position:absolute;inset:0;pointer-events:none;
  -webkit-mask:url(/assets/hero/doors-fx.webp) 0 0/100% 100% no-repeat;mask:url(/assets/hero/doors-fx.webp) 0 0/100% 100% no-repeat}
.qd-scan{position:absolute;top:0;bottom:0;left:0;width:2%;opacity:0;will-change:transform,opacity;
  background:linear-gradient(90deg,rgba(90,175,240,0),rgba(160,220,255,.8) 50%,rgba(90,175,240,0));animation:qd-scan 10s linear var(--t,0s) infinite}
@keyframes qd-scan{0%{transform:translateX(4600%);opacity:0}2%{opacity:1}34%{opacity:1}36%{transform:translateX(0%);opacity:0}100%{transform:translateX(0%);opacity:0}}
.qd-door{position:absolute;pointer-events:none;opacity:0;will-change:opacity;
  background:linear-gradient(90deg,rgba(70,200,255,0),rgba(110,215,255,.5) 70%,rgba(200,242,255,.95));box-shadow:0 0 10px 2px rgba(70,200,255,.32);
  animation:qd-door 10s ease-out var(--t,0s) infinite}
@keyframes qd-door{0%{opacity:0}2%{opacity:1}12%{opacity:0}100%{opacity:0}}
.qd-door.lit{background:radial-gradient(closest-side,rgba(255,228,176,.85),rgba(255,200,130,0));box-shadow:0 0 36px 12px rgba(255,196,128,.35);mix-blend-mode:screen;animation-name:qd-lit}
@keyframes qd-lit{0%{opacity:.15}4%{opacity:1}30%{opacity:.5}100%{opacity:.15}}
@supports not (width:1cqw){.qd-fx,.qd-door,.qd-stage .hb-lt,.qd-stage .hb-mote{display:none}}
@media (prefers-reduced-motion:reduce){.qd-fx,.qd-door:not(.lit),.qd-stage .hb-mote{display:none}.qd-door.lit{animation:none;opacity:.55}}


/* /quantum: the research band, light, with the doors on the right. The band
   keeps its id (#prism-q) for existing links; the old figure's rules for that
   id (quantum-service.css) are reset here. */
.q-band,#prism-q.q-band{background:transparent;color:#1b1e26;padding:0}
#prism-q.q-band h2{min-height:0}
#prism-q.q-band h2 em{color:#3045b5}
.q-band .qd-art{position:absolute;z-index:-1;top:0;bottom:0;right:0;pointer-events:none;container-type:size;--ax:1;--ay:.5;--fill:.75;
  left:calc(max(0px,(100% - 1440px) / 2) + clamp(24px,5.5vw,80px) + 660px);
  -webkit-mask-image:linear-gradient(270deg,#000 82%,transparent),linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(270deg,#000 82%,transparent),linear-gradient(180deg,transparent 0,#000 7%,#000 93%,transparent);mask-composite:intersect}
body.editorial-site .q-band{margin:clamp(24px,3vw,48px) 0}
body.editorial-site .q-band .hero-band-inner{max-width:1440px;padding-top:clamp(56px,6vw,96px);padding-bottom:clamp(56px,6vw,96px)}
body.editorial-site .q-band-kicker{font:12px/1.5 var(--mono,'JetBrains Mono',monospace);letter-spacing:.08em;text-transform:uppercase;color:#5864b8;margin:0 0 22px}
body.editorial-site .q-band h2{font-size:clamp(38px,4.4vw,64px)!important;line-height:1.05!important;letter-spacing:-.045em!important;font-weight:400!important;color:#1b1e26!important;max-width:12ch;margin:0}
body.editorial-site .q-band h2 em{font-style:normal;color:#3045b5}
body.editorial-site .q-band-lead{color:#585d69!important;font-size:16px!important;line-height:1.7!important;max-width:56ch;margin:24px 0 0}
body.editorial-site .q-band-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:34px;max-width:640px}
body.editorial-site .q-band-cards article{border:1px solid #d9dad5;background:#fbfaf7;border-radius:12px;padding:18px 18px 20px}
body.editorial-site .q-band-cards span{font:10px/1.6 var(--mono,'JetBrains Mono',monospace);letter-spacing:.1em;color:#a3462d}
body.editorial-site .q-band-cards h3{color:#1b1e26!important;font-size:17px!important;font-weight:500!important;margin:8px 0 0}
body.editorial-site .q-band-cards p{color:#585d69!important;font-size:13px!important;line-height:1.6!important;margin:6px 0 0}
body.editorial-site .q-band-note{color:#5f646d!important;font-size:12px!important;margin:22px 0 0}
@media (max-width:1099px){
  .q-band{display:flex;flex-direction:column}
  .q-band .qd-art{position:relative;inset:auto;width:100%;height:clamp(260px,62vw,540px);--ax:.96;--ay:.12;z-index:0;
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 80%,transparent),linear-gradient(270deg,#000 85%,transparent);
    mask-image:linear-gradient(180deg,transparent 0,#000 8%,#000 80%,transparent),linear-gradient(270deg,#000 85%,transparent)}
  body.editorial-site .q-band .hero-band-inner{padding-top:0;padding-bottom:52px;margin-top:-8px;position:relative}
}
@media (max-width:760px){
  .q-band .qd-art{height:clamp(240px,72vw,340px);--ay:.1}
  body.editorial-site .q-band-cards{grid-template-columns:1fr}
  body.editorial-site .q-band h2{max-width:none}
}
