/* ================================================================
   video-page.css
   Motion & Video portfolio page styles.

   Fonts (loaded in video-page.html):
     Gabriela  — headings, project titles, hero words
     Bitter    — body copy, labels, nav, captions

   NOTE: --header-h must match your existing site's sticky header.
   Update it here if that height ever changes.
   ================================================================ */


/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── TOKENS ──────────────────────────────────────────── */
:root {
  --bg:       #f7f5f1;
  --surface:  #ffffff;
  --border:   rgba(0, 0, 0, 0.07);
  --text-1:   #19180f;
  --text-2:   #6b6760;
  --text-3:   #b0ac9e;

  /* Keep in sync with the existing site's fixed header height */
  --header-h: 62px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Bitter', serif;
 
  color: var(--text-1);
  overflow-x: hidden;
}


/* ── HERO ────────────────────────────────────────────── */
.videohero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.videohero-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 4rem;
  width: 100%;
  box-sizing: border-box;
}

.videohero-text {
  flex: 0 0 auto;
  width: auto;
  max-width: 420px;
  min-width: 260px;
}

.videohero-eyebrow {
  font-family: 'Bitter', serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.25rem;
}

.videohero-words { line-height: 1.05; }

.videohero-words span {
  display: block;
  font-family: 'Gabriela', serif;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hw1 { color: #e8a020; }
.hw2 { color: var(--text-1); }
.hw3 { color: #7c6fe0; }

.videohero-sub {
  font-family: 'Bitter', serif;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 280px;
}


/* ── FAN CARDS ───────────────────────────────────────── */
.fan-area {
  flex: 1;
  position: relative;
  height: 380px;
  min-width: 0;
  overflow: visible;
}

.fan-card {
  position: absolute;
  width: 240px;
  height: 150px;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform  .45s cubic-bezier(.22, .68, 0, 1.3),
    opacity    .3s,
    box-shadow .25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.fan-card:hover { box-shadow: 0 20px 55px rgba(0, 0, 0, .18); }

/* Keeps card titles readable over a photo background */
.fan-card .fc-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.04) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.fc-play {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.fc-play svg { width: 13px; height: 13px; fill: #fff; }

.fc-title {
  position: relative;
  z-index: 2;
  font-family: 'Bitter', serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .3);
  line-height: 1.3;
}

.fc-tags {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  margin-top: 5px;
  flex-wrap: wrap;
}

.fc-tag {
  font-family: 'Bitter', serif;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(4px);
}


/* ── CAROUSEL CONTROLS ───────────────────────────────── */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrl-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.ctrl-btn:hover { background: #edeae3; }

.ctrl-btn svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--text-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctrl-count {
  font-family: 'Bitter', serif;
  font-size: 13px;
  color: var(--text-2);
  min-width: 42px;
  text-align: center;
}


/* ── SIDE NAV DOTS ───────────────────────────────────── */
.side-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.sdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, .15);
  transition: transform .3s, background .3s;
}

.sdot.active { transform: scale(1.55); }


/* ── VIDEO SECTIONS ──────────────────────────────────── */
#video-sections { background: var(--bg); }

/* Outer wrapper — its 300vh height drives the sticky scroll */
.project-wrap {
  position: relative;
  height: 300vh;
}

/* Sticky viewport-height scene */
.project-scene {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: flex;
}

/* Left text panel — width animated by JS on scroll */
.proj-text {
  flex-shrink: 0;
  width: 22%;
  min-width: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 2rem 40px 3rem;
  /* Tiny transition so panel tracks scroll smoothly */
  transition: width .05s linear, min-width .05s linear;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.proj-phase-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-bottom: 1.75rem;
  flex-shrink: 0;
}

.proj-index {
  font-family: 'Bitter', serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .5rem;
}

.proj-title {
  font-family: 'Gabriela', serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Body copy — fades in as panel widens */
.proj-text-content {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .55s ease,
    transform .55s cubic-bezier(.22, .68, 0, 1);
  pointer-events: none;
  will-change: opacity, transform;
}

.proj-text-content.visible {
  opacity: 1;
  transform: translateX(0);
}
.proj-text-content p {
  margin-bottom: 10px;
}

.proj-text-content ul {
  margin-top: 10px;
}

.label {
  font-family: 'Bitter', serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 1rem;
  margin-bottom: .3rem;
}

.label:first-child { margin-top: 0; }

.body-text {
  font-family: 'Bitter', serif;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

.contrib-list { list-style: none; padding: 0; }

.contrib-list li {
  font-family: 'Bitter', serif;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  padding: 3px 0 3px 16px;
  position: relative;
}

/* Bullet colour is set inline via JS per project accent */
.contrib-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}


/* ── VIDEO PANEL ─────────────────────────────────────── */
.videoproj-video {
  flex: 1;
  position: relative;
  border-radius: 18px 0 0 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.videoproj-video-inner {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.video-frame {
  width: min(420px, 90%);
  aspect-ratio: 4 / 5;   /* IG format stays */
  
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 25px 70px rgba(0,0,0,0.25);

  /* IMPORTANT: centers it in the big right panel */
  margin: auto;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .15s;
}

.play-btn:hover {
  background: rgba(255, 255, 255, .38);
  transform: scale(1.08);
}

.play-btn svg { width: 22px; height: 22px; fill: #fff; }

.video-label {
  font-family: 'Bitter', serif;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}


/* ── IMAGE CAROUSEL STACK (projects 9 & 10) ──────────── */
.proj-carousel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px 0 0 18px;
    overflow: visible;
}

.cs-stack {
  position: relative;
  width: 240px;
  height: 320px;
  transition:
    width  .6s cubic-bezier(.22, .68, 0, 1.2),
    height .6s cubic-bezier(.22, .68, 0, 1.2);
  overflow: visible;

}
.cs-card {
  position: absolute;
  width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;

  left: 0;
  top: 0;

  transition: left .6s cubic-bezier(.22,.68,0,1.2),
              top .6s cubic-bezier(.22,.68,0,1.2),
              transform .6s cubic-bezier(.22,.68,0,1.2),
              opacity .4s ease;
}
.cs-stack.stacked {
  width: 240px;
  height: 320px;
}

.cs-stack.stacked .cs-card {
  left: 0;
  top: 0;
  transform: rotate(0deg);
  opacity: 0.9;
}
.cs-stack.spread {
  width: min(720px, 95%);
  height: 420px;
  position: relative;
}
/*.cs-card {

  position: absolute;
  width: 180px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  transition:
    left      .65s cubic-bezier(.22, .68, 0, 1.2),
    top       .65s cubic-bezier(.22, .68, 0, 1.2),
    transform .65s cubic-bezier(.22, .68, 0, 1.2),
    opacity   .5s ease,
    width     .6s  cubic-bezier(.22, .68, 0, 1.2),
    height    .6s  cubic-bezier(.22, .68, 0, 1.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
}/

.cs-card-label {
  font-family: 'Bitter', serif;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
  line-height: 1.4;
  padding: 0 8px;
}

/* Stacked (default) */
.cs-stack.stacked .cs-card:nth-child(1) { left: 28px; top: 18px; transform: rotate(-6deg); z-index: 5; opacity: 1; }
.cs-stack.stacked .cs-card:nth-child(2) { left: 40px; top: 12px; transform: rotate(-2deg); z-index: 4; opacity: .88; }
.cs-stack.stacked .cs-card:nth-child(3) { left: 52px; top:  8px; transform: rotate( 2deg); z-index: 3; opacity: .76; }
.cs-stack.stacked .cs-card:nth-child(4) { left: 64px; top:  5px; transform: rotate( 5deg); z-index: 2; opacity: .64; }
.cs-stack.stacked .cs-card:nth-child(5) { left: 76px; top:  3px; transform: rotate( 8deg); z-index: 1; opacity: .52; }

/* Spread — triggered at ~55% scroll progress */
.cs-stack.spread {
  width: 700px;
  height: 420px;
}
.cs-stack.spread .cs-card:nth-child(1) { left: 0px;   top: 70px; transform: rotate(-4deg); }
.cs-stack.spread .cs-card:nth-child(2) { left: 140px; top: 30px; transform: rotate(-2deg); }
.cs-stack.spread .cs-card:nth-child(3) { left: 280px; top: 10px; transform: rotate(0deg); }
.cs-stack.spread .cs-card:nth-child(4) { left: 420px; top: 30px; transform: rotate(2deg); }
.cs-stack.spread .cs-card:nth-child(5) { left: 560px; top: 70px; transform: rotate(4deg); }

/* ── SECTION DIVIDER ─────────────────────────────────── */
.proj-divider {
  height: 1px;
  background: var(--border);
  margin: 0 3rem;
}


/* ── TABLET  (≤ 1024px) ──────────────────────────────── */
@media (max-width: 1024px) {
  .videohero-inner { gap: 2rem; padding: 0 2.5rem; }
}


/* ── MOBILE  (≤ 768px) ───────────────────────────────── */
@media (max-width: 768px) {

  /* Hero stacks vertically */
  .videohero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 2rem;
  }

  .fan-area    { width: 100%; height: 260px; }
  .fan-card    { width: 200px; height: 125px; }
  .videohero-sub { max-width: 100%; }

  /* ── Sections: disable sticky scroll, stack text → media ── */
  .project-wrap { height: auto !important; }

  .project-scene {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    flex-direction: column !important;   /* text first, media second */
    overflow: visible !important;
  }

  /* Text fills full width, always fully visible */
  .proj-text {
    width: 100%    !important;
    min-width: 100% !important;
    padding: 2.5rem 1.5rem 1.5rem !important;
    transition: none !important;
  }

  .proj-title {
    white-space: normal   !important;
    overflow: visible     !important;
    text-overflow: unset  !important;
  }

  .proj-text-content {
    opacity: 1        !important;
    transform: none   !important;
    pointer-events: auto !important;
  }

  /* Video panel sits below text */
  .videoproj-video {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vw;
    padding: 40px;
    border-radius: 18px 0 0 18px;
    overflow: hidden;
  }
.videoproj-video video {
  transition: transform 0.4s ease;
}

.videoproj-video video:hover {
  transform: scale(1.02);
}
  /* Carousel panel sits below text */
  .proj-carousel {
    width: 100%   !important;
    flex: none    !important;
    height: 380px !important;
    border-radius: 0 !important;
      overflow: visible;
  }

  .proj-divider { margin: 0; }

  /* Side dots hidden — no room on mobile */
  .side-dots { display: none; }
}





/* ── SMALL MOBILE  (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
  .proj-text    { padding: 2rem 1.25rem 1.25rem !important; }
  .fan-area     { height: 220px; }
  .videoproj-video   { height: 52vw !important; }
}
/* ── Section text labels (Objective, My Role, Tools, Key Contributions) ── */
.proj-label {
  display: block;
  font-family: 'Gabriela', serif;
  font-size: 11px;
  font-weight: 400;
  color: #b0ac9e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
 
.proj-label:first-child { margin-top: 0; }
 
.proj-text-content p {
  font-family: 'Bitter', serif;
  font-size: 13px;
  color: var(--text-2, #6b6760);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
 
.proj-text-content ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}
 
.proj-text-content li {
  font-family: 'Bitter', serif;
  font-size: 13px;
  color: var(--text-2, #6b6760);
  line-height: 1.6;
  margin-bottom: 0.2rem;
}
 .proj-carousel {
  justify-content: flex-start;
 }