/* ============================================================
   أثر — مؤسسة أثر للإعلام الوقفي
   Design System & Stylesheet — v2
   ============================================================ */

/* ---------- 1. Fonts ---------- */
@font-face {
  font-family: 'Qomra';
  src: url('../fonts/Qomra-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Qomra';
  src: url('../fonts/Qomra-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Qomra';
  src: url('../fonts/Qomra-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Qomra';
  src: url('../fonts/Qomra-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ---------- 2. Design Tokens ---------- */
:root {
  /* Brand */
  --burgundy: #801d4b;
  --burgundy-deep: #5e1437;
  --burgundy-soft: #a34a72;
  --gold: #c2aa40;
  --gold-deep: #a08a2e;
  --gold-soft: #d8c67a;
  --navy: #29284a;
  --navy-soft: #454468;
  --navy-deep: #1c1b35;

  /* Tints & Surfaces */
  --tint-burgundy: #fbf5f8;
  --tint-burgundy-2: #f6eaf0;
  --tint-gold: #fbf8ee;
  --tint-gold-2: #f5efdb;
  --tint-navy: #f1f1f7;
  --ivory: #fdfbf6;
  --cream: #faf6ec;
  --beige: #f6f1e6;
  --gray-light: #f5f4f6;

  /* Semantic */
  --bg: #ffffff;
  --surface: var(--ivory);
  --card: #ffffff;
  --border: #ece4e9;
  --border-gold: #e6dcb8;
  --heading: var(--navy);
  --body: #4b4458;
  --muted: #8d8398;
  --success: #2e7d5b;
  --warning: #b7791f;

  /* Interaction */
  --btn-primary: var(--burgundy);
  --btn-primary-hover: #93265a;
  --focus-ring: rgba(128, 29, 75, .28);

  /* Geometry & motion */
  /* Sharp, architectural language — tiny radius only where necessary */
  --radius-s: 2px;
  --radius: 0px;
  --radius-l: 0px;
  --shadow-s: 0 2px 10px rgba(41, 40, 74, .05);
  --shadow: 0 12px 40px -12px rgba(41, 40, 74, .14);
  --shadow-l: 0 30px 70px -20px rgba(41, 40, 74, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;
  --header-h: 74px;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 52px);
  /* Lock the page horizontally — width always equals the viewport.
     `clip` (not `hidden`) so it never creates a scroll container that would
     break position:sticky. */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: 'Qomra', 'Tahoma', sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 1.06rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  /* Clean Arabic typography — never split a single word across lines,
     and avoid orphaned words on their own line */
  word-break: keep-all;
  overflow-wrap: normal;
  -webkit-hyphens: none; hyphens: none;
  text-wrap: pretty;
}
h1, h2, h3, h4 {
  color: var(--heading); font-weight: 700; line-height: 1.45; margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
a { color: var(--burgundy); text-decoration: none; transition: color .3s var(--ease); }
img { max-width: 100%; display: block; }
::selection { background: var(--burgundy); color: #fff; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
  border-radius: var(--radius-s);
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 0 0 2px 2px;
  transition: top .3s;
}
.skip-link:focus { top: 0; color: #fff; }

/* Section rhythm — intentionally varied, never uniform */
.section { padding-block: clamp(76px, 10vw, 128px); position: relative; }
.section-s { padding-block: clamp(56px, 7vw, 92px); }
.section-head { max-width: 620px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.7rem); position: relative; }
.section-head.center .section-title::after {
  content: ''; display: block; width: 56px; height: 3px; border-radius: 0px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.section-head:not(.center) .section-title::after {
  content: ''; display: block; width: 56px; height: 3px; border-radius: 0px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* Light tinted backgrounds — bright, airy, brand-derived */
.bg-ivory { background: var(--ivory); }
.bg-cream { background: var(--cream); }
.bg-tint-burgundy { background: var(--tint-burgundy); }
.bg-tint-gold { background: var(--tint-gold); }
.bg-tint-navy { background: var(--tint-navy); }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--btn-primary);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 34px; border-radius: 2px;
  background: var(--btn-bg); color: #fff;
  font-family: inherit; font-size: 1.02rem; font-weight: 500;
  border: none; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  box-shadow: 0 10px 26px -10px rgba(128, 29, 75, .5);
}
.btn:hover { background: var(--btn-primary-hover); transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(128, 29, 75, .55); color: #fff; }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(-120%); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(-5px); }

.btn-gold {
  --btn-bg: linear-gradient(135deg, var(--gold), var(--gold-deep));
  background: var(--btn-bg); color: var(--navy-deep);
  box-shadow: 0 10px 26px -10px rgba(194, 170, 64, .55);
}
.btn-gold:hover { background: linear-gradient(135deg, #cdb54e, var(--gold)); color: var(--navy-deep); box-shadow: 0 18px 34px -12px rgba(194,170,64,.6); }

.btn-ghost {
  background: transparent; color: var(--burgundy);
  border: 1.5px solid rgba(128, 29, 75, .35); box-shadow: none;
}
.btn-ghost:hover { background: var(--tint-burgundy); color: var(--burgundy); border-color: var(--burgundy); box-shadow: none; }

.btn-light { background: #fff; color: var(--burgundy); box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
.btn-light:hover { background: var(--ivory); color: var(--burgundy-deep); }

.btn-lg { padding: 18px 44px; font-size: 1.12rem; }

/* ---------- 5. Header — floating institutional bar (sharp corners) ---------- */
.header {
  --nav-gap: clamp(14px, 3vw, 34px);
  position: fixed; top: var(--nav-gap);
  left: var(--nav-gap); right: var(--nav-gap);
  margin-inline: auto; max-width: var(--container);
  z-index: 200;
  background: var(--burgundy);
  border-radius: 0;
  box-shadow: 0 18px 44px -20px rgba(41, 15, 30, .5);
  transition: box-shadow .45s var(--ease), background .45s var(--ease), backdrop-filter .45s, top .45s var(--ease);
}
.header::after {
  content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,170,64,.5), transparent);
  opacity: .7;
}
.header.scrolled {
  background: rgba(94, 20, 55, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 22px 50px -22px rgba(41, 15, 30, .62);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 40px);
  height: var(--header-h);
  padding-inline: clamp(20px, 3vw, 34px);
}
.brand { display: flex; align-items: center; transition: opacity .3s; }
.brand:hover { opacity: .85; }
.brand img {
  height: 23px; width: auto;
  filter: brightness(0) invert(1);
}
.nav-panel-brand { display: none; }

.nav-links { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 22px); }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .95rem; font-weight: 500;
  letter-spacing: .005em;
  position: relative; padding: 8px 4px;
  transition: color .35s var(--ease);
}
.nav-links a > span { position: relative; display: inline-block; }
.nav-links a > span::after {
  content: ''; position: absolute; bottom: -5px; inset-inline: 50%; height: 1.5px; width: 0;
  background: var(--gold); border-radius: 2px;
  transition: width .4s var(--ease), inset-inline .4s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover > span::after { width: 100%; inset-inline: 0; }
.header-cta {
  white-space: nowrap; padding: 10px 26px; font-size: .92rem; letter-spacing: .01em;
}
.header .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.header .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* Mobile toggle — three refined lines */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 10px 4px; flex-direction: column; align-items: flex-end; gap: 6px;
  z-index: 240; position: relative;
}
.nav-toggle span { display: block; background: #fff; border-radius: 0px; transition: .45s var(--ease); }
.nav-toggle span:nth-child(1) { width: 27px; height: 2.5px; }
.nav-toggle span:nth-child(2) { width: 18px; height: 2px; }
.nav-toggle span:nth-child(3) { width: 23px; height: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { width: 26px; height: 2px; transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { width: 26px; height: 2px; transform: translateY(-8.5px) rotate(-45deg); }

/* Mobile — luxurious full-surface curtain menu */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  /* The menu opens as a SHORT panel attached just below the floating bar —
     white with a soft single-tone Athar (burgundy) gradient. It never covers
     the bar, and its height stays around the middle of the screen. */
  .nav-links {
    position: absolute; top: calc(100% + 10px); inset-inline: 0; z-index: 20;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 2px; padding: 12px;
    max-height: min(56vh, 460px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #ffffff 0%, var(--tint-burgundy-2) 100%);
    border: 1px solid var(--border-gold);
    box-shadow: 0 30px 60px -26px rgba(41, 15, 30, .32), 0 2px 10px rgba(41,40,74,.06);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px) scale(.985); transform-origin: top center;
    transition: opacity .35s var(--ease), transform .42s var(--ease), visibility 0s .42s;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: none;
    transition: opacity .35s var(--ease), transform .42s var(--ease), visibility 0s;
  }
  /* small pointer linking the panel to the bar (near the toggle) */
  .nav-links::before {
    content: ''; position: absolute; top: -6px; inset-inline-start: 24px;
    width: 12px; height: 12px; background: #fff;
    border-inline-start: 1px solid var(--border-gold);
    border-top: 1px solid var(--border-gold);
    transform: rotate(45deg);
  }
  .nav-panel-brand { display: none; }

  .nav-links > a {
    color: var(--navy); font-size: 1.05rem; font-weight: 500;
    padding: 13px 16px; border-radius: 2px;
    opacity: 0; transform: translateY(-6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s, color .25s;
  }
  .nav-links > a > span::after { display: none; }
  .nav-links > a:hover { color: var(--burgundy); background: var(--tint-burgundy); }
  .nav-links.open > a { opacity: 1; transform: none; }
  .nav-links.open > a:nth-of-type(1) { transition-delay: .05s; }
  .nav-links.open > a:nth-of-type(2) { transition-delay: .09s; }
  .nav-links.open > a:nth-of-type(3) { transition-delay: .13s; }
  .nav-links.open > a:nth-of-type(4) { transition-delay: .17s; }
  .nav-links.open > a:nth-of-type(5) { transition-delay: .21s; }
  .nav-links.open > a:nth-of-type(6) { transition-delay: .25s; }
  .nav-links .nav-cta-row {
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border);
    opacity: 0; transform: translateY(-6px);
    transition: opacity .3s var(--ease) .26s, transform .3s var(--ease) .26s;
  }
  .nav-links.open .nav-cta-row { opacity: 1; transform: none; }
  .nav-links .nav-cta-row .btn { width: 100%; }
}
@media (min-width: 961px) {
  .nav-links .nav-cta-row { display: none; }
}

/* ---------- 6. Hero ---------- */
.hero {
  min-height: calc(100svh - 0px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + clamp(74px, 11vw, 118px)); padding-bottom: 84px;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fdf9f4 0%, var(--tint-burgundy) 52%, #fff 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; will-change: transform; }
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(194,170,64,.42), transparent 65%); top: -120px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(128,29,75,.24), transparent 65%); bottom: -180px; right: -140px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 320px; height: 320px; background: radial-gradient(circle, rgba(41,40,74,.16), transparent 65%); top: 30%; right: 22%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -50px) scale(1.12); }
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: radial-gradient(var(--navy) 1.3px, transparent 1.3px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 880px; margin-inline: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  padding: 9px 22px; border-radius: 2px;
  color: var(--navy); font-size: .93rem; font-weight: 500;
  box-shadow: var(--shadow-s);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194,170,64,.5); }
  55% { box-shadow: 0 0 0 8px rgba(194,170,64,0); }
}
.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 26px 0 10px;
  background: linear-gradient(120deg, var(--burgundy-deep) 10%, var(--burgundy) 50%, var(--burgundy-soft) 100%);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradient-flow 9s ease infinite;
  line-height: 1.3;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-brand {
  color: var(--burgundy); font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin: 0 0 16px; line-height: 1.6;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--body); font-weight: 400;
  line-height: 1.9; max-width: 620px; margin: 0 auto;
}

.hero-verse {
  margin: 34px auto 0; max-width: 580px;
  background: rgba(255,255,255,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(194,170,64,.4);
  border-radius: var(--radius-l); padding: 30px 38px;
  box-shadow: var(--shadow);
  position: relative;
  /* elegant, premium entrance — plays once on initial page load */
  animation: verse-reveal 1.2s var(--ease) .35s both;
}
@keyframes verse-reveal {
  0%   { opacity: 0; transform: translateY(26px) scale(.965); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero-verse::before {
  content: ''; position: absolute; top: 0; right: 40px; width: 44px; height: 3px;
  border-radius: 0px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.hero-verse p {
  margin: 0; color: var(--navy); font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 2.2;
}
/* ===== Verse: written line-by-line with an elegant shiny sweep ===== */
.verse-poem { display: block; }
.verse-line {
  display: block; position: relative; width: fit-content; margin-inline: auto;
  /* shiny text: mostly navy with a gold glint that sweeps across */
  background: linear-gradient(100deg,
    var(--navy) 0%, var(--navy) 38%, var(--gold) 50%, var(--navy) 62%, var(--navy) 100%);
  background-size: 260% 100%; background-position: 220% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* start hidden; revealed by a right-to-left wipe (Arabic writing direction) */
  clip-path: inset(0 0 0 100%);
  will-change: clip-path, background-position;
}
.verse-line:nth-child(1) {
  animation: verse-write 1.15s cubic-bezier(.6,0,.2,1) .6s both,
             verse-shine 5.5s ease-in-out 1.9s infinite;
}
.verse-line:nth-child(2) {
  animation: verse-write 1.15s cubic-bezier(.6,0,.2,1) 1.75s both,
             verse-shine 5.5s ease-in-out 3.05s infinite;
}
/* glowing caret that trails the writing, then blinks at the end */
.verse-line::after {
  content: ''; position: absolute; top: 50%; inset-inline-end: -6px;
  width: 2px; height: 1.15em; transform: translateY(-50%);
  background: var(--gold); border-radius: 2px;
  box-shadow: 0 0 8px 1px rgba(194,170,64,.75);
  opacity: 0;
}
.verse-line:nth-child(1)::after { animation: verse-caret 1s steps(1) 1.75s 3; }
.verse-line:nth-child(2)::after { animation: verse-caret 1s steps(1) 2.9s infinite; }
@keyframes verse-write {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes verse-shine {
  0%, 62%  { background-position: 220% 0; }
  86%      { background-position: -40% 0; }
  100%     { background-position: -60% 0; }
}
@keyframes verse-caret {
  0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .verse-line {
    clip-path: none; animation: none; background: none;
    -webkit-text-fill-color: var(--navy); color: var(--navy);
  }
  .verse-line::after { display: none; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; }

/* Two statement statistics */
.hero-stats {
  position: relative; z-index: 2;
  margin-top: clamp(52px, 7vw, 84px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 18px;
  justify-content: center;
}
.stat {
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--radius); padding: 30px 22px; text-align: center;
  box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat-num {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem); font-weight: 700;
  color: var(--burgundy); line-height: 1.15;
  direction: ltr; unicode-bidi: embed;
}
.stat-num .plus { color: var(--gold-deep); }
.stat-label { color: var(--muted); font-size: .98rem; margin-top: 6px; }
@media (max-width: 560px) { .hero-stats { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; margin-top: 52px; } }

/* ---------- 7. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-l { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-r.in, .reveal-l.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
[data-stagger] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* ---------- 8. About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-text .lead { font-size: 1.22rem; color: var(--navy); font-weight: 500; }
.about-visual { position: relative; }
.about-card-main {
  background: linear-gradient(150deg, var(--burgundy), var(--burgundy-deep) 70%);
  border-radius: var(--radius-l); padding: clamp(34px, 5vw, 54px);
  color: #fff; box-shadow: var(--shadow-l);
  position: relative; overflow: hidden;
}
.about-card-main::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(200deg, black, transparent 60%);
  -webkit-mask-image: linear-gradient(200deg, black, transparent 60%);
}
.about-card-main h3 { color: #fff; font-size: 1.5rem; }
.about-card-main p { color: rgba(255,255,255,.85); margin: 0; }
.about-card-float {
  position: absolute; bottom: -100px; right: -14px;
  background: #fff; border-radius: var(--radius);
  padding: 20px 26px; box-shadow: var(--shadow-l);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border-gold);
  animation: float-soft 5s ease-in-out infinite;
}
@keyframes float-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.about-card-float .num { font-size: 2rem; font-weight: 700; color: var(--gold-deep); }
.about-card-float .txt { color: var(--navy); font-weight: 500; font-size: .95rem; line-height: 1.5; }
@media (max-width: 900px) { .about-card-float { right: 10px; bottom: -92px; } }
.about-points { margin-top: 28px; display: grid; gap: 14px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .icon {
  flex: none; width: 46px; height: 46px; border-radius: 2px;
  display: grid; place-items: center;
  background: var(--tint-gold-2); color: var(--gold-deep);
}
.about-point h4 { margin-bottom: 2px; font-size: 1.06rem; }
.about-point p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- 9. Pillars: Vision & Mission ---------- */
.vmv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
  max-width: 940px; margin-inline: auto;
}
@media (max-width: 780px) { .vmv-grid { grid-template-columns: 1fr; max-width: 520px; } }
.vmv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: clamp(38px, 5vw, 56px) clamp(30px, 4vw, 46px);
  box-shadow: var(--shadow-s);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  position: relative; overflow: hidden;
}
.vmv-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.vmv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.vmv-card:hover::before { transform: scaleX(1); }
.vmv-icon {
  width: 76px; height: 76px; border-radius: 2px; display: grid; place-items: center;
  margin-bottom: 26px; transition: transform .5s var(--ease);
}
.vmv-card:hover .vmv-icon { transform: rotate(-8deg) scale(1.08); }
.vmv-icon.i-burgundy { background: var(--tint-burgundy-2); color: var(--burgundy); }
.vmv-icon.i-gold { background: var(--tint-gold-2); color: var(--gold-deep); }
.vmv-card h3 { font-size: 1.55rem; }
.vmv-card p { color: var(--body); margin: 0; font-size: 1.08rem; }

/* ---------- 10. Timeline — scroll-driven years ---------- */
.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-block: 10px; }
.timeline-line {
  position: absolute; top: 0; bottom: 0; right: 27px; width: 3px;
  background: var(--tint-burgundy-2); border-radius: 0px; overflow: hidden;
}
.timeline-line::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--burgundy-soft), var(--burgundy-deep));
  transform: scaleY(var(--line-progress, 0)); transform-origin: top;
  transition: transform .2s linear;
}
.tl-item { position: relative; padding-right: 86px; }
.tl-dot {
  position: absolute; right: 15px; top: 8px;
  width: 27px; height: 27px; border-radius: 50%;
  background: #fff; border: 3px solid var(--tint-burgundy-2);
  display: grid; place-items: center;
  transition: border-color .5s, transform .5s var(--ease);
}
.tl-dot::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tint-burgundy-2); transition: background .5s; }
.tl-item.lit .tl-dot { border-color: var(--gold); transform: scale(1.1); }
.tl-item.lit .tl-dot::after { background: var(--burgundy); }
.tl-year {
  display: inline-block; font-weight: 700; color: var(--burgundy);
  background: var(--tint-burgundy); border: 1px solid var(--tint-burgundy-2);
  border-radius: 2px; padding: 3px 20px; font-size: 1.05rem;
  direction: ltr; unicode-bidi: embed;
}
.tl-start { padding-bottom: clamp(44px, 6vw, 64px); }
.tl-start .tl-year { margin-bottom: 12px; }
.tl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tl-card:hover { transform: translateX(-6px); box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.18rem; margin-bottom: 4px; }
.tl-card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Passing years — the animation tells the story */
.tl-mini { padding-bottom: clamp(40px, 6vw, 58px); }
.tl-mini .tl-dot { width: 19px; height: 19px; right: 19px; top: 14px; border-width: 2.5px; }
.tl-mini .tl-dot::after { width: 6px; height: 6px; }
.tl-mini .tl-year {
  background: none; border: none; padding: 0;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  color: var(--tint-burgundy-2);
  opacity: 0; transform: translateX(26px) scale(.92);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .7s;
  display: inline-block; line-height: 1.2;
}
.tl-mini.lit .tl-year {
  opacity: 1; transform: none;
  color: var(--burgundy-soft);
}
.tl-mini.lit .tl-year { text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* Finale */
.tl-end { padding-top: 6px; }
.tl-end .tl-dot { border-color: var(--gold); background: var(--gold); }
.tl-end .tl-dot::after { background: #fff; }
.tl-end .tl-year {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-deep); border-color: transparent;
  font-size: 1.3rem; padding: 5px 26px;
  box-shadow: 0 10px 26px -10px rgba(194,170,64,.6);
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.tl-final {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin: 16px 0 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s;
}
.tl-end.lit .tl-year, .tl-end.lit .tl-final { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .tl-item { padding-right: 62px; }
  .timeline-line { right: 21px; }
  .tl-dot { right: 9px; }
  .tl-mini .tl-dot { right: 13px; }
}

/* ---------- 11. Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
  position: relative; overflow: hidden;
}
.work-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.work-card .icon {
  width: 54px; height: 54px; border-radius: 2px; display: grid; place-items: center;
  background: var(--tint-burgundy); color: var(--burgundy); margin-bottom: 18px;
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.work-card:hover .icon { background: var(--burgundy); color: #fff; transform: scale(1.06) rotate(-6deg); }
.work-card h3 { font-size: 1.14rem; margin-bottom: 6px; }
.work-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- 13. Stories ---------- */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.story-card {
  border-radius: var(--radius-l); overflow: hidden; position: relative;
  min-height: 340px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-s); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  color: #fff;
}
.story-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.story-art { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.story-card:hover .story-art { transform: scale(1.06); }
.story-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 30%, rgba(20, 12, 25, .78) 90%);
}
.story-pattern {
  position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
.story-body { position: relative; z-index: 2; padding: 26px; width: 100%; }
.story-tag {
  display: inline-block; background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px; padding: 3px 14px; font-size: .82rem; margin-bottom: 10px;
}
.story-body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.story-body p { color: rgba(255,255,255,.82); font-size: .93rem; margin: 0 0 12px; }
.story-link { color: var(--gold-soft); font-size: .92rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.story-card:hover .story-link { color: #fff; }

/* ---------- 14. Books slider ---------- */
.slider-shell { position: relative; }
.books-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 26px; scrollbar-width: none;
}
.books-track::-webkit-scrollbar { display: none; }
.book-card {
  flex: 0 0 min(250px, 72vw); scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.book-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.book-cover {
  aspect-ratio: 3 / 4; position: relative; display: flex; flex-direction: column;
  justify-content: space-between; padding: 24px; color: #fff; overflow: hidden;
}
.book-cover::before {
  content: ''; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 12px;
  background: rgba(0,0,0,.18);
}
.book-cover .motif {
  position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 14px);
}
.book-cover .b-kicker { position: relative; font-size: .8rem; letter-spacing: .05em; opacity: .85; }
.book-cover h3 { position: relative; color: #fff; font-size: 1.25rem; line-height: 1.6; margin: 0; }
.book-meta { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.book-meta span { color: var(--muted); font-size: .88rem; }
.book-meta .state { color: var(--gold-deep); font-weight: 500; }
.slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.slider-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--navy); cursor: pointer; font-size: 1.1rem;
  display: grid; place-items: center;
  transition: background .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.slider-btn:hover { background: var(--burgundy); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-s); }

/* ---------- 15. Media Programs — برامج أثر ---------- */
.programs-section { background: linear-gradient(180deg, #fff 0%, var(--tint-gold) 100%); }
.programs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 54px);
}
@media (max-width: 960px) { .programs-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }

.program-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: var(--shadow-s);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column; gap: clamp(24px, 3vw, 34px);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.program-head { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 26px); }
.program-portrait {
  --ring-a: var(--burgundy-deep); --ring-b: var(--burgundy-soft);
  position: relative; flex: none; width: clamp(100px, 13vw, 132px);
  margin: 0; border-radius: 0px;
  overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 16px 34px -16px rgba(41,40,74,.4);
}
.program-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* calm animated single-color gradient stroke around each presenter photo */
.program-portrait::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; padding: 2.5px;
  background: conic-gradient(from var(--prog-ang),
    var(--ring-a), var(--ring-b) 50%, var(--ring-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: prog-ring 9s linear infinite;
}
#program-idaat .program-portrait { --ring-a: var(--burgundy-deep); --ring-b: var(--burgundy-soft); }
#program-nisaa .program-portrait { --ring-a: var(--gold-deep);      --ring-b: var(--gold-soft); }
.program-intro { flex: 1; min-width: 0; }
.program-kicker {
  display: inline-block; color: var(--gold-deep); font-weight: 500;
  font-size: .82rem; letter-spacing: .14em; margin-bottom: 6px;
}
.program-intro h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 6px; line-height: 1.35; }
.program-host {
  color: var(--burgundy); font-weight: 500; font-size: 1rem; margin: 0 0 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.program-bio { color: var(--body); font-size: .97rem; margin: 0; line-height: 1.85; }

/* Animated single-color gradient border for the player */
@property --prog-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.program-video {
  --ring-1: var(--burgundy-deep); --ring-2: var(--burgundy-soft);
  --glow: rgba(128,29,75,.4);
  position: relative; margin-top: auto;
  border-radius: 0px; padding: 3px;
  box-shadow: 0 30px 64px -26px var(--glow);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.program-video::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
  background: conic-gradient(from var(--prog-ang),
    var(--ring-1), var(--ring-2) 25%, var(--ring-1) 50%, var(--ring-2) 75%, var(--ring-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: prog-ring 7s linear infinite;
  pointer-events: none;
}
@keyframes prog-ring { to { --prog-ang: 360deg; } }
.program-video-inner {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 0px; overflow: hidden;
  background: var(--navy-deep);
}
.program-video-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.program-card:hover .program-video { transform: translateY(-2px); box-shadow: 0 40px 78px -26px var(--glow); }
.program-video--burgundy { --ring-1: var(--burgundy-deep); --ring-2: var(--burgundy-soft); --glow: rgba(128,29,75,.4); }
.program-video--gold { --ring-1: var(--gold-deep); --ring-2: var(--gold-soft); --glow: rgba(194,170,64,.42); }

@media (max-width: 560px) {
  .program-head { flex-direction: column; align-items: center; text-align: center; }
  .program-portrait { width: clamp(140px, 46vw, 180px); }
  .program-host { border-bottom: none; padding-bottom: 0; }
  .program-video { border-radius: 0px; }
  .program-video-inner { border-radius: 0px; }
}

/* ---------- 15b. Media Showcase — cinematic infinite band ---------- */
/* Seamless video band floating inside the hero */
.hero-showcase {
  position: relative; z-index: 2; width: 100%;
  margin-top: clamp(34px, 5vw, 62px);
}
.showcase-marquee {
  position: relative; overflow: hidden; direction: ltr;
  padding-block: clamp(10px, 2vw, 22px);
  perspective: 1200px; perspective-origin: 50% 46%;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
/* Transform is driven by JS (requestAnimationFrame) for a mathematically
   seamless loop — no CSS keyframe, no reset point. Track pinned LTR. */
.showcase-track {
  display: flex; direction: ltr; width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
@property --sc-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.showcase-item {
  --ring-1: var(--burgundy-deep); --ring-2: var(--burgundy-soft);
  flex: none; width: clamp(170px, 21vw, 250px); aspect-ratio: 1;
  margin-inline-start: clamp(16px, 2vw, 28px);
  padding: clamp(4px, 0.55vw, 7px);
  border-radius: 0px;
  background: conic-gradient(from var(--sc-ang),
    var(--ring-1), var(--ring-2) 50%, var(--ring-1));
  box-shadow: 0 26px 50px -24px rgba(41, 40, 74, .42);
  transform: rotateY(-7deg) scale(.965);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  animation: sc-ring 9s linear infinite;
}
@keyframes sc-ring { to { --sc-ang: 360deg; } }
.showcase-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 0px; background: #14131f;
}
/* One brand color family per frame; repeats every 4 so duplicates match */
.showcase-item:nth-child(4n+1) { --ring-1: var(--burgundy-deep); --ring-2: var(--burgundy-soft); animation-duration: 9s; }
.showcase-item:nth-child(4n+2) { --ring-1: var(--gold-deep);     --ring-2: var(--gold-soft);      animation-duration: 11s; }
.showcase-item:nth-child(4n+3) { --ring-1: var(--navy-deep);     --ring-2: var(--navy-soft);      animation-duration: 10s; }
.showcase-item:nth-child(4n+4) { --ring-1: var(--burgundy-soft); --ring-2: #d9a9c1;               animation-duration: 12s; }
.showcase-item:hover { transform: rotateY(0) scale(1.02); box-shadow: 0 34px 60px -24px rgba(41, 40, 74, .5); }

@media (prefers-reduced-motion: reduce) {
  .showcase-track { animation: none; flex-wrap: nowrap; }
  .showcase-item { transform: none; animation: none; }
}
/* Mobile only — enlarge the hero background videos ~20% (desktop untouched) */
@media (max-width: 760px) {
  .showcase-item { width: clamp(204px, 26vw, 300px); }
}

/* ---------- 16. General Manager — executive profile ---------- */
.gm-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .gm-grid { grid-template-columns: 1fr; } }
.gm-portrait {
  position: relative;
  max-width: 300px; margin-inline: auto; width: 100%;
}
.gm-portrait::before {
  content: ''; position: absolute; inset: 26px -22px -22px 26px;
  background: linear-gradient(150deg, var(--tint-gold-2), var(--gold-soft));
  border-radius: var(--radius-l);
  z-index: 0;
}
/* On narrow screens the offset backing must not poke past the viewport edge */
@media (max-width: 900px) {
  .gm-portrait::before { inset: 22px 0 -16px 22px; }
}
.gm-photo-frame {
  position: relative; z-index: 1;
  border-radius: var(--radius-l); overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--tint-burgundy), var(--tint-burgundy-2));
  box-shadow: var(--shadow-l);
}
.gm-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.gm-photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.gm-photo-fallback svg { width: 45%; height: auto; opacity: .8; }
.gm-name-badge {
  position: absolute; z-index: 2; bottom: 20px; inset-inline: 20px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-s); padding: 12px 18px; text-align: center;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 30px -14px rgba(41,40,74,.35);
}
.gm-name-badge strong { color: var(--navy); display: block; }
.gm-name-badge span { color: var(--burgundy); font-size: .88rem; }
.gm-bio h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 4px; }
.gm-role {
  color: var(--gold-deep); font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.gm-role::after { content: ''; flex: 1; max-width: 90px; height: 1.5px; background: linear-gradient(90deg, var(--border-gold), transparent); }
.gm-quote {
  border-inline-start: 3px solid var(--gold);
  padding-inline-start: 18px; margin: 22px 0;
  color: var(--navy); font-weight: 500; font-size: 1.1rem;
}
.gm-contact {
  margin-top: 26px; display: grid; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-s); max-width: 460px;
}
.gm-contact a {
  display: flex; align-items: center; gap: 14px; color: var(--body); font-weight: 500;
  padding: 10px 12px; border-radius: 2px;
  transition: background .3s, color .3s;
}
.gm-contact a:hover { color: var(--burgundy); background: var(--tint-burgundy); }
.gm-contact .ic {
  width: 42px; height: 42px; border-radius: 2px; display: grid; place-items: center;
  background: var(--tint-burgundy); color: var(--burgundy); flex: none;
  transition: background .3s, color .3s;
}
.gm-contact a:hover .ic { background: var(--burgundy); color: #fff; }

/* ---------- 17. Mental endowment promo ---------- */
.manawi {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(194,170,64,.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(140deg, var(--burgundy), var(--burgundy-deep) 75%);
  border-radius: var(--radius-l);
  padding: clamp(40px, 7vw, 80px);
  color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-l);
}
@media (max-width: 860px) { .manawi { grid-template-columns: 1fr; } }
.manawi h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.manawi h2::after {
  content: ''; display: block; width: 52px; height: 3px; border-radius: 0px;
  margin-top: 16px; background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.4));
}
.manawi p { color: rgba(255,255,255,.85); max-width: 520px; }
.manawi-illus { position: relative; display: grid; place-items: center; }
.manawi-illus svg { width: min(300px, 70vw); height: auto; }
.manawi-float { animation: float-soft 6s ease-in-out infinite; }

/* ---------- 18. Calendar marquee ---------- */
.marquee { overflow: hidden; position: relative; direction: ltr; padding-block: 8px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
/* Same seamless engine as the video band — transform driven by JS
   (requestAnimationFrame), two identical sequences, no CSS keyframe. */
.marquee-track {
  display: flex; direction: ltr; width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.marquee-item {
  flex: none; width: clamp(220px, 30vw, 320px); aspect-ratio: 1;
  margin-inline-start: clamp(16px, 2.4vw, 28px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-gold); box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.marquee-item:hover { transform: scale(1.04); }
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }

/* Portrait calendar pages — matching the printed rznamah */
.marquee--portrait .marquee-item {
  width: clamp(186px, 23vw, 256px); aspect-ratio: 9 / 16;
  margin-inline-start: clamp(18px, 2.4vw, 30px);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-gold);
  box-shadow: 0 26px 54px -22px rgba(41,40,74,.32);
  background: var(--cream);
}
.marquee--portrait .marquee-item:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 34px 66px -22px rgba(41,40,74,.4); }

.calendar-cta { text-align: center; margin-top: clamp(36px, 5vw, 56px); }
.calendar-invite {
  max-width: 540px; margin: 0 auto 26px; color: var(--body);
  font-size: 1.1rem; line-height: 1.9;
}
.btn-whatsapp {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep));
  box-shadow: 0 10px 26px -10px rgba(128, 29, 75, .5);
  color: #fff;
}
.btn-whatsapp:hover { background: linear-gradient(135deg, var(--btn-primary-hover), var(--burgundy)); box-shadow: 0 18px 34px -12px rgba(128,29,75,.58); color: #fff; }

/* ---------- 19. Gallery ---------- */
.masonry { columns: 3 260px; column-gap: 18px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius);
  overflow: hidden; position: relative; box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.masonry-item img { width: 100%; transition: transform .8s var(--ease); }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-item .cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 30px 18px 14px;
  background: linear-gradient(0deg, rgba(20,12,25,.72), transparent);
  color: #fff; font-size: .9rem; opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease);
}
.masonry-item:hover .cap { opacity: 1; transform: none; }
.masonry-tile {
  display: grid; place-items: center; text-align: center;
  padding: 40px 24px; color: #fff; min-height: 200px;
}
.masonry-tile h3 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; direction: ltr; unicode-bidi: embed; }
.masonry-tile p { color: rgba(255,255,255,.8); margin: 0; font-size: .92rem; }

/* ---------- 20. News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.news-media { height: 170px; position: relative; overflow: hidden; }
.news-media .art { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.news-card:hover .news-media .art { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-date { color: var(--gold-deep); font-size: .85rem; font-weight: 500; margin-bottom: 8px; }
.news-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; flex: 1; }
.news-more { color: var(--burgundy); font-weight: 500; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap .3s var(--ease); }
.news-card:hover .news-more { gap: 10px; }

/* ---------- 21. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-s); color: var(--body);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-gold); color: var(--body); }
.contact-card .ic {
  width: 50px; height: 50px; border-radius: 2px; flex: none; display: grid; place-items: center;
  background: var(--tint-burgundy); color: var(--burgundy);
  transition: background .35s, color .35s, transform .5s var(--ease);
}
.contact-card:hover .ic { background: var(--burgundy); color: #fff; transform: rotate(-8deg); }
.contact-card b { color: var(--navy); display: block; font-size: 1rem; }
.contact-card span { color: var(--muted); font-size: .92rem; direction: ltr; unicode-bidi: embed; }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.social-btn {
  width: 52px; height: 52px; border-radius: 2px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--border); color: var(--navy);
  transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s;
}
.social-btn:hover { background: var(--burgundy); color: #fff; transform: translateY(-5px) rotate(-6deg); box-shadow: var(--shadow); }

/* ---------- 22. Footer (shared component, injected by site.js) ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 58px 0 26px; position: relative; overflow: hidden; }
.footer::before {
  content: ''; position: absolute; top: 0; inset-inline: 0; height: 3px;
  background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy-soft), var(--burgundy-deep));
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: clamp(30px, 5vw, 56px); align-items: flex-start;
}
.footer-brand { max-width: 320px; }
.footer-brand img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 300px; font-size: .93rem; line-height: 1.85; color: rgba(255,255,255,.55); margin-top: 14px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .01em; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { color: rgba(255,255,255,.6); font-size: .94rem; transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 52px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: center; text-align: center;
  font-size: .88rem; color: rgba(255,255,255,.5);
}

/* ---------- 23. Certificate page ---------- */
.page-hero {
  padding: calc(var(--header-h) + 70px) 0 64px;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tint-gold), #fff);
}
.page-eyebrow {
  display: block; color: var(--burgundy); font-weight: 500;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-bottom: 6px;
}
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 14px; }
.page-hero h1::after {
  content: ''; display: block; width: 56px; height: 3px; border-radius: 0px;
  margin: 18px auto 0; background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.page-hero p { max-width: 600px; margin-inline: auto; color: var(--muted); font-size: 1.3rem; line-height: 1.9; }

.cert-section { padding-top: 34px; }
.cert-layout { display: grid; grid-template-columns: 430px 1fr; gap: clamp(28px, 4vw, 50px); align-items: start; }
@media (max-width: 980px) { .cert-layout { grid-template-columns: 1fr; } }

/* The living form — its mood follows the choice */
.cert-form {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gold);
  position: sticky; top: calc(var(--header-h) + 24px);
  color: var(--navy);
  transition: border-color .8s, box-shadow .8s;
  min-width: 0; /* grid item may shrink; prevents any content-driven blow-out */
}
@media (max-width: 980px) { .cert-form { position: static; } }
.cert-form::before, .cert-form::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  transition: opacity .9s var(--ease);
}
.cert-form::before {
  background:
    radial-gradient(circle at 85% 10%, rgba(194,170,64,.22), transparent 50%),
    linear-gradient(165deg, #fcf8ec, #f4ecd3);
  opacity: 1;
}
/* Female theme — a very light blush derived from the burgundy brand color,
   soft and calm, with dark readable text (no saturated pink). */
.cert-form::after {
  background:
    radial-gradient(circle at 85% 8%, rgba(128,29,75,.05), transparent 58%),
    linear-gradient(168deg, #fefafc, #faf1f6);
  opacity: 0;
}
.cert-form.theme-female { border-color: rgba(128,29,75,.20); box-shadow: 0 24px 60px -18px rgba(128,29,75,.22); }
.cert-form.theme-female::before { opacity: 0; }
.cert-form.theme-female::after { opacity: 1; }
.cert-form > * { position: relative; z-index: 1; }
.cert-form h2 { font-size: 1.45rem; transition: color .7s; }
.cert-form .form-note { color: var(--muted); font-size: .93rem; margin-bottom: 26px; transition: color .7s; }
.theme-female h2 { color: var(--burgundy-deep); }
.theme-female .form-note { color: #927082; }

.field { margin-bottom: 24px; }
.field > label, .field-label {
  display: block; font-weight: 500; color: var(--navy); margin-bottom: 9px;
  transition: color .7s;
}
.theme-female .field > label, .theme-female .field-label { color: var(--burgundy-deep); }
.field input[type="text"] {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-s);
  border: 1.5px solid rgba(41,40,74,.15); background: rgba(255,255,255,.75);
  font-family: inherit; font-size: 1.05rem; color: var(--navy);
  transition: border-color .4s, box-shadow .4s, background .7s, color .7s;
}
.field input[type="text"]:focus {
  outline: none; border-color: var(--gold-deep); background: #fff;
  box-shadow: 0 0 0 4px rgba(194,170,64,.22);
}
.field input[type="text"]::placeholder { color: rgba(41,40,74,.35); transition: color .7s; }
.theme-female .field input[type="text"] {
  background: rgba(255,255,255,.85); border-color: rgba(128,29,75,.2); color: var(--navy);
}
.theme-female .field input[type="text"]::placeholder { color: rgba(128,29,75,.38); }
.theme-female .field input[type="text"]:focus {
  border-color: var(--burgundy); background: #fff;
  box-shadow: 0 0 0 4px rgba(128,29,75,.15);
}
.field .hint { color: var(--muted); font-size: .85rem; margin-top: 7px; display: block; transition: color .7s; }
.theme-female .field .hint { color: #a07c8b; }

.gender-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-switch input { position: absolute; opacity: 0; pointer-events: none; }
.gender-switch label {
  margin: 0; text-align: center; padding: 15px; border-radius: var(--radius-s);
  border: 1.5px solid rgba(41,40,74,.15); background: rgba(255,255,255,.6); cursor: pointer;
  font-weight: 500; color: var(--muted);
  transition: all .45s var(--ease);
}
.gender-switch input:checked + label {
  border-color: var(--gold-deep); background: #fff;
  color: var(--gold-deep); box-shadow: 0 8px 20px -8px rgba(194,170,64,.5);
  transform: translateY(-2px);
}
.theme-female .gender-switch label {
  background: rgba(255,255,255,.65); border-color: rgba(128,29,75,.18); color: #977282;
}
.theme-female .gender-switch input:checked + label {
  background: #fff; border-color: var(--burgundy); color: var(--burgundy);
  box-shadow: 0 8px 20px -8px rgba(128,29,75,.35);
}
.gender-switch input:focus-visible + label { box-shadow: 0 0 0 4px var(--focus-ring); }

.cert-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--navy-deep);
  box-shadow: 0 12px 30px -10px rgba(194,170,64,.6);
}
.cert-submit:hover { background: linear-gradient(135deg, #cdb54e, var(--gold)); color: var(--navy-deep); }
.theme-female .cert-submit {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-deep)); color: #fff;
  box-shadow: 0 12px 30px -10px rgba(128,29,75,.5);
}
.theme-female .cert-submit:hover { background: linear-gradient(135deg, var(--btn-primary-hover), var(--burgundy)); color: #fff; }

.cert-msg { border-radius: var(--radius-s); padding: 12px 18px; font-size: .95rem; margin-top: 16px; display: none; }
.cert-msg.error { display: block; background: #fdf0ec; color: #a03a25; border: 1px solid #f3d4c9; }
.cert-msg.success { display: block; background: #edf7f2; color: var(--success); border: 1px solid #cde8db; }
.theme-female .cert-msg.error { background: #fdf0ec; color: #a03a25; border-color: #f3d4c9; }
.theme-female .cert-msg.success { background: #edf7f2; color: var(--success); border-color: #cde8db; }

.cert-preview-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-l); padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow-s);
  min-width: 0; /* allow the grid item to shrink; never blow out to canvas width */
}
.cert-preview-wrap h3 {
  font-size: 1.05rem; color: var(--muted); font-weight: 500; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
/* Aspect-ratio box fully controls the preview size. The canvas bitmap stays
   3508×2481 (for print quality) but its *layout* box can never exceed the
   container width or reserve the intrinsic 2481px height. */
.cert-canvas-box {
  width: 100%; line-height: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
#certCanvas {
  display: block; width: 100%; height: auto; max-width: 100%;
}
/* Guide steps — sit ABOVE the form as a friendly walkthrough */
.cert-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(32px, 5vw, 52px);
}
.cert-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 30px) clamp(20px, 2.5vw, 26px); box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.cert-step:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--border-gold); }
.cert-step-ic {
  width: 54px; height: 54px; border-radius: 2px; flex: none;
  display: grid; place-items: center;
  background: var(--tint-burgundy); color: var(--burgundy);
  transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.cert-step:hover .cert-step-ic { background: var(--burgundy); color: #fff; transform: translateY(-2px); }
.cert-step-body h4 { margin-bottom: 5px; font-size: 1.05rem; }
.cert-step-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* ============================================================
   الوقف المعنوي — MOBILE, rebuilt from scratch (≤ 760px)
   Minimal & editorial. The whole page adopts a distinct
   character with the choice: deep Navy for «ذكر», soft
   Burgundy blush for «أنثى». Desktop (above) is untouched.
   Theme tokens live on <body class="theme-male|theme-female">.
   ============================================================ */
@media (max-width: 760px) {

  /* ---------- gender-reactive theme tokens ---------- */
  body.theme-male {
    --tone: #29284a; --tone-soft: #454468; --tone-deep: #1c1b35;
    --tone-tint: #eef0f7; --tone-line: #e3e4ef; --tone-ring: rgba(41,40,74,.18);
  }
  body.theme-female {
    --tone: #801d4b; --tone-soft: #a34a72; --tone-deep: #5e1437;
    --tone-tint: #fbeef4; --tone-line: #f1dfe9; --tone-ring: rgba(128,29,75,.16);
  }

  /* smooth recolor when the character switches */
  .page-hero, .page-eyebrow, .page-hero h1,
  .cert-steps, .cert-step-ic, .cert-step-body h4,
  .cert-form, .field input[type="text"], .gender-switch label,
  .cert-submit, .cert-preview-wrap, .cert-canvas-box {
    transition: background-color .55s var(--ease), color .55s var(--ease),
                border-color .55s var(--ease), box-shadow .55s var(--ease);
  }

  .cert-section { padding: 0 0 clamp(46px, 12vw, 66px); background: #fff; }

  /* ================= HERO — minimal, theme-tinted ================= */
  .page-hero {
    padding: calc(var(--header-h) + 46px) 0 46px;
    text-align: center;
    background: linear-gradient(180deg, var(--tone-tint) 0%, #fff 100%);
  }
  .page-eyebrow {
    color: var(--tone); font-size: .9rem; font-weight: 500;
    letter-spacing: .16em; margin-bottom: 10px;
  }
  .page-hero h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.8rem); color: var(--tone-deep);
    margin-bottom: 14px; line-height: 1.28;
  }
  .page-hero h1::after { width: 34px; height: 2px; margin: 16px auto 0; background: var(--tone); }
  .page-hero p { font-size: 1.18rem; line-height: 1.9; color: var(--muted); max-width: 34ch; margin-inline: auto; }

  /* ================= STEPS — minimal editorial list, floating over hero ================= */
  .cert-steps {
    display: block; margin: -26px 0 0; padding: 2px 22px;
    position: relative; z-index: 3;
    background: #fff; border: 1px solid var(--tone-line); border-radius: 0;
    box-shadow: 0 28px 56px -34px rgba(41,40,74,.42);
  }
  .cert-steps > .cert-step { opacity: 1 !important; transform: none !important; }
  .cert-step {
    display: flex; align-items: center; gap: 16px; text-align: start;
    flex-direction: row; background: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 20px 2px; border-bottom: 1px solid var(--tone-line);
  }
  .cert-step:last-child { border-bottom: 0; }
  .cert-step:hover { transform: none; box-shadow: none; border-color: var(--tone-line); }
  .cert-step-ic {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: none; border: 1.5px solid var(--tone); color: var(--tone);
  }
  .cert-step:hover .cert-step-ic { background: none; color: var(--tone); transform: none; }
  .cert-step-ic svg { width: 21px; height: 21px; }
  .cert-step-body h4 { color: var(--tone-deep); font-size: 1.04rem; margin-bottom: 2px; }
  .cert-step-body p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }

  /* ================= FORM — minimal white card, character top-bar ================= */
  .cert-layout { display: block; margin-top: 30px; }
  .cert-form {
    padding: 6px 22px 30px; margin: 0; overflow: visible;
    background: #fff; border: 1px solid var(--tone-line);
    border-top: 3px solid var(--tone); border-radius: 0;
    box-shadow: 0 28px 60px -36px rgba(41,40,74,.42);
  }
  .cert-form::before, .cert-form::after { display: none; }
  body.theme-male .cert-form, body.theme-female .cert-form { border-color: var(--tone-line); border-top-color: var(--tone); }
  body.theme-male .cert-form h2, body.theme-female .cert-form h2 { color: var(--tone-deep); font-size: 1.4rem; margin: 24px 0 6px; }
  body.theme-male .cert-form .form-note, body.theme-female .cert-form .form-note { color: var(--muted); font-size: .94rem; margin-bottom: 26px; }

  .field { margin-bottom: 22px; }
  .field:last-of-type { margin-bottom: 26px; }
  body.theme-male .field > label, body.theme-female .field > label,
  body.theme-male .field-label, body.theme-female .field-label {
    color: var(--tone-deep); font-size: 1rem; font-weight: 500; margin-bottom: 10px;
  }

  /* Gender switch — the character selector; selected chip fills with the tone */
  .gender-switch { gap: 12px; }
  body.theme-male .gender-switch label, body.theme-female .gender-switch label {
    padding: 16px; border-radius: 0; border: 1.5px solid var(--tone-line);
    background: #fff; color: var(--muted); font-size: 1.05rem; box-shadow: none; transform: none;
  }
  body.theme-male .gender-switch input:checked + label,
  body.theme-female .gender-switch input:checked + label {
    background: var(--tone); border-color: var(--tone); color: #fff; box-shadow: none; transform: none;
  }
  .gender-switch input:focus-visible + label { box-shadow: 0 0 0 3px var(--tone-ring); }

  /* Inputs — clean & minimal */
  body.theme-male .field input[type="text"], body.theme-female .field input[type="text"] {
    padding: 16px; font-size: 1.05rem; border-radius: 0;
    background: #fff; border: 1.5px solid var(--tone-line); color: var(--navy);
  }
  body.theme-male .field input[type="text"]::placeholder,
  body.theme-female .field input[type="text"]::placeholder { color: rgba(41,40,74,.34); }
  body.theme-male .field input[type="text"]:focus, body.theme-female .field input[type="text"]:focus {
    border-color: var(--tone); background: #fff; box-shadow: 0 0 0 3px var(--tone-ring);
  }
  body.theme-male .field .hint, body.theme-female .field .hint { color: var(--muted); font-size: .85rem; margin-top: 9px; }

  /* Primary action — full width, filled with the active character color */
  body.theme-male .cert-submit, body.theme-female .cert-submit {
    width: 100%; padding: 18px; font-size: 1.12rem; font-weight: 500;
    border-radius: 0; margin-top: 8px; letter-spacing: .01em;
    background: var(--tone); color: #fff; box-shadow: 0 18px 34px -16px var(--tone-ring);
  }
  body.theme-male .cert-submit:hover, body.theme-female .cert-submit:hover { background: var(--tone-deep); color: #fff; }
  .cert-msg { border-radius: 0; }

  /* ================= LIVE PREVIEW — below the form, full width ================= */
  .cert-preview-wrap {
    background: #fff; border: 1px solid var(--tone-line); border-radius: 0;
    padding: 18px; margin: 24px 0 0;
    box-shadow: 0 28px 60px -36px rgba(41,40,74,.42);
    opacity: 1 !important; transform: none !important;
  }
  .cert-preview-wrap h3 { color: var(--muted); font-size: 1rem; justify-content: center; margin-bottom: 14px; }
  .cert-canvas-box { border-radius: 0; box-shadow: 0 12px 28px -18px rgba(41,40,74,.34); }
}

/* ---------- 24. Utilities & a11y ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.num { direction: ltr; unicode-bidi: embed; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-r, .reveal-l, [data-stagger] > * { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
  .tl-mini .tl-year, .tl-end .tl-year, .tl-final { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
