/* ============================================================
   PEOPLE OF CANADA — Main Stylesheet
   All five pages share this file.
   Update copy by editing the HTML; update design tokens here.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --red:        #C0392B;
  --dark:       #1A1A1A;
  --warm-white: #FAF8F5;
  --stone:      #8C8880;
  --red-tint:   #FDECEA;
  --white:      #ffffff;
  --border:     rgba(26, 26, 26, 0.1);
  --border-light: rgba(255, 255, 255, 0.1);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  --fs-hero:  clamp(40px, 6vw, 68px);
  --fs-h1:    clamp(30px, 4vw, 48px);
  --fs-h2:    clamp(26px, 3vw, 40px);
  --fs-h3:    clamp(18px, 2vw, 22px);
  --fs-body:  17px;
  --fs-sm:    14px;
  --fs-xs:    12px;

  --lh-body:  1.75;
  --ls-wide:  0.1em;

  --max-width:     1200px;
  --section-pad:   96px;
  --container-pad: 32px;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:      0.55s;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--warm-white);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font-family: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, .h1 {
  font-family: var(--ff-display);
  font-size: var(--fs-h1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  line-height: 1.35;
}

.eyebrow {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--red);
}

.pull-quote {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-style: italic;
  line-height: 1.5;
  color: var(--dark);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--section-pad) 0; }

.section--warm { background-color: #F2EEE8; }

.divider {
  width: 40px;
  height: 2px;
  background-color: var(--red);
  margin-bottom: 20px;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: background-color 0.3s var(--ease),
              padding 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background-color: var(--white);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo block */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav__logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__logo-text {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

.nav__logo-sub {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--stone);
  letter-spacing: 0.03em;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav__links a:hover,
.nav__links a.active { color: var(--red); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

/* Non-hero pages: always show white background */
.nav:not(.nav--hero) {
  background-color: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
}

/* Hero nav variant — white text until scrolled */
.nav--hero .nav__links a { color: var(--white); }
.nav--hero .nav__links a::after { background-color: var(--white); }
.nav--hero .nav__logo-text { color: var(--white); }
.nav--hero .nav__logo-sub { color: rgba(255, 255, 255, 0.55); }

.nav--hero.scrolled .nav__links a { color: var(--dark); }
.nav--hero.scrolled .nav__links a::after { background-color: var(--red); }
.nav--hero.scrolled .nav__links a:hover { color: var(--red); }
.nav--hero.scrolled .nav__logo-text { color: var(--red); }
.nav--hero.scrolled .nav__logo-sub { color: var(--stone); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav--hero .nav__hamburger span { background-color: var(--white); }
.nav--hero.scrolled .nav__hamburger span { background-color: var(--dark); }

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--white);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 40px);
  color: var(--dark);
  transition: color 0.2s;
}

.nav__mobile a:hover { color: var(--red); }

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0a0a0a;
}

/* Atmospheric dark background — suggests a long exposure photograph */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(30, 20, 18, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 30% 60%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 55%, rgba(192, 57, 43, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #0d0d0d 0%, #141414 50%, #0a0a0a 100%);
}

/* Horizon glow line */
.hero__horizon {
  position: absolute;
  bottom: 32%;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 20%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 80%,
    transparent 100%);
  pointer-events: none;
}

/* Suggested person silhouette — CSS only */
.hero__figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 55%;
  pointer-events: none;
}

.hero__figure::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(22, 22, 22, 0.6) 40%, transparent 100%);
  clip-path: polygon(
    30% 0%, 70% 0%,
    75% 8%, 78% 18%,
    100% 18%, 100% 100%,
    0% 100%, 0% 18%,
    22% 18%, 25% 8%
  );
}

.hero__figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 25%;
  background: rgba(28, 28, 28, 0.85);
  border-radius: 50%;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 120px var(--container-pad) 100px;
  max-width: 860px;
  width: 100%;
}

.hero__headline {
  font-family: var(--ff-display);
  font-size: var(--fs-hero);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}

.hero__headline em {
  font-style: normal;
  color: #C0392B;
}

.hero__sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: all 0.22s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background-color: #a83224;
  border-color: #a83224;
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn--ghost:hover {
  background-color: var(--red);
  color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--red);
  font-size: 15px;
  transition: gap 0.2s var(--ease);
}

.link-arrow::after { content: '→'; }

.link-arrow:hover { gap: 14px; color: var(--red); }

/* ============================================================
   8. MISSION STRIP
   ============================================================ */
.mission-strip {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 22px var(--container-pad);
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

/* ============================================================
   9. PILLAR COLUMNS (What We Do)
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.pillar__rule {
  width: 40px;
  height: 2px;
  background-color: var(--red);
  margin-bottom: 22px;
}

.pillar h3 { margin-bottom: 14px; }

.pillar p { color: #3a3a3a; }

/* ============================================================
   10. SECTION HEADER PATTERN
   ============================================================ */
.section-header {
  margin-bottom: 56px;
}

.section-header .eyebrow { margin-bottom: 14px; }

.section-header h2 { max-width: 560px; }

.section-header p {
  max-width: 580px;
  color: var(--stone);
  margin-top: 16px;
  font-size: 16px;
}

/* ============================================================
   11. EPISODE CARDS
   ============================================================ */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
}

.episodes-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 48px;
}

.episode-card { display: flex; flex-direction: column; }

/* Portrait placeholder — B&W photographic feel */
.episode-card__portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(ellipse 55% 35% at 50% 20%, #2e2e2e 0%, #1a1a1a 50%, #111 100%),
    linear-gradient(160deg, #252525 0%, #141414 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  flex-shrink: 0;
}

/* Head shape */
.episode-card__portrait::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 28%;
  background: radial-gradient(ellipse, #363636 0%, #2a2a2a 100%);
  border-radius: 50% 50% 44% 44%;
  z-index: 1;
}

/* Shoulders / body */
.episode-card__portrait::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 60%, #141414 100%);
  clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

/* Wide landscape for episodes page */
.episode-card__portrait--wide {
  aspect-ratio: 16 / 9;
}

.episode-card__ep-num {
  font-size: var(--fs-xs);
  color: var(--stone);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.episode-card__name {
  font-family: var(--ff-display);
  font-size: clamp(18px, 1.8vw, 22px);
  margin-bottom: 12px;
  color: var(--dark);
}

.episode-card__quote {
  font-style: italic;
  color: #3a3a3a;
  line-height: 1.65;
  margin-bottom: 14px;
  font-size: 15px;
  flex-grow: 1;
}

.episode-card__meta {
  font-size: var(--fs-sm);
  color: var(--stone);
  margin-bottom: 8px;
}

.episode-card__meta strong { color: var(--dark); font-weight: 600; }

.episode-card__teaser {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.65;
  margin-bottom: 12px;
}

.episode-card__duration {
  font-size: var(--fs-xs);
  color: var(--stone);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.episode-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* ============================================================
   12. ORIGIN CALLOUT
   ============================================================ */
.origin-callout {
  background-color: var(--red-tint);
  text-align: center;
}

.origin-callout .eyebrow { margin-bottom: 16px; }

.origin-callout h2 { margin-bottom: 28px; }

.origin-callout p {
  max-width: 660px;
  margin: 0 auto 16px;
  font-size: 16px;
  line-height: var(--lh-body);
  color: #2a2a2a;
}

.origin-callout .link-arrow { margin-top: 24px; }

/* ============================================================
   13. SHARE CTA (dark)
   ============================================================ */
.share-cta {
  background-color: var(--dark);
  text-align: center;
}

.share-cta h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.share-cta p {
  max-width: 520px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.68);
}

/* ============================================================
   14. PAGE HEADER (non-hero pages)
   ============================================================ */
.page-header {
  padding: 140px var(--container-pad) 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-bottom: 20px; }

.page-header p {
  max-width: 600px;
  color: var(--stone);
  font-size: 18px;
  line-height: var(--lh-body);
}

/* ============================================================
   15. FILTER BAR (Episodes page)
   ============================================================ */
.filter-bar {
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 72px;
  z-index: 50;
}

.filter-bar__inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 16px 22px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--ff-body);
}

.filter-btn:hover,
.filter-btn.active { color: var(--dark); border-bottom-color: var(--red); }

/* ============================================================
   16. ABOUT PAGE
   ============================================================ */
.about-narrative {
  max-width: 720px;
  margin: 0 auto;
}

.about-narrative p { margin-bottom: 28px; color: #2e2e2e; }

.about-narrative .pull-quote {
  margin: 52px 0;
  padding: 0 0 0 36px;
  border-left: 3px solid var(--red);
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.mission-list li {
  display: flex;
  gap: 18px;
  font-size: var(--fs-body);
  color: #2e2e2e;
}

.mission-list li::before {
  content: '—';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Team placeholder */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  border: 1px solid var(--border);
  padding: 36px 28px;
  text-align: center;
  background-color: var(--white);
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
  margin: 0 auto 20px;
}

.team-card__name {
  font-family: var(--ff-display);
  font-size: 17px;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: var(--fs-sm);
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 500;
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--stone);
  line-height: 1.6;
  font-style: italic;
}

/* ============================================================
   17. GET INVOLVED PAGE
   ============================================================ */
.involve-section { padding: 80px 0; }
.involve-section--tint  { background-color: var(--red-tint); }
.involve-section--dark  { background-color: var(--dark); color: var(--white); }

.involve-section--dark h2 { color: var(--white); }
.involve-section--dark p  { color: rgba(255, 255, 255, 0.75); }
.involve-section--dark h3 { color: var(--white); }
.involve-section--dark .form-label { color: rgba(255, 255, 255, 0.85); }

.involve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.involve-info h2 { margin-bottom: 20px; }
.involve-info p  { font-size: 15px; margin-bottom: 24px; }

.involve-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.involve-bullets li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: #333;
  align-items: flex-start;
}

.involve-bullets li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
  font-weight: 600;
}

.involve-section--dark .involve-bullets li { color: rgba(255, 255, 255, 0.75); }
.involve-section--dark .involve-bullets li::before { color: var(--red); }

/* ============================================================
   18. FORMS
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 1px;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8880' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* Dark form variant */
.form--dark .form-input,
.form--dark .form-textarea,
.form--dark .form-select {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.form--dark .form-input::placeholder,
.form--dark .form-textarea::placeholder { color: rgba(255, 255, 255, 0.3); }

.form--dark .form-input:focus,
.form--dark .form-textarea:focus,
.form--dark .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

.form--dark .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8880' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: rgba(255, 255, 255, 0.7);
}

.form--dark .form-select option { background-color: #2a2a2a; color: var(--white); }

.form-success {
  display: none;
  padding: 20px 24px;
  background-color: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 1px;
  color: #1d7a41;
  font-size: 15px;
  line-height: 1.55;
}

.form-success.visible { display: block; }

.form--dark .form-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #5dda8a;
  border-color: rgba(46, 204, 113, 0.25);
}

/* ============================================================
   19. CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 64px;
}

.contact-sidebar h3 { margin-bottom: 16px; }

.contact-sidebar p {
  font-size: 15px;
  color: var(--stone);
  line-height: var(--lh-body);
  margin-bottom: 20px;
}

.contact-note {
  font-size: var(--fs-sm);
  color: var(--stone);
  font-style: italic;
  margin-top: 32px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--stone);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover { color: var(--red); border-color: var(--red); }

.social-link__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.footer {
  background-color: var(--dark);
  padding: 72px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer__brand-name {
  font-family: var(--ff-display);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.footer__brand-sub {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 28px;
}

.maple-leaf-outline {
  font-size: 24px;
  opacity: 0.2;
  filter: grayscale(1);
  user-select: none;
}

.footer__col-heading {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 22px;
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav-links a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__nav-links a:hover { color: var(--white); }

.footer__inspiration {
  font-size: var(--fs-sm);
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  line-height: 1.65;
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__social a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer__social a:hover { color: rgba(255, 255, 255, 0.9); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em;
}

/* ============================================================
   21. SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--d1 { transition-delay: 0.1s; }
.fade-in--d2 { transition-delay: 0.2s; }
.fade-in--d3 { transition-delay: 0.3s; }
.fade-in--d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }

  .pillars { grid-template-columns: 1fr; gap: 40px; }

  .episodes-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }

  .episodes-grid--two-col { grid-template-columns: 1fr; gap: 56px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }

  .involve-grid { gap: 48px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
    --container-pad: 20px;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .episodes-grid { grid-template-columns: 1fr; gap: 48px; }

  .team-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .involve-grid { grid-template-columns: 1fr; gap: 40px; }

  .contact-layout { padding-top: 36px; }

  .filter-bar { top: 60px; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .hero__content { padding: 110px 20px 80px; }

  .btn { padding: 13px 28px; }

  .page-header { padding: 120px 20px 56px; }

  .social-links { gap: 10px; }
}
