.film-reel {
  position: relative;
  z-index: 3;                                /* over the sticky hero AND the sticky configurator */
  background: var(--bg-hero);
  color: var(--ivory);
  height: 500vh;
  width: 100%;
  border-top: 1px solid var(--gold-line);    /* visible section break against sticky configurator */
  /* Strong upward shadow so Film Reel feels distinctly lifted above the configurator */
  box-shadow: 0 -40px 100px -24px rgba(0, 0, 0, 0.85);
}

.film-reel__pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;                       /* vertically center the cards in the pinned area */
  background: var(--bg-hero);
}

.film-reel__strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: auto;
  width: max-content;
  will-change: transform;
  gap: clamp(20px, 3vw, 48px);              /* spacing between cards */
  padding: 0 clamp(40px, 8vw, 120px);        /* leading + trailing padding so first/last card aren't flush */
}

.film-reel__scene {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 76vw, 1100px);         /* card width — leaves room for next card to peek in */
  height: clamp(420px, 70vh, 720px);         /* card height — vertical space inside pin */
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: border-color .35s var(--ease-soft), transform .35s var(--ease-soft);
}

.film-reel__scene:hover {
  border-color: var(--gold-primary);
}

.film-reel__media {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background-color: var(--bg-warm);
  background-size: cover;
  background-position: center;
  display: block;
}

.film-reel__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film-reel__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0) 55%,
    rgba(0,0,0,0.82) 100%);
  pointer-events: none;
  transition: opacity 320ms var(--ease-soft);
}

.film-reel__play {
  position: absolute;
  right: clamp(18px, 2.5vw, 32px);
  bottom: clamp(18px, 2.5vw, 32px);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(13,13,13,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  transition:
    background 320ms var(--ease-soft),
    border-color 320ms var(--ease-soft),
    transform 320ms var(--ease-soft);
  z-index: 3;
}

.film-reel__play::before {
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 11px solid var(--gold-primary);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

.film-reel__scene:hover .film-reel__play {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  transform: scale(1.08);
}

.film-reel__scene:hover .film-reel__play::before {
  border-left-color: var(--bg-primary);
}

.film-reel__meta {
  position: absolute;
  left: clamp(18px, 2.5vw, 32px);
  bottom: clamp(18px, 2.5vw, 32px);
  right: 88px;                              /* leave room for play button on the right */
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: auto;
}

.film-reel__meta > a { color: inherit; display: block; }

.film-reel__meta-locality {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-mid);
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.film-reel__meta-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 38px);
  color: var(--ivory);
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

.film-reel__details-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid var(--gold-line);
  background: rgba(13,13,13,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  align-self: flex-start;
  transition:
    background .3s var(--ease-soft),
    color .3s var(--ease-soft),
    border-color .3s var(--ease-soft),
    transform .3s var(--ease-soft);
}

.film-reel__details-cta:hover {
  background: var(--gold-primary);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.film-reel__hud {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  opacity: 0;
  transition: opacity 350ms var(--ease-soft);
}

.film-reel.is-pinned .film-reel__hud { opacity: 1; }

.film-reel__hud--top {
  top: 28px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gutter);
}

.film-reel__hud--bottom {
  bottom: 26px;
  left: 0; right: 0;
  text-align: center;
}

.film-reel__end {
  position: relative;
  flex: 0 0 auto;
  width: clamp(320px, 76vw, 1100px);
  height: clamp(420px, 70vh, 720px);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-hero));
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 0 var(--gutter);
}

.film-reel__end-inner { display: flex; flex-direction: column; gap: 28px; align-items: center; }

.film-reel__end-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 5.5vw, 72px);
  color: var(--ivory);
}

.film-reel__end-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  transition:
    background 320ms var(--ease-soft),
    color 320ms var(--ease-soft),
    transform 320ms var(--ease-soft);
}

.film-reel__end-cta:hover {
  background: transparent;
  color: var(--ivory);
  transform: translateY(-1px);
}
