/* ==========================================================================
   Hero: 3D glass scene, headline, services ticker, studio label, clock, logo
   Breakpoints: desktop ≥1200 · tablet 810–1199 · phone ≤809
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: calc(100svh + 58px);
  min-height: 678px;
  background:
    radial-gradient(ellipse at 18% 34%, rgba(255, 248, 238, .055), transparent 28%),
    radial-gradient(ellipse at 84% 30%, rgba(72, 92, 255, .07), transparent 25%),
    #000;
  color: #fff;
}
/* fade into the dark top edge of the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 106px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 1, 8, 0) 0%, rgba(2, 1, 8, .48) 54%, var(--c-ink) 100%);
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* All text layers sit above the scene and never catch the pointer,
   so the 3D sphere keeps following the cursor everywhere. */
.hero__content {
  position: absolute;
  inset: 0 0 auto 0;
  height: 89vh;
  z-index: 3;
  pointer-events: none;
}

.hero__headline {
  position: absolute;
  top: 55px;
  left: calc(30px + clamp(10px, 1.2vw, 20px));
  width: min(42vw, 700px);
  font-size: 27.2px;
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
  color: rgba(255, 255, 255, .92);
  text-wrap: balance;
}
.hero__headline span {
  color: rgba(255, 255, 255, .5);
  line-height: 1.15;
  letter-spacing: -.05em;
}

/* Vertical services ticker (driven by js/hero.js) */
.hero__services {
  position: absolute;
  top: 25px;
  right: 30px;
  width: clamp(280px, 26vw, 400px);
  height: 286px;
  transform: translateY(18px);
}
.hero__services-viewport {
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .15) 5%, #000 14%, #000 86%, rgba(0, 0, 0, .15) 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .15) 5%, #000 14%, #000 86%, rgba(0, 0, 0, .15) 95%, transparent 100%);
}
.hero__services-track { display: flex; flex-direction: column; will-change: transform; }
.hero__service {
  display: flex;
  justify-content: center;
  padding: 2px 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.hero__service span {
  display: block;
  color: rgba(255, 255, 255, calc(.3 + .7 * var(--focus, 0)));
  transform: translate3d(calc(10px + var(--arc, 0px)), 0, 0) scale(calc(1 + .22 * var(--center, 0)));
}
.hero__services-arrow {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 5;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, .96);
  transform: translateY(-50%);
}

.hero__label {
  position: absolute;
  left: 40px;
  top: 45.6vh;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font: 500 10px/1.35 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, .5);
}

/* Local time of the visitor — positioned by js/hero.js together with the logo */
.hero__clock {
  position: absolute;
  left: 72.5%;
  bottom: 70px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font: 500 10px/1.3 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-grey);
}
.hero__clock-label { opacity: .6; }
.hero__clock-time { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.hero__clock-sep {
  margin: 0 1px;
  line-height: 1;
  transform: translateY(-1px);
  animation: clock-blink 1s step-end infinite;
}
.hero__clock-tz { margin-left: 2px; opacity: .6; }
@keyframes clock-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.hero__logo {
  position: absolute;
  z-index: 6;
  object-fit: contain;
  object-position: left bottom;
  pointer-events: none;
}

/* Tablet */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .hero__headline { top: 65px; font-size: 22.4px; }
  .hero__services { top: 35px; }
  .hero__label { top: 66.7vh; }
}

/* Phone */
@media (max-width: 809.98px) {
  .hero__content { height: 100%; }
  .hero__headline {
    top: calc(clamp(108px, 14svh, 140px) + 10px);
    left: 39px;
    right: 25px;
    width: auto;
    font-size: clamp(26px, 6.6vw, 40px);
    line-height: 1.03;
  }
  .hero__services {
    top: 48%;
    right: clamp(18px, 5vw, 32px);
    width: clamp(205px, 64vw, 272px);
    height: clamp(158px, 24svh, 202px);
    transform: translateY(-50%);
  }
  .hero__service { font-size: clamp(14px, 3.8vw, 18px); line-height: 1.05; }
  .hero__label {
    left: 19px;
    top: calc(clamp(260px, 35svh, 330px) + 26px);
    transform: rotate(180deg);
    line-height: 1;
  }
}
