/* ============================================================
   Follow the Sassers — home page (index only)
   Loaded after ds/styles.css, which provides tokens + .fs-* components.
   ============================================================ */
body.index { background: var(--bg-page); color: var(--text-primary); font-family: var(--font-sans); }
/* Smooth-scroll the "Browse the journals" anchor down to the feed (home page only). */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- Hero: full-bleed image starts at the very top, capped height ---- */
.hero {
  position: relative;
  height: 74vh;
  min-height: 460px;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  color: var(--cream-50);
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--teal-800), var(--forest-700) 60%, var(--gold-700));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }
.hero-warm { position: absolute; inset: 0; background: var(--img-warm-wash); mix-blend-mode: soft-light; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,24,31,0.28) 0%, rgba(4,24,31,0) 34%, rgba(4,24,31,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--container); margin: 0 auto;
  padding: 0 var(--gutter) var(--space-8);
}
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
/* Cohesive entrance: logo kick → word → sub → button slide up + fade on load. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo__kick, .hero-logo__word, .hero-sub, .hero-foot {
    opacity: 0; animation: hero-rise 0.9s var(--ease-out) forwards;
  }
  .hero-logo__kick { animation-delay: 0.05s; }
  .hero-logo__word { animation-delay: 0.18s; }
  .hero-sub { animation-delay: 0.42s; }
  .hero-foot { animation-delay: 0.56s; }
}
.hero-logo__kick {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(0.7rem, 1.3vw, 0.95rem); letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--cream-50); opacity: 0.9;
}
.hero-logo__word {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(4rem, 13vw, 9.5rem); line-height: 0.9;
  letter-spacing: -0.02em; color: var(--cream-50); margin-top: 6px;
}
.hero-sub {
  font-family: var(--font-sans); font-weight: 400; font-size: var(--text-lead);
  color: var(--cream-50); opacity: 0.92; margin: 18px 0 0;
}
.hero-foot { margin-top: 26px; }
.hero-foot .fs-btn__icon svg { width: 100%; height: 100%; }

/* ---- Airplane cursor follower (home page; injected by PLANE_FOLLOW_JS) ---- */
.plane-cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  font-size: 28px; line-height: 1; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  filter: drop-shadow(0 2px 5px rgba(4, 24, 31, 0.28));
  will-change: transform;
}

/* ---- Promo banner: a wide, compact CTA between the hero and the journals ---- */
.promo { max-width: var(--container); margin: 0 auto; padding: clamp(2.25rem, 5vw, 3.5rem) var(--gutter) 0; }
.promo-banner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 18px);
  padding: clamp(14px, 1.6vw, 18px) clamp(18px, 2.2vw, 26px);
  background: var(--teal-900); color: var(--cream-50);
  border: 1px solid rgba(250, 247, 240, 0.12);
  border-radius: var(--radius-lg); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.promo-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--teal-800); }
.promo-banner__pin { display: inline-flex; flex: none; color: var(--gold-500); }
.promo-banner__pin svg { display: block; }
.promo-banner__label {
  flex: 1; min-width: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 0.92rem + 0.6vw, 1.4rem); line-height: 1.2; color: var(--cream-50);
}
.promo-banner__arrow {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--gold-500); color: var(--ink-900);
  transition: transform var(--dur-base) var(--ease-out);
}
.promo-banner:hover .promo-banner__arrow { transform: translate(2px, -2px); }
.promo-banner__arrow svg { display: block; }

/* ---- The journals ---- */
.feed { max-width: var(--container); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 30px;
}
.fs-photocard__ar { display: block; }
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr; } }

/* ---- Card layout: photo on top, caption in a panel UNDERNEATH (not overlaid).
   The DS photocard stacks media + text on the image; here we pull the text into a
   white box below it so the photo stays clean. ---- */
.index .mosaic .fs-photocard {
  background: var(--surface-card);
  border: 1px solid var(--line-ink);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
/* media back into normal flow, carrying the aspect ratio itself */
.index .mosaic .fs-photocard__media {
  position: relative; inset: auto; z-index: 0;
  display: block; aspect-ratio: 3 / 2;
}
.index .mosaic .fs-photocard__ar { display: none; }     /* spacer no longer needed */
.index .mosaic .fs-photocard__scrim { display: none; }  /* no text on the image now */
/* the caption panel under the image */
.index .mosaic .fs-photocard__body {
  position: static; inset: auto;
  padding: clamp(15px, 2.8%, 22px) clamp(16px, 3%, 22px) clamp(17px, 3.2%, 24px);
  gap: 0.4em; background: var(--surface-card);
}
.index .mosaic .fs-photocard__eyebrow { color: var(--text-muted); }
/* Reserve two lines for every title so each caption box is the same height —
   eyebrow + meta are always one line, so a uniform title height = uniform box.
   (line-height is 1.04, so two lines ≈ 2.08em.) */
.index .mosaic .fs-photocard__title { color: var(--text-primary); min-height: 2.08em; }
.index .mosaic .fs-photocard__meta { color: var(--text-muted); }

/* ---- Card reveal: a dramatic slide-up + settle as cards enter the viewport ---- */
.mosaic .fs-photocard {
  opacity: 0; transform: translateY(72px) scale(0.94);
  transition: opacity 0.85s var(--ease-out), transform 0.95s var(--ease-out);
  will-change: opacity, transform;
}
.mosaic .fs-photocard.in { opacity: 1; transform: none; }
/* gentle left-then-right cascade within each row */
.mosaic .fs-photocard:nth-child(2n) { transition-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
  .mosaic .fs-photocard { opacity: 1; transform: none; transition: none; }
}

/* ---- Footer ---- */
/* ---- Playlist reel (bottom of home): main player + scrollable clickable list ---- */
/* Full-bleed band in "sunken cream" so the video section reads distinct from the
   cream journals above it; content stays capped/centered in .reel-inner. */
.home-reel { background: var(--bg-sunk); border-top: 1px solid var(--line-soft); padding: var(--section-y) var(--gutter); }
.reel-inner { max-width: 1060px; margin: 0 auto; }
.home-reel .reel-head { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.home-reel .reel-player { max-width: 920px; margin: 0 auto; }

/* Stage (player) on the left, the full video list scrolling on the right. The list
   has min-height:0 so it stretches to the stage's height and scrolls internally. */
.reel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.reel-stage { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.reel-stage .vid-embed { width: 100%; }
.reel-now {
  margin: 0; text-align: center; font-family: var(--font-sans); font-size: var(--text-meta);
  color: var(--text-muted); line-height: 1.4;
}
.reel-now span { color: var(--text-primary); }

.reel-list {
  margin: 0; padding: 6px; list-style: none; max-height: 460px; overflow-y: auto;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--surface-card);
}
.reel-item {
  display: flex; gap: 11px; align-items: center; width: 100%; padding: 7px; border: 0;
  background: transparent; cursor: pointer; border-radius: 9px; text-align: left;
  transition: background 0.15s var(--ease-out);
}
.reel-item:hover { background: var(--cream-100); }
.reel-item.is-active { background: var(--cream-100); }
.reel-item.is-active .reel-item-title { color: var(--gold-600); }
.reel-thumb {
  flex: 0 0 96px; width: 96px; height: 54px; border-radius: 6px; object-fit: cover;
  background: #0f0f0f; display: block;
}
.reel-item-title {
  font-family: var(--font-sans); font-size: 0.82rem; line-height: 1.28; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 880px) {
  .reel-grid { grid-template-columns: 1fr; }
  .reel-list { max-height: 340px; }
}

.home-footer { background: var(--teal-900); color: var(--text-on-dark); padding: var(--space-8) var(--gutter); }
.home-footer .inner {
  max-width: var(--container); margin: 0 auto; display: flex;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
}
.foot-mark { font-family: var(--font-display); font-style: italic; font-size: var(--text-h3); color: var(--cream-50); }
.foot-coord {
  font-family: var(--font-mono); font-size: var(--text-meta);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-dark-muted);
}
