/* ======================================================================
   02. Hero Section
   ====================================================================== */
.hero-shell {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  background: var(--bg);
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(18rem, 0.96fr);
  gap: var(--page-gap);
  padding: 0;
  overflow: hidden;
}

.hero-main,
.hero-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
}

.hero-main {
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-main__headline {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: grid;
  gap: 0.35rem;
  max-width: min(32rem, calc(100% - 8rem));
  padding: 0.95rem 1.1rem 1rem;
  color: #fff;
  background: rgba(9, 13, 20, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-shell__eyebrow,
.hero-shell__window {
  margin: 0;
}

.hero-shell__eyebrow {
  font-size: 0.74rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero-shell__title {
  display: none;
}

.hero-shell__window {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.hero-carousel,
.hero-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-track {
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
  display: grid;
  align-items: end;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__link {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: scale(1.01);
  z-index: 0;
}

.hero-slide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(4, 6, 10, 0.88) 0%,
      rgba(4, 6, 10, 0.62) 26%,
      rgba(4, 6, 10, 0.26) 54%,
      rgba(4, 6, 10, 0.08) 76%,
      rgba(4, 6, 10, 0) 100%),
    linear-gradient(to bottom, rgba(4, 6, 10, 0.2), rgba(4, 6, 10, 0.06));
  pointer-events: none;
}

.hero-slide__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  display: block;
  transition: transform 360ms ease;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  align-content: end;
  width: min(42rem, calc(100% - 7rem));
  margin: 0 4.25rem 1.6rem;
  color: #fff;
}

.hero-kicker {
  margin: 0;
  font-size: var(--hero-kicker);
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.hero-title {
  margin: 0;
  font-size: var(--hero-title);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 10ch;
  text-wrap: balance;
}

.hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: var(--hero-lead);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-meta,
.hero-cta {
  margin: 0;
}

.hero-meta {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
}

.hero-cta::after {
  content: "";
  width: 2.1rem;
  height: 1px;
  background: currentColor;
}

.hero-main__controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-arrows,
.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  pointer-events: auto;
}

.hero-arrows {
  position: absolute;
  inset-inline: 0.75rem;
  inset-block: 50% auto;
  transform: translateY(-50%);
  justify-content: space-between;
}

.hero-arrow {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  width: clamp(3.1rem, 4.2vw, 3.75rem);
  height: clamp(3.1rem, 4.2vw, 3.75rem);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  position: relative;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  inset: -0.65rem;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
  outline: none;
}

.hero-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.hero-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.65rem;
  backdrop-filter: blur(8px);
}

.hero-dot {
  appearance: none;
  border: 0;
  margin: 0;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-dot[aria-current="true"] {
  background: #fff;
  transform: scale(1.16);
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}

.hero-slide__link:hover .hero-slide__media,
.hero-slide__link:focus-visible .hero-slide__media {
  transform: scale(1.04);
}

.hero-slide__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -2px;
}

.hero-rail {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--page-gap);
  overflow: hidden;
}

.hero-card {
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  min-height: 0;
  text-decoration: none;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 220ms ease;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  pointer-events: none;
}

.hero-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1rem 1.05rem;
  color: #fff;
}

.hero-card__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-size: var(--card-title);
  line-height: 1;
  letter-spacing: -0.035em;
  transition: transform 280ms cubic-bezier(.22, .61, .36, 1);
}

.hero-card__title i {
  font-size: 1em;
  line-height: 1;
  color: var(--sp-layer-on-media-88);
}

.hero-card__text {
  margin: 0;
  font-size: var(--sp-type-body-md);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.85rem);
  transition:
    max-height 280ms cubic-bezier(.22, .61, .36, 1),
    margin-top 280ms cubic-bezier(.22, .61, .36, 1),
    opacity 220ms ease,
    transform 280ms cubic-bezier(.22, .61, .36, 1);
}

.hero-card:hover .hero-card__image,
.hero-card:focus-visible .hero-card__image {
  transform: scale(1.04);
}

.hero-card:hover .hero-card__title,
.hero-card:focus-visible .hero-card__title {
  transform: translateY(-0.12rem);
}

.hero-card:hover .hero-card__text,
.hero-card:focus-visible .hero-card__text {
  max-height: 4.6rem;
  margin-top: 0.4rem;
  opacity: 1;
  transform: translateY(0);
}

.hero-card:focus-visible,
.hero-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

@media (max-width: 64rem) {
  .hero-main__headline {
    max-width: min(26rem, calc(100% - 6.5rem));
  }

  .hero-slide__content {
    width: min(36rem, calc(100% - 7.5rem));
    margin: 0 3.75rem 2.6rem;
  }

  .hero-card__text {
    max-width: 24ch;
  }
}

@media (max-width: 48rem) {

  .hero-shell,
  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 61.8fr 38.2fr;
    gap: 0;
  }

  .hero-main,
  .hero-rail {
    height: 100%;
    gap: 0;
  }

  .hero-slide__content {
    width: calc(100% - 7.5rem);
    margin: 0 3.75rem 2.6rem;
    gap: 0.65rem;
  }

  .hero-main__headline {
    top: 0.8rem;
    left: 0.8rem;
    max-width: calc(100% - 1.6rem);
    padding: 0.8rem 0.9rem 0.88rem;
  }

  .hero-title {
    max-width: 11ch;
    font-size: var(--sp-type-hero-title-mobile);
  }

  .hero-lead {
    font-size: var(--sp-type-body-base);
    line-height: 1.55;
  }

  .hero-arrows {
    inset-inline: 0.4rem;
  }

  .hero-dots {
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.35rem 0.55rem;
  }

  .hero-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }

  .hero-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }

  .hero-card {
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero-card:last-child {
    border-inline-end: 0;
  }

  .hero-card__content {
    padding: 0.75rem 0.7rem 0.8rem;
  }

  .hero-card__title {
    font-size: var(--sp-type-card-title-mobile);
    min-height: calc(var(--sp-type-card-title-mobile) * 2);
  }

  .hero-card__text {
    display: none;
  }
}
