/* ==========================================================================
   HOME — FULL-SCREEN HERO VARIANT  (<body data-hero="full">)
   Full-bleed perforated-steel panel that fills exactly the first screen under
   the header, with the department "control strip" pinned to its bottom edge.
   Reuses .showroom__slide (cross-fading images) from home.css.
   ========================================================================== */

.hero-full__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  /* exactly one screen: strip sits on the bottom edge of the viewport */
  height: calc(100svh - var(--hero-offset, 174px));
  min-height: 520px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle, rgb(23 27 33 / 0.08) 1.3px, transparent 1.8px) 0 0 / 20px 20px,
    linear-gradient(170deg, var(--surface-steel) 0%, var(--surface-steel-strong) 100%);
}

/* soft light behind the equipment */
.hero-full__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: -10%;
  inset-inline-end: -10%;
  width: 70%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0));
}

/* wider than the regular container: this section spans the full screen */
.hero-full__wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 64px);
}

.hero-full__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  min-height: 0;
  padding-block: clamp(24px, 5vh, 72px);
}

.hero-full__main > * {
  min-width: 0;
}

/* ---- Copy -------------------------------------------------------------- */

.hero-full__content {
  display: grid;
  gap: var(--space-6);
  align-content: center;
  max-width: 720px;
}

.hero-full__title {
  /* capped by viewport height so the hero always fits the first screen */
  font-size: min(clamp(2.5rem, 1rem + 4.2vw, 6rem), 10.5vh);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-full__title-accent {
  color: var(--primary);
}

.hero-full__lead {
  max-width: 34rem;
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-full__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---- Visual ------------------------------------------------------------ */

.hero-full__visual {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.hero-full__stage {
  position: absolute;
  inset: 0;
}

.showroom__slide.hero-full__slide {
  padding: 0;
}

/* ---- Department control strip ----------------------------------------- */

.hero-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* the strip runs edge to edge, wider than the content above it */
.hero-strip__list.hero-full__wrap {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  max-width: none;
  margin: 0;
  padding-inline: 0;
  list-style: none;
}

.hero-strip__list li + li {
  border-inline-start: 1px solid var(--border);
}

.hero-strip__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "lamp name"
    ".    count";
  column-gap: 10px;
  row-gap: 4px;
  height: 100%;
  padding: var(--space-5) var(--space-4);
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease);
}

.hero-strip__item:hover {
  background: var(--background);
}

.hero-strip__item:focus-visible {
  border-radius: 0;
}

.hero-strip__lamp {
  grid-area: lamp;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition:
    background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.hero-strip__name {
  grid-area: name;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.hero-strip__count {
  grid-area: count;
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.hero-strip__item.is-active {
  background: var(--secondary);
  color: var(--on-secondary);
}

.hero-strip__item.is-active .hero-strip__lamp {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(242 165 65 / 0.25), 0 0 12px var(--accent);
}

.hero-strip__item.is-active .hero-strip__count {
  color: var(--text-on-dark-muted);
}

/* autoplay timer for the active cell (keyframes in home.css) */
.hero-strip__progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
}

[dir="ltr"] .hero-strip__progress {
  transform-origin: left;
}

.hero-strip__progress.is-running {
  animation: showroom-progress var(--showroom-interval, 5s) linear forwards;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1360px) {
  /* strip becomes a horizontal scroller */
  .hero-strip__list.hero-full__wrap {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 172px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .hero-strip__list::-webkit-scrollbar {
    display: none;
  }

  .hero-strip__list li {
    scroll-snap-align: start;
  }
}

@media (max-width: 992px) {
  /* stacked layout: let the content set the height */
  .hero-full__panel {
    height: auto;
    min-height: 0;
  }

  .hero-full__panel::before {
    inset-block: auto -10%;
    inset-inline: -20%;
    width: auto;
    height: 70%;
  }

  .hero-full__main {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .hero-full__content {
    max-width: 680px;
  }

  .hero-full__visual {
    aspect-ratio: 16 / 10;
  }

  .hero-strip__item {
    padding: var(--space-4);
  }
}

@media (max-width: 560px) {
  .hero-full__content {
    gap: var(--space-5);
  }

  .hero-full__lead {
    font-size: var(--fs-md);
  }

  .hero-full__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-full__visual {
    aspect-ratio: 1 / 0.85;
  }

  .hero-strip__list.hero-full__wrap {
    grid-auto-columns: 148px;
  }
}
