/* The hero's last scene in depth (10 Nov 2026; c/js/hero-depth.js). A layered picture behind the headline, inside the
   hero's glass card: the glow, the deck's rings, the concrete beams screened over them, a light network. --dv (0 to 1)
   brings it in with the hero's progress. Behind the hero canvas, so the headline's wipe still draws on top. */
.hero-depth { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 1400px; isolation: isolate; opacity: var(--dv, 0); }
.hero-depth .hd-l { position: absolute; inset: -5%; will-change: transform; transform-style: preserve-3d; }

/* the glow behind the headline: purple with an amber heart (the deck cover), a little pink low on the right */
.hd-glow { background:
  radial-gradient(38% 46% at 30% 60%, rgb(122 60 224 / .32), transparent 70%),
  radial-gradient(16% 22% at 38% 62%, rgb(255 122 0 / .2), transparent 75%),
  radial-gradient(30% 40% at 86% 82%, rgb(230 0 126 / .2), transparent 72%); }

/* the rings: one layer each, so they part a little as the scene leans */
.hd-ring { position: absolute; left: 81%; top: 50%; width: 118vh; height: 118vh; margin: -59vh 0 0 -59vh; }
.hd-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* the concrete beams; screen lets the photo's black fall away, so the rings behind show through and lighten where the
   concrete crosses them */
.hd-photo { mix-blend-mode: screen; }
.hd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; opacity: .92;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 22%, #000 52%); }

.hd-net canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* a quiet hint once the scene is in; it goes after the first drag */
.hd-hint { position: absolute; right: clamp(28px, 4vw, 64px); top: calc(var(--hd, 80px) + 22px); z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 10px;
  font: 400 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); opacity: 0; transition: opacity .6s; }
.hd-hint::before { content: ""; width: 6px; height: 6px; background: var(--accent); }
.hero-depth.is-on .hd-hint { opacity: 1; }
.hero-depth .hd-hint.is-used { opacity: 0; }

/* phones: the rings and the beams above the headline */
@media (max-width: 767px) {
  .hd-ring { left: 72%; top: 24%; width: 130vw; height: 130vw; margin: -65vw 0 0 -65vw; }
  .hd-photo img { object-position: 70% 50%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 70%); mask-image: linear-gradient(180deg, #000 30%, transparent 70%); }
  .hd-hint { display: none; }
}
/* the no-WebGL and reduced-motion hero: the scene sits behind the headline, whole and still */
.no-gl .hero-depth { opacity: 1; }

/* while the scene is in, the hero can be dragged: a grab cursor (links and buttons keep theirs), no text selection mid-drag */
.hd-on .hero-intro { cursor: grab; }
.hd-on .hero-intro a, .hd-on .hero-intro button { cursor: pointer; }
.hd-drag, .hd-drag * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }

/* 11 Nov 2026: the rings are gone from the last scene (the manager's call); the glow, the beams and the network stay.
   Remove this line to bring them back. */
.hero-depth .hd-ring { display: none; }

/* 11 Nov 2026: the headline a little smaller on every page with this hero, so it no longer runs into the picture on the
   right. Desktop and tablet only; phones stack the picture above the headline and keep their size. */
@media (min-width: 768px) {
  .hero[data-hero]:not(.sv-const):not(.tn-hero2) { --t-hero: clamp(3.5rem, 10.6vw, 11.5rem); }   /* the home page (13.4vw before); services and solutions have their own heroes */
  .hero.hero-one .hero-h { font-size: clamp(40px, 5.3vw, 98px); }      /* the inner pages (6.1vw before) */
}
