/* Box-only layer adapted from "Hero boxy 02.09.2026.zip".
   Scroll, video, cue, scrim and page-layout rules stay in HeroFourScene.css. */

.hero-four-copy-shell {
  width: min(39vw, 35rem);
}

.hero-four-card {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 1.125rem;
  padding: clamp(1.625rem, 3.2vw, 2.75rem);
  background: rgba(6, 6, 10, 0.38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  will-change: transform, clip-path;
}

.hero-four-card-accent {
  background: linear-gradient(90deg, transparent 0, var(--hero-hue) 27px, var(--hero-hue) 34%, transparent 61%);
  clip-path: inset(0 0 calc(100% - 22px) 0);
}

.hero-four-meta {
  align-items: baseline;
  gap: 1.125rem;
  margin-bottom: 0;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  text-transform: uppercase;
}

.hero-four-counter {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
}

.hero-four-eyebrow {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
}

.hero-four-title,
.hero-four-title.is-compact {
  margin-top: 1.375rem;
  font-size: clamp(1.875rem, 3.6vw, 3.125rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-four-word-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
  vertical-align: bottom;
}

.hero-four-word-mask > span {
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}

.hero-four-lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.875rem, 1.15vw, 1rem);
  line-height: 1.65;
}

.hero-four-tags {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.875rem, 2vw, 1.875rem);
  margin: 1.625rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.hero-four-tag {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  color: rgba(255, 255, 255, 0.79);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-four-tag-node {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  background: transparent;
  transform: rotate(45deg);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.hero-four-tag.is-lit .hero-four-tag-node {
  border-color: var(--hero-hue);
  background: var(--hero-hue);
  box-shadow: 0 0 12px var(--hero-hue);
}

.hero-four-telemetry {
  margin-top: 1.625rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-four-telemetry-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.hero-four-telemetry-label b {
  color: var(--hero-hue);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hero-four-bar {
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-four-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--hero-hue);
  box-shadow: 0 0 10px var(--hero-hue);
}

.hero-four-sync-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.hero-four-sync-channel {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.375rem;
}

.hero-four-sync-channel small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-four-sync-total {
  min-width: 5.375rem;
  color: var(--hero-hue);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-align: right;
  white-space: nowrap;
}

.hero-four-pit {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hero-four-pit > b {
  color: #fff;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.125rem, 3.4vw, 3rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.hero-four-pit > span,
.hero-four-pit > em {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
  text-transform: uppercase;
}

.hero-four-pit > span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
}

.hero-four-pit > em {
  color: #59e3ff;
  font-size: 0.625rem;
  font-style: normal;
  letter-spacing: 0.14em;
}

.hero-four-spark {
  width: 100%;
  height: 3.5rem;
  overflow: visible;
}

.hero-four-spark-line {
  fill: none;
  stroke: var(--hero-hue);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--hero-hue));
}

.hero-four-actions {
  gap: 0.75rem;
  margin-top: 1.875rem;
}

.hero-four-cta {
  min-height: 2.75rem;
  padding: 0.75rem 1.375rem;
  font-size: 0.875rem;
}

.hero-four-card.is-glitch {
  animation: heroFourChroma 0.5s steps(2, end) both;
}

.hero-four-card.is-static [data-hero-box-word] {
  transform: translateY(0);
}

@keyframes heroFourChroma {
  0% { text-shadow: none; filter: none; }
  25% { text-shadow: -3px 0 #59e3ff, 3px 0 #ff3d6e; filter: hue-rotate(8deg); }
  55% { text-shadow: 2px 0 #59e3ff, -2px 0 #ff3d6e; }
  100% { text-shadow: none; filter: none; }
}

@media (max-width: 1279px) and (orientation: landscape) {
  .hero-four-copy-shell {
    width: min(47vw, 33rem);
  }

  .hero-four-card {
    padding: clamp(0.75rem, 1.6vw, 1.125rem);
    background: rgba(7, 7, 12, 0.7);
    backdrop-filter: blur(15px) saturate(1.05);
    -webkit-backdrop-filter: blur(15px) saturate(1.05);
    will-change: transform;
  }

  .hero-four-meta {
    gap: 0.65rem;
  }

  .hero-four-counter,
  .hero-four-eyebrow {
    font-size: clamp(0.48rem, 0.85vw, 0.58rem);
  }

  .hero-four-eyebrow {
    letter-spacing: 0.2em;
  }

  .hero-four-title,
  .hero-four-title.is-compact {
    margin-top: clamp(0.45rem, 1.2vh, 0.75rem);
    font-size: clamp(1.05rem, 2.75vw, 1.9rem);
    line-height: 1.03;
  }

  .hero-four-lead {
    margin-top: clamp(0.4rem, 1.25vh, 0.7rem);
    font-size: clamp(0.6rem, 1.12vw, 0.76rem);
    line-height: 1.38;
  }

  .hero-four-tags {
    gap: clamp(0.4rem, 1.2vw, 0.9rem);
    margin-top: clamp(0.42rem, 1.25vh, 0.7rem);
    padding-top: clamp(0.38rem, 1.1vh, 0.62rem);
  }

  .hero-four-tag {
    gap: 0.28rem;
    font-size: clamp(0.45rem, 0.82vw, 0.57rem);
    letter-spacing: 0.1em;
  }

  .hero-four-tag-node {
    width: 5px;
    height: 5px;
  }

  .hero-four-telemetry {
    margin-top: clamp(0.42rem, 1.25vh, 0.7rem);
    padding-top: clamp(0.38rem, 1.1vh, 0.62rem);
  }

  .hero-four-telemetry-label {
    margin-bottom: 0.35rem;
    font-size: clamp(0.42rem, 0.72vw, 0.5rem);
  }

  .hero-four-sync-row {
    gap: 0.45rem;
  }

  .hero-four-sync-channel {
    gap: 0.2rem;
  }

  .hero-four-sync-channel small {
    font-size: clamp(0.38rem, 0.65vw, 0.45rem);
  }

  .hero-four-sync-total {
    min-width: 4.25rem;
    font-size: clamp(0.46rem, 0.78vw, 0.56rem);
  }

  .hero-four-pit {
    gap: 0.5rem;
  }

  .hero-four-pit > b {
    font-size: clamp(1.45rem, 3vw, 2rem);
  }

  .hero-four-pit > span,
  .hero-four-pit > em {
    font-size: clamp(0.4rem, 0.7vw, 0.5rem);
  }

  .hero-four-spark {
    height: clamp(1.75rem, 6vh, 2.75rem);
  }

  .hero-four-actions {
    margin-top: clamp(0.5rem, 1.4vh, 0.8rem);
  }

  .hero-four-cta {
    min-height: 2.2rem;
    padding: 0.42rem 0.62rem;
    font-size: clamp(0.52rem, 0.92vw, 0.68rem);
  }
}

@media (max-width: 720px) and (orientation: landscape) {
  .hero-four-card {
    padding: 0.65rem 0.72rem;
    border-radius: 0.8rem;
  }

  .hero-four-meta {
    gap: 0.42rem;
  }

  .hero-four-counter,
  .hero-four-eyebrow {
    font-size: 0.45rem;
  }

  .hero-four-title,
  .hero-four-title.is-compact {
    margin-top: 0.38rem;
    font-size: clamp(0.96rem, 3vw, 1.22rem);
  }

  .hero-four-lead {
    margin-top: 0.34rem;
    font-size: clamp(0.53rem, 1.35vw, 0.62rem);
    line-height: 1.25;
  }

  .hero-four-tags,
  .hero-four-telemetry {
    margin-top: 0.34rem;
    padding-top: 0.32rem;
  }

  .hero-four-tag {
    font-size: 0.43rem;
  }

  .hero-four-telemetry-label,
  .hero-four-sync-channel small,
  .hero-four-pit > span,
  .hero-four-pit > em {
    font-size: 0.38rem;
  }

  .hero-four-spark {
    height: 1.6rem;
  }

  .hero-four-actions {
    margin-top: 0.38rem;
  }

  .hero-four-cta {
    min-height: 1.95rem;
    padding: 0.32rem 0.42rem;
    font-size: 0.48rem;
  }
}

@media (orientation: portrait) {
  .hero-four-static-copy .hero-four-card {
    background: rgba(7, 7, 12, 0.74);
  }

  .hero-four-static-copy .hero-four-title,
  .hero-four-static-copy .hero-four-title.is-compact {
    font-size: clamp(1.45rem, 6.6vw, 2.35rem);
  }

  .hero-four-static-copy .hero-four-pit > b {
    font-size: clamp(1.8rem, 9vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-four-card,
  .hero-four-card *,
  .hero-four-spark-line,
  .hero-four-spark-fill {
    animation: none !important;
    transition: none !important;
  }
}
