/* The hero's 3D scene. hero-scene.js draws the canvas and moves the core and the labels;
   the text stays HTML so it is sharp at every size and readable without the canvas. */
.hero-scene{--callouts:1;--unit:132px;position:relative;align-self:center;height:540px;margin-top:10px;isolation:isolate}
.hero-scene::before{content:'';position:absolute;inset:6% 24% 0 -12%;border-radius:50%;background:radial-gradient(ellipse,#46705f2e 0%,#4d6c7b10 46%,transparent 72%);z-index:-1}
.hero-scene canvas{position:absolute;top:-50px;left:-14%;width:114%;height:calc(100% + 80px);display:block}

.scene-top,.scene-bottom{position:absolute;left:0;right:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:9px;letter-spacing:1.3px;color:#84938c}
.scene-top{top:0}
.scene-top>span{display:flex;align-items:center;gap:9px}
.scene-top i{width:5px;height:5px;border-radius:50%;background:var(--mint);box-shadow:0 0 10px #c5f3d480}
.scene-top button{margin:-10px 0;padding:10px 0 10px 14px;font-size:10px;letter-spacing:.4px;color:#a5b2ab}
.scene-bottom{bottom:0}

.scene-core{position:absolute;left:0;top:0;z-index:2;width:calc(var(--unit)*.62);aspect-ratio:1;display:grid;place-items:center;border:1px solid #c5f3d459;border-radius:50%;background:radial-gradient(circle at 34% 26%,#d2f0de3d 0%,#1c3228eb 48%,#101b17f7 100%);box-shadow:0 0 calc(var(--unit)*.42) #a9e6c633,inset 0 0 calc(var(--unit)*.15) #c5f3d42b;pointer-events:none;will-change:transform;transition:opacity .7s ease,scale .9s cubic-bezier(.2,.9,.3,1.25)}
.scene-core>span{font:600 calc(var(--unit)*.3)/1 var(--display);letter-spacing:-.085em;color:var(--mint);padding-right:.07em;margin-top:-.08em}
.scene-core-tag{position:absolute;left:0;top:0;z-index:2;margin:0;font-size:9px;line-height:10px;letter-spacing:1.3px;color:#a6b9ad;white-space:nowrap;pointer-events:none;will-change:transform;transition:opacity .6s ease .15s}

.scene-labels{position:absolute;inset:0;z-index:3;pointer-events:none}
.system-label{position:absolute;right:0;display:flex;align-items:center;gap:11px;padding:10px 15px 10px 12px;border:1px solid #a0b7aa26;border-left:2px solid var(--mint);border-radius:3px 9px 9px 3px;background:linear-gradient(120deg,#212b27f7,#151a19f7);box-shadow:0 14px 36px #00000059;font-size:9px;font-weight:500;line-height:1.4;letter-spacing:1.2px;white-space:nowrap;transition:opacity .6s ease,border-color .3s ease,background-color .3s ease}
.system-label>span:last-child{display:flex;flex-direction:column}
.system-label small{margin-top:1px;font-size:10.5px;font-weight:400;letter-spacing:0;color:#8fa397}
.label-icon{width:16px;font-size:14px;line-height:1;text-align:center;color:var(--mint)}
.label-one{top:27%}
.label-two{top:45%;border-left-color:var(--purple)}
.label-two .label-icon{color:var(--purple)}
.label-three{top:63%;border-left-color:var(--blue)}
.label-three .label-icon{color:var(--blue)}
.system-label.is-active{border-top-color:#c5f3d44d;border-right-color:#c5f3d44d;border-bottom-color:#c5f3d44d;background-color:#26332d}
.hero-scene.is-tracked .system-label{left:0;top:0;right:auto;will-change:transform}
.hero-scene.is-tracked .scene-core-tag{display:block}

/* Until the stack has assembled, the core and the labels wait. The page starts in this state and the
   script ends it; if the script never runs, the delayed animation shows the text anyway. */
@keyframes scene-reveal{to{opacity:1;scale:1}}
.hero-scene.is-waiting .scene-core{opacity:0;scale:.55;animation:scene-reveal .6s 6s forwards}
.hero-scene.is-waiting .scene-core-tag,.hero-scene.is-waiting .system-label{opacity:0;animation:scene-reveal .6s 6s forwards}
.hero-scene .label-two{transition-delay:.1s}
.hero-scene .label-three{transition-delay:.2s}

@media(min-width:1600px){.hero-scene{height:590px}}
@media(max-width:1150px){
  .hero-scene{height:480px}
  .system-label{padding:9px 12px 9px 10px;gap:9px}
  .system-label small{display:none}
}
/* Narrow columns have no room for callouts beside the stack, so the labels become a legend under it. */
@media(max-width:1000px){
  .hero-scene{--callouts:0}
  .hero-scene canvas{left:-6%;width:106%}
  .hero-scene::before{inset:8% 4% 10%}
  .scene-core-tag{display:none}
  .scene-labels{inset:auto 0 30px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
  .system-label,.hero-scene.is-tracked .system-label{position:static;padding:7px 10px 7px 8px;gap:7px;font-size:8.5px;letter-spacing:.7px;box-shadow:none;transform:none!important}
  .label-icon{width:12px;font-size:11px}
}
@media(max-width:900px){
  .hero-scene{height:440px;margin-right:-15px}
  .hero-scene canvas{left:0;width:100%}
  .scene-top,.scene-bottom{font-size:8px;letter-spacing:1px}
  .scene-top button{font-size:9px}
}
/* On a phone the coloured edge alone ties each label to its layer, so the three fit on one line. */
@media(max-width:700px){
  .hero-scene{width:100%;height:400px;margin:34px 0 0}
  .scene-top,.scene-bottom{font-size:9px}
  .scene-top button{font-size:10px}
  .scene-labels{bottom:34px}
  .label-icon{display:none}
  .system-label,.hero-scene.is-tracked .system-label{font-size:9px;padding:7px 10px 7px 9px}
}
@media(max-width:380px){
  .hero-scene{height:380px}
  .scene-labels{gap:4px}
  .system-label,.hero-scene.is-tracked .system-label{font-size:8px;letter-spacing:.5px;padding:6px 7px 6px 6px}
}
@media(prefers-reduced-motion:reduce){
  .scene-core,.scene-core-tag,.system-label{transition:none}
}
