/* ==========================================================================
   FIT BY SCIENCE - HERO V2
   Editorial campaign composition: full-height typographic statement
   opposite a framed photographic panel. Vertical space is distributed
   deliberately (eyebrow / headline / close) rather than bottom-anchored.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  background: var(--obsidian);
  overflow: hidden;
}

.hero__grid {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Left: the statement ---- */
.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-12);
  padding-top: calc(var(--space-16) + var(--space-4));
  padding-bottom: var(--space-8);
}

.hero__eyebrow {
  color: var(--stone);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.86;
  color: var(--bone);
}

.hero__headline span {
  display: block;
  font-size: var(--text-display-xl);
}

/* the closing word carries the accent - a single restrained touch of Science Blue */
.hero__headline .is-accent {
  color: var(--science-blue);
}

.hero__close {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 34ch;
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--bone);
  max-width: 22ch;
}

.hero__copy {
  font-size: var(--text-body-sm);
  color: var(--stone);
  line-height: var(--lh-body);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

@media (max-width: 640px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

/* ---- Right: framed editorial photography panel ---- */
.hero__visual {
  padding-bottom: var(--space-8);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(244, 242, 237, 0.14);
  overflow: hidden;
  background:
    linear-gradient(135deg, #1c2024 0%, #101215 48%, #0B0D0F 100%);
}

.hero__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__frame::after {
  /* single quiet diagonal division - abstract, not pretending to be a photo */
  content: '';
  position: absolute;
  inset: -10%;
  background: linear-gradient(200deg, transparent 46%, rgba(244, 242, 237, 0.05) 47%, transparent 48%);
}

.hero__caption {
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(167, 168, 165, 0.55);
}

/* ---- Scroll cue ---- */
.hero__scroll-cue {
  position: absolute;
  left: var(--container-pad-mobile);
  bottom: var(--space-3);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--stone);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .hero__scroll-cue { left: var(--container-pad); }
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--stone), transparent);
  animation: hero-scroll-line 2.4s var(--ease-standard) infinite;
  transform-origin: top;
}

@keyframes hero-scroll-line {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line { animation: none; opacity: 0.6; }
}

/* ---- Mobile / tablet (<1024px): stacked, headline first, then image, then close ---- */
@media (max-width: 1023px) {
  .hero__grid { padding-inline: var(--container-pad-mobile); }
  .hero__left { padding-top: calc(var(--space-16) + var(--space-2)); gap: var(--space-8); }
  .hero__headline span { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero__frame { max-width: 420px; }
  .hero__visual { padding-bottom: var(--space-6); }
  .hero__scroll-cue { display: none; }
}

/* ---- Desktop (≥1024px): split composition ---- */
@media (min-width: 1024px) {
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    align-items: stretch;
    gap: var(--space-12);
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--container-pad);
  }

  .hero__headline span { font-size: var(--text-display-xl); }

  .hero__visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(var(--space-16) + var(--space-4)) var(--space-8);
  }

  .hero__frame { max-width: 100%; }
}

@media (min-width: 1440px) {
  .hero__headline span { font-size: 8.5rem; }
}
