/* Lazy Haven — hero. Black water: full-viewport dark panel, photo as texture,
   canvas ripple across the lower half, mineral ledger along the bottom edge. */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: var(--c-blackwater);
  color: var(--c-text-on-dark);
  overflow: hidden;
}

/* Photo layer — treated as texture, not a picture ----------------------- */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.7);
  /* Ken Burns: a glacial drift, barely conscious — the water is still. */
  animation: hero-drift 26s var(--ease-out) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.2%);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--c-blackwater) 88%, transparent) 0%,
    color-mix(in srgb, var(--c-blackwater) 58%, transparent) 42%,
    color-mix(in srgb, var(--c-blackwater) 86%, transparent) 74%,
    var(--c-blackwater) 100%
  );
}

/* Ripple canvas — lower part of the panel ------------------------------- */

.hero__ripple {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: min(44vh, 460px);
  pointer-events: none;
}

/* Content --------------------------------------------------------------- */

.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.hero__eyebrow {
  color: var(--c-text-on-dark);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
}

/* The dash between the welcome and the headline */
.hero__rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  background: var(--c-amber);
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.hero__headline {
  max-width: 12em;
  margin-bottom: var(--space-4);
}

.hero__lede {
  color: var(--c-text-on-dark-dim);
  max-width: 30em;
  margin-bottom: var(--space-5);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

/* Scroll cue ------------------------------------------------------------- */

.hero__cue {
  position: relative;
  z-index: 3;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: var(--c-text-on-dark-dim);
  transition: color var(--dur-fast) var(--ease-out);
}

.hero__cue:hover {
  color: var(--c-amber);
}

.hero__cue-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__cue-line {
  width: 1px;
  height: 44px;
  background: currentColor;
  overflow: hidden;
  animation: hero-cue 2.6s var(--ease-luxe) infinite;
  transform-origin: top;
}

@keyframes hero-cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Mineral ledger --------------------------------------------------------- */

.hero__ledger {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: color-mix(in srgb, var(--c-blackwater) 72%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-line-dark);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-on-dark-dim);
}

.hero__ledger-item {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  border-bottom: 1px solid var(--c-line-dark);
  white-space: nowrap;
}

.hero__ledger-item:nth-child(even) {
  border-left: 1px solid var(--c-line-dark);
}

.hero__ledger-item:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
}

.hero__ledger-item--rating {
  color: var(--c-amber);
}

@media (min-width: 720px) {
  .hero__ledger {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero__ledger-item {
    padding: var(--space-4) var(--space-2);
    border-bottom: 0;
    border-left: 1px solid var(--c-line-dark);
    /* Columns are narrow between 720 and ~900px — let long entries wrap. */
    white-space: normal;
    line-height: 1.4;
  }

  .hero__ledger-item:first-child {
    border-left: 0;
  }

  .hero__ledger-item:last-child {
    grid-column: auto;
  }
}
