/* ============================================================
   Lycée privé Abulkacem Echebbi — design system
   Colors & motifs derived from the school crest (navy + gold)
   ============================================================ */

:root {
  --navy-900: #0A1A38;
  --navy-800: #0B1E3F;
  --navy-700: #13305C;
  --navy-600: #1E4178;
  --gold-600: #A8832F;
  --gold-500: #C9A24B;
  --gold-400: #D9B972;
  --gold-200: #EAD9A8;
  --parchment: #F7F2E8;
  --parchment-2: #EEE6D2;
  --paper: #FBF9F3;
  --ink: #1A1A1A;
  --ink-2: #2E2E2E;
  --mute: #6B6458;
  --line: rgba(10, 26, 56, 0.12);
  --line-gold: rgba(169, 131, 47, 0.35);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  --arab: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 2px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-ar { font-family: var(--arab); direction: rtl; }
body.lang-ar .ltr-only { display: none; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 { font-family: var(--arab); font-weight: 600; }
body.lang-ar .num, body.lang-ar .mono { direction: ltr; unicode-bidi: embed; display: inline-block; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy-800);
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-600);
  font-weight: 500;
}
body.lang-ar .eyebrow { letter-spacing: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 780px) { .container { padding: 0 20px; } }

/* hairline gold rule */
.rule-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-500) 80%, transparent);
  opacity: .6;
}

/* ============================================================
   NAV
   ============================================================ */

.topbar {
  background: var(--navy-900);
  color: var(--gold-200);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
}
.topbar a:hover { color: var(--gold-400); }
.topbar .sep { opacity: .3; margin: 0 14px; }
.lang-toggle { display: flex; gap: 0; align-items: center; }
.lang-toggle button {
  background: none; border: 0; color: var(--gold-200);
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em;
  padding: 4px 10px; cursor: pointer; opacity: .55;
  text-transform: uppercase;
}
.lang-toggle button.active { opacity: 1; color: #fff; }
.lang-toggle button + button { border-left: 1px solid rgba(234,217,168,.2); }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 96px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-crest { width: 76px; height: 76px; }
.brand-text { line-height: 1.05; }
.brand-text .name {
  font-family: var(--serif); font-size: 22px; color: var(--navy-800);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text .sub {
  font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-600); margin-top: 3px;
}
.nav-links { display: flex; gap: 24px; justify-content: center; flex-wrap: nowrap; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
}
.nav-links a {
  font-family: var(--sans); font-size: 13.5px; color: var(--navy-800);
  padding: 8px 0; position: relative; font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--gold-500); transition: right .35s ease;
}
.nav-links a:hover::after { right: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--navy-800); background: var(--navy-800); color: #fff;
  border-radius: var(--radius);
  transition: all .2s ease;
}
.btn:hover { background: var(--navy-700); }
.btn.ghost { background: transparent; color: var(--navy-800); }
.btn.ghost:hover { background: var(--navy-800); color: #fff; }
.btn.gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.btn.gold:hover { background: var(--gold-400); border-color: var(--gold-400); }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
body.lang-ar .btn:hover .arrow { transform: translateX(-3px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  min-height: 680px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,162,75,.12), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(201,162,75,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px;
  align-items: center;
  padding: 96px 0 120px;
  position: relative;
}
.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  color: #fff;
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 26px;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: italic; color: var(--gold-400); font-weight: 500; }
.hero .lede {
  font-family: var(--serif); font-size: 20px; font-style: italic;
  line-height: 1.55; color: rgba(255,255,255,.78);
  max-width: 48ch; margin-bottom: 32px;
}
.hero-meta {
  display: flex; gap: 36px; align-items: baseline;
  margin: 16px 0 40px;
  flex-wrap: wrap;
}
.hero-meta .item .v {
  font-family: var(--serif); font-size: 34px; color: var(--gold-400); font-weight: 500;
  line-height: 1;
}
.hero-meta .item .l {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-top: 8px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { border-color: var(--gold-500); }
.hero-cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn.ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

/* hero right: crest medallion */
.hero-medallion {
  position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto;
}
.hero-medallion img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 50px rgba(0,0,0,.4)); }
.hero-medallion .orbit {
  position: absolute; inset: -30px;
  border: 1px solid rgba(201,162,75,.25);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
.hero-medallion .orbit::before, .hero-medallion .orbit::after {
  content: ""; position: absolute; width: 6px; height: 6px; background: var(--gold-500);
  border-radius: 50%; top: 50%; margin-top: -3px;
}
.hero-medallion .orbit::before { left: -3px; }
.hero-medallion .orbit::after { right: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* poet quote strip below hero */
.hero-quote {
  position: relative;
  background: var(--navy-800);
  color: var(--gold-200);
  border-top: 1px solid rgba(201,162,75,.2);
  padding: 56px 0;
}
.hero-quote-inner {
  display: flex; align-items: center; gap: 32px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5;
}
.hero-quote .attr {
  font-family: var(--sans); font-style: normal;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(234,217,168,.72); white-space: nowrap;
  margin-top: 10px !important;
}
.hero-quote .ornament { color: var(--gold-500); font-size: 36px; line-height: 1; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 80px; }
  .hero-medallion { max-width: 280px; }
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */

.section { padding: 110px 0; position: relative; }
.section.navy { background: var(--navy-900); color: #fff; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section.parchment { background: var(--parchment); }
.section-head { margin-bottom: 56px; max-width: 780px; }
.section-head h2 {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.08;
  margin: 14px 0 18px;
}
.section-head .eyebrow-row {
  display: flex; align-items: center; gap: 14px;
}
.section-head .eyebrow-row::before {
  content: ""; width: 28px; height: 1px; background: var(--gold-500);
}
.section-head p {
  font-family: var(--serif); font-size: 19px; font-style: italic;
  color: var(--mute); line-height: 1.55;
}
.section.navy .section-head p { color: rgba(255,255,255,.7); }

/* ============================================================
   ABOUT / PILLARS
   ============================================================ */

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars > * {
  padding: 40px 28px 40px 28px;
  border-right: 1px solid var(--line);
}
.pillars > *:first-child { padding-left: 0; }
.pillars > *:last-child { border-right: 0; padding-right: 0; }
.pillar .n {
  font-family: var(--mono); font-size: 11px; color: var(--gold-600);
  letter-spacing: 0.15em; margin-bottom: 20px;
}
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: var(--mute); line-height: 1.6; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars > * { padding: 32px 20px 32px 20px; }
  .pillars > *:nth-child(odd) { padding-left: 0; }
  .pillars > *:nth-child(even) { border-right: 0; padding-right: 0; }
  .pillars > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   PROGRAMS — two big tiles
   ============================================================ */

.programs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.program {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 44px;
  position: relative;
  transition: all .3s ease;
  cursor: pointer;
  overflow: hidden;
}
.program::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gold-500);
  transform: scaleX(.15); transform-origin: left;
  transition: transform .6s cubic-bezier(.2,.7,.1,1);
}
.program:hover::before { transform: scaleX(1); }
.program:hover { border-color: var(--navy-800); background: #fff; }
.program .level {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold-600); text-transform: uppercase;
}
.program h3 {
  font-size: 36px; margin: 18px 0 8px; font-weight: 500;
}
.program .ages {
  font-family: var(--serif); font-style: italic; color: var(--mute);
  font-size: 17px; margin-bottom: 28px;
}
.program ul { list-style: none; padding: 0; margin: 0 0 32px; }
.program ul li {
  padding: 12px 0; font-size: 14.5px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.program ul li:last-child { border-bottom: 1px solid var(--line); }
.program ul li .tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--gold-600);
  letter-spacing: 0.1em;
}
.program .more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-800); font-weight: 500;
}

@media (max-width: 780px) { .programs { grid-template-columns: 1fr; } }

/* ============================================================
   NUMBERS STRIP
   ============================================================ */

.numbers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(201,162,75,.25);
  border-bottom: 1px solid rgba(201,162,75,.25);
  padding: 48px 0;
  margin: 0;
}
.numbers > * { padding: 0 24px; border-right: 1px solid rgba(255,255,255,.1); }
.numbers > *:first-child { padding-left: 0; }
.numbers > *:last-child { border-right: 0; padding-right: 0; }
.numbers .stat .big {
  font-family: var(--serif); font-size: 64px; color: var(--gold-400);
  line-height: 1; font-weight: 500;
  display: flex; align-items: baseline;
}
.numbers .stat .big sup { font-size: 20px; color: var(--gold-400); margin-left: 4px; }
.numbers .stat .lbl {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
@media (max-width: 780px) {
  .numbers { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .numbers > *:nth-child(2) { border-right: 0; }
}

/* ============================================================
   ADMISSIONS STEPPER
   ============================================================ */

.admissions {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px;
  align-items: start;
}
.admissions .left .deadline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--gold-500);
  color: var(--gold-600); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.admissions .left .deadline .dot {
  width: 6px; height: 6px; background: var(--gold-500); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: .35; }
}
.steps { list-style: none; padding: 0; margin: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: 20px; align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s ease;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { background: rgba(201,162,75,.05); }
.step.active { background: rgba(201,162,75,.08); }
.step .n {
  font-family: var(--serif); font-size: 40px;
  color: var(--gold-500); line-height: 1; font-weight: 500;
  font-style: italic;
}
.step .body h4 {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 4px;
  color: var(--navy-800);
}
.step .body p {
  margin: 0; font-size: 13.5px; color: var(--mute); line-height: 1.55;
  max-width: 52ch;
}
.step .chev {
  color: var(--gold-600); font-family: var(--serif); font-size: 22px;
  transition: transform .2s;
  padding-top: 8px;
}
.step.active .chev { transform: rotate(90deg); color: var(--navy-800); }
body.lang-ar .step.active .chev { transform: rotate(-90deg); }
.step .detail {
  grid-column: 2 / 4;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.step.active .detail {
  max-height: 300px; opacity: 1; margin-top: 14px;
}
.step .detail p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

@media (max-width: 900px) {
  .admissions { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   NEWS / EVENTS
   ============================================================ */

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
  transition: all .25s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -30px rgba(10,26,56,.3); border-color: var(--gold-500); }
.news-card .thumb {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--parchment-2) 0 10px, var(--parchment) 10px 20px);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.news-card .thumb .label {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 16px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--mute); letter-spacing: 0.08em;
  background: rgba(247,242,232,.88);
}
.news-card .thumb .badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--navy-800); color: var(--gold-400);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em;
  padding: 5px 10px; text-transform: uppercase;
}
.news-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.news-card .date {
  font-family: var(--mono); font-size: 11px; color: var(--gold-600);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.news-card h4 {
  font-family: var(--serif); font-size: 22px; line-height: 1.2;
  margin-bottom: 10px; font-weight: 500;
}
.news-card p { font-size: 14px; color: var(--mute); line-height: 1.55; margin: 0 0 18px; }
.news-card .read {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy-800); font-weight: 500;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
}
.news-card:hover .read { color: var(--gold-600); }

@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* ============================================================
   CALENDAR / AGENDA
   ============================================================ */

.agenda { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line-gold); }
.agenda-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 20px; align-items: center;
  padding: 20px 28px 20px 0;
  border-bottom: 1px solid var(--line-gold);
  cursor: pointer;
  transition: padding .2s ease;
}
.agenda-row:hover { padding-left: 8px; }
.agenda-row:nth-child(odd) { border-right: 1px solid var(--line-gold); padding-right: 28px; }
.agenda-row:nth-child(even) { padding-left: 28px; }
.agenda-row:nth-child(even):hover { padding-left: 36px; }
.agenda-row .date {
  text-align: center;
}
.agenda-row .date .d {
  font-family: var(--serif); font-size: 36px; color: var(--navy-800);
  line-height: 1; font-weight: 500;
}
.agenda-row .date .m {
  font-family: var(--mono); font-size: 10.5px; color: var(--gold-600);
  letter-spacing: 0.2em; text-transform: uppercase; margin-top: 4px;
}
.agenda-row .body h4 {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  margin-bottom: 2px; letter-spacing: 0.01em; color: var(--navy-800);
}
.agenda-row .body p { font-size: 13px; color: var(--mute); margin: 0; }
.agenda-row .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--gold-600); padding: 4px 8px; border: 1px solid var(--line-gold);
}

@media (max-width: 780px) {
  .agenda { grid-template-columns: 1fr; }
  .agenda-row:nth-child(odd) { border-right: 0; padding-right: 0; }
  .agenda-row:nth-child(even) { padding-left: 0; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--navy-900);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(201,162,75,.2);
  border-radius: 50%;
}
.cta-banner::before { top: -140px; left: -140px; }
.cta-banner::after { bottom: -140px; right: -140px; }
.cta-banner h2 {
  font-size: clamp(36px, 4vw, 54px); color: #fff;
  max-width: 22ch; margin: 0 auto 18px; line-height: 1.1;
}
.cta-banner h2 em { color: var(--gold-400); font-weight: 500; }
.cta-banner p {
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: rgba(255,255,255,.7); max-width: 52ch; margin: 0 auto 36px;
}
.cta-banner .cta-row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: #07142A;
  color: rgba(255,255,255,.75);
  padding: 72px 0 32px;
  font-size: 14px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.foot-grid h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-400);
  margin: 0 0 18px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { padding: 6px 0; }
.foot-grid a:hover { color: var(--gold-400); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.foot-brand img { width: 52px; height: 52px; }
.foot-brand .name { font-family: var(--serif); font-size: 19px; color: #fff; line-height: 1.1; }
.foot-brand .sub { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); margin-top: 4px; }
.foot-addr { font-style: normal; line-height: 1.7; color: rgba(255,255,255,.65); }
.foot-bot {
  display: flex; justify-content: space-between;
  padding-top: 28px; font-size: 12px; color: rgba(255,255,255,.4);
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TWEAKS PANEL
   ============================================================ */

.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--navy-800);
  box-shadow: 0 24px 60px -20px rgba(10,26,56,.4);
  font-family: var(--sans); font-size: 13px;
  color: var(--ink);
}
.tweaks-panel header {
  background: var(--navy-800); color: var(--gold-400);
  padding: 10px 16px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.tweaks-panel .body { padding: 16px; }
.tweaks-panel .row { margin-bottom: 14px; }
.tweaks-panel .row:last-child { margin-bottom: 0; }
.tweaks-panel label {
  display: block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 6px;
}
.tweaks-panel .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-panel .opts button {
  background: transparent; border: 1px solid var(--line); padding: 6px 10px;
  font-family: var(--sans); font-size: 12px; cursor: pointer;
  flex: 1; min-width: 0;
}
.tweaks-panel .opts button.active {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
}
.tweaks-panel .opts button:hover:not(.active) { border-color: var(--navy-800); }

body.lang-ar .tweaks-panel { right: auto; left: 20px; direction: ltr; }

/* ============================================================
   FOUNDER SECTION
   ============================================================ */

.founder {
  background: var(--parchment);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.founder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201,162,75,.10), transparent 50%),
    radial-gradient(ellipse at 5% 90%, rgba(10,26,56,.04), transparent 55%);
  pointer-events: none;
}
.founder-inner { position: relative; }
.founder-head {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  margin-bottom: 56px;
}
.founder-head .eyebrow { color: var(--gold-600); }
.founder-head .kicker {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.founder-head .rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  opacity: .6;
}
body.lang-ar .founder-head .rule {
  background: linear-gradient(-90deg, var(--gold-500), transparent);
}

.founder-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 72px;
  align-items: start;
}
.founder-portrait {
  position: sticky; top: 100px;
}
.founder-portrait .frame {
  aspect-ratio: 4 / 5;
  background: var(--navy-900);
  border: 1px solid var(--line);
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(10,26,56,.3);
  overflow: hidden;
}
.founder-portrait .frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
}
.founder-portrait .frame::before,
.founder-portrait .frame::after {
  content: ""; position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold-500);
}
.founder-portrait .frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.founder-portrait .frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.founder-portrait .frame .label {
  position: absolute; inset: auto 0 0 0; padding: 12px 16px;
  background: linear-gradient(180deg, rgba(10,26,56,0), rgba(10,26,56,.75));
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; color: rgba(255,255,255,.85);
  border-top: 0;
}
.founder-portrait .name-plate {
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 2px solid var(--navy-800);
}
.founder-portrait .name-plate .name {
  font-family: var(--serif); font-size: 26px; color: var(--navy-800);
  line-height: 1.1; font-weight: 500;
}
.founder-portrait .name-plate .role {
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-600);
}
.founder-portrait .presence {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--navy-900); color: var(--gold-400);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.founder-portrait .presence .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
  animation: pulse 2s infinite;
}
.founder-today {
  margin: 36px 0 0;
  padding: 22px 26px;
  background: rgba(10,26,56,.04);
  border-left: 3px solid var(--gold-500);
  font-family: var(--serif); font-size: 17px; line-height: 1.6;
  color: var(--navy-800);
  max-width: 62ch;
}
body.lang-ar .founder-today { border-left: 0; border-right: 3px solid var(--gold-500); }

.founder-body h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  margin-bottom: 22px;
  font-weight: 500;
}
.founder-body .lede {
  font-family: var(--serif); font-style: italic; font-size: 21px;
  color: var(--navy-800); line-height: 1.55;
  margin-bottom: 36px;
  max-width: 60ch;
}
.founder-body .paras p {
  font-size: 15.5px; line-height: 1.75; color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 62ch;
}

.founder-pullquote {
  margin: 44px 0;
  padding: 32px 0 32px 34px;
  border-left: 3px solid var(--gold-500);
  font-family: var(--serif); font-style: italic;
  font-size: 26px; line-height: 1.35;
  color: var(--navy-800);
  max-width: 52ch;
  position: relative;
}
body.lang-ar .founder-pullquote {
  border-left: 0; border-right: 3px solid var(--gold-500);
  padding: 32px 34px 32px 0;
}
.founder-pullquote::before {
  content: "“";
  position: absolute; left: -12px; top: -26px;
  font-family: var(--serif); font-size: 80px; color: var(--gold-500);
  opacity: .35; line-height: 1;
}
body.lang-ar .founder-pullquote::before {
  left: auto; right: -12px; content: "”";
}

.founder-values {
  list-style: none; padding: 0; margin: 48px 0 0;
  border-top: 1px solid var(--line);
}
.founder-values li {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px; align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, padding .2s ease;
}
.founder-values li:hover { background: rgba(201,162,75,.06); padding-left: 8px; }
body.lang-ar .founder-values li:hover { padding-left: 0; padding-right: 8px; }
.founder-values .k {
  font-family: var(--serif); font-size: 24px; color: var(--navy-800);
  font-weight: 500; font-style: italic;
}
.founder-values .d {
  font-size: 14.5px; color: var(--mute); line-height: 1.6;
  max-width: 48ch;
}
.founder-values .n {
  font-family: var(--mono); font-size: 11px;
  color: var(--gold-600); letter-spacing: 0.12em;
}

.founder-timeline {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line-gold);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.founder-timeline::before {
  content: "";
  position: absolute; top: 78px; left: 0; right: 0;
  height: 1px; background: var(--line-gold);
  z-index: 0;
}
.tl-item { position: relative; z-index: 1; padding-right: 20px; }
.tl-item .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--parchment);
  box-shadow: 0 0 0 1px var(--gold-500);
  margin-bottom: 14px;
}
.tl-item .y {
  font-family: var(--serif); font-size: 36px; color: var(--navy-800);
  line-height: 1; font-weight: 500; font-style: italic;
  margin-bottom: 10px;
}
.tl-item .t {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  color: var(--navy-800); margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.tl-item .d { font-size: 13.5px; color: var(--mute); line-height: 1.55; }

.founder-slogan {
  margin-top: 64px; padding: 28px 36px;
  background: var(--navy-900); color: var(--gold-400);
  text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  letter-spacing: 0.01em;
  position: relative;
}
.founder-slogan::before, .founder-slogan::after {
  content: "◆"; color: var(--gold-500); opacity: .6;
  margin: 0 14px; font-size: 12px; vertical-align: middle;
}

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-portrait { position: static; max-width: 340px; }
  .founder-values li { grid-template-columns: 1fr; gap: 6px; }
  .founder-timeline { grid-template-columns: 1fr; gap: 28px; }
  .founder-timeline::before { display: none; }
}
