/* ===================================================================
   KnowBridge — prototype stylesheet
   Palette: deep navy + gold + cream
   =================================================================== */

:root {
  --navy:      #0c1a2c;
  --navy-2:    #11243a;
  --navy-3:    #19324c;
  --navy-panel:#102337;
  --gold:      #d6a44c;
  --gold-soft: #e6bd6e;
  --gold-deep: #b9842f;
  --cream:     #f5f1e9;
  --cream-2:   #ece5d8;
  --ink:       #1b2a3a;
  --muted:     #5e6b79;
  --muted-2:   #8794a2;
  --white:     #ffffff;
  --line:      rgba(255, 255, 255, 0.14);

  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(6, 14, 25, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.center { text-align: center; }

/* ---------- Typography helpers ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.5px;
  margin: 0;
  color: var(--ink);
}
.section-title.light { color: var(--white); }
.section-title.center { text-align: center; }

.title-rule {
  display: block;
  width: 66px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin: 18px 0 26px;
}
.title-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c06;
  box-shadow: 0 10px 26px rgba(190, 132, 47, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(190, 132, 47, 0.45); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-3); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 9px 18px;
  font-size: 0.86rem;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: var(--gold); color: #2a1c06; border-color: var(--gold); }

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 8px 0;
}
.site-header.scrolled {
  background: rgba(10, 22, 38, 0.94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { width: 46px; height: 34px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 2px;
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}
.site-nav > a:hover { color: var(--white); }
.site-nav > a:hover::after,
.site-nav > a.active::after { width: 100%; }
.site-nav > a.active { color: var(--gold-soft); }

/* cross-site CTA button (links to the Ancient Medicine sub-site) */
.site-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  color: #2a1c06;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 600;
  font-size: 0.84rem;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(190, 132, 47, 0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover {
  color: #2a1c06;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(190, 132, 47, 0.46);
}
.nav-cta svg { width: 15px; height: 15px; }
[dir="rtl"] .nav-cta svg { transform: scaleX(-1); }

/* language selector */
.lang-select { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-btn .globe { width: 16px; height: 16px; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform 0.2s ease; }
.lang-select.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  list-style: none;
  margin: 0; padding: 6px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
}
.lang-menu li:hover { background: var(--cream-2); }
.lang-menu li.is-current { color: var(--gold-deep); font-weight: 600; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   Hero
   =================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.72) 0%, rgba(8, 16, 28, 0.28) 32%, rgba(8, 16, 28, 0.42) 72%, rgba(8, 16, 28, 0.85) 100%);
}
.hero-content { position: relative; text-align: center; padding-top: 90px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 8vw, 7rem);
  letter-spacing: clamp(2px, 1.2vw, 16px);
  margin: 0;
  max-width: 100%;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold-soft);
  margin: 6px 0 26px;
  position: relative;
  display: inline-block;
  padding: 0 64px;
}
.hero-subtitle::before,
.hero-subtitle::after {
  content: "";
  position: absolute; top: 50%;
  width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-subtitle::before { left: 0; }
.hero-subtitle::after  { right: 0; transform: scaleX(-1); }
.hero-lede {
  font-size: clamp(1.02rem, 2vw, 1.32rem);
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 300;
}
.btn-play { font-size: 1.06rem; padding: 15px 34px; }
.play-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.play-circle svg { width: 16px; height: 16px; margin-left: 2px; }

/* ===================================================================
   Why KnowBridge
   =================================================================== */
.why { background: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.why-text p { color: #44505d; font-size: 1.05rem; margin: 0 0 18px; }
.why-text strong { color: var(--ink); }
.why-highlight {
  color: var(--gold-deep) !important;
  font-weight: 500;
  font-size: 1.12rem !important;
}
.why-media { position: relative; }
.why-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}
.why-media-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: 1;
  opacity: 0.6;
}

/* ===================================================================
   Watch the Story
   =================================================================== */
.story {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(214, 164, 76, 0.12), transparent 60%),
    var(--navy);
  color: var(--white);
}
.story-intro {
  text-align: center;
  color: var(--muted-2);
  max-width: 560px;
  margin: -6px auto 40px;
  font-size: 1.05rem;
}
.player {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.story-video { width: 100%; display: block; aspect-ratio: 1928 / 1076; }
.caption {
  position: absolute;
  left: 50%; bottom: 64px;
  transform: translateX(-50%);
  max-width: 80%;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  background: rgba(8, 16, 28, 0.6);
  padding: 12px 26px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.caption.show { opacity: 1; }
.caption.show.final { color: var(--gold-soft); }

.story-beats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  counter-reset: beat;
}
.story-beats li {
  counter-increment: beat;
  font-size: 0.85rem;
  color: var(--muted-2);
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex; align-items: center; gap: 8px;
}
.story-beats li::before {
  content: counter(beat);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
}
.story-beats li:hover { border-color: var(--gold); color: var(--white); }
.story-beats li.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a1c06;
}
.story-beats li.active::before { background: rgba(0,0,0,0.18); color: #2a1c06; }

/* ===================================================================
   Ask KnowBridge
   =================================================================== */
.ask { background: var(--cream); padding: 0 0 88px; margin-top: -1px; }
.ask-panel {
  background:
    radial-gradient(900px 320px at 88% -40%, rgba(214, 164, 76, 0.16), transparent 60%),
    var(--navy-panel);
  border-radius: 22px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
  margin-top: -64px;
  position: relative;
  z-index: 5;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ask-title {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 10px;
}
.ask-head p { color: var(--muted-2); margin: 0; font-size: 0.98rem; }
.ask-form { display: flex; gap: 10px; }
.ask-form input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-family: var(--sans);
  font-size: 0.98rem;
  background: var(--white);
  color: var(--ink);
}
.ask-form input:focus { outline: 2px solid var(--gold); }
.ask-form button {
  border: none;
  border-radius: 999px;
  width: 52px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c06;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ask-form button svg { width: 22px; height: 22px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { background: var(--gold); border-color: var(--gold); color: #2a1c06; }

/* ===================================================================
   Knowledge Journeys
   =================================================================== */
.journeys { background: var(--cream); }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.link-arrow {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.link-arrow .arrow { display: inline-block; transition: transform 0.18s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.journey-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  isolation: isolate;
}
.card-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}
.journey-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,0.15) 0%, rgba(8,16,28,0.55) 50%, rgba(8,16,28,0.92) 100%);
  z-index: 1;
}
.journey-card:hover .card-bg { transform: scale(1.07); }
.journey-body { padding: 24px 24px 16px; position: relative; z-index: 2; }
.journey-body h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.journey-body p { margin: 0 0 16px; color: rgba(255,255,255,0.85); font-size: 0.96rem; }
.timeline {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 16px 24px 22px;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.timeline li {
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  flex: 1;
  padding-top: 16px;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 164, 76, 0.25);
}
.timeline li::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%; width: 100%; height: 1px;
  background: rgba(255, 255, 255, 0.25);
  z-index: -1;
}
.timeline li:last-child::after { display: none; }

/* ===================================================================
   What We Build
   =================================================================== */
.build { background: var(--cream-2); }
.build-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.build-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(20, 34, 52, 0.06);
  border: 1px solid rgba(20, 34, 52, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.build-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(20, 34, 52, 0.12); }
.build-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.build-icon svg { width: 30px; height: 30px; }
.icon-violet { background: #ece8fb; color: #6d54d6; }
.icon-green  { background: #e3f3ea; color: #389169; }
.icon-gold   { background: #f7eed7; color: var(--gold-deep); }
.icon-blue   { background: #e2eefb; color: #3478c4; }
.build-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.build-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===================================================================
   Featured Topics
   =================================================================== */
.topics { background: var(--cream); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic-card {
  position: relative;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.topic-card .card-bg { border-radius: 14px; }
.topic-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,0.05) 35%, rgba(8,16,28,0.85) 100%);
  z-index: 1;
}
.topic-card:hover .card-bg { transform: scale(1.08); }
.topic-card span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  padding: 16px 18px;
}

/* ===================================================================
   Our Vision
   =================================================================== */
.vision { position: relative; color: var(--white); overflow: hidden; }
.vision-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.vision-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,0.93), rgba(8,16,28,0.82));
}
.vision-content { position: relative; }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.vision-item {
  text-align: center;
  padding: 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}
.vision-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 14px; }
.vision-item p {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.35;
}

/* ===================================================================
   Join the Journey
   =================================================================== */
.join {
  background:
    radial-gradient(700px 300px at 12% 20%, rgba(214, 164, 76, 0.14), transparent 60%),
    var(--navy-2);
  color: var(--white);
}
.join-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.join-head { display: flex; align-items: center; gap: 18px; }
.join-icon { width: 44px; height: 44px; color: var(--gold); flex: none; }
.join-head h2 { font-family: var(--serif); font-size: 1.9rem; margin: 0; }
.join-head p { margin: 4px 0 0; color: var(--muted-2); font-size: 0.95rem; }
.join-form { display: flex; gap: 10px; }
.join-form input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  min-width: 240px;
}
.join-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.join-form input:focus { outline: 2px solid var(--gold); }
.join-social { display: flex; flex-direction: column; gap: 10px; }
.join-social > span { font-size: 0.82rem; color: var(--muted-2); letter-spacing: 0.4px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all 0.2s ease;
}
.social-row a svg { width: 20px; height: 20px; }
.social-row a:hover { background: var(--gold); color: #2a1c06; transform: translateY(-3px); }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1.4fr;
  gap: 40px;
  padding: 60px 28px 40px;
}
.footer-logo .brand-name { font-size: 1.3rem; }
.footer-blurb { margin: 16px 0 0; font-size: 0.92rem; color: var(--muted-2); max-width: 260px; }
.footer-cols { display: flex; gap: 40px; }
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-soft);
  margin: 0 0 14px;
}
.footer-col a { display: block; margin-bottom: 10px; font-size: 0.92rem; color: rgba(255,255,255,0.72); transition: color 0.16s ease; }
.footer-col a:hover { color: var(--white); }
.footer-funding p { font-size: 0.9rem; margin: 0 0 18px; color: var(--muted-2); }
.footer-funding strong { color: rgba(255, 255, 255, 0.9); }
.funding-logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.mecano { display: flex; align-items: center; gap: 10px; color: var(--gold-soft); }
.mecano svg { width: 38px; height: 38px; }
.mecano span { display: flex; flex-direction: column; line-height: 1.1; color: rgba(255,255,255,0.9); }
.mecano span strong { font-size: 1rem; letter-spacing: 1px; }
.mecano span small { font-size: 0.6rem; letter-spacing: 1px; color: var(--muted-2); }
.eu { display: flex; align-items: center; gap: 10px; }
.eu-flag { width: 52px; height: 35px; border-radius: 3px; flex: none; }
.eu span { font-size: 0.78rem; line-height: 1.25; color: rgba(255,255,255,0.82); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.82rem;
  color: var(--muted-2);
  text-align: center;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-media-frame { inset: 12px -12px -12px 12px; }
  .ask-panel { grid-template-columns: 1fr; gap: 24px; }
  .journey-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .build-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Collapse the nav to a hamburger early — the 7 links + CTA + language
   selector need ~1180px to sit comfortably on one row. */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(330px, 86vw);
    background: rgba(10, 22, 38, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 96px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav > a { font-size: 1.1rem; padding: 10px 0; width: 100%; }
  .site-nav > a::after { display: none; }
  .site-nav a.nav-cta { align-self: flex-start; margin-top: 8px; font-size: 1rem; padding: 11px 20px; }
  .lang-select { margin-top: 14px; }
  .header-inner { position: relative; z-index: 101; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }

  .join-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .join-head { flex-direction: column; text-align: center; }
  .join-form { justify-content: center; flex-wrap: wrap; }
  .join-social { align-items: center; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .caption { bottom: 50px; font-size: 1rem; padding: 9px 16px; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .build-grid, .vision-grid, .topic-grid { grid-template-columns: 1fr; }
  .ask-panel { padding: 28px 22px; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .hero-subtitle { padding: 0 40px; }
  .hero-subtitle::before, .hero-subtitle::after { width: 28px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   INNER PAGES
   =================================================================== */
.section-cream { background: var(--cream); }
.section-cream-2 { background: var(--cream-2); }

/* ---- Page banner ---- */
.page-hero {
  position: relative;
  color: var(--white);
  padding: 150px 0 70px;
  overflow: hidden;
  background: var(--navy);
}
.page-hero .page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.page-hero .page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,0.86), rgba(8,16,28,0.78));
}
.page-hero .container { position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.5px;
}
.page-hero .lead {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.84);
  font-weight: 300;
}
.breadcrumb { margin-top: 22px; font-size: 0.85rem; color: var(--muted-2); }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---- Generic split (text + media) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-text p { color: #44505d; font-size: 1.05rem; margin: 0 0 16px; }
.split-text .why-highlight { color: var(--gold-deep); font-weight: 500; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead-dark { font-size: 1.18rem; color: var(--ink); max-width: 760px; }

/* ---- Story beats as vertical timeline ---- */
.beat-list { list-style: none; margin: 30px 0 0; padding: 0; }
.beat-list li {
  position: relative;
  padding: 0 0 26px 42px;
  border-left: 2px solid rgba(214,164,76,0.4);
  margin-left: 12px;
}
.beat-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.beat-list li::before {
  content: counter(b);
  counter-increment: b;
  position: absolute; left: -16px; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold); color: #2a1c06;
  font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.beat-list { counter-reset: b; }
.beat-list h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.beat-list p { margin: 0; color: var(--muted); }

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(20,34,52,0.06);
}
.avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600;
  color: #2a1c06;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}
.team-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: 0 0 2px; color: var(--ink); }
.team-card .role { color: var(--gold-deep); font-size: 0.85rem; font-weight: 600; margin: 0 0 8px; }
.team-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ---- Funding band ---- */
.funding-band {
  background: var(--navy-2);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: center;
}
.funding-band h3 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 10px; }
.funding-band p { color: var(--muted-2); margin: 0; }
.funding-band .funding-logos { justify-content: flex-end; }
@media (max-width: 760px) { .funding-band { grid-template-columns: 1fr; } .funding-band .funding-logos { justify-content: flex-start; } }

/* ---- Video feature + grid ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 14px;
}
.video-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20,34,52,0.07);
  display: flex; flex-direction: column;
}
.video-card video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; object-fit: cover; }
.video-card .vc-body { padding: 18px 20px 22px; }
.video-card .vc-tag { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.video-card h3 { font-family: var(--serif); font-size: 1.3rem; margin: 6px 0 6px; color: var(--ink); }
.video-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Podcast episodes ---- */
.episode-list { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.episode {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(20,34,52,0.06);
}
.episode-art { width: 110px; height: 110px; border-radius: 10px; object-fit: cover; }
.episode .ep-meta { font-size: 0.76rem; letter-spacing: 0.6px; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.episode h3 { font-family: var(--serif); font-size: 1.4rem; margin: 4px 0 6px; color: var(--ink); }
.episode h3 a { color: inherit; transition: color 0.18s ease; }
.episode h3 a:hover { color: var(--gold-deep); }
.episode p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer; flex: none;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #2a1c06;
  display: flex; align-items: center; justify-content: center;
}
.play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.subscribe-apps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.subscribe-apps a {
  border: 1px solid rgba(20,34,52,0.16);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--ink);
  background: var(--white);
  transition: all 0.18s ease;
}
.subscribe-apps a:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---- Stories / blog ---- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 14px;
}
.post-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20,34,52,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(20,34,52,0.13); }
.post-card .post-img { height: 180px; overflow: hidden; }
.post-card .post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-img img { transform: scale(1.06); }
.post-card .post-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tag {
  align-self: flex-start;
  font-size: 0.7rem; letter-spacing: 0.8px; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep);
  background: #f7eed7; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px;
}
.post-card h3 { font-family: var(--serif); font-size: 1.42rem; margin: 0 0 8px; color: var(--ink); line-height: 1.2; }
.post-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.post-meta { margin-top: auto; font-size: 0.82rem; color: var(--muted-2); }
.post-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 40px;
}
.post-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.post-feature .pf-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.post-feature h2 { font-family: var(--serif); font-size: 2rem; margin: 10px 0 12px; color: var(--ink); }
@media (max-width: 760px) { .post-feature { grid-template-columns: 1fr; } .post-feature img { min-height: 220px; } }

/* ---- Filter pills (light bg) ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  border: 1px solid rgba(20,34,52,0.16);
  background: var(--white);
  border-radius: 999px; padding: 9px 18px;
  font-family: var(--sans); font-size: 0.86rem; color: var(--ink);
  cursor: pointer; transition: all 0.18s ease;
}
.pill:hover, .pill.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  border: 1px solid rgba(20,34,52,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 0.95rem;
  background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--navy-2); color: var(--white);
  border-radius: var(--radius); padding: 30px 32px;
}
.info-card h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 18px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.info-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.info-list a { color: var(--white); }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---- FAQ ---- */
.faq { max-width: 820px; margin: 14px auto 0; }
.faq details {
  background: var(--white);
  border: 1px solid rgba(20,34,52,0.08);
  border-radius: 12px;
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
  background: radial-gradient(700px 300px at 80% 20%, rgba(214,164,76,0.16), transparent 60%), var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.cta-band p { color: var(--muted-2); margin: 0 0 26px; }

/* ---- Inner page responsive ---- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .team-grid, .video-grid, .post-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .episode { grid-template-columns: 76px 1fr; }
  .episode .play-btn { grid-column: 2; justify-self: start; }
  .episode-art { width: 76px; height: 76px; }
  .page-hero { padding-top: 120px; }
}

/* ===================================================================
   RIGHT-TO-LEFT (Arabic)
   =================================================================== */
[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] .section-title,
[dir="rtl"] .hero-subtitle,
[dir="rtl"] .ask-title,
[dir="rtl"] .page-hero h1,
[dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .cta-band h2,
[dir="rtl"] .join-head h2,
[dir="rtl"] .vision-item p,
[dir="rtl"] .beat-list h4 {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
}
/* keep the Latin wordmark in its display serif */
[dir="rtl"] .hero-title,
[dir="rtl"] .brand-name { font-family: var(--serif); }

/* ===================================================================
   ARTICLE / EPISODE DETAIL
   =================================================================== */
.article-hero {
  position: relative; color: var(--white);
  padding: 150px 0 60px; overflow: hidden; background: var(--navy);
}
.article-hero .page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.42; }
.article-hero .page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,28,0.7), rgba(8,16,28,0.88)); }
.article-hero .container { position: relative; max-width: 820px; }
.article-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 14px 0 18px;
}
.article-byline { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.article-byline .avatar { width: 42px; height: 42px; font-size: 0.95rem; margin: 0; }
.article-byline .dot { opacity: 0.5; }

.article-wrap { max-width: 720px; margin: 0 auto; }
.article-body { font-size: 1.12rem; line-height: 1.85; color: #33404e; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); margin: 40px 0 14px; }
.article-body a { color: var(--gold-deep); text-decoration: underline; }
.article-body .lead-para { font-size: 1.28rem; color: var(--ink); line-height: 1.7; }
.pullquote {
  margin: 34px 0; padding: 8px 0 8px 28px;
  border-left: 4px solid var(--gold);
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; line-height: 1.4; color: var(--ink);
}
[dir="rtl"] .pullquote { border-left: none; border-right: 4px solid var(--gold); padding: 8px 28px 8px 0; }
.article-figure { margin: 30px 0; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; text-align: center; }
.share-row { display: flex; align-items: center; gap: 12px; margin: 38px 0 0; padding-top: 26px; border-top: 1px solid rgba(20,34,52,0.1); }
.share-row span { font-size: 0.85rem; color: var(--muted); }
.share-row a { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.share-row a:hover { background: var(--gold); color: #2a1c06; }
.share-row a svg { width: 18px; height: 18px; }

/* Episode player (visual prototype) */
.ep-player {
  display: flex; align-items: center; gap: 22px;
  background: var(--white); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); margin: -56px auto 0;
  max-width: 820px; position: relative; z-index: 5;
}
.ep-player .play-btn { width: 64px; height: 64px; }
.ep-player .ep-progress { flex: 1; }
.ep-bar { height: 6px; border-radius: 6px; background: var(--cream-2); position: relative; overflow: hidden; }
.ep-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 32%; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); }
.ep-times { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.show-notes ul { padding-left: 20px; color: #33404e; line-height: 1.8; }
[dir="rtl"] .show-notes ul { padding-left: 0; padding-right: 20px; }

/* Arabic reads better without Latin-style letter-spacing */
[dir="rtl"] .eyebrow,
[dir="rtl"] .brand-tag,
[dir="rtl"] .vc-tag,
[dir="rtl"] .tag,
[dir="rtl"] .ep-meta,
[dir="rtl"] .footer-col h4 { letter-spacing: normal; }

/* push the little underline rule to the right side */
[dir="rtl"] .title-rule:not(.center) { margin-left: auto; margin-right: 0; }

/* flip the "forward" arrows */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* the brand mark stays on the start (right) side, text to its right */
[dir="rtl"] .info-list li,
[dir="rtl"] .join-head { text-align: right; }
