/* ============================================================
   HIGH BROW SOCIETY — Hero (cinematic, full-bleed)
   Full-screen image. On scroll the stage pins, the image zooms,
   the content drifts up faster and fades, the scrim deepens —
   so the hero dissolves into the page rather than scrolling off.
   Driven by --p (0→1 scroll progress) set in main.js.
   ============================================================ */

.hero {
  position: relative;
  /* extra height beyond the viewport gives the pin room to play */
  height: 175vh;
  --p: 0;
  background: var(--color-charcoal);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Background image --- */
.hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  /* load settle + scroll zoom combined */
  transform: scale(calc(1.08 + var(--p) * 0.14));
  transform-origin: center 40%;
  will-change: transform;
}

/* --- Scrim + grain --- */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(24,21,18,0.55) 0%, rgba(24,21,18,0.15) 32%,
                    rgba(24,21,18,0.30) 66%, rgba(24,21,18,0.72) 100%),
    radial-gradient(120% 100% at 50% 60%, transparent 38%, rgba(24,21,18,0.4) 100%);
  /* deepen as you scroll */
  opacity: calc(0.85 + var(--p) * 0.15);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

/* --- Content (drifts up faster than the image, fades) --- */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  color: var(--color-ivory);
  transform: translateY(calc(var(--p) * -90px));
  opacity: calc(1 - var(--p) * 1.35);
  will-change: transform, opacity;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.9);
  margin-bottom: var(--space-md);
}
.hero__kicker-rule {
  width: clamp(28px, 4vw, 50px);
  height: 1px;
  background: var(--color-champagne);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1rem + 7vw, 6rem);
  line-height: 0.99;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 50px rgba(18,15,12,0.4);
}
.hero__title-line { display: block; }
.hero__title-line--em em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-champagne-soft);
}

.hero__tagline {
  margin: var(--space-md) auto 0;
  max-width: 40ch;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: rgba(250,246,239,0.9);
  text-shadow: 0 1px 30px rgba(18,15,12,0.4);
}

.hero__actions {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}
.hero__text-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-ivory);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(250,246,239,0.4);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.hero__text-link:hover { border-color: var(--color-champagne); }

/* --- Foot row: rating + scroll cue --- */
.hero__foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(20px, 3.5vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: rgba(250,246,239,0.8);
  /* fade the foot a touch quicker */
  opacity: calc(1 - var(--p) * 1.8);
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__rating-stars { color: var(--color-champagne); letter-spacing: 0.1em; font-size: 0.78rem; }
.hero__scrollcue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scrollcue-line {
  width: 1px;
  height: 44px;
  background: rgba(250,246,239,0.35);
  position: relative;
  overflow: hidden;
}
.hero__scrollcue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-champagne);
  transform: translateY(-100%);
  animation: scrollPulse 2.4s var(--ease-inout) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* mobile: rating left only, cue hidden to keep it clean */
@media (max-width: 600px) {
  .hero__scrollcue { display: none; }
  .hero__foot { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; }
  .hero__bg { transform: scale(1.06); }
  .hero__content, .hero__foot { transform: none; opacity: 1; }
  .hero__scrollcue-line::after { animation: none; display: none; }
}

/* ============================================================
   MOBILE — tighter pin, balanced type
   ============================================================ */
@media (max-width: 600px) {
  /* less extra height so the hero releases sooner on a phone */
  .hero { height: 142vh; }
  .hero__stage { justify-content: center; }
  .hero__content { padding-bottom: 8vh; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .hero__tagline { font-size: var(--fs-body); max-width: 30ch; }
  .hero__kicker { letter-spacing: 0.22em; }
  /* content fades a touch more gently over the shorter scroll */
  .hero__content { opacity: calc(1 - var(--p) * 1.2); }
}