/* ===========================================================
   sec1.css — HERO (cinematic full-bleed, two-column composition)
   =========================================================== */
#section-1 {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  overflow: hidden;
}
#section-1 .hero-media {
  position: absolute;
  inset: 0;
}
#section-1 .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
#section-1 .hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      112deg,
      rgba(var(--onyx-rgb), 0.86) 0%,
      rgba(var(--onyx-rgb), 0.6) 36%,
      rgba(var(--onyx-rgb), 0.16) 56%,
      rgba(var(--onyx-rgb), 0.52) 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--onyx-rgb), 0.46) 0%,
      rgba(var(--onyx-rgb), 0) 22%,
      rgba(var(--onyx-rgb), 0) 76%,
      rgba(var(--onyx-rgb), 0.55) 100%
    );
}

#section-1 .hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: var(--header-h);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  width: 100%;
}

/* ---------- left column ---------- */
.hero-left {
  max-width: 620px;
}
#section-1 h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  margin: 18px 0 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
#section-1 .hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 21px);
  color: rgba(var(--ivory-rgb), 0.88);
  margin-top: 16px;
  max-width: 520px;
}
#section-1 .hero-blurb {
  max-width: 480px;
  margin-top: 14px;
  color: rgba(var(--ivory-rgb), 0.72);
  font-weight: 400;
  font-size: 15px;
}
#section-1 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- right column: highlight panel ---------- */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-highlights {
  width: 100%;
  max-width: 400px;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(var(--ivory-rgb), 0.18);
  background: rgba(var(--onyx-rgb), 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
#section-1 .hero-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 26px;
  border-bottom: 1px solid rgba(var(--ivory-rgb), 0.13);
  transition:
    opacity 0.9s cubic-bezier(0.16, 0.8, 0.24, 1) calc(var(--i) * 0.09s + 0.45s),
    transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1)
      calc(var(--i) * 0.09s + 0.45s),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
#section-1 .hero-stat.reveal {
  transform: translateY(20px) scale(0.98);
}
#section-1 .hero-stat.reveal.in {
  transform: none;
}
#section-1 .hero-stat:last-child {
  border-bottom: none;
}
#section-1 .hero-stat:hover {
  background: rgba(var(--ivory-rgb), 0.05);
  border-color: rgba(var(--gold-rgb), 0.4);
  transform: translateX(-3px);
  box-shadow:
    inset 3px 0 0 var(--accent-soft),
    0 14px 30px -18px rgba(var(--onyx-rgb), 0.6);
}

/* traveling-focus ambient loop — a soft glow drifts down the list,
   pausing on each row in turn; isolated to ::after so it never
   fights the entrance/hover transitions on the row itself */
#section-1 .hero-stat::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--gold-rgb), 0.24) 0%,
    rgba(var(--gold-rgb), 0.08) 45%,
    rgba(var(--onyx-rgb), 0.22) 100%
  );
  box-shadow:
    inset 3px 0 0 var(--accent-soft),
    inset 0 1px 0 rgba(var(--gold-rgb), 0.35),
    inset 0 -1px 0 rgba(var(--gold-rgb), 0.35),
    0 0 26px -8px rgba(var(--gold-rgb), 0.55);
  animation: heroStatTravel 6s ease-in-out calc(var(--i) * 1.2s + 0.9s)
    infinite;
}
#section-1 .hero-stat:hover::after {
  animation-play-state: paused;
}
@keyframes heroStatTravel {
  0%,
  100% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  14% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #section-1 .hero-stat::after {
    animation: none;
    opacity: 0;
  }
}

.hero-stat .stat-k {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  flex: none;
}
.hero-stat .stat-v {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
  color: var(--ivory);
  text-align: right;
}

@media (max-height: 780px) and (min-width: 1081px) {
  #section-1 .hero-blurb {
    display: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-right {
    justify-content: flex-start;
  }
  .hero-highlights {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
  }
  #section-1 .hero-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border-right: 1px solid rgba(var(--ivory-rgb), 0.13);
  }
  #section-1 .hero-stat:nth-child(2n) {
    border-right: none;
  }
  #section-1 .hero-stat:nth-child(5) {
    grid-column: span 2;
  }
  #section-1 .hero-stat:hover {
    transform: translateY(-3px);
    box-shadow:
      inset 0 3px 0 var(--accent-soft),
      0 14px 30px -18px rgba(var(--onyx-rgb), 0.6);
  }
}
@media (max-width: 760px) {
  #section-1 .hero-content {
    padding-top: 108px;
  }
  #section-1 .hero-stat {
    padding: 16px 18px;
  }
  #section-1 .hero-stat .stat-v {
    font-size: 19px;
  }
}
