/* ---------------------------------------------------
   Featured page — infinite, wheel/touch-driven project reel.
   Each project is a 2-column (vertically split) diptych
   that wipes open as you scroll; the sequence loops forever.
--------------------------------------------------- */

html.is-reel-locked {
  height: 100%;
}

body.is-reel-locked {
  height: 100%;
  overflow-x: hidden;
  /* auto (not hidden) — there's nothing to actually scroll, so no
     scrollbar ever renders, but combined with `scrollbar-gutter: stable`
     (see style.css) the layout still reserves the same width other
     pages' scrollbar takes, so there's no shift when navigating here. */
  overflow-y: auto;
  overscroll-behavior: none;
}

.featured-main {
  position: relative;
}

.reel-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
}

.reel-slide {
  position: absolute;
  inset: 0;
}

/* covers the whole scene so clicking the image/title (not just the small
   "voir le projet" text) navigates to the project — sits above the title
   but below .reel-info so its own cta link stays independently interactive. */

.reel-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.reel-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 100%;
}

.reel-col {
  position: relative;
  overflow: hidden;
}

/* .reel-visual carries the clip-path (set from JS) so the image AND its
   title-half wipe open together, in sync with the scroll. */

.reel-visual {
  position: absolute;
  inset: -1px;
}

.reel-media {
  position: absolute;
  inset: 0;
}

.reel-media.tone-1 { background: linear-gradient(160deg, #baff29, #4f8a10); }
.reel-media.tone-1b { background: linear-gradient(200deg, #d6ff7a, #2f5a08); }
.reel-media.tone-2 { background: linear-gradient(160deg, #ff8a3d, #7a1f8f); }
.reel-media.tone-2b { background: linear-gradient(200deg, #ffb35c, #5a1568); }
.reel-media.tone-3 { background: linear-gradient(160deg, #3dd6ff, #1a2a8f); }
.reel-media.tone-3b { background: linear-gradient(200deg, #8ae8ff, #121f6b); }
.reel-media.tone-4 { background: linear-gradient(160deg, #ff3d8a, #2a0a3a); }
.reel-media.tone-4b { background: linear-gradient(200deg, #ff7ab0, #1a0625); }
.reel-media.tone-5 { background: linear-gradient(160deg, #9a9a9a, #101010); }
.reel-media.tone-5b { background: linear-gradient(200deg, #6a6a6a, #050505); }

/* the title is rendered once per column as the SAME full word, centred across
   the whole stage width (not just its own column) and clipped by the column's
   overflow — so both halves are pixel-perfect continuations of one another and
   meet at the vertical seam with zero gap, dead-centre of the screen. it opens
   with the same clip-path as the image since it lives inside .reel-visual. */

.reel-title-full {
  position: absolute;
  top: 50%;
  width: 100vw;
  transform: translateY(-50%);
  z-index: 1;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
}

.reel-col-a .reel-title-full {
  left: 0;
}

.reel-col-b .reel-title-full {
  left: -50vw;
}

.reel-title-mobile {
  display: none;
}

/* one info block per project — never duplicated, so it can never overlap itself */

.reel-info {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 48px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.reel-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reel-cats span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.reel-cta {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

a.reel-cta {
  pointer-events: auto;
  transition: color 0.3s var(--ease);
}

a.reel-cta:hover {
  color: var(--fg);
}

@media (max-width: 900px) {
  .reel-columns {
    grid-template-columns: 1fr;
  }

  .reel-col:first-child {
    display: none;
  }

  .reel-title-full {
    display: none;
  }

  .reel-info {
    left: 24px;
    right: 24px;
    bottom: 32px;
  }

  .reel-title-mobile {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 12px;
  }
}
