/* ── ABOUT SECTION ────────────────────────── */
.about-section {
  padding: 4rem 2rem;
  background-color: var(--accent-warm);
  color: var(--text-nearly-black);
}

.about-bubble {
  border: 4px solid black;
  border-radius: 2rem;
  padding: 2rem;
  background-color: var(--bg-cream);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease;
}

.about-text {
  flex: 1 1 50%;
}

.about-text h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 40%;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Story Video Section ───────────────────────────────────────────── */
.story-video {
  padding: 2rem 0;                  /* vertical breathing room */
  background: var(--text-nearly-black);      /* gentle contrast between sections */
}

.story-video .video-shell {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Responsive 16:9 frame */
.story-video-el {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  filter: contrast(1.05) saturate(1.02);
}

/* Optional overlay text */
.story-video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;   /* bottom-left */
  padding: 1.25rem 1.25rem;
  pointer-events: none;
  z-index: 2;
}

.story-video-overlay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw + .2rem, 1.6rem);
  color: #fff;
  margin: 0 0 .25rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.story-video-overlay p {
  color: #fff;
  opacity: .95;
  font-size: .95rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Minimal controls */
.story-video-controls {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.sv-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-family: var(--font-heading);
  font-size: .85rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.sv-btn:hover { background: rgba(0,0,0,0.6); border-color: #fff; }

/* Optional: subtle fade-in on load */
.story-video .video-shell { opacity: 0; transform: translateY(8px); }
.story-video .video-shell.is-visible {
  animation: svFade 420ms ease both;
}
@keyframes svFade {
  from { opacity: 0; filter: blur(4px); transform: translateY(8px); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}


/* ──  SECTION ────────────────────────── */
.timeline-section {
  padding: 4rem 2rem;
  background-color: var(--accent-warm);
  color: var(--text-nearly-black);
  text-align: center;
}

.timeline-section h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  border-left: 3px solid var(--bg-gray);
  padding-left: 0.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-date {
  position: absolute;
  right: 100%;          /* push entirely to the left of the vertical line */
  margin-right: 1rem;   /* add spacing between the text and the line */
  top: 0;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--landing-gray);
  white-space: nowrap;  /* prevent date from wrapping */
}

.timeline-content {
  background: var(--bg-cream);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

/* TIMELINE ANIMATION */
/* Scroll animation base (hidden state) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state once in view */
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ── COLLABORATIONS (matches About/Timeline styling) ───────────────── */
.collab-section {
  padding: 4rem 2rem;
  background-color: var(--accent-warm);
  color: var(--text-nearly-black);
}

.collab-bubble {
  border: 4px solid black;
  border-radius: 2rem;
  padding: 2rem;
  background-color: var(--bg-cream);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.collab-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin: 0 0 .5rem 0;
  text-align: center;
}
.collab-header p {
  font-family: var(--font-body);
  text-align: center;
  color: var(--landing-gray);
  margin: 0 0 1.5rem 0;
}

/* List */
.collab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.collab-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 1rem;
  border: 2px solid var(--bg-gray);
  border-radius: 1rem;
  background: #fff; /* keeps contrast like your cards */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.collab-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: var(--text-nearly-black);
}

.collab-name {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-nearly-black);
  letter-spacing: 0.2px;
}

.collab-detail {
  font-family: var(--font-body);
  color: var(--landing-gray);
  font-style: italic;
  white-space: nowrap;
}

/* Responsive: switch to two columns on wider screens (matches your layout scale) */
@media (min-width: 720px) {
  .collab-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Optional: subtle “pill” label style for details on small screens */
@media (max-width: 480px) {
  .collab-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .collab-detail {
    margin-top: .3rem;
    font-style: normal;
    background: var(--accent-warm);
    color: var(--text-nearly-black);
    border: 1px solid black;
    border-radius: 999px;
    padding: .15rem .6rem;
  }
}

/* ===== ABOUT PAGE – MOBILE FRIENDLY OVERRIDES ===================== */
/* Works for: .about-section/.about-bubble, .story-video, .timeline-*, .collab-* */

/* Make in-page anchors stop under the fixed navbar */
.about-section, .story-video, .timeline-section, .collab-section { scroll-margin-top: 72px; }

/* 1) About bubble: stack nicely on phones */
@media (max-width: 768px) {
  .about-section { padding: 2rem 1rem; }

  .about-bubble {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
  }
  .about-image { order: -1; text-align: center; } /* image first; remove if you want text first */
  .about-image img { max-width: 360px; margin: 0 auto; }
  .about-text h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .about-text p  { font-size: clamp(1rem, 3.8vw, 1.05rem); }
}

/* 2) Story video: keep 16:9 and readable overlay */
@media (max-width: 768px) {
  .story-video { padding: 1.25rem 0; }
  .story-video .video-shell { width: 92vw; border-radius: 12px; }
  .story-video-overlay { padding: .75rem; }
  .story-video-overlay h2 { font-size: clamp(1rem, 3.6vw, 1.25rem); }
  .sv-btn { padding: .35rem .65rem; font-size: .85rem; }
}

/* 3) Timeline: convert left-rail into clean stacked cards on phones */
@media (max-width: 768px) {
  .timeline-section { padding: 2.25rem 1rem; }
  .timeline-section h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); margin-bottom: 1rem; }

  .timeline-container {
    border-left: none;             /* remove big vertical line */
    padding-left: 0;
    gap: 1.25rem;
  }

  .timeline-item {
    position: relative;
    padding-left: 2rem;            /* space for a dot & line we’ll draw */
  }
  /* thin line between items */
  .timeline-item::before {
    content: "";
    position: absolute;
    left: .75rem; top: .75rem; bottom: -1.25rem;
    width: 2px; background: var(--border-light-gray);
  }
  /* dot */
  .timeline-item::after {
    content: "";
    position: absolute;
    left: .5rem; top: 1rem;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--bg-gray);
  }

  /* show the date as a small badge ABOVE the card instead of off to the far left */
  .timeline-date {
    position: static;
    margin: 0 0 .35rem 0;
    font-size: .95rem;
    color: var(--landing-gray);
    font-weight: 700;
  }

  .timeline-content {
    padding: .9rem 1rem;
    border-radius: 1rem;
  }
  .timeline-content h3 { font-size: clamp(1.05rem, 4.5vw, 1.25rem); }
}

/* 4) Collaborations list: tighten & stack */
@media (max-width: 768px) {
  .collab-section { padding: 2rem 1rem; }
  .collab-section h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .collab-list li {
    padding: .9rem .5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
  }
  .collab-name { font-size: 1rem; }
  .collab-detail { font-size: .95rem; }
}

/* 5) Accessibility & touch targets */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
}
button, .btn, .sv-btn { min-height: 44px; } /* finger-friendly */
