/* =========================================================
   LUNA — BMHM Scientific Magazine
   Design System
   Amazigh × Bauhaus
   ========================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Klarheit Plakat";
  src: url("../fonts/ESKlarheitPlakat-Poster.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: block;
}

/* ---------- TOKENS ---------- */
:root {
  /* color */
  --ink:        #0E0E0C;
  --ink-soft:   #1A1815;
  --paper:      #F2ECDE;
  --paper-warm: #EDE3CC;
  --white:      #FAF6EE;
  --orange:     #E8451E;
  --yellow:     #F4C430;
  --indigo:     #1F3A6B;
  --rust:       #8B2E1A;
  --olive:      #5A6438;
  --line:       rgba(242,236,222,0.14);
  --line-strong:rgba(242,236,222,0.32);

  /* type */
  --f-display:  "Klarheit Plakat", "Inter Tight", system-ui, sans-serif;
  --f-serif:    "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sans:     "Inter Tight", system-ui, -apple-system, sans-serif;
  --f-mono:     "JetBrains Mono", ui-monospace, monospace;
  --f-tif:      "Noto Sans Tifinagh", sans-serif;
  --f-ar-serif: "Amiri", "Noto Naskh Arabic", serif;
  --f-ar-disp:  "Reem Kufi", "Klarheit Plakat", sans-serif;

  /* scale (fluid) */
  --t-eyebrow:  clamp(10px, 0.72vw, 12px);
  --t-mono:     clamp(11px, 0.78vw, 13px);
  --t-body:     clamp(15px, 1.05vw, 18px);
  --t-lead:     clamp(18px, 1.3vw, 22px);
  --t-h6:       clamp(16px, 1.15vw, 19px);
  --t-h5:       clamp(20px, 1.5vw, 26px);
  --t-h4:       clamp(28px, 2.4vw, 40px);
  --t-h3:       clamp(38px, 3.6vw, 60px);
  --t-h2:       clamp(56px, 5.5vw, 96px);
  --t-h1:       clamp(80px, 10vw, 200px);
  --t-mega:     clamp(120px, 18vw, 360px);

  /* layout */
  --gutter:     clamp(20px, 2.4vw, 40px);
  --edge:       clamp(20px, 3vw, 56px);
  --col-gap:    clamp(16px, 1.6vw, 28px);
  --row-gap:    clamp(40px, 6vw, 96px);
  --rule:       1px;
}

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

html { background: var(--ink); color: var(--paper); }
body {
  margin: 0;
  font-family: var(--f-serif);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[dir="rtl"] body { font-family: var(--f-ar-serif); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

::selection { background: var(--orange); color: var(--ink); }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.78;
}
.mono { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: 0.04em; }
.display { font-family: var(--f-display); font-weight: 400; line-height: 0.86; letter-spacing: -0.01em; text-transform: uppercase; }
.serif   { font-family: var(--f-serif); }
.sans    { font-family: var(--f-sans); }
.tif     { font-family: var(--f-tif); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
.h1 { font: 400 var(--t-h1)/0.84 var(--f-display); text-transform: uppercase; letter-spacing: -0.015em; }
.h2 { font: 400 var(--t-h2)/0.88 var(--f-display); text-transform: uppercase; letter-spacing: -0.012em; }
.h3 { font: 400 var(--t-h3)/0.92 var(--f-display); text-transform: uppercase; letter-spacing: -0.008em; }
.h4 { font: 400 var(--t-h4)/1.0  var(--f-display); text-transform: uppercase; }
.h5 { font: 500 var(--t-h5)/1.15 var(--f-serif); }
.h6 { font: 500 var(--t-h6)/1.25 var(--f-serif); }
.mega { font: 400 var(--t-mega)/0.78 var(--f-display); text-transform: uppercase; letter-spacing: -0.02em; }

.lead { font: 400 var(--t-lead)/1.45 var(--f-serif); }
.lead em { font-style: italic; color: var(--yellow); }

[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .h4, [dir="rtl"] .mega { font-family: var(--f-ar-disp); }

/* drop cap in tifinagh */
.dropcap::first-letter {
  font-family: var(--f-display);
  font-size: 5.6em;
  line-height: 0.78;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--orange);
}
.dropcap-tif {
  position: relative;
  padding-inline-start: 4.2em;
  min-height: 4em;
}
.dropcap-tif::before {
  content: attr(data-tif);
  position: absolute;
  inset-inline-start: 0;
  top: -0.05em;
  font-family: var(--f-tif);
  font-size: 4.6em;
  line-height: 0.85;
  color: var(--orange);
}

/* ---------- COLOR UTILS ---------- */
.bg-ink   { background: var(--ink);    color: var(--paper); }
.bg-paper { background: var(--paper);  color: var(--ink); }
.bg-orange{ background: var(--orange); color: var(--ink); }
.bg-yellow{ background: var(--yellow); color: var(--ink); }
.bg-indigo{ background: var(--indigo); color: var(--paper); }
.bg-rust  { background: var(--rust);   color: var(--paper); }
.c-orange { color: var(--orange); }
.c-yellow { color: var(--yellow); }
.c-indigo { color: var(--indigo); }
.c-paper  { color: var(--paper); }
.c-ink    { color: var(--ink); }
.c-rust   { color: var(--rust); }

/* ---------- LAYOUT PRIMITIVES ---------- */
.shell {
  width: 100%;
  padding-inline: var(--edge);
  margin: 0 auto;
  max-width: 1760px;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}
.rule { height: var(--rule); background: var(--line-strong); border: 0; margin: 0; }
.rule-soft { height: var(--rule); background: var(--line); border: 0; margin: 0; }
.rule-vert { width: var(--rule); background: var(--line-strong); align-self: stretch; }

.section { padding-block: var(--row-gap); position: relative; }
.section-tight { padding-block: clamp(28px, 4vw, 64px); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 18px var(--edge);
}
.nav__logo { display: flex; align-items: center; gap: 14px; }
.nav__logo svg { height: 22px; width: auto; }
.nav__links {
  display: flex;
  gap: clamp(14px, 2.4vw, 36px);
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding: 6px 0; opacity: 0.78; transition: opacity .25s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange);
}
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.lang button {
  padding: 8px 10px;
  color: var(--paper);
  opacity: 0.6;
  border-inline-end: 1px solid var(--line-strong);
  transition: all .2s ease;
}
.lang button:last-child { border-inline-end: 0; }
.lang button.is-on { background: var(--paper); color: var(--ink); opacity: 1; }
.lang button:hover { opacity: 1; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--orange { background: var(--orange); border-color: var(--orange); }
.btn--yellow { background: var(--yellow); border-color: var(--yellow); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-strong);
  padding: 80px var(--edge) 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--col-gap);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242,236,222,0.55);
  text-transform: uppercase;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,236,222,0.55);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 4px 0; }
.footer ul a { color: var(--paper); opacity: 0.84; }
.footer ul a:hover { color: var(--orange); opacity: 1; }
.footer__moon {
  font-family: var(--f-display);
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.86;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.18em;
}
.footer__moon .mark {
  height: 0.78em;
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- WXEL SIGNATURE ---------- */
.wx {
  color: inherit;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.wx:hover { color: var(--orange); border-bottom-color: currentColor; }
.wx .wx-de {
  color: var(--orange);
  font-style: italic;
  font-family: var(--f-serif);
  font-weight: 500;
}
.wx .wx-dg {
  color: var(--orange);
  font-size: 0.6em;
  line-height: 0;
  vertical-align: super;
  margin-inline-start: 0.06em;
  font-weight: 600;
  font-family: var(--f-mono);
}

/* ---------- TIFINAGH ACCENT MARKS ---------- */
.tif-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-tif);
  color: var(--orange);
}
.tif-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--f-tif);
  font-size: clamp(28px, 3vw, 44px);
  color: var(--orange);
  letter-spacing: 0.6em;
}
.tif-divider::before, .tif-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line-strong);
}

/* ---------- AMAZIGH × BAUHAUS PATTERN BANDS ---------- */
.band-pattern {
  position: relative;
  overflow: hidden;
  height: clamp(96px, 14vw, 220px);
  background: var(--ink);
  border-block: 1px solid var(--line-strong);
}
.band-pattern--orange { background: var(--orange); color: var(--ink); }
.band-pattern--yellow { background: var(--yellow); color: var(--ink); }
.band-pattern--paper  { background: var(--paper);  color: var(--ink); }

/* ---------- CARDS ---------- */
.card {
  display: flex; flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}
.card__thumb {
  aspect-ratio: 4/3;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.card__num {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.8;
  color: var(--paper);
}
.card__title {
  font: 500 clamp(20px, 1.6vw, 28px)/1.15 var(--f-serif);
}
.card__meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ---------- TICKER ---------- */
.ticker {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line-strong);
  background: var(--ink);
}
.ticker__track {
  display: flex; gap: 48px;
  padding: 14px 0;
  animation: ticker 60s linear infinite;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticker__track span { display: inline-flex; align-items: center; gap: 18px; }
.ticker__track span::after {
  content: ""; width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
  display: inline-block; margin-inline-start: 18px;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- ENTRANCE MOTION ---------- */
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
[data-fade].is-in { opacity: 1; transform: none; }
[data-fade][data-delay="1"] { transition-delay: 0.08s; }
[data-fade][data-delay="2"] { transition-delay: 0.16s; }
[data-fade][data-delay="3"] { transition-delay: 0.24s; }
[data-fade][data-delay="4"] { transition-delay: 0.32s; }

/* ---------- RTL FIXES ---------- */
[dir="rtl"] .nav__links a[aria-current="page"]::after { left: 0; right: 0; }
[dir="rtl"] .ticker__track { animation-direction: reverse; }

/* ---------- UTILITY ---------- */
.flex { display: flex; }
.col  { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-s { gap: 12px; }
.gap-m { gap: 24px; }
.gap-l { gap: 48px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.text-r { text-align: right; }
.text-c { text-align: center; }
.hide-mob { display: initial; }
@media (max-width: 720px) {
  .hide-mob { display: none; }
}

/* ---------- LANG VISIBILITY ---------- */
[data-lang] { display: none; }
[lang="en"] [data-lang="en"],
[lang="fr"] [data-lang="fr"],
[lang="ar"] [data-lang="ar"] { display: initial; }

/* show-on-default fallback (only when html itself has no lang) */
html:where(:not([lang]), [lang=""]) [data-lang="en"] { display: initial; }

/* Font-loading guard: prevent FOUC without transition (transitions can stall in
   non-animated iframes; we want opacity to snap instantly when fonts arrive). */
html.fonts-loading { opacity: 0; }
html.fonts-ready { opacity: 1; }


/* =========================================================
   ARTICLE / DOSSIER PAGES
   ========================================================= */
.article-head {
  padding: clamp(40px, 5vw, 88px) var(--edge) clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--line-strong);
  background: var(--ink);
}
.article-head__top {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap);
  padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.article-head__top .crumbs { display: flex; gap: 18px; flex-wrap: wrap; opacity: 0.78; }
.article-head__top .crumbs a { display: inline-flex; align-items: center; gap: 18px; }
.article-head__top .crumbs a::after { content: "/"; opacity: 0.4; }
.article-head__top .crumbs a:last-child::after { display: none; }
.article-head__top .right { text-align: end; opacity: 0.7; }
.article-head__title {
  font: 400 clamp(56px, 7vw, 140px)/0.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.013em;
  max-width: 16ch;
}
.article-head__title .ampline { display: block; color: var(--orange); }
.article-head__dek {
  font: 400 clamp(18px, 1.4vw, 24px)/1.5 var(--f-serif);
  max-width: 56ch; margin-top: 28px; opacity: 0.9;
}
.article-head__byline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap);
  padding-top: 32px; margin-top: 40px; border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.article-head__byline > div { display: flex; flex-direction: column; gap: 6px; }
.article-head__byline span:first-child { color: var(--orange); opacity: 1; }
.article-head__byline span:last-child { opacity: 0.85; }
@media (max-width: 700px) {
  .article-head__byline { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
}

/* HERO IMAGE */
.article-hero-img {
  height: clamp(280px, 52vh, 580px);
  background: var(--yellow);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}
.article-hero-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-hero-img .caption {
  position: absolute; bottom: 18px; left: var(--edge);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: var(--paper); padding: 8px 14px;
  display: flex; gap: 16px; align-items: center;
}
.article-hero-img .caption b { color: var(--orange); }

/* BODY */
.article-body {
  padding: clamp(60px, 7vw, 120px) var(--edge);
  display: grid;
  grid-template-columns: 1fr minmax(0, 720px) 1fr;
  gap: var(--col-gap);
  background: var(--ink);
}
.article-body__main { grid-column: 2; }
.article-body__main p {
  font: 400 clamp(17px, 1.16vw, 19px)/1.7 var(--f-serif);
  margin: 0 0 1.2em;
  color: rgba(242,236,222,0.92);
}
.article-body__main p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 5.4em;
  line-height: 0.78;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--orange);
}
[dir="rtl"] .article-body__main p:first-of-type::first-letter { float: right; padding: 0.08em 0 0 0.14em; }

.article-body__main h2 {
  font: 400 clamp(28px, 2.6vw, 44px)/1 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.008em;
  margin: 2.4em 0 0.7em;
}
.article-body__main h2 .num {
  display: inline-block;
  color: var(--orange);
  margin-inline-end: 0.4em;
  font-size: 0.7em;
  vertical-align: 0.1em;
}
.article-body__main h3 {
  font: 500 clamp(20px, 1.4vw, 24px)/1.3 var(--f-serif);
  margin: 2em 0 0.6em;
  color: var(--yellow);
}
.article-body__main ul {
  margin: 0 0 1.5em;
  padding-inline-start: 0;
  list-style: none;
}
.article-body__main ul li {
  font: 400 clamp(16px, 1.1vw, 18px)/1.55 var(--f-serif);
  padding-inline-start: 28px;
  position: relative;
  margin-bottom: 0.7em;
}
.article-body__main ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.7em;
  width: 14px; height: 2px; background: var(--orange);
}

.pullquote {
  font: 400 clamp(28px, 3vw, 44px)/1.2 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -0.008em;
  color: var(--yellow);
  padding: 0.6em 0;
  margin: 2em 0;
  border-block: 2px solid var(--orange);
  max-width: 100%;
}
.pullquote .attr {
  display: block;
  font: 500 14px/1.5 var(--f-mono);
  letter-spacing: 0.14em;
  color: var(--paper);
  opacity: 0.7;
  margin-top: 18px;
  text-transform: uppercase;
}

.sidefigure {
  margin: 2.4em 0;
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.sidefigure .frame {
  aspect-ratio: 16/9; background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong);
}
.sidefigure .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sidefigure figcaption {
  font: 400 13px/1.4 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.7;
}
.sidefigure figcaption b { color: var(--orange); font-weight: 500; }

/* CHART */
.chart {
  margin: 3em 0;
  padding: 28px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
}
.chart h4 {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 24px;
}
.chart__bars { display: flex; gap: 14px; align-items: flex-end; height: 240px; padding-block: 8px; }
.chart__bars .bar {
  flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em;
}
.chart__bars .bar .b { background: var(--orange); width: 100%; transition: transform .4s ease; }
.chart__bars .bar:hover .b { background: var(--yellow); }
.chart__bars .bar .v { color: var(--paper); opacity: 0.85; }
.chart__bars .bar .y { color: var(--paper); opacity: 0.5; text-align: center; }

/* SIDEBAR */
.aside {
  grid-column: 3;
  padding-inline-start: clamp(20px, 2vw, 40px);
  padding-top: 0.5em;
  position: relative;
}
.aside__card {
  position: sticky; top: 100px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 24px;
}
.aside__card h5 {
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.aside__card .row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.aside__card .row:last-child { border-bottom: 0; }
.aside__card .row span:first-child { opacity: 0.55; }
.aside__card .row span:last-child { color: var(--paper); }
.aside__card .tif-row {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--f-tif); color: var(--orange); font-size: 22px; letter-spacing: 0.4em; text-align: center;
}

@media (max-width: 1100px) {
  .article-body { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
  .article-body__main { grid-column: 1; }
  .aside { grid-column: 1; padding-inline-start: 0; margin-top: 40px; }
  .aside__card { position: static; }
}

/* RELATED */
.related {
  padding: clamp(48px, 6vw, 96px) var(--edge);
  background: var(--paper); color: var(--ink);
  border-block: 1px solid var(--ink);
}
.related__head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 40px;
}
.related__head h2 {
  font: 400 clamp(36px, 4vw, 64px)/1 var(--f-display);
  text-transform: uppercase;
}
.related__head .eyebrow { color: var(--orange); opacity: 1; }
.related__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap);
}
.related__item {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 24px; border-top: 2px solid var(--ink);
}
.related__item .num {
  font: 400 clamp(38px, 4.5vw, 64px)/0.8 var(--f-display); color: var(--orange);
}
.related__item h3 {
  font: 500 clamp(20px, 1.5vw, 28px)/1.15 var(--f-serif);
}
.related__item .meta {
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7;
}
@media (max-width: 900px) { .related__grid { grid-template-columns: 1fr; } }

/* NEXT BIG */
.next-up {
  padding: clamp(60px, 7vw, 120px) var(--edge);
  background: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--col-gap);
}
.next-up .eyebrow { display: block; margin-bottom: 14px; }
.next-up h2 {
  font: 400 clamp(40px, 5vw, 96px)/0.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.008em;
  max-width: 16ch;
}
.next-up .num {
  font: 400 clamp(80px, 12vw, 240px)/0.78 var(--f-display);
  color: var(--orange);
}
@media (max-width: 800px) {
  .next-up { grid-template-columns: 1fr; }
  .next-up .num { font-size: 100px; }
}


/* =========================================================
   ARABIC / RTL TYPOGRAPHY OVERRIDES
   Designed specifically for Arabic — not just translated
   ========================================================= */

/* Body: use Amiri serif, larger line-height, no letter-spacing */
[dir="rtl"] body {
  font-family: var(--f-ar-serif);
  font-size: calc(var(--t-body) * 1.08); /* Arabic optical size compensation */
  line-height: 1.85;
  font-feature-settings: "kern", "calt";
}

[dir="rtl"] p, [dir="rtl"] li {
  line-height: 1.85;
}

/* Lead paragraphs in Arabic */
[dir="rtl"] .lead {
  font-family: var(--f-ar-serif);
  font-size: calc(var(--t-lead) * 1.05);
  line-height: 1.7;
}

/* DISPLAY (headlines): Reem Kufi, no uppercase, no negative letter-spacing */
[dir="rtl"] .display,
[dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .h4, [dir="rtl"] .mega,
[dir="rtl"] .wordmark, [dir="rtl"] .article-head__title, [dir="rtl"] .page-head__title,
[dir="rtl"] .mast__title, [dir="rtl"] .feature__text h2, [dir="rtl"] .next-up h2,
[dir="rtl"] .programs__head h2, [dir="rtl"] .a-hero h1, [dir="rtl"] .ph h1,
[dir="rtl"] .prog-row__title, [dir="rtl"] .related__head h2,
[dir="rtl"] .visit h2, [dir="rtl"] .subscribe h2, [dir="rtl"] .contact h2,
[dir="rtl"] .form__grid h2, [dir="rtl"] .issue-toc__left .h2,
[dir="rtl"] .timeline__head h2, [dir="rtl"] .inside__head h2,
[dir="rtl"] .founders__text h2, [dir="rtl"] .letter__text h2,
[dir="rtl"] .qa__head h2, [dir="rtl"] .people__head h2,
[dir="rtl"] .ed-board__head h2, [dir="rtl"] .archive__head h2,
[dir="rtl"] .why h2, [dir="rtl"] .mission__grid h2,
[dir="rtl"] .cta-strip h2 {
  font-family: var(--f-ar-disp) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600;
  line-height: 1.15;
}

/* Article main headings */
[dir="rtl"] .article-body__main h2 {
  font-family: var(--f-ar-disp);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.25;
}
[dir="rtl"] .article-body__main h3 {
  font-family: var(--f-ar-serif);
  font-weight: 700;
  line-height: 1.5;
}

/* Pullquote: switch to Reem Kufi, no uppercase */
[dir="rtl"] .pullquote {
  font-family: var(--f-ar-disp);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  line-height: 1.4;
  font-size: clamp(24px, 2.6vw, 38px);
}
[dir="rtl"] .pullquote .attr {
  font-family: var(--f-ar-serif);
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
}

/* Mono / Eyebrows / Captions: switch to Reem Kufi, no letter-spacing/uppercase */
[dir="rtl"] .mono,
[dir="rtl"] .eyebrow,
[dir="rtl"] .nav__links,
[dir="rtl"] .footer h5,
[dir="rtl"] .footer__bottom,
[dir="rtl"] .lang,
[dir="rtl"] .btn,
[dir="rtl"] .ticker__track,
[dir="rtl"] .hero__meta > *,
[dir="rtl"] .article-head__top,
[dir="rtl"] .article-head__byline,
[dir="rtl"] .article-head__dek,
[dir="rtl"] .aside__card h5,
[dir="rtl"] .aside__card .row,
[dir="rtl"] .toc-item__meta,
[dir="rtl"] .chart h4,
[dir="rtl"] .chart__bars .bar,
[dir="rtl"] .program__num,
[dir="rtl"] .program__desc,
[dir="rtl"] .programs__head .eyebrow,
[dir="rtl"] .ph__sub .stats .l,
[dir="rtl"] .prog-row__chip,
[dir="rtl"] .prog-row__list .item .k,
[dir="rtl"] .prog-row__list .item .v,
[dir="rtl"] .stat__label,
[dir="rtl"] .related__item .meta,
[dir="rtl"] .issue-card__meta,
[dir="rtl"] .issue-card__title,
[dir="rtl"] .archive__filters,
[dir="rtl"] .mission__list .item .t,
[dir="rtl"] .ed-board__row .role,
[dir="rtl"] .ed-board__row .name .deg,
[dir="rtl"] .qa__item .a,
[dir="rtl"] .qa__head .meta,
[dir="rtl"] .person__role,
[dir="rtl"] .person__title,
[dir="rtl"] .person__bio,
[dir="rtl"] .contact__rows .row .l,
[dir="rtl"] .contact__rows .row .v,
[dir="rtl"] .visit__info .field .lbl,
[dir="rtl"] .visit__info .field .val,
[dir="rtl"] .page-head__meta,
[dir="rtl"] .a-hero__sig,
[dir="rtl"] .letter__sig .name,
[dir="rtl"] .letter__sig .name em,
[dir="rtl"] .feature__meta,
[dir="rtl"] .partners__row .item,
[dir="rtl"] .form__field label,
[dir="rtl"] .timeline__head .eyebrow,
[dir="rtl"] .inside__head .eyebrow,
[dir="rtl"] .civ__yr,
[dir="rtl"] .civ__name,
[dir="rtl"] .civ__what {
  font-family: var(--f-ar-disp);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

/* Numbers / specific cases: keep Latin font for numeric values that look better unchanged */
[dir="rtl"] .stat__num,
[dir="rtl"] .page-head__num,
[dir="rtl"] .mast__num,
[dir="rtl"] .ph__sub .stats .n,
[dir="rtl"] .prog-row__num,
[dir="rtl"] .next-up .num,
[dir="rtl"] .toc-item__num,
[dir="rtl"] .program__num,
[dir="rtl"] .related__item .num,
[dir="rtl"] .exhibit__num,
[dir="rtl"] .footer__moon,
[dir="rtl"] .qa__item .num,
[dir="rtl"] .mission__list .item .n,
[dir="rtl"] .card__num,
[dir="rtl"] .wordmark__word,
[dir="rtl"] .article-body__main h2 .num,
[dir="rtl"] .nav__logo span:first-of-type {
  font-family: var(--f-display);
  text-transform: uppercase;
}

/* Pure-Latin items embedded in RTL flow stay LTR (URLs, emails, brand names) */
[dir="rtl"] .nav__logo,
[dir="rtl"] .wx,
[dir="rtl"] a[href*="alawael"],
[dir="rtl"] a[href*="dewxel"],
[dir="rtl"] a[href*="facebook"],
[dir="rtl"] a[href*="instagram"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Footer brand stays LTR */
[dir="rtl"] .footer__moon {
  direction: ltr;
  text-align: end;
}

/* Lead em color stays yellow */
[dir="rtl"] .lead em {
  color: var(--yellow);
  font-style: italic;
}

/* DROP CAP — Arabic doesn't really do drop caps the same way.
   Replace with a colored leading word effect instead. */
[dir="rtl"] .article-body__main p:first-of-type::first-letter {
  float: none;
  font-size: 1em;
  padding: 0;
  color: inherit;
}
[dir="rtl"] .article-body__main p:first-of-type::first-line {
  font-family: var(--f-ar-disp);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0;
}
[dir="rtl"] .letter__text p:first-of-type::first-letter {
  float: none;
  font-size: 1em;
  padding: 0;
  color: inherit;
}
[dir="rtl"] .letter__text p:first-of-type::first-line {
  font-family: var(--f-ar-disp);
  font-weight: 700;
  color: var(--orange);
}

/* Hero metadata — make Arabic feel like proper Arabic editorial chrome */
[dir="rtl"] .hero__meta > * {
  font-size: 13px;
  font-weight: 500;
}

/* Article TOC items: Arabic should use proper line-height */
[dir="rtl"] .toc-item__title {
  font-family: var(--f-ar-serif);
  line-height: 1.4;
  font-weight: 700;
}

/* Cover title and footer LUNA wordmark stays Latin */
[dir="rtl"] .cover__title,
[dir="rtl"] .footer__moon {
  font-family: var(--f-display);
  text-transform: uppercase;
}

/* Tifinagh accents stay as they are */
[dir="rtl"] .tif,
[dir="rtl"] .tif-divider,
[dir="rtl"] .tif-row,
[dir="rtl"] .tif-mark {
  font-family: var(--f-tif);
}

/* RTL-aware borders for elements that use border-inline */
[dir="rtl"] .nav__links a[aria-current="page"]::after { left: 0; right: 0; }

/* Form inputs in Arabic */
[dir="rtl"] .form__field input,
[dir="rtl"] .form__field textarea,
[dir="rtl"] .form__field select {
  font-family: var(--f-ar-serif);
  text-align: right;
}

/* Hide arrows in Arabic where they point the wrong direction — let CSS handle via flex layout */
[dir="rtl"] .toc-item__arrow {
  transform: scaleX(-1);
}

/* Subscribe button "→" arrows: flip in Arabic */
[dir="rtl"] .btn span[aria-hidden="true"],
[dir="rtl"] .related__item .num + h3 + .meta span[aria-hidden="true"] {
  display: inline-block;
  transform: scaleX(-1);
}

/* Pullquote attribution: Arabic em-dash position */
[dir="rtl"] .pullquote .attr {
  text-align: right;
}

/* Chart bars: keep LTR layout (years progress left-to-right) */
[dir="rtl"] .chart__bars,
[dir="rtl"] .chart {
  direction: ltr;
  text-align: left;
}
[dir="rtl"] .chart h4 {
  text-align: left;
  font-family: var(--f-ar-disp);
}

/* Article hero captions */
[dir="rtl"] .article-hero-img .caption {
  font-family: var(--f-ar-disp);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  left: auto;
  right: var(--edge);
}

/* RTL ticker reverses direction */
[dir="rtl"] .ticker__track { animation-direction: reverse; font-family: var(--f-ar-disp); }


/* =========================================================
   MOBILE — comprehensive responsive pass
   ========================================================= */

/* Mobile burger (hidden on desktop) */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color .2s ease;
}
.nav-burger:hover { border-color: var(--orange); }
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--paper);
  transition: background .2s ease;
}
.nav-burger:hover span { background: var(--orange); }

/* Overlay panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 22px var(--edge) 40px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .25s ease;
}
.nav-overlay__brand {
  font-family: var(--f-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 36px;
}
.nav-overlay__moon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  overflow: hidden;
}
.nav-overlay__moon::before {
  content: "";
  position: absolute;
  top: -2px; left: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ink);
}
.nav-overlay__close {
  position: absolute;
  top: 22px; inset-inline-end: var(--edge);
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  font-size: 24px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-overlay__close:hover { color: var(--orange); border-color: var(--orange); }
.nav-overlay__links {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  flex: 1;
  font-family: var(--f-display) !important;
  font-size: clamp(36px, 9vw, 56px) !important;
  letter-spacing: -0.008em !important;
  text-transform: uppercase !important;
  text-align: start !important;
  align-items: stretch !important;
}
.nav-overlay__links a {
  padding: 18px 0 !important;
  opacity: 0.85 !important;
  border-bottom: 1px solid var(--line);
  transition: color .2s ease, padding-inline-start .2s ease !important;
  display: block !important;
  text-align: start !important;
  justify-content: flex-start !important;
}
.nav-overlay__links a:hover, .nav-overlay__links a[aria-current="page"] {
  color: var(--orange);
  opacity: 1 !important;
  padding-inline-start: 14px !important;
}
.nav-overlay__links a::after { display: none !important; }
[dir="rtl"] .nav-overlay__links { text-align: right; font-family: var(--f-ar-disp) !important; text-transform: none !important; }

/* Show burger / hide nav links at mobile */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- INDEX: HERO ---------- */
@media (max-width: 600px) {
  .hero { padding-block: 24px 48px; }
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 22px;
  }
  .hero__meta > * { grid-column: span 1 !important; text-align: start !important; font-size: 10px !important; }
  .wordmark { font-size: clamp(90px, 28vw, 160px) !important; }
  .wordmark__tag { font-size: 10px !important; padding-top: 8px !important; }
  .hero__below { margin-top: 24px; }
  .hero__below .lead-block .meta-stack > div { font-size: 10px; }
  .hero__cover { min-height: 0 !important; }
}

/* ---------- COVER scaling ---------- */
@media (max-width: 600px) {
  .cover__title { font-size: clamp(34px, 9vw, 56px) !important; }
}

/* ---------- ISSUE TOC ---------- */
@media (max-width: 600px) {
  .issue-toc__left { padding: 36px 22px 28px; }
  .toc-item {
    grid-template-columns: 48px 1fr 20px;
    gap: 16px;
    padding: 18px 22px;
  }
  .toc-item__num { font-size: 32px !important; }
  .toc-item__title { font-size: 17px !important; }
  .toc-item__meta { font-size: 10px; }
  .toc-item__arrow { font-size: 18px; }
}

/* ---------- FEATURE ARTICLE BLOCK ---------- */
@media (max-width: 600px) {
  .feature { padding-block: 56px; }
  .feature__text h2 { font-size: clamp(36px, 10vw, 56px) !important; }
  .feature__text .pull { font-size: 17px !important; padding-inline-start: 14px; }
}

/* ---------- STATS ---------- */
@media (max-width: 600px) {
  .stats { padding-block: 56px; }
  .stats__grid { gap: 20px var(--col-gap); row-gap: 32px; }
  .stat__num { font-size: clamp(48px, 14vw, 84px) !important; }
  .stat__label { font-size: 10px; }
}

/* ---------- PROGRAMS ---------- */
@media (max-width: 600px) {
  .programs { padding-block: 56px; }
  .programs__head { gap: 18px; margin-bottom: 36px; }
  .programs__head .lead { font-size: 16px !important; }
  .program { min-height: 220px; padding: 22px; }
  .program__title { font-size: 22px !important; }
  .program__icon { font-size: 48px; }
  .program__desc { font-size: 13px; }
}

/* ---------- FOUNDERS ---------- */
@media (max-width: 600px) {
  .founders { padding-block: 56px; }
  .founders__text h2 { font-size: clamp(36px, 10vw, 56px) !important; }
  .founders__art { max-width: 100% !important; }
}

/* ---------- SUBSCRIBE ---------- */
@media (max-width: 800px) {
  .subscribe__inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .subscribe h2 { font-size: clamp(40px, 8vw, 64px) !important; line-height: 0.94; }
  .subscribe::before, .subscribe::after {
    width: clamp(120px, 22vw, 200px) !important;
    height: clamp(120px, 22vw, 200px) !important;
    opacity: 0.55;
  }
}
@media (max-width: 600px) {
  .subscribe { padding-block: 56px; }
  .subscribe h2 { font-size: clamp(36px, 11vw, 64px) !important; line-height: 0.92; }
  .subscribe::before, .subscribe::after {
    width: clamp(80px, 18vw, 140px) !important;
    height: clamp(80px, 18vw, 140px) !important;
    opacity: 0.35;
  }
  .subscribe form { grid-template-columns: 1fr; }
  .subscribe input { padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--ink); }
  .subscribe button { padding: 14px 18px; }
  .subscribe .lead { font-size: 16px !important; }
}

/* ---------- PARTNERS ---------- */
@media (max-width: 600px) {
  .partners { padding-block: 30px 40px; }
  .partners__row { gap: 18px; }
  .partners__row .item, .partners__row .eyebrow { font-size: 10px !important; }
}

/* ---------- FOOTER ---------- */
@media (max-width: 600px) {
  .footer { padding: 56px var(--edge) 32px; }
  .footer__moon { font-size: 64px !important; }
  .footer__top { padding-bottom: 36px; }
}

/* ---------- TICKER ---------- */
@media (max-width: 600px) {
  .ticker__track {
    gap: 28px;
    padding: 10px 0;
    font-size: 10px;
  }
  .ticker__track span::after { margin-inline-start: 12px; }
}

/* ---------- ARTICLE PAGES ---------- */
@media (max-width: 600px) {
  .article-head { padding: 32px var(--edge); }
  .article-head__top { grid-template-columns: 1fr; gap: 8px; padding-bottom: 18px; margin-bottom: 24px; }
  .article-head__top .right { text-align: start; opacity: 0.6; font-size: 10px; }
  .article-head__top .crumbs { font-size: 10px; }
  .article-head__title { font-size: clamp(40px, 12vw, 72px) !important; }
  .article-head__dek { font-size: 16px !important; }
  .article-head__byline { grid-template-columns: 1fr 1fr !important; row-gap: 18px; padding-top: 22px; margin-top: 28px; }
  .article-head__byline span { font-size: 10px; }
  .article-hero-img { height: 280px !important; }
  .article-hero-img .caption { font-size: 9px; padding: 6px 10px; }

  .article-body { padding-block: 48px; padding-inline: var(--edge); }
  .article-body__main p { font-size: 16px !important; line-height: 1.65 !important; }
  .article-body__main p:first-of-type::first-letter { font-size: 4em !important; }
  .article-body__main h2 { font-size: clamp(26px, 7vw, 36px) !important; margin: 1.8em 0 0.6em; }
  .article-body__main h3 { font-size: 18px !important; }
  .article-body__main ul li { font-size: 15px !important; }
  .pullquote { font-size: clamp(20px, 6vw, 28px) !important; margin: 1.4em 0; }
  .pullquote .attr { font-size: 11px; }

  .next-up { padding-block: 48px; gap: 18px; }
  .next-up h2 { font-size: clamp(28px, 8vw, 44px) !important; }
  .next-up .num { font-size: 80px !important; }

  .related { padding-block: 48px; }
  .related__head { margin-bottom: 24px; }
  .related__head h2 { font-size: clamp(28px, 8vw, 44px) !important; }
  .related__item .num { font-size: 36px !important; }
  .related__item h3 { font-size: 17px !important; }

  .chart { padding: 18px; }
  .chart__bars { height: 160px; }
  .chart__bars .bar { font-size: 9px; }
}

/* ---------- MAGAZINE ---------- */
@media (max-width: 600px) {
  .mast { padding: 40px var(--edge) 28px; }
  .mast__title { font-size: clamp(48px, 14vw, 84px) !important; }
  .mast__lede { font-size: 16px !important; margin-top: 22px; }
  .mast__num { font-size: 60px !important; }
  .current { padding-block: 48px; }
  .current__inner { gap: 28px !important; }
  .current__cover { max-width: 320px; margin: 0 auto; }
  .current__text h2 { font-size: clamp(40px, 12vw, 72px) !important; }
  .mission { padding-block: 48px; }
  .mission__grid { gap: 24px !important; }
  .mission__grid h2 { font-size: clamp(30px, 9vw, 48px) !important; }
  .archive { padding-block: 48px; }
  .archive__head h2 { font-size: clamp(40px, 12vw, 72px) !important; }
  .why { padding-block: 60px; }
  .why h2 { font-size: clamp(40px, 12vw, 72px) !important; }
  .why p { font-size: 15px !important; }
  .ed-board { padding-block: 48px; }
  .ed-board__head h2 { font-size: clamp(32px, 9vw, 48px) !important; }
  .ed-board__row { padding: 18px 0; }
  .ed-board__row .name { font-size: 18px !important; }
}

/* ---------- MUSEUM ---------- */
@media (max-width: 600px) {
  .page-head { padding-block: 40px; }
  .page-head__num { font-size: 64px !important; }
  .page-head__title { font-size: clamp(40px, 12vw, 72px) !important; }
  .intro2 { padding-block: 48px; }
  .intro2 .lead { font-size: 20px !important; }
  .inside { padding-block: 48px; }
  .inside__head { margin-bottom: 32px; }
  .inside__head h2 { font-size: clamp(32px, 9vw, 48px) !important; }
  .exhibit { padding: 18px 0 !important; }
  .exhibit__title { font-size: 18px !important; }
  .exhibit__desc { font-size: 13px; }
  .timeline { padding-block: 48px; }
  .timeline__head h2 { font-size: clamp(32px, 9vw, 48px) !important; }
  .galleries { padding-block: 48px; }
  .gallery { padding: 24px !important; }
  .visit { padding-block: 60px; }
  .visit h2 { font-size: clamp(40px, 12vw, 72px) !important; }
  .visit__info { gap: 22px !important; }
  .visit__map { aspect-ratio: 4/3 !important; }
}

/* ---------- PROGRAMS PAGE ---------- */
@media (max-width: 600px) {
  .ph { padding: 40px var(--edge) 24px; }
  .ph h1 { font-size: clamp(56px, 16vw, 96px) !important; }
  .ph__sub { gap: 24px !important; margin-top: 24px; }
  .ph__sub p { font-size: 16px !important; }
  .ph__sub .stats { gap: 22px !important; }
  .ph__sub .stats .n { font-size: 40px !important; }
  .prog-row { padding-block: 40px !important; gap: 22px !important; }
  .prog-row__num { font-size: 64px !important; }
  .prog-row__title { font-size: clamp(36px, 11vw, 64px) !important; }
  .prog-row__desc { font-size: 15px !important; }
  .prog-row__chip { font-size: 9px; }
  .prog-row__media { aspect-ratio: 3/4 !important; }
  .prog-row__list { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .prog-row__list .item .v { font-size: 13px !important; }
  .cta-strip { padding-block: 36px; }
  .cta-strip h2 { font-size: clamp(26px, 8vw, 40px) !important; }
}

/* ---------- ABOUT PAGE ---------- */
@media (max-width: 600px) {
  .a-hero { padding: 40px var(--edge); }
  .a-hero h1 { font-size: clamp(48px, 14vw, 84px) !important; }
  .a-hero__below { gap: 24px !important; margin-top: 24px; }
  .a-hero p { font-size: 18px !important; }
  .letter { padding-block: 48px; }
  .letter__grid { gap: 24px !important; }
  .letter__text h2 { font-size: clamp(32px, 9vw, 52px) !important; }
  .letter__sig { gap: 18px; margin-top: 24px; }
  .qa { padding-block: 48px; }
  .qa__head h2 { font-size: clamp(36px, 11vw, 64px) !important; }
  .qa__item { padding: 22px 0; gap: 14px !important; }
  .qa__item .num { font-size: 30px !important; }
  .qa__item .q { font-size: 17px !important; }
  .qa__item .a { font-size: 14px !important; }
  .people { padding-block: 48px; }
  .people__head h2 { font-size: clamp(32px, 9vw, 48px) !important; }
  .contact { padding-block: 56px; }
  .contact h2 { font-size: clamp(40px, 12vw, 72px) !important; }
  .contact::before { width: 160px !important; height: 160px !important; opacity: 0.4; right: -12%; }
  .contact .lead { font-size: 16px !important; }
  .contact__rows { gap: 20px !important; margin-top: 32px; }
  .form { padding-block: 48px; }
  .form__grid { gap: 28px !important; }
  .form__grid h2 { font-size: clamp(32px, 9vw, 48px) !important; }
}

/* ---------- GENERAL: prevent overflow ---------- */
@media (max-width: 600px) {
  /* Prevent any oversized SVGs or unscaled images from overflowing */
  section, header, footer { max-width: 100%; overflow-x: clip; }
  .pattern-band, .band-pattern { overflow: hidden; }
}

/* Tap targets on mobile */
@media (max-width: 720px) {
  .lang button { padding: 10px 12px; min-height: 40px; }
  .btn { padding: 14px 20px; min-height: 44px; }
}

/* ---------- LUNA MARK · WINK ---------- */
svg.luna-mark { display: inline-block; vertical-align: middle; }
.luna-mark .luna-eye {
  transform-box: fill-box;
  transform-origin: center;
}
/* Only the yellow (left) eye winks — the orange (right) eye stays open. */
.luna-mark .luna-eye--l {
  animation: luna-wink 7s ease-in-out infinite;
}
@keyframes luna-wink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .luna-mark .luna-eye--l { animation: none; }
}
