/* ============================================================
   story.css — Mastery Logistics Systems
   Our Story page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .cta-banner — standard closing CTA (from other pages).
   - .btn-primary-lg — global button style.
   - .eyebrow — global copper-uppercase label.
   - .container — global width wrapper.

   NEW COMPONENTS INTRODUCED HERE:
   - .story-hero — centered dark hero, text only.
   - .founder / .founder__photo / .founder__caption — founder
     story block with vertical portrait and floating caption tag.
   - .image-placeholder — reusable placeholder for the images
     that still need to be sourced. Delete each occurrence when
     the real image replaces it.
   - .podcast-section / .podcast-embed — standalone podcast
     block with YouTube-style video preview.
   - .timeline / .timeline__item — vertical timeline with
     copper connecting line and gradient dots.
   - .manifesto / .tenets / .tenet — dark manifesto section
     with 3 numbered belief cards.
   - .team / .slider — horizontal card carousel for the
     10-exec team. Sliding logic is in story.js.
   - .stjude / .stjude__card — expanded partnership block.

   PAGE STRUCTURE:
   1. Story hero (dark, centered)
   2. Founder story (white, photo + short intro)
   3. Podcast (warm, centered video embed)
   4. Timeline (warm)
   5. Manifesto — What We Believe (dark, 3 tenet cards)
   6. Team slider (white)
   7. St. Jude partnership (warm)
   8. CTA banner (dark)
============================================================ */


/* ============================================================
   IMAGE PLACEHOLDER
   Reusable across the page for images not yet sourced.
============================================================ */
.image-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8ddd4, #d4c8bf);
  border: 0.5px solid rgba(178, 93, 66, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 1rem;
  text-align: center;
}

.image-placeholder__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
}

.image-placeholder__note {
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ============================================================
   SECTION 1 — STORY HERO
   Dark, centered, text only. Larger H1 than most page heroes
   since there's no image competing for attention.
============================================================ */
.story-hero .eyebrow {
  color: var(--color-copper-light);
}

.story-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  text-align: center;
}

.story-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(178, 93, 66, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.story-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
}

.story-hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 1rem;
  margin-bottom: 1.375rem;
}

.story-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto;
}


/* ============================================================
   SECTION 2 — FOUNDER STORY
   White. Photo LEFT (4:5 vertical), short intro RIGHT.
   Floating caption tag on the photo.
============================================================ */
.founder {
  background: var(--color-white);
}

.founder__inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.founder__media {
  position: relative;
}

.founder__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.founder__caption {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: var(--color-white);
  padding: 0.75rem 1.375rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.founder__caption-name {
  color: #fc9365;
}

.founder__heading {
  color: var(--color-text-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.founder__paragraph {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin: 0;
}


/* ============================================================
   SECTION 3 — PODCAST BLOCK
   Warm. Centered. YouTube-style embed preview.
============================================================ */
.podcast-section {
  background: #faf6f3;
}

.podcast-section__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.podcast-section__heading {
  color: var(--color-text-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.5rem 0 2.25rem;
}

.podcast-embed {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 720px;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.podcast-embed:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.18);
}

.podcast-embed__thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  /* Real episode thumbnail (stored locally, not hotlinked) under a
     light dark wash so the play button and labels stay readable. */
  background:
    linear-gradient(rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.3)),
    url('/images/freightpod-youtube-thumb.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podcast-embed__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  padding: 0.3125rem 0.625rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.podcast-embed__duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 0.25rem 0.5625rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
}

.podcast-embed__play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.podcast-embed:hover .podcast-embed__play {
  transform: scale(1.05);
}

.podcast-embed__info {
  background: #0a0a0a;
  padding: 1.125rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.podcast-embed__info-text {
  flex: 1;
}

.podcast-embed__title {
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.005em;
  margin: 0 0 0.25rem;
  line-height: 1.4;
}

.podcast-embed__meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.podcast-embed__icon {
  color: rgba(252, 147, 101, 0.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}


/* ============================================================
   SECTION 4 — TIMELINE ("The Journey")
   Warm. Vertical timeline with 5 milestones.
============================================================ */
.timeline {
  background: #faf6f3;
}

.timeline__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.timeline__heading {
  color: var(--color-text-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0;
}

.timeline__track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 5rem;
}

.timeline__track::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(178, 93, 66, 0.2), rgba(178, 93, 66, 0.6), rgba(178, 93, 66, 0.2));
}

.timeline__item {
  position: relative;
  padding: 1.25rem 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -4rem;
  top: 1.625rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  border: 3px solid #faf6f3;
  box-shadow: 0 0 0 2px rgba(178, 93, 66, 0.2);
}

.timeline__year {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-accent);
  font-weight: var(--weight-bold);
  margin-bottom: 0.375rem;
}

.timeline__title {
  font-size: 1.125rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  margin: 0 0 0.375rem;
}

.timeline__desc {
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   SECTION 5 — MANIFESTO ("What We Believe")
   Dark. Big centered headline + 3 tenet cards.
============================================================ */
.manifesto .eyebrow {
  color: var(--color-copper-light);
}

.manifesto {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(178, 93, 66, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.manifesto__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.manifesto__heading {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.18;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin: 0 auto 3.75rem;
  max-width: 720px;
}

.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tenet {
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid rgba(252, 147, 101, 0.2);
  border-radius: 14px;
  padding: 2rem 1.625rem;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.tenet:hover {
  border-color: rgba(252, 147, 101, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.tenet__num {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(252, 147, 101, 0.85);
  font-weight: var(--weight-bold);
  margin-bottom: 0.875rem;
}

.tenet__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.15), rgba(178, 93, 66, 0.1));
  border: 0.5px solid rgba(252, 147, 101, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fc9365;
  margin-bottom: 1.25rem;
}

.tenet__title {
  font-size: 1.25rem;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  margin: 0 0 0.625rem;
}

.tenet__desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}


/* ============================================================
   SECTION 6 — TEAM SLIDER ("Maestri")
   White. 10-card slider — 4 visible on desktop.
   Sliding logic is in story.js.
============================================================ */
.team {
  background: var(--color-white);
}

.team__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.team__heading {
  color: var(--color-text-primary);
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0;
}

.slider {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1rem) / 4);
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider__card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.15);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.slider__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.slider__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.slider__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.slider__info {
  padding: 1rem 1.125rem;
}

.slider__name {
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  letter-spacing: -0.005em;
  margin: 0 0 0.1875rem;
}

.slider__title {
  font-size: 0.6875rem;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.01em;
  margin: 0;
}

.slider__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.slider__counter {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  font-weight: var(--weight-semibold);
}

.slider__arrows {
  display: flex;
  gap: 0.5rem;
}

.slider__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #faf6f3;
  border: 0.5px solid rgba(178, 93, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
}

.slider__arrow:hover:not(:disabled) {
  background: var(--color-copper);
  color: var(--color-white);
  border-color: var(--color-copper);
}

.slider__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* ============================================================
   SECTION 7 — ST. JUDE PARTNERSHIP
   Warm. Expanded partnership block as a card.
============================================================ */
.stjude {
  background: #faf6f3;
}

.stjude__card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.15);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.75rem;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.stjude__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stjude__logo-box {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f5f0eb, #e8ddd4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.stjude__logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.stjude__heading {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.stjude__paragraph {
  color: var(--color-text-primary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}


/* ============================================================
   SECTION 8 — CTA BANNER
   Dark. Standard closing.
============================================================ */
.cta-banner {
  background: #0a0a0a;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}


/* ============================================================
   RESPONSIVE — MOBILE OVERRIDES
============================================================ */
@media (max-width: 1024px) {

  /* Team slider — 3 cards visible on tablet */
  .slider__track {
    grid-auto-columns: calc((100% - 2 * 1rem) / 3);
  }

}


/* ============================================================
   LEADERSHIP BIO MODAL
   Opened from the team slider cards. Photo left, name / copper
   title / bio right (scrollable), matching the legacy site's
   dialog. Mobile stacks photo above the bio.
============================================================ */
.slider__card--clickable {
  cursor: pointer;
}

/* Click-for-bio affordance — the whole card is the trigger, so
   this is a visual CTA, not a nested control. */
.slider__bio-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.625rem;
  color: var(--color-copper);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.slider__card--clickable:hover .slider__bio-cta {
  color: var(--color-copper-dark);
}

.slider__bio-cta-arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.slider__card--clickable:hover .slider__bio-cta-arrow {
  transform: translateX(4px);
}

.slider__card--clickable:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bio-modal[hidden] {
  display: none;
}

.bio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

/* Fixed dialog size so every bio presents identically — long bios
   scroll in the content column instead of stretching the dialog,
   keeping the photo crop the same for everyone. */
.bio-modal__dialog {
  position: relative;
  display: flex;
  width: min(1060px, 100%);
  height: min(600px, 90vh);
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.bio-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  z-index: 2;
  background: none;
  border: none;
  padding: 0.375rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.bio-modal__close:hover {
  color: var(--color-text-primary);
}

.bio-modal__photo {
  flex: 0 0 320px;
  background: #1a1a1a;
}

.bio-modal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-modal__content {
  flex: 1;
  padding: 2.5rem 3rem 2.5rem 2.75rem;
  overflow-y: auto;
}

.bio-modal__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin: 0 0 0.25rem;
}

.bio-modal__title {
  color: var(--color-copper);
  font-size: var(--text-base);
  margin: 0 0 0.875rem;
  padding-bottom: 0.875rem;
  position: relative;
}

.bio-modal__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  background: var(--color-copper);
}

.bio-modal__bio p {
  font-size: var(--text-sm);
  line-height: var(--leading-loose);
  color: var(--color-text-primary);
  margin: 0 0 1rem;
}

.bio-modal__bio p:last-child {
  margin-bottom: 0;
}


@media (max-width: 768px) {

  /* Bio modal — stack photo above scrollable bio */
  .bio-modal {
    padding: 1rem;
  }

  .bio-modal__dialog {
    flex-direction: column;
    height: min(600px, 90vh);
  }

  /* No photo on mobile — the reader has just seen it on the card,
     and the small strip crops portraits poorly. The modal is all
     bio text. */
  .bio-modal__photo {
    display: none;
  }

  .bio-modal__content {
    padding: 1.5rem 1.25rem;
  }

  /* Story hero — tighter padding */
  .story-hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Founder — stack photo above content, center caption */
  .founder__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 480px;
  }

  .founder__media {
    max-width: 340px;
    margin: 0 auto;
  }

  /* Podcast — smaller play button on mobile */
  .podcast-embed__play {
    width: 60px;
    height: 60px;
  }

  .podcast-embed__play svg {
    width: 22px;
    height: 22px;
  }

  /* Timeline — tighter left indent */
  .timeline__track {
    padding-left: 3.25rem;
  }

  .timeline__track::before {
    left: 1rem;
  }

  .timeline__item::before {
    left: -2.75rem;
    width: 14px;
    height: 14px;
  }

  /* Manifesto — tenet cards stack vertically */
  .tenets {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .manifesto__heading {
    margin-bottom: 2.5rem;
  }

  /* Team slider — 2 cards visible on mobile */
  .slider__track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  /* St. Jude — stack logo above content */
  .stjude__card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
    text-align: center;
  }

  .stjude__logo-box {
    width: 160px;
    height: 160px;
  }

  /* CTA */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}


@media (max-width: 480px) {

  /* Team slider — 1 card visible on small mobile */
  .slider__track {
    grid-auto-columns: 100%;
  }

  /* Manifesto tenet padding tighter */
  .tenet {
    padding: 1.5rem 1.25rem;
  }

}
