/* ═══════════════════════════════════════════
   LW REELS — Stack layout
   Matches Long Winter AXE design system
═══════════════════════════════════════════ */

:root {
  --lwr-accent:  #1bc2ff;
  --lwr-orange:  #ff7b4a;
  --lwr-dark:    #111213;
  --lwr-surface: #1a1b1d;
  --lwr-border:  #2a2b2e;
  --lwr-text:    #e8e9ea;
  --lwr-muted:   #7a7c80;
  --lwr-dim:     #3a3c40;
  /* Match site gutter so overlay content aligns with page */
  --lwr-gutter:  6vw;
  --lwr-max-w:   1280px;
}

/* ── Stack wrapper ── */
.lw-reels-stack {
  display: flex;
  flex-direction: column;
}

/* ── Individual reel ── */
.lw-reel {
  position: relative;
  border-bottom: 1px solid var(--lwr-border);
}

/* ── Video banner ── */
.lw-reel-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 44vw, 600px);
  overflow: hidden;
  background: var(--lwr-surface);
  cursor: pointer;
}

/* Vimeo iframe — oversized to hide letterbox bars */
.lw-reel-embed-wrap {
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  pointer-events: none;
}
.lw-reel-iframe {
  width: 100%; height: 100%;
  border: none;
}

/* No-video placeholder */
.lw-reel-no-video {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lwr-surface);
  color: var(--lwr-border);
}
.lw-reel-no-video svg { width: 64px; height: 64px; }

/* Gradient overlay — left-heavy so text is readable */
.lw-reel-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(17,18,19,.80) 0%,
      rgba(17,18,19,.40) 45%,
      rgba(17,18,19,.08) 100%
    ),
    linear-gradient(
      to top,
      rgba(17,18,19,.60) 0%,
      transparent 50%
    );
  display: flex;
  align-items: flex-end;
  /* Align with site content — gutter on left, room for button on right */
  padding: 0 calc(var(--lwr-gutter) + 60px) 2.8rem var(--lwr-gutter);
  transition: background .3s;
}
.lw-reel:hover .lw-reel-overlay {
  background:
    linear-gradient(
      to right,
      rgba(17,18,19,.88) 0%,
      rgba(17,18,19,.50) 45%,
      rgba(17,18,19,.15) 100%
    ),
    linear-gradient(
      to top,
      rgba(17,18,19,.70) 0%,
      transparent 50%
    );
}

/* Content width cap so text doesn't span full wide screens */
.lw-reel-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: min(680px, calc(var(--lwr-max-w) - var(--lwr-gutter) * 2));
  width: 100%;
}

/* Eyebrow label */
.lw-reel-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: .63rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lwr-accent);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.lw-reel-label::before {
  content: '';
  display: block;
  width: 18px; height: 1px;
  background: var(--lwr-accent);
  flex-shrink: 0;
}

/* Title */
.lw-reel-title {
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  font-size: clamp(2.4rem, 5vw, 5.5rem) !important;
  color: var(--lwr-text) !important;
  line-height: .88 !important;
  margin: 0 !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}

/* ── Expand button — sits inside gutter, bottom right of overlay area ── */
.lw-reel-expand-btn {
  position: absolute;
  bottom: 2.8rem;
  right: var(--lwr-gutter);
  width: 46px; height: 46px;
  border: 1px solid rgba(232,233,234,.18);
  background: rgba(17,18,19,.55);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}
.lw-reel-expand-btn:hover {
  border-color: var(--lwr-accent);
  background: rgba(27,194,255,.12);
}
.lw-reel-expand-icon svg {
  width: 16px; height: 16px;
  stroke: var(--lwr-text);
  transition: transform .3s;
  display: block;
}
.lw-icon-v { transition: opacity .3s, transform .3s; transform-origin: center; }
.lw-reel-expand-btn[aria-expanded="true"] .lw-icon-v {
  opacity: 0;
  transform: scaleY(0);
}
.lw-reel-expand-btn[aria-expanded="true"] .lw-reel-expand-icon svg {
  stroke: var(--lwr-accent);
}

/* ── Detail drawer ── */
.lw-reel-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
  background: var(--lwr-surface);
}
.lw-reel-detail.is-open {
  max-height: 280px;
}

.lw-reel-detail-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  /* Match overlay gutter exactly */
  padding: 2rem var(--lwr-gutter);
  border-top: 1px solid var(--lwr-border);
  max-width: 100%;
}

.lw-reel-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 720px;
  flex: 1;
}

.lw-reel-desc {
  font-family: 'DM Sans', sans-serif !important;
  font-size: .92rem !important;
  color: var(--lwr-muted) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* Vimeo link button */
.lw-reel-vimeo-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'DM Mono', monospace;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lwr-accent) !important;
  text-decoration: none !important;
  border: 1px solid rgba(27,194,255,.28);
  padding: .45em 1.1em;
  width: fit-content;
  transition: border-color .2s, background .2s;
}
.lw-reel-vimeo-link:hover {
  border-color: var(--lwr-accent);
  background: rgba(27,194,255,.07);
}

/* Reel number */
.lw-reel-detail-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 4.5rem;
  color: var(--lwr-border);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -.02em;
}

/* Subtle alternating bg tint */
.lw-reel--even .lw-reel-banner { background: #141516; }
.lw-reel--odd  .lw-reel-banner { background: var(--lwr-dark); }

/* ── Responsive ── */
@media (max-width: 900px) {
  --lwr-gutter: 5vw;
  .lw-reel-banner { height: clamp(260px, 54vw, 420px); }
}

@media (max-width: 600px) {
  .lw-reel-banner { height: 56vw; min-height: 240px; }
  .lw-reel-overlay { padding-bottom: 2rem; }
  .lw-reel-expand-btn { bottom: 1.8rem; width: 40px; height: 40px; }
  .lw-reel-detail-inner { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.6rem var(--lwr-gutter); }
  .lw-reel-detail-num { display: none; }
  .lw-reel-detail.is-open { max-height: 360px; }
}
