/* Hero: layered background (network canvas, glow, grid floor, pointer spotlight, grain, vignette), the services orbit,
   and the markets strip (styles in ticker.css). Intro: the visual plays first (orbit centred and enlarged), then from --t0 the orbit glides into
   place and the text settles in. Pure CSS, so it runs without JS; js/hero.js only skips it on input.
   All motion stops under prefers-reduced-motion. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  --t0: 3.1s; min-height: calc(100svh - 68px); padding: 56px 0 132px;
  background: radial-gradient(110% 90% at 78% 42%, #222820 0%, #191c1b 45%, #121514 100%);
}
.hero-field, .hero-glow, .hero-floor, .hero-spot { position: absolute; pointer-events: none; }
.hero-field { inset: 0; width: 100%; height: 100%; z-index: -4; animation: fade-in 1.8s ease-out both; }
.hero-glow {
  z-index: -3; width: 1000px; height: 1000px; right: -260px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(224, 182, 70, .2), rgba(224, 182, 70, .05) 38%, transparent 66%);
  animation: fade-in 2.2s ease-out .2s both;
}
.hero-floor {
  z-index: -2; left: -40%; right: -40%; bottom: 0; height: 52%;
  background-image: linear-gradient(rgba(224, 182, 70, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(224, 182, 70, .15) 1px, transparent 1px);
  background-size: 80px 80px; transform: perspective(480px) rotateX(66deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: fade-in 1.6s ease-out .4s both, floor 4s linear infinite;
}
.hero-spot { inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--px, 72%) var(--py, 42%), rgba(255, 225, 138, .07), transparent 65%); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, .5)); }
.hero::after {
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* copy and entrance */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: 100%; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(46px, 7vw, 96px); line-height: 1.02; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: block; animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--t0) + var(--i, 0) * .16s); }
.shine {
  background: linear-gradient(110deg, var(--gold) 35%, #fff2c2 50%, var(--gold) 65%) 100% 0 / 260% 100%;
  color: var(--gold); -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
}
.hero h1 .line > .shine { -webkit-background-clip: text; background-clip: text; animation: settle 1.2s cubic-bezier(.2, .7, .2, 1) calc(var(--t0) + .16s) both, shine 6s ease-in-out calc(var(--t0) + 1.8s) infinite; }
.fade { animation: settle-soft 1s ease-out both; animation-delay: calc(var(--t0) + var(--d, 0s)); }
.live {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 14px; border-radius: 999px;
  border: 1px solid rgba(224, 182, 70, .32); background: rgba(28, 32, 30, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; color: var(--soft);
}
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2s ease-out infinite; }

/* orbit; .stage carries the intro move from the hero centre (--cx, --s) into the right column */
.stage { --cx: calc(-.275 * min(100vw - 40px, 1120px) - 9px); --s: 1.15; animation: stage-in 3.4s both; }
.orbit {
  --size: min(540px, 88vw); --r: calc(var(--size) / 2 - 44px); --t: 90s;
  position: relative; width: var(--size); aspect-ratio: 1; margin: 0 auto;
  transform: perspective(1100px) rotateX(calc(var(--my, 0) * -7deg)) rotateY(calc(var(--mx, 0) * 9deg));
}
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring.outer { inset: 0; border: 1px dashed rgba(224, 182, 70, .25); animation: ring-in 1.4s cubic-bezier(.2, .7, .2, 1) .5s both, spin 140s linear infinite reverse; }
.ring.track { inset: 44px; border: 1px solid rgba(224, 182, 70, .3); box-shadow: inset 0 0 40px rgba(224, 182, 70, .06); animation: ring-in 1.4s cubic-bezier(.2, .7, .2, 1) .2s both; }
.ring.sweep {
  inset: 42px; background: conic-gradient(from 0deg, transparent 0 270deg, rgba(255, 225, 138, .85) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  filter: drop-shadow(0 0 6px rgba(255, 225, 138, .6)); animation: ring-in 1s ease-out 1s both, spin 7s linear infinite;
}
.ring.radar {
  inset: 27%; border: 1px solid rgba(224, 182, 70, .22);
  background: conic-gradient(from 0deg, transparent 0 300deg, rgba(224, 182, 70, .16) 360deg); animation: ring-in 1.4s cubic-bezier(.2, .7, .2, 1) .35s both, spin 10s linear infinite;
}
.core { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; animation: ring-in 1.6s cubic-bezier(.2, .7, .2, 1) .25s both; }
.halo { position: absolute; width: 44%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(224, 182, 70, .38), transparent 66%); animation: breathe 5s ease-in-out infinite; }
.core img { position: relative; width: 28%; filter: drop-shadow(0 16px 36px rgba(224, 182, 70, .45)); animation: float 7s ease-in-out infinite; }
.spin { position: absolute; inset: 0; z-index: 2; animation: spin var(--t) linear infinite reverse; }
.orbit:hover .spin, .orbit:hover .node-in { animation-play-state: paused; }
.spoke {
  position: absolute; left: 50%; bottom: 50%; width: 1px; height: calc(var(--r) - 32px); margin-left: -.5px;
  transform-origin: 50% 100%; transform: rotate(var(--a)); background: linear-gradient(to top, transparent 30%, rgba(224, 182, 70, .35));
  animation: fade-in 1s ease-out both; animation-delay: calc(1.6s + var(--d) * .2);
}
.spoke::after {
  content: ""; position: absolute; left: -1.5px; top: 0; width: 4px; height: 26px; border-radius: 2px; opacity: 0;
  background: linear-gradient(to bottom, rgba(255, 225, 138, 0), #ffe18a); box-shadow: 0 0 10px rgba(255, 225, 138, .8);
  animation: inflow 3.6s ease-in infinite; animation-delay: var(--d);
}
.node { position: absolute; left: 50%; top: 50%; width: 120px; margin: -31px 0 0 -60px; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))); }
.node-in { display: flex; flex-direction: column; align-items: center; gap: 8px; transform-origin: 50% 31px; animation: spin var(--t) linear infinite; }
.node i {
  position: relative; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold); background: radial-gradient(circle at 32% 26%, #303832, #161918 72%);
  border: 1px solid rgba(224, 182, 70, .55); box-shadow: 0 0 0 6px rgba(224, 182, 70, .06), 0 12px 30px rgba(0, 0, 0, .5);
  transition: box-shadow .3s, border-color .3s; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(1s + var(--k, 0) * .13s);
}
.node:hover i { border-color: var(--gold-lt); box-shadow: 0 0 0 6px rgba(224, 182, 70, .12), 0 0 28px rgba(224, 182, 70, .45); }
.node.live i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.4s ease-out infinite; }
.node span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: rgba(18, 21, 20, .75); border: 1px solid rgba(224, 182, 70, .18);
  animation: fade-in .6s ease-out both; animation-delay: calc(1.25s + var(--k, 0) * .13s);
}

@keyframes floor { to { background-position: 0 80px, 0 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } }
@keyframes settle-soft { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes ring-in { from { opacity: 0; scale: .55; } }
@keyframes pop { from { opacity: 0; scale: .2; } }
@keyframes strip-in { from { opacity: 0; transform: translateY(100%); } }
@keyframes stage-in {
  0% { opacity: 0; transform: translateX(var(--cx)) scale(calc(var(--s) * .82)); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  35% { opacity: 1; transform: translateX(var(--cx)) scale(var(--s)); animation-timing-function: linear; }
  65% { opacity: 1; transform: translateX(var(--cx)) scale(var(--s)); animation-timing-function: cubic-bezier(.65, 0, .25, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0 0; } }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .75; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes inflow { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { top: 62%; opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
  .hero { --t0: 2.2s; min-height: 0; padding: 32px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .stage { order: -1; --cx: 0px; --s: 1; }
  .orbit { --size: min(420px, 86vw); --r: calc(var(--size) / 2 - 38px); }
  .ring.track { inset: 38px; } .ring.sweep { inset: 36px; }
  .hero-glow { right: 50%; top: 70%; transform: translate(50%, -50%); width: 720px; height: 720px; }
  .hero-floor { height: 30%; }
}
@media (max-width: 480px) {
  .node { width: 96px; margin: -25px 0 0 -48px; }
  .node-in { transform-origin: 50% 25px; gap: 6px; }
  .node i { width: 50px; height: 50px; font-size: 20px; }
  .node span { font-size: 10px; padding: 3px 7px; letter-spacing: .05em; }
  .spoke { height: calc(var(--r) - 26px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after { animation: none !important; }
  .spoke::after { display: none; }
}
