/* ============================================================
   БУДНА БЪЛГАРИЯ — Design System
   Събуждаме. Свързваме. Изграждаме.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Greens */
  --green-950: #08180f;
  --green-900: #0c2417;
  --green-850: #10301f;
  --green-800: #143726;
  --green-700: #1c4a33;
  --green-600: #245b40;

  /* Accent (buttons / links) */
  --accent: #3f9256;
  --accent-hover: #48a662;
  --accent-soft: #7fb98d;

  /* Cream / light surfaces */
  --cream: #f5f0e4;
  --cream-2: #f8f4ea;
  --card: #f6f2e8;
  --card-ink: #17281d;
  --card-muted: #5c6b60;

  /* Text on dark */
  --ink-on-dark: #f1ede1;
  --muted-on-dark: #a6bcac;
  --tagline: #7fbf8f;

  /* Torch */
  --torch-red: #b8352b;
  --torch-gold: #e8b84b;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--green-900);
  color: var(--ink-on-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink-on-dark); border-color: rgba(241, 237, 225, 0.35); }
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--green-850); color: var(--ink-on-dark); }
.btn-dark:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-on-light { background: var(--green-850); color: var(--cream); }
.btn-on-light:hover { background: var(--green-700); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 26, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 48px; width: auto; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.02;
  letter-spacing: 1px;
  color: var(--cream);
}
.brand__name > span {
  font-size: .58rem;
  letter-spacing: 2.5px;
  color: var(--accent-soft);
  margin-top: 5px;
}
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink-on-dark); }
.nav__links a.active { color: var(--ink-on-dark); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink-on-dark);
  margin: 5px 0;
  transition: .25s;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  /* Follow the photo's own proportions (1719×915) so it isn't cropped or blown up */
  aspect-ratio: 1719 / 915;
  min-height: 600px;
  max-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 30%, rgba(30, 74, 51, 0.35), transparent 60%),
    linear-gradient(180deg, var(--green-950) 0%, var(--green-900) 100%);
}
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__scene img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* keep the cathedral and sunset in frame when cropping is unavoidable */
  object-position: 68% center;
  opacity: 1;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, var(--green-950) 22%, rgba(10, 27, 17, 0.72) 46%, rgba(10, 27, 17, 0.15) 72%);
}
.hero .container { position: relative; z-index: 2; padding-block: 90px; }
.hero__quote {
  position: absolute;
  right: 6%;
  top: 8%;
  font-family: var(--font-display);
  font-size: 20rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.hero__title {
  font-size: clamp(3.2rem, 8vw, 6rem);
  font-weight: 800;
  max-width: 12ch;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--tagline);
  margin-top: 18px;
}
.hero__desc {
  max-width: 46ch;
  color: var(--muted-on-dark);
  font-size: 1.06rem;
  margin-top: 22px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--muted-on-dark);
  font-size: .82rem;
  letter-spacing: .5px;
}
.hero__scroll svg { width: 22px; height: 22px; margin: 0 auto; display: block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding-block: 96px 72px;
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(30, 74, 51, 0.45), transparent 55%),
    linear-gradient(180deg, var(--green-950), var(--green-850));
  overflow: hidden;
}
.page-hero__eyebrow {
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .78rem;
}
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-top: 14px; max-width: 16ch; }
.page-hero p { color: var(--muted-on-dark); max-width: 56ch; margin-top: 20px; font-size: 1.08rem; }
.page-hero__quote {
  position: absolute;
  right: 4%; top: -30px;
  font-family: var(--font-display);
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.section { padding-block: 92px; }
.section--mid { background: var(--green-850); }
.section--deep { background: var(--green-900); }
.eyebrow {
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }
.section__head p { color: var(--muted-on-dark); margin-top: 18px; max-width: 52ch; }

/* ---------- "Кои сме ние" split ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.pillar__icon {
  width: 46px; height: 46px; color: var(--accent-soft);
  margin-bottom: 18px;
}
.pillar__icon svg { width: 100%; height: 100%; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 10px; }
.pillar p { color: var(--muted-on-dark); font-size: .96rem; }
.pillar { position: relative; padding-left: 26px; }
.pillar::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}

/* ---------- Feature cards (Подкаст / Комикси / Общност) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--card);
  color: var(--card-ink);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-6px); }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__head svg { width: 26px; height: 26px; color: var(--accent); }
.card__head h3 { font-size: 1.35rem; }
.card__sub { color: var(--card-muted); font-size: .95rem; margin-top: 4px; margin-bottom: 20px; }
.card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  margin-bottom: 18px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--green-900);
  display: flex; align-items: center; justify-content: center;
}
.card__play svg { width: 22px; height: 22px; }
.card__badge {
  position: absolute; left: 14px; bottom: 14px;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  line-height: 1.1; font-size: 1.05rem; max-width: 70%;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--green-700);
}
.card__link svg { width: 18px; height: 18px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* comic thumbs row */
.comic-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.comic-thumb { border-radius: 10px; overflow: hidden; text-align: center; }
.comic-thumb__img { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--green-600), var(--green-900)); position: relative; display:flex; align-items:center; justify-content:center; }
.comic-thumb__img span { font-family: var(--font-display); color: var(--accent-soft); font-weight: 700; font-size: .9rem; }
.comic-thumb__img img { width: 100%; height: 100%; object-fit: cover; }
.comic-thumb small { display: block; color: var(--card-muted); margin-top: 6px; font-size: .8rem; }

/* ---------- Projects feature ---------- */
.project-feature {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.project-feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow);
}
.project-feature h3 { font-size: 1.7rem; margin-bottom: 14px; }
.project-feature p { color: var(--muted-on-dark); }
.project-feature .card__link { color: var(--accent-soft); margin-top: 20px; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--green-700), var(--green-850));
  border-top: 1px solid rgba(255,255,255,.06);
}
.newsletter .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-block: 54px;
}
.newsletter h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.newsletter p { color: var(--muted-on-dark); margin-top: 10px; max-width: 48ch; }
.newsletter__form { display: flex; gap: 12px; }
.newsletter__form input {
  flex: 1;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color: var(--ink-on-dark);
  font-family: inherit;
  font-size: .96rem;
}
.newsletter__form input::placeholder { color: var(--muted-on-dark); }
.newsletter__form input:focus { outline: none; border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); padding-block: 60px 30px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted-on-dark); max-width: 32ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--muted-on-dark); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--ink-on-dark); }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-800); color: var(--accent-soft);
  transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted-on-dark); font-size: .86rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ---------- Project article ---------- */
.article-hero {
  position: relative; min-height: 480px;
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--green-950);
}
.article-hero__img { position: absolute; inset: 0; z-index: 0; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(95deg, rgba(8,24,15,.88) 0%, rgba(8,24,15,.62) 45%, rgba(8,24,15,.3) 100%),
    linear-gradient(180deg, rgba(8,24,15,.5) 0%, rgba(8,24,15,.25) 35%, rgba(8,24,15,.95) 100%);
}
.article-hero .container { position: relative; z-index: 2; padding-block: 70px 56px; }
.article-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 18ch; }
.article-hero .page-hero__eyebrow { margin-bottom: 12px; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 34px;
  padding: 26px 0; margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.meta-item b {
  display: block; color: var(--accent-soft);
  font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 5px;
}
.meta-item span { color: var(--ink-on-dark); font-weight: 600; }

.article { max-width: 760px; margin-inline: auto; }
.article > p { color: var(--muted-on-dark); font-size: 1.05rem; margin-bottom: 20px; }
.article h3 { font-size: 1.6rem; margin: 42px 0 16px; }
.article__lead { font-size: 1.2rem !important; color: var(--ink-on-dark) !important; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 12px; cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .2s;
}
.gallery img:hover { transform: translateY(-4px); border-color: var(--accent); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare figure { margin: 0; }
.compare img { width: 100%; border-radius: var(--radius); display: block; }
.compare figcaption {
  text-align: center; margin-top: 12px;
  color: var(--accent-soft); font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: .78rem;
}

.article-cta {
  text-align: center; padding: 46px 30px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(63,146,86,.14), transparent);
}
.article-cta h3 { margin: 0 0 12px; }
.article-cta p { color: var(--muted-on-dark); margin-bottom: 24px; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .meta-row { gap: 22px; }
}

/* ---------- Inline video modal ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 14, 9, .95);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal__frame {
  position: relative;
  width: min(94vw, 1080px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65);
  background: #000;
}
.video-modal__frame iframe,
.video-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__close {
  position: absolute; top: 18px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.video-modal__close:hover { background: var(--accent); }

/* Poster button that opens a video */
.video-poster {
  position: relative; display: block; width: 100%;
  border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow);
}
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-poster .card__play {
  width: 74px; height: 74px;
  transition: transform .25s ease;
}
.video-poster:hover .card__play { transform: scale(1.08); }

/* ---------- Team carousel ---------- */
.carousel { position: relative; margin-top: 44px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.carousel__item { flex: 0 0 50%; padding: 0 14px; box-sizing: border-box; }

.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  background: var(--green-900); color: var(--ink-on-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: background .2s, border-color .2s, opacity .2s;
}
.carousel__nav:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.carousel__nav:disabled { opacity: .3; cursor: default; }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__prev { left: -22px; }
.carousel__next { right: -22px; }

.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.22); cursor: pointer; transition: background .2s, width .2s;
}
.carousel__dot.is-active { background: var(--accent); width: 26px; border-radius: 5px; }

/* Flip card */
.flip-card { perspective: 1400px; height: 380px; }
.flip-card__inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card__inner,
.flip-card.is-flipped .flip-card__inner { transform: rotateY(180deg); }

.flip-card__face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 26px; text-align: center;
}
.flip-card__back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(63,146,86,.16), var(--green-850));
  border-color: var(--accent);
  justify-content: center;
}

.member__avatar {
  position: relative;
  width: 132px; height: 132px; border-radius: 50%;
  overflow: hidden; margin-bottom: 20px;
  background: linear-gradient(150deg, var(--green-600), var(--green-900));
  border: 2px solid rgba(127,185,141,.45);
  display: flex; align-items: center; justify-content: center;
}
.member__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member__initials {
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; color: var(--accent-soft); letter-spacing: 1px;
}
.member__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.member__role { color: var(--accent-soft); font-size: .88rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.member__bio { color: var(--muted-on-dark); font-size: .95rem; line-height: 1.6; }
.member__back-name { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px; }

/* Longer bios: tighter type + a scrollable back, so every card keeps the same height */
.member__bio + .member__bio { margin-top: 12px; }
.member__bio--long { font-size: .84rem; line-height: 1.62; text-align: center; }
.flip-card__back--scroll {
  /* `safe` keeps the top of a long bio reachable when it does overflow */
  justify-content: safe center;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(127,185,141,.5) transparent;
}
.flip-card__back--scroll::-webkit-scrollbar { width: 5px; }
.flip-card__back--scroll::-webkit-scrollbar-thumb {
  background: rgba(127,185,141,.45); border-radius: 3px;
}
.member__hint { color: var(--muted-on-dark); font-size: .76rem; margin-top: 18px; opacity: .65; }

@media (max-width: 860px) {
  .carousel__item { flex: 0 0 100%; }
  .carousel__prev { left: -6px; }
  .carousel__next { right: -6px; }
  .flip-card { height: 480px; }
  .flip-card__back--scroll { padding: 24px 18px; }
}

/* ---------- Generic light section ---------- */
.section--light { background: var(--cream); color: var(--card-ink); }
.section--light .eyebrow { color: var(--accent); }
.section--light .section__head p { color: var(--card-muted); }

/* ---------- Community tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tier {
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  display: flex; flex-direction: column;
}
.tier--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(63,146,86,.14), transparent); }
.tier__num { color: var(--accent-soft); font-weight: 700; letter-spacing: 1px; font-size: .8rem; text-transform: uppercase; }
.tier h3 { font-size: 1.7rem; margin: 12px 0 6px; }
.tier__price { font-size: 1.05rem; color: var(--ink-on-dark); font-weight: 700; margin-bottom: 6px; }
.tier__price span { color: var(--muted-on-dark); font-weight: 500; font-size: .9rem; }
.tier p { color: var(--muted-on-dark); font-size: .96rem; margin-bottom: 18px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; color: var(--ink-on-dark); font-size: .94rem; }
.tier li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.tier .btn { margin-top: auto; justify-content: center; }
.tier__goal { color: var(--muted-on-dark); font-size: .82rem; margin-top: 12px; text-align:center; }

/* ---------- Steps / flywheel ---------- */
.flywheel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--green-850);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step__n {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.2rem; margin: 12px 0 4px; }
.step__tag { color: var(--accent-soft); font-size: .82rem; font-weight: 700; }
.step p { color: var(--muted-on-dark); font-size: .92rem; margin-top: 10px; }

/* ---------- Projects grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.proj-card {
  background: var(--green-850);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.proj-card:hover { transform: translateY(-6px); }
.proj-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--green-600), var(--green-950)); position: relative; }
.proj-card__status {
  position: absolute; top: 14px; left: 14px;
  background: rgba(8,24,15,.72); color: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.proj-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.proj-card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.proj-card__body p { color: var(--muted-on-dark); font-size: .95rem; margin-bottom: 18px; }
.proj-card .card__link { color: var(--accent-soft); }

/* ---------- Podcast list ---------- */
.ep-list { display: grid; gap: 16px; }
.ep {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px; align-items: center;
  background: var(--green-850);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .2s;
}
.ep:hover { border-color: var(--accent); }
.ep__thumb { aspect-ratio: 16/10; border-radius: 12px; background: linear-gradient(135deg, var(--green-600), var(--green-950)); position: relative; }
.ep__thumb .card__play { width: 44px; height: 44px; }
.ep__num { color: var(--accent-soft); font-weight: 700; font-size: .82rem; }
.ep h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.ep p { color: var(--muted-on-dark); font-size: .92rem; }
.ep__meta { color: var(--muted-on-dark); font-size: .85rem; text-align: right; }

/* ---------- YouTube embed + episode grid ---------- */
.embed {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ep-card {
  background: var(--green-850); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .2s ease;
}
.ep-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.ep-card__thumb { position: relative; aspect-ratio: 16/9; background: #0d2417; overflow: hidden; }
.ep-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-card__thumb .card__play {
  width: 52px; height: 52px; background: rgba(255,255,255,.92);
  opacity: 0; transition: opacity .2s;
}
.ep-card:hover .ep-card__thumb .card__play { opacity: 1; }
.ep-card__dur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(8,24,15,.85); color: #fff;
  padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700;
}
.ep-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ep-card__body h3 { font-size: 1.04rem; line-height: 1.25; margin-bottom: 10px; }
.ep-card__meta { color: var(--muted-on-dark); font-size: .82rem; margin-top: auto; display: flex; gap: 12px; }
@media (max-width: 960px) { .ep-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ep-grid { grid-template-columns: 1fr; } }

/* ---------- Comics gallery ---------- */
.comics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.comic {
  border-radius: var(--radius); overflow: hidden;
  background: var(--green-850); border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease;
}
.comic:hover { transform: translateY(-6px); }
.comic__cover { aspect-ratio: 3/4; background: linear-gradient(160deg, var(--green-600), var(--green-950)); display: flex; align-items: center; justify-content: center; position: relative; }
.comic__cover span { font-family: var(--font-display); font-weight: 800; color: var(--accent-soft); }
.comic__body { padding: 18px 20px 22px; }
.comic__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.comic__body p { color: var(--muted-on-dark); font-size: .86rem; }
.comic__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Comic reader (panels) ---------- */
.panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.panel {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1/1; cursor: zoom-in; border: 1px solid rgba(255,255,255,.08);
  background: var(--green-850);
}
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.panel:hover img { transform: scale(1.05); }
.panel__n {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(8,24,15,.78); color: var(--cream);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,14,9,.94);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 860px); max-height: 86vh;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 0; color: var(--cream);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--muted-on-dark); font-size: .9rem; font-weight: 600;
}
@media (max-width: 960px) { .panels { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .panels { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav { width: 42px; height: 42px; }
}

/* ---------- Values / mission list ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 10px; }
.stat { text-align: center; }
.stat b { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent-soft); display: block; }
.stat span { color: var(--muted-on-dark); font-size: .9rem; }
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  max-width: 22ch;
}
.mission-quote em { color: var(--accent-soft); font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.2); color: var(--ink-on-dark);
  font-family: inherit; font-size: .96rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--accent); }
.contact-info { display: grid; gap: 20px; }
.contact-info .info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { width: 22px; height: 22px; color: var(--accent-soft); flex: none; margin-top: 3px; }
.contact-info b { display: block; }
.contact-info a, .contact-info span { color: var(--muted-on-dark); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.lead { color: var(--muted-on-dark); font-size: 1.1rem; }
.prose p { color: var(--muted-on-dark); margin-bottom: 18px; }
.prose h3 { font-size: 1.5rem; margin: 34px 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  /* stack the menu inside the header so the CTAs stay reachable on phones */
  .nav { flex-wrap: wrap; height: auto; min-height: 78px; }
  .brand { order: 1; }
  .nav__toggle { order: 2; display: block; }
  .nav__links { order: 3; }
  .nav__cta { order: 4; }

  .nav__links, .nav__cta { display: none; }
  .nav.open { padding-bottom: 22px; }
  .nav.open .nav__links,
  .nav.open .nav__cta {
    display: flex; flex-direction: column;
    width: 100%; gap: 16px;
  }
  .nav.open .nav__links {
    margin-top: 12px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
  }
  .nav.open .nav__cta { margin-top: 18px; }
  .nav.open .nav__cta .btn { justify-content: center; }
  .about-split, .two-col, .contact-grid, .newsletter .container, .project-feature { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .cards, .tiers, .grid-3, .comics-grid { grid-template-columns: 1fr 1fr; }
  .flywheel { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ep { grid-template-columns: 120px 1fr; }
  .ep__meta { display: none; }
  .hero__quote { font-size: 12rem; }
}
@media (max-width: 620px) {
  .pillars, .cards, .tiers, .grid-3, .comics-grid, .flywheel, .footer-grid, .stat-row { grid-template-columns: 1fr; }
  .comics-grid { grid-template-columns: 1fr 1fr; }
  /* portrait screens: let content set the height instead of the panorama */
  .hero { aspect-ratio: auto; min-height: 600px; max-height: none; }
  .hero__scene img { object-position: 62% center; }
  .hero__quote { display: none; }
  .ep { grid-template-columns: 1fr; }
  .ep__thumb { max-width: 220px; }
  .newsletter__form { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
}
