/* ==========================================================================
   The dusk scene: sky, skylight arches, horizon and the perspective grid.
   Built only from the brand's own shapes. One low-res texture layer at most.
   ========================================================================== */

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--floor);
}

.scene__sky {
  position: absolute;
  inset: 0 0 var(--floor-h, 30%) 0;
  background: var(--sky);
  z-index: -3;
}

.scene__arches {
  position: absolute;
  left: 50%;
  bottom: var(--floor-h, 30%);
  width: max(1400px, 120%);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  z-index: -2;
  pointer-events: none;
}

.scene__arches path {
  fill: none;
  stroke: var(--arch-line);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.scene__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--floor-h, 30%);
  overflow: hidden;
  perspective: 280px;
  perspective-origin: 50% 0%;
  z-index: -2;
  background: var(--floor);
  box-shadow: 0 -1px 0 var(--horizon-glow), 0 -10px 30px -6px var(--horizon-glow);
}

.scene__grid {
  position: absolute;
  left: -100%;
  right: -100%;
  top: 0;
  height: 400%;
  transform-origin: 50% 0;
  transform: rotateX(68deg);
  background-image:
    linear-gradient(to right, var(--grid-line) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, var(--grid-line) 1.5px, transparent 1.5px);
  background-size: 56px 56px;
  background-position: center 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 100%);
  animation: grid-drift 7s linear infinite;
}

@keyframes grid-drift {
  from {
    background-position: center 0;
  }
  to {
    background-position: center 56px;
  }
}

/* A single scanline layer: low resolution as texture, kept faint. */
.scene--scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

[data-theme="skylight"] .scene--scanlines::after {
  background: repeating-linear-gradient(0deg, rgba(22, 19, 42, 0.035) 0 1px, transparent 1px 3px);
}

/* Glass plate: the surface-raised panel that carries the wordmark. */
.plate {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
  --floor-h: 26%;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  padding: var(--space-6) 0 calc(var(--space-6) + 6vh);
}

.hero .container {
  display: flex;
  justify-content: center;
}

.hero__plate {
  width: min(880px, 100%);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px);
  text-align: center;
}

.hero__wordmark {
  display: flex;
  justify-content: center;
}

.hero__wordmark img {
  width: min(680px, 100%);
  min-width: 160px;
  height: auto;
}

.hero__wordmark img.wordmark--expo {
  width: min(520px, 100%);
  min-width: 200px;
}

.hero__descriptor {
  margin: 4px 0 0;
}

.hero__lead {
  max-width: 560px;
  margin: var(--space-4) auto 0;
  color: var(--text);
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

@media (max-width: 640px) {
  .hero {
    --floor-h: 22%;
    padding: var(--space-5) 0 calc(var(--space-5) + 8vh);
  }

  .hero__lead {
    font-size: 16px;
    line-height: 26px;
  }

  .hero__descriptor {
    font-size: 12px;
    letter-spacing: 0.26em;
  }
}

/* --------------------------------------------------------------------------
   Masthead: a short scene band for section landing pages
   -------------------------------------------------------------------------- */

.masthead {
  --floor-h: 64px;
  padding: var(--space-6) 0 calc(64px + var(--space-5));
}

.masthead .label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--text-muted);
}

.masthead h1 {
  max-width: 900px;
}

.masthead p {
  max-width: 620px;
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
}

[data-theme="dusk"] .masthead p,
:root:not([data-theme]) .masthead p {
  color: #d9d3e6;
}

.masthead .scene__grid {
  animation-duration: 9s;
}

@media (max-width: 640px) {
  .masthead {
    --floor-h: 44px;
    padding: var(--space-5) 0 calc(44px + var(--space-4));
  }
}
