.site-shell {
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 6.5rem 0;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}

.hero {
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  border-top: none;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background-image: url('../img/hl2-wallpaper.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  will-change: transform;
  filter: saturate(0.7) contrast(1.05) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,18,18,0.88) 0%, rgba(18,18,18,0.55) 45%, rgba(18,18,18,0.28) 100%),
    linear-gradient(to top, rgba(12,12,12,0.92), rgba(12,12,12,0.12) 50%, rgba(12,12,12,0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--container));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(20,20,20,0.92);
  border-bottom: 1px solid var(--line);
}

.hud-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.25rem;
}

.hud > * { pointer-events: auto; }

.hud-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  background: #2a2a2a;
  overflow: hidden;
}
.hud-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--hev-dark), var(--hev));
  transition: transform 120ms linear;
}

/* Spoken script layout */
.hero--script .hero-content { max-width: 980px; }
.hero--script .hero-title { font-size: clamp(3.6rem, 10vw, 8.5rem); }

.script {
  position: relative;
  counter-reset: script;
}

.script-section {
  position: relative;
  padding: 6rem 0;
  border-top: 1px solid var(--line-soft);
  counter-increment: script;
  overflow: hidden;
}
.script-section:nth-of-type(odd) {
  background: linear-gradient(90deg, rgba(255, 156, 0, 0.022), transparent 32%);
}
.script-section:nth-of-type(even) {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.016), transparent 30%);
}
.script-section::before {
  content: counter(script, decimal-leading-zero);
  position: absolute;
  top: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 1;
  color: rgba(255, 156, 0, 0.035);
  pointer-events: none;
  z-index: 0;
}

.script-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 820px);
  margin: 0 auto;
}

.script-inner > p,
.script-row > p {
  position: relative;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #ded9cd;
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}
.script-inner > p::before,
.script-row > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 1px;
  background: var(--hev-dark);
}
.script-inner > p:first-of-type::first-letter {
  color: var(--hev);
  font-family: var(--font-display);
  font-size: 1.2em;
  line-height: 0;
}

.script-title {
  position: relative;
  margin: 0 0 2.4rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  letter-spacing: 0.01em;
}
.script-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1.1rem;
  width: 3.5rem;
  height: 3px;
  background: var(--hev);
}
.script-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 4rem;
  height: 1px;
  background: var(--hev);
}

.score-section {
  counter-increment: none;
  background: linear-gradient(180deg, rgba(255, 156, 0, 0.05), transparent 45%);
}
.score-section::before { content: ""; }
.score-inner {
  display: block;
  max-width: 900px;
}

@media (max-width: 900px) {
  .section { padding: 5.5rem 0; min-height: auto; }
  .hud-inner { grid-template-columns: 1fr auto; }
  .hud-center { display: none; }
  .script-section { padding: 4rem 0; }
  .script-inner {
    width: min(100% - 2rem, 680px);
  }
  .script-inner > p,
  .script-row > p { font-size: 1.05rem; }
  .script-section::before { font-size: 8rem; top: 1.5rem; }
}
