/* ==========================================================================
   Bandeja — home page sections. Loaded after landing.css, which holds the
   tokens, header, ticket, reveal and footer shared with /desk/.
   ========================================================================== */

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(100vh, 680px);
  min-height: max(100svh, 680px);
  overflow: hidden;
}

/* Taller than the hero so the photo can drift down as the page scrolls. The
   stripes show while the photo loads. */
.hero__media {
  position: absolute;
  inset: -6% 0;
  background: repeating-linear-gradient(135deg, #0f1418 0 11px, #0b0f12 11px 22px);
  transform: scale(1.04);
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.45) contrast(1.06) brightness(0.82);
}

/* Scroll-driven drift where supported, static elsewhere. No scroll listener:
   same rule as main.js. Over the first viewport of scroll the photo moves
   40px down, i.e. a little slower than the page. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__media {
      animation: drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
  }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1.04); }
  to   { transform: translate3d(0, 40px, 0) scale(1.04); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(7 9 12 / 0.55) 0%,
    rgb(7 9 12 / 0) 28%,
    rgb(7 9 12 / 0) 50%,
    rgb(7 9 12 / 0.92) 88%,
    var(--bg) 100%
  );
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 34ch;
  padding: 0 var(--gutter) clamp(48px, 6vw, 88px);
  box-sizing: content-box;
}

.hero__title {
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Tracking pulls joined Persian letterforms apart. */
html[lang="fa"] .hero__title {
  letter-spacing: 0;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__caption {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

html[lang="fa"] .hero__caption {
  font-family: 'Vazirmatn', sans-serif;
}

.hero__sub {
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

/* Entrance: title, then the line under it. CSS only, so it runs without
   waiting for any script and costs nothing with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title,
  .hero__text {
    animation: rise 1.7s var(--ease) both;
  }

  .hero__text {
    animation-delay: 0.35s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ------------------------------------------------------------------- clubs */

.clubs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 var(--gutter-wide);
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clubs__line {
  max-width: 56ch;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

.clubs__q {
  color: var(--ink);
}

.clubs__cta {
  padding-bottom: 2px;
  border-bottom: 1px solid rgb(238 242 244 / 0.35);
  font-size: 15px;
}

/* ----------------------------------------------------------------- closing */

.closing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(50vh, 360px);
  padding: 120px 24px;
}
