/* ==========================================================================
   Hero — full-viewport editorial opening
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -4% -3%;
  z-index: -2;
  /* driven by JS: --p = scroll progress 0→1, --mx/--my = pointer offset */
  transform:
    translate3d(calc(var(--mx, 0) * 14px), calc(var(--hero-p, 0) * 9vh + var(--my, 0) * 14px), 0)
    scale(calc(1.01 + var(--hero-p, 0) * .1));
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

/* warm readability wash — heavier at the left where the headline sits */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 16, 13, .78) 0%, rgba(24, 19, 15, .5) 34%, rgba(26, 21, 16, .06) 62%, rgba(26, 21, 16, 0) 100%),
    linear-gradient(to top, rgba(20, 16, 13, .62) 0%, rgba(20, 16, 13, 0) 42%);
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: calc(var(--header-h) + 4rem) var(--gutter) clamp(2.5rem, 7vh, 5.5rem);
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-left: -.045em;
  /* the four lines drift apart very slightly as the hero scrolls away */
  transform: translate3d(0, calc(var(--hero-p, 0) * -3vh), 0);
}
.hero__title .reveal-line:nth-child(2) > span { transition-delay: .09s; }
.hero__title .reveal-line:nth-child(3) > span { transition-delay: .18s; }
.hero__title .reveal-line:nth-child(4) > span { transition-delay: .27s; }
.hero__title .reveal-line:nth-child(2) { transform: translate3d(0, calc(var(--hero-p, 0) * 1vh), 0); }
.hero__title .reveal-line:nth-child(3) { transform: translate3d(0, calc(var(--hero-p, 0) * 2.2vh), 0); }
.hero__title .reveal-line:nth-child(4) { transform: translate3d(0, calc(var(--hero-p, 0) * 3.6vh), 0); }
.hero__title .is-accent { font-style: normal; color: var(--nude); }

.hero__kicker {
  font-size: clamp(.7rem, .95vw, .8125rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
}
.hero__kicker li { display: flex; align-items: center; gap: .9rem; }
.hero__kicker li:not(:last-child)::after {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--coral);
  opacity: .9;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2.5rem, 7vh, 5.5rem);
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  writing-mode: vertical-rl;
  padding-block: .5rem;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: scrollCue 2.6s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(64px); opacity: 0; }
}

/* --- tablet --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__media img { object-position: 58% 42%; }
  .hero::before {
    background:
      linear-gradient(115deg, rgba(20, 16, 13, .74) 0%, rgba(24, 19, 15, .44) 46%, rgba(26, 21, 16, .04) 78%),
      linear-gradient(to top, rgba(20, 16, 13, .7) 0%, rgba(20, 16, 13, 0) 48%);
  }
  .hero__scroll { display: none; }
}

/* --- mobile --------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero__media { inset: -3% -2%; }
  .hero__media img { object-position: 50% 34%; }
  .hero::before {
    background:
      linear-gradient(to top, rgba(18, 14, 11, .88) 4%, rgba(20, 16, 13, .34) 46%, rgba(26, 21, 16, .12) 100%),
      linear-gradient(to bottom, rgba(20, 16, 13, .5) 0%, rgba(20, 16, 13, 0) 26%);
  }
  .hero__inner { padding-bottom: 3rem; gap: 1.5rem; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 5rem); line-height: .9; }
  .hero__kicker { font-size: .6rem; letter-spacing: .22em; }
  .hero__actions .btn { flex: 1 1 100%; }
}
