/* Dr. Bencheqroun - brand continuation of aireadydoctor.vercel.app
   White backgrounds, bold humanist sans headlines, orange + teal accents.
*/

/* Design Tokens
--------------------------------------------------------------- */
:root {
  /* Neutrals */
  --white:       #FFFFFF;
  --wash:        #F9F7F5;   /* warm section wash */
  --wash-2:      #F5F2EE;
  --border:      #E5E0DB;
  --border-2:    #D8D2CB;
  --text:        #1C1917;   /* stone-900 */
  --text-2:      #44403C;   /* stone-700 */
  --muted:       #78716C;   /* stone-500 */

  /* Brand orange */
  --orange:      #F97316;
  --orange-2:    #FB923C;
  --orange-pale: #FFF7F0;
  --orange-tint: #FCD9BC;
  --orange-deep: #C2410C;   /* AA text on wash */

  /* Brand teal (Digital Twin, AI) */
  --teal:        #0D9488;
  --teal-2:      #2DD4BF;
  --teal-pale:   #F0FDFB;
  --teal-tint:   #99F0E8;
  --teal-deep:   #0B6E64;   /* AA text on wash */

  /* Type */
  --font-sans:  "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero:  clamp(2.6rem, 5vw + 0.6rem, 5rem);
  --fs-h1:    clamp(2.1rem, 3vw + 0.6rem, 3.25rem);
  --fs-h2:    clamp(1.6rem, 1.7vw + 0.7rem, 2.25rem);
  --fs-h3:    clamp(1.2rem, 0.5vw + 1rem, 1.4rem);
  --fs-body:  1.0625rem;
  --fs-lg:    1.1875rem;
  --fs-sm:    0.9375rem;
  --fs-xs:    0.8125rem;

  --lh-tight: 1.08;
  --lh-body:  1.65;

  /* Layout */
  --max: 1200px;
  --max-narrow: 780px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --radius-card: 14px;
  --radius-pill: 100px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(28,25,23,0.04), 0 6px 16px -8px rgba(28,25,23,0.08);
  --shadow-orange: 0 4px 20px rgba(249,115,22,0.35);
  --shadow-teal: 0 4px 20px rgba(13,148,136,0.35);
}

/* Reset
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--teal-deep); text-decoration-color: var(--teal-tint); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--orange-deep); text-decoration-color: var(--orange-2); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* Typography
--------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
p, li { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-2); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin: 0 0 1rem;
  display: inline-block;
}
.eyebrow-teal { color: var(--teal-deep); }

/* Gradient headline (hero) */
.h1-gradient {
  background: linear-gradient(120deg, #1C1917 10%, #F97316 55%, #0D9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Layout
--------------------------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-wash { background: var(--wash); }
.rule { border: 0; height: 1px; background: var(--border); margin: 0; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Header
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--orange); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.35rem; align-items: center; }
.primary-nav a {
  text-decoration: none; color: var(--text-2);
  font-size: 0.9rem; font-weight: 500;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }
.primary-nav a:hover { color: var(--orange); }
@media (min-width: 1000px) { .primary-nav { display: block; } }

.nav-toggle {
  background: none; border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem; font-size: 0.85rem; color: var(--text); font-weight: 500;
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--white); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0.5rem var(--pad-x) 1rem; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 0.9rem 0; text-decoration: none; color: var(--text); font-weight: 500; }

/* Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius-pill);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); color: #FFFFFF; box-shadow: 0 8px 26px rgba(249,115,22,0.45); }
.btn-teal {
  background: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover { transform: translateY(-2px); color: #FFFFFF; box-shadow: 0 8px 26px rgba(13,148,136,0.45); }
.btn-ghost {
  background: transparent; color: var(--teal-deep); border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: #FFFFFF; }
.btn-ghost-dark {
  background: transparent; color: var(--text); border-color: var(--border-2);
}
.btn-ghost-dark:hover { background: var(--text); color: var(--white); border-color: var(--text); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* Hero
--------------------------------------------------------------- */
.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 4.5vw, 4rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1.1rem; }
.hero .lede { max-width: 44ch; color: var(--muted); }
.hero-cta { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--wash);
}
@media (min-width: 900px) {
  .hero-media img { aspect-ratio: auto; max-height: 620px; width: 100%; }
}

/* Cards
--------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
  color: var(--text);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-card); color: var(--text); }
.section-wash .card { background: var(--white); }
.card h3 { margin: 0.25rem 0; }
.card p { color: var(--muted); margin: 0; }
.card .card-eyebrow { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); font-weight: 700; }
.card .card-eyebrow-teal { color: var(--teal-deep); }
.card .card-link { margin-top: auto; padding-top: 0.5rem; font-weight: 600; text-decoration: none; color: var(--teal-deep); font-size: 0.95rem; }
.card .card-link::after { content: " \2192"; transition: transform 160ms var(--ease); display: inline-block; }
.card:hover .card-link { color: var(--orange-deep); }
.card:hover .card-link::after { transform: translateX(3px); }

/* Digital Twin Feature
--------------------------------------------------------------- */
.twin-feature {
  position: relative;
  display: block;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(45,212,191,0.30) 0%, rgba(45,212,191,0) 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(249,115,22,0.18) 0%, rgba(249,115,22,0) 55%),
    linear-gradient(135deg, #0D9488 0%, #0B6E64 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  box-shadow: 0 10px 40px -12px rgba(13,148,136,0.55);
}
.twin-feature::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.twin-feature:hover, .twin-feature:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px -18px rgba(13,148,136,0.7);
  color: #FFFFFF;
  outline: none;
}
.twin-feature:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 18px 60px -18px rgba(13,148,136,0.7); }
.twin-grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 900px) { .twin-grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; } }
.twin-copy .eyebrow { color: rgba(255,255,255,0.9); }
.twin-copy h2 { color: #FFFFFF; font-size: clamp(1.9rem, 2.4vw + 0.8rem, 2.75rem); margin-bottom: 0.7rem; letter-spacing: -0.035em; }
.twin-copy p { color: rgba(255,255,255,0.9); margin: 0 0 1.5rem; font-size: var(--fs-lg); max-width: 44ch; }
.twin-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.25rem 0 1.75rem; }
.twin-chips li {
  padding: 0.55rem 0.95rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.twin-chips { list-style: none; padding: 0; margin: 0.25rem 0 1.75rem; }
.twin-cta {
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: #FFFFFF; color: var(--teal-deep);
  padding: 1rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.twin-feature:hover .twin-cta { transform: translateY(-1px); }
.twin-cta::after { content: " \2192"; }
.twin-powered { display: block; margin-top: 0.85rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-weight: 600; }

/* AI orbit mark shown on right side of twin feature */
.twin-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.twin-visual svg { width: min(280px, 80%); height: auto; }

/* Answer blocks (AEO)
--------------------------------------------------------------- */
.qa {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}
.qa h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

/* FAQ */
.faq details {
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-sans); font-size: 1.4rem; color: var(--orange); line-height: 1; font-weight: 400;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.9rem 0 0; color: var(--muted); }

/* Prose */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; color: var(--text-2); }
.prose strong { color: var(--text); }

/* Timeline (About) */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; border-left: 2px solid var(--border-2); }
.timeline li { padding: 0 0 1.5rem 1.5rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 0.55rem;
  width: 10px; height: 10px; background: var(--orange); border-radius: 999px;
}
.timeline .year { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.timeline h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0.15rem 0 0.25rem; color: var(--text); letter-spacing: -0.01em; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Publications list */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li {
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  display: grid; gap: 0.35rem;
}
.pub-list li:last-child { border-bottom: 1px solid var(--border); }
.pub-list .pub-year { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-deep); font-weight: 700; }
.pub-list .pub-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); margin: 0; line-height: 1.3; letter-spacing: -0.015em; }
.pub-list .pub-meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.pub-tag { display: inline-block; margin-inline-end: 0.35rem; margin-bottom: 0.3rem; padding: 0.15rem 0.6rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); background: var(--teal-pale); border: 1px solid var(--teal-tint); border-radius: var(--radius-pill); font-weight: 600; }

/* Form */
.form { display: grid; gap: 1.1rem; max-width: 620px; }
.form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form input, .form textarea, .form select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,0.18); }
.form textarea { min-height: 160px; resize: vertical; }
.form .form-actions { margin-top: 0.5rem; }
.form .form-note { font-size: 0.8rem; color: var(--muted); }

/* Chip list */
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-2);
  background: var(--white);
  font-weight: 500;
}
.section-wash .chip-list li { background: var(--white); }

/* Podcast episode grid */
.ep-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ep-grid { grid-template-columns: 1fr 1fr; } }
.episode {
  padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white);
}
.episode .ep-number { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); font-weight: 700; }
.episode h3 { margin: 0.35rem 0 0.5rem; font-size: 1.1rem; font-weight: 600; }
.episode p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Footer
--------------------------------------------------------------- */
.site-footer { background: var(--wash); color: var(--text); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; margin-top: 4rem; border-top: 1px solid var(--border); }
.site-footer .footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin: 0 0 1rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--orange-deep); }
.site-footer .footer-brand-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--text); line-height: 1.3; max-width: 32ch; letter-spacing: -0.015em; }
.site-footer .footer-brand small { color: var(--muted); font-size: 0.85rem; display: block; }
.footer-twin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  color: #FFFFFF !important;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-teal);
}
.footer-twin:hover { color: #FFFFFF !important; transform: translateY(-1px); }
.site-footer .footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: 0.8rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-lg { margin-top: 2rem; }
.text-center { text-align: center; }
.max-narrow { max-width: 42rem; margin-left: auto; margin-right: auto; }

/* Pullquote */
.pullquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw + 0.75rem, 2rem);
  line-height: 1.25;
  color: var(--text);
  border-left: 3px solid var(--orange);
  padding: 0.35rem 0 0.35rem 1.5rem;
  margin: 2rem 0;
  max-width: 34ch;
  letter-spacing: -0.02em;
}
.pullquote-attr { font-family: var(--font-sans); font-weight: 500; font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; letter-spacing: normal; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 2px solid var(--border-2); padding-top: 0.85rem; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.4vw + 1rem, 2.1rem); line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.stat .label { font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; font-weight: 600; }

/* Section headers */
.section-head { margin-bottom: 2.5rem; max-width: 640px; }
.section-head h2 { margin: 0 0 0.6rem; }
.section-head p { color: var(--muted); margin: 0; }

/* CTA band (was section-dark) - now light with orange gradient accent */
.cta-band {
  background: linear-gradient(180deg, var(--wash) 0%, var(--white) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band .container { text-align: center; }
.cta-band .cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

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

/* Language Switcher
--------------------------------------------------------------- */
.lang-switcher {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-inline-start: 12px;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-2);
  background: var(--white);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.lang-switcher a:hover {
  border-color: var(--orange-2);
  color: var(--orange-deep);
}
.lang-switcher a[aria-current="page"] {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.lang-switcher a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.lang-switcher a[lang="ar"] { font-family: "Noto Naskh Arabic", var(--font-sans); font-size: 13px; }

@media (max-width: 720px) {
  .lang-switcher { order: 2; margin-inline-start: auto; margin-inline-end: 6px; gap: 2px; }
  .lang-switcher a { min-width: 24px; padding: 4px 5px; font-size: 10.5px; }
  .lang-switcher a[lang="ar"] { font-size: 12px; padding: 4px 5px; min-width: 22px; }
  /* On narrow phones, shrink the Arabic pill to a single glyph so the switcher fits */
  .lang-switcher a[lang="ar"] .full { display: none; }
  .lang-switcher a[lang="ar"] .short { display: inline; }
  .brand-name { font-size: 0.92rem; }
  .brand-name small { font-size: 0.6rem; letter-spacing: 0.1em; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header .container { gap: 6px; padding-top: 0.7rem; padding-bottom: 0.7rem; }
  .nav-toggle { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
}
.lang-switcher a[lang="ar"] .short { display: none; }
.lang-switcher a[lang="ar"] .full { display: inline; }

/* Arabic body typography (uses Noto Naskh Arabic + Inter as fallback for Latin) */
body.lang-ar,
body.lang-ar .prose,
body.lang-ar .lede,
body.lang-ar p,
body.lang-ar li,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
  font-family: "Noto Naskh Arabic", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
body.lang-ar { line-height: 1.75; }

/* RTL logical adjustments
--------------------------------------------------------------- */
[dir="rtl"] .hero-cta { justify-content: flex-start; }
[dir="rtl"] .footer-grid { text-align: start; }
[dir="rtl"] .footer-bottom { text-align: start; }
[dir="rtl"] .stats { text-align: start; }
[dir="rtl"] .twin-chips li { text-align: start; }

/* twin-cta arrow: LTR uses right arrow (already in the copy), RTL should mirror. Since our copy uses no arrow character (the CTA text is the twin_cta string), we do not need to add one here. */

/* Timeline: keep bullets consistent regardless of direction */
[dir="rtl"] .timeline { padding-inline-start: 1.2em; padding-inline-end: 0; }

/* Keep the DrB orbit logo mark visually identical in RTL (do NOT mirror) */
[dir="rtl"] .brand-mark,
[dir="rtl"] .twin-visual svg { transform: none; }

/* v0.3.1 removes body { overflow-x: hidden } — real overflow sources fixed below */

/* Ensure buttons keep icons/arrows correctly oriented when we do embed them */
[dir="rtl"] .btn { direction: rtl; }

/* v0.3.1 — proper overflow fixes (do not rely on overflow-x:hidden alone)
--------------------------------------------------------------- */

/* Ensure form controls include padding in their width to avoid horizontal blow-out (esp. RTL). */
.form input,
.form textarea,
.form select,
.contact-form input,
.contact-form textarea,
.contact-form select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

/* Contact form base layout (previously unstyled, causing default input width to overflow RTL) */
.contact-form { display: grid; gap: 1.1rem; max-width: 620px; }
.contact-form .form-row { display: block; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--white);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  color: var(--text);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(13,148,136,0.18); }

/* Prevent long single words in headings and lede copy from forcing wider layout
   (French compound words and Arabic diacritical strings) */
h1, h2, h3, .lede, .prose p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
/* Owner request 2026-09-12: no automatic hyphenation anywhere in visible copy */
body, body * { -webkit-hyphens: manual; hyphens: manual; }
/* Keep the brand name on one line where the desktop nav is shown */
@media (min-width: 1000px) { .brand-name { white-space: nowrap; } }

/* Buttons: prevent long button labels from pushing the parent flex row wider than the viewport */
.btn {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-cta { flex-wrap: wrap; }
.hero-cta .btn { flex: 0 1 auto; }

/* Hero media images should never exceed their column */
.hero-media img { max-width: 100%; height: auto; }

/* Grids should allow their children to shrink below their intrinsic content width
   (fixes long-word overflow inside grid/flex tracks) */
.hero-grid > *,
.grid > * {
  min-width: 0;
}

/* WordPress integration
--------------------------------------------------------------- */
/* Sticky header must clear the admin bar when logged in */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
/* Skip link: visible on focus */
.sr-only:focus, .skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: 0.6rem 1rem; margin: 0; clip: auto; white-space: normal; background: var(--white); color: var(--text); border: 2px solid var(--teal); border-radius: 8px; z-index: 100; }
/* Form feedback states (contact form) */
.form-status { padding: 1rem 1.1rem; border-radius: 10px; margin: 0 0 1.25rem; font-weight: 500; }
.form-status-ok { background: var(--teal-pale); border: 1px solid var(--teal-tint); color: var(--teal-deep); }
.form-status-error { background: var(--orange-pale); border: 1px solid var(--orange-tint); color: var(--orange-deep); }
.form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .field-error { color: var(--orange-deep); font-size: 0.85rem; margin-top: 0.3rem; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: var(--orange-deep); }
/* Blog posts and 404 */
.page-header { padding-top: clamp(2rem, 5vw, 4rem); }
.entry-meta { color: var(--muted); font-size: var(--fs-sm); }
.post-list article { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.post-list article:last-child { border-bottom: 1px solid var(--border); }
.post-list h2 { font-size: 1.35rem; margin: 0 0 0.35rem; }
.post-list h2 a { text-decoration: none; color: var(--text); }
.post-list h2 a:hover { color: var(--orange-deep); }

/* Phase 2: podcast, research library, homepage v2
--------------------------------------------------------------- */
.hero-cta .btn svg { flex: none; }
.btn-listen { display: none; }
@media (min-width: 720px) { .btn-listen { display: inline-flex; margin-inline-start: 10px; padding: 0.5rem 0.95rem; font-size: 0.85rem; gap: 0.4rem; } }
.site-header .btn-listen svg { width: 16px; height: 16px; }

/* Podcast feature (home) */
.pod-feature { border: 1px solid var(--border); border-radius: 20px; background: var(--white); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-card); }
.pod-feature-top { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 800px) { .pod-feature-top { grid-template-columns: 260px 1fr; gap: 2.5rem; } }
.pod-cover img { border-radius: 16px; box-shadow: var(--shadow-card); width: 100%; max-width: 320px; }
.pod-copy h2 { margin-bottom: 0.5rem; }
.pod-copy .lede { margin: 0 0 1.25rem; max-width: 52ch; }
.pod-latest { display: grid; gap: 0.6rem; margin-bottom: 1.25rem; }
.pod-latest-title { color: var(--muted); font-size: var(--fs-sm); }
.pod-play { justify-self: start; }
.ep-audio { width: 100%; max-width: 560px; height: 40px; }
.pod-platforms { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pod-platforms .btn { padding: 0.6rem 1rem; font-size: 0.9rem; gap: 0.45rem; }
.pod-feature .ep-grid { margin-top: 2rem; }
.ep-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .ep-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pod-more { margin: 1.75rem 0 0; text-align: center; }
.episode h3 a { color: var(--text); text-decoration: none; }
.episode h3 a:hover { color: var(--orange-deep); }
.episode .ep-dur { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; margin-inline-start: 0.5rem; }
.episode .ep-date { color: var(--muted); font-size: var(--fs-xs); margin: 0 0 0.5rem; }
.episode .ep-audio { margin-top: 0.75rem; }
.episode .ep-links { margin-top: 0.75rem; font-size: var(--fs-sm); display: flex; gap: 1rem; }
.pod-callout { border-top: 1px solid var(--border); }

/* Credibility strip */
.cred-strip { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .cred-strip { grid-template-columns: repeat(4, 1fr); } }
.cred-strip li { border-top: 2px solid var(--orange); padding-top: 0.85rem; font-weight: 600; color: var(--text); font-size: 0.95rem; line-height: 1.35; }

/* Research cards */
.pub-cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pub-cards { grid-template-columns: 1fr 1fr; } }
.pub-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pub-card .pub-year { margin: 0; }
.pub-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.pub-card .pub-meta { margin: 0; }
.pub-card .pub-sig { margin: 0; color: var(--text-2); }
.pub-card .pub-tags { margin: 0; }
.pub-card .pub-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.5rem; }
.pub-card .pub-actions .btn { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
.pub-card .pub-thumb img { border-radius: 10px; border: 1px solid var(--border); }
.pub-card.pub-award { border-color: var(--orange-tint); background: var(--orange-pale); }
.pub-related { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* Poster gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.filter-bar button { border: 1px solid var(--border-2); background: var(--white); color: var(--text-2); border-radius: var(--radius-pill); padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 600; }
.filter-bar button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.poster-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .poster-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .poster-grid { grid-template-columns: repeat(3, 1fr); } }
.poster-card { display: flex; flex-direction: column; gap: 0.6rem; }
.poster-card .poster-thumb { aspect-ratio: 4 / 3; background: var(--wash); border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.poster-card .poster-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster-card .poster-thumb span { color: var(--muted); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.poster-card[hidden] { display: none; }
.poster-detail { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .poster-detail { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.poster-detail img { border-radius: var(--radius-card); border: 1px solid var(--border); }
.poster-facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 1.1rem; }
.poster-facts dd { margin: 0.3rem 0 0; color: var(--text-2); }

/* Videos */
.video-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { display: flex; flex-direction: column; gap: 0.5rem; }
.video-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 9; background: var(--wash); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video-thumb .play-badge span { width: 56px; height: 56px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--orange-deep); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-orange); }
.video-card .video-meta { color: var(--muted); font-size: var(--fs-xs); margin: 0; }
.video-card h3 { margin: 0; font-size: 1.05rem; }
.video-card p { margin: 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-wrap { max-width: 960px; margin: 0 auto; }

/* Footer podcast icons */
.footer-podcast { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-podcast a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--white); color: var(--text); }
.footer-podcast a:hover { color: var(--orange-deep); border-color: var(--orange-2); }
