/* =========================================================
   أكاديمية قيمي هويتي — Design System
   ========================================================= */
:root {
  --night: #03101a;
  --night-2: #061c2b;
  --deep: #0b2a3d;
  --teal: #22669a;
  --blue: #3f8fd1;
  --jade: #23a45f;
  --mint: #8fe3b4;
  --gold: #d6b26a;
  --gold-2: #f1d99b;
  --ink: #f5eedd;
  --ink-2: rgba(245, 238, 221, .72);
  --ink-3: rgba(245, 238, 221, .46);
  --line: rgba(241, 217, 155, .14);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --glass-line: rgba(255, 255, 255, .12);
  --parch: #f3ecdc;
  --parch-ink: #0c2030;

  --f-display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Alexandria', sans-serif;
  --f-quran: 'Amiri', 'Amiri Quran', serif;

  --r: 28px;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--f-body);
  background: var(--night);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .9s var(--ease), color .9s var(--ease);
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--night); }

.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Background layers ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }
.bg-aurora {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 35% at 80% 10%, rgba(35, 164, 95, .22), transparent 70%),
    radial-gradient(35% 30% at 10% 60%, rgba(214, 178, 106, .10), transparent 70%),
    radial-gradient(50% 40% at 50% 110%, rgba(34, 102, 154, .30), transparent 70%);
  filter: blur(20px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, -4%, 0) rotate(6deg) scale(1.05); } }
.bg-pattern {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f1d99b' stroke-width='1'%3E%3Cpath d='M60 10 L74 46 L110 60 L74 74 L60 110 L46 74 L10 60 L46 46Z'/%3E%3Crect x='32' y='32' width='56' height='56' transform='rotate(45 60 60)'/%3E%3Crect x='32' y='32' width='56' height='56'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(35, 164, 95, .16), transparent 65%);
  mix-blend-mode: screen;
}
main, footer { position: relative; z-index: 2; }
.progress {
  position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120;
  background: linear-gradient(90deg, var(--gold), var(--mint)); transform: scaleX(0); transform-origin: right;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__star { width: 120px; height: 120px; }
.loader__star path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 600; stroke-dashoffset: 600; }
.loader__brand { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: 0; }
.loader__count { font-family: var(--f-display); font-size: 13px; color: var(--ink-3); letter-spacing: .3em; }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(241, 217, 155, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(241, 217, 155, .5), transparent 35%, transparent 65%, rgba(143, 227, 180, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass-tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--gold);
  padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(214, 178, 106, .06);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.h-xl, .h-lg, .h-md { font-family: var(--f-display); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.h-xl { font-size: clamp(40px, 7.4vw, 112px); }
.h-lg { font-size: clamp(32px, 4.8vw, 72px); }
.h-md { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.35vw, 20px); color: var(--ink-2); max-width: 62ch; }
.gold-text {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, #b88a3e 60%, var(--gold-2));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .08em; margin-block: -.08em; }
.wi { display: inline-block; will-change: transform; }

.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(90px, 13vw, 180px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  padding: 16px 28px; border-radius: 99px; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(-5px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--night); box-shadow: 0 10px 40px -10px rgba(214, 178, 106, .6); }
.btn--gold::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .6), transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease);
}
.btn--gold:hover::before { transform: translateX(-120%); }
.btn--ghost { border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(12px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 16px; inset-inline: 0; z-index: 100;
  transition: transform .6s var(--ease);
}
.nav--hide { transform: translateY(-140%); }
.nav__bar {
  width: min(var(--max), 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 10px; border-radius: 99px;
  border: 1px solid transparent; transition: all .5s var(--ease);
}
.nav--solid .nav__bar, .nav.open .nav__bar {
  background: rgba(3, 16, 26, .6); border-color: var(--glass-line);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.nav__logo { display: flex; align-items: center; gap: 12px; padding-inline-start: 10px; }
.nav__logo img { height: 44px; width: auto; filter: brightness(0) invert(1) sepia(.3) saturate(2) hue-rotate(5deg); }
.nav__logo span { font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; }
.nav__logo small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.nav__links { display: flex; gap: 4px; list-style: none; }
.nav__links a {
  font-family: var(--f-display); font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 10px 16px; border-radius: 99px; transition: all .3s;
}
.nav__links a:hover { color: var(--ink); background: var(--glass-2); }
.nav__cta { display: flex; gap: 8px; align-items: center; }
.nav__cta .btn { padding: 12px 22px; font-size: 14px; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); place-items: center; }
.nav__burger i { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: .3s; }
.nav__burger i::before, .nav__burger i::after { content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: var(--ink); transition: .3s; }
.nav__burger i::before { top: -6px; } .nav__burger i::after { top: 6px; }
.nav.open .nav__burger i { background: transparent; }
.nav.open .nav__burger i::before { top: 0; transform: rotate(45deg); }
.nav.open .nav__burger i::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__content { display: grid; gap: 28px; justify-items: start; }
.hero__title { font-size: clamp(40px, 6.2vw, 96px); }
.hero__ayah {
  font-family: var(--f-quran); font-size: clamp(20px, 2vw, 28px); color: var(--gold-2); line-height: 1.9;
  padding-inline-start: 20px; border-inline-start: 2px solid var(--gold);
}
.hero__ayah small { font-family: var(--f-body); font-size: 13px; color: var(--ink-3); display: block; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.hero__rosette { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.hero__rosette--2 { inset: 12%; animation-duration: 55s; animation-direction: reverse; opacity: .7; }
@keyframes spin { to { rotate: 360deg; } }
.hero__core {
  position: absolute; inset: 24%; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(143, 227, 180, .25), rgba(3, 16, 26, .9) 70%);
  border: 1px solid var(--line);
  box-shadow: 0 0 120px rgba(35, 164, 95, .35), inset 0 0 60px rgba(214, 178, 106, .15);
}
.hero__core img { width: 78%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 20px; font-family: var(--f-display); font-size: 13px; white-space: nowrap;
}
.hero__chip b { display: block; font-size: 22px; font-weight: 800; color: var(--gold-2); line-height: 1.1; }
.hero__chip .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(214, 178, 106, .15); color: var(--gold); flex: none; }
.hero__chip .ico svg { width: 22px; height: 22px; }
.hero__chip--1 { top: 6%; inset-inline-start: -6%; }
.hero__chip--2 { bottom: 14%; inset-inline-end: -8%; }
.hero__chip--3 { bottom: -2%; inset-inline-start: 8%; }
.scroll-hint { position: absolute; bottom: 28px; inset-inline-start: 50%; translate: 50% 0; display: grid; justify-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); font-family: var(--f-display); letter-spacing: .2em; }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 26px; border-block: 1px solid var(--line); background: rgba(3, 16, 26, .5); }
.marquee__inner { display: flex; width: max-content; gap: 0; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-inline: 18px; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3vw, 44px); white-space: nowrap; color: var(--ink-3); }
.marquee__item:nth-child(3n+1) { color: var(--ink); }
.marquee__item svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.marquee--logos .marquee__item { font-size: 18px; font-weight: 500; color: var(--ink-2); gap: 18px; }
.marquee--logos .marquee__item img { height: 56px; width: 56px; object-fit: contain; border-radius: 14px; background: #fff; padding: 6px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.about__media { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; }
.about__media img { width: 100%; height: 125%; object-fit: cover; }
.about__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 16, 26, .85), transparent 55%); }
.about__badge { position: absolute; bottom: 22px; inset-inline: 22px; z-index: 2; padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.about__badge img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.about__badge b { font-family: var(--f-display); display: block; }
.about__badge span { font-size: 13px; color: var(--ink-3); }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.mini { padding: 24px; display: grid; gap: 10px; }
.mini h4 { font-family: var(--f-display); font-size: 18px; }
.mini p { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.mini .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(214, 178, 106, .25), rgba(214, 178, 106, .05)); color: var(--gold-2); }
.mini .ico svg { width: 22px; height: 22px; }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: clamp(80px, 12vw, 160px); }
.manifesto__text { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 54px); line-height: 1.6; text-align: center; max-width: 40ch; margin-inline: auto; }
.mw { opacity: .14; transition: none; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 34px 28px; display: grid; gap: 6px; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; }
.stat b sup { font-size: .45em; color: var(--gold); vertical-align: top; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* ---------- Horizontal programs ---------- */
.hscroll { height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: 110px; padding-bottom: 36px; overflow: hidden; }
.hscroll__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.hscroll__counter { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--ink-3); }
.hscroll__counter .hscroll__num { color: var(--gold-2); font-size: 56px; }
.hscroll__viewport { display: flex; align-items: center; perspective: 1400px; }
.hscroll__track { display: flex; gap: 28px; padding-inline: var(--gutter); will-change: transform; }
.pcard { flex: none; width: clamp(300px, 30vw, 440px); height: min(58vh, 560px); display: grid; grid-template-rows: 55% 1fr; transform-style: preserve-3d; }
.pcard__img { position: relative; overflow: hidden; background: var(--deep); }
.pcard__img img { position: absolute; inset: 0 -15%; width: 130%; height: 100%; object-fit: cover; }
.pcard__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 28, 43, .95), transparent 60%); }
.pcard__tag { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; font-family: var(--f-display); font-size: 12px; padding: 6px 14px; border-radius: 99px; background: rgba(3, 16, 26, .6); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); color: var(--gold-2); }
.pcard__n { position: absolute; bottom: -8px; inset-inline-end: 18px; z-index: 2; font-family: var(--f-display); font-weight: 900; font-size: 90px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(241, 217, 155, .45); }
.pcard__body { padding: 24px 26px 26px; display: grid; align-content: space-between; gap: 12px; }
.pcard__body h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.45; }
.pcard__body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; }
.pcard__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-family: var(--f-display); padding: 5px 12px; border-radius: 99px; border: 1px solid var(--glass-line); color: var(--ink-2); }
.hscroll__bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 20px; }
.hscroll__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--mint)); transform: scaleX(0); transform-origin: right; }

/* ---------- Values wheel ---------- */
.wheel { height: 100svh; display: grid; align-items: center; overflow: hidden; }
.wheel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.wheel__visual { position: relative; aspect-ratio: 1; max-width: 600px; width: 100%; justify-self: center; }
.wheel__ring { position: absolute; inset: 0; }
.wheel__disc { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 10px rgba(214, 178, 106, .15), 0 0 140px rgba(35, 164, 95, .4); }
.wheel__disc img { width: 100%; height: 100%; object-fit: contain; }
.wheel__pointer { position: absolute; top: 4%; left: 50%; translate: -50% 0; width: 0; height: 0; border: 14px solid transparent; border-top: 22px solid var(--gold); filter: drop-shadow(0 0 10px var(--gold)); z-index: 3; }
.wheel__texts { position: relative; min-height: 340px; }
.wheel__item { position: absolute; inset: 0; display: grid; align-content: center; gap: 18px; }
.wheel__item:not(:first-child) { opacity: 0; }
.wheel__item .k { font-family: var(--f-display); color: var(--gold); font-size: 14px; letter-spacing: .1em; }
.wheel__item h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.3; }
.wheel__item p { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.wheel__dots { display: flex; gap: 8px; margin-top: 30px; }
.wheel__dot { width: 28px; height: 4px; border-radius: 4px; background: var(--line); transition: all .5s var(--ease); }
.wheel__dot.on { width: 56px; background: var(--gold); }

/* ---------- Stacked learning path ---------- */
.stack { display: grid; gap: 0; }
.stack__card {
  position: sticky; top: calc(110px + var(--i) * 22px);
  min-height: 62vh; margin-bottom: 8vh; padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; transform-origin: top center;
  background: linear-gradient(145deg, rgba(11, 42, 61, .92), rgba(3, 16, 26, .92));
}
.stack__card:last-child { margin-bottom: 0; }
.stack__step { font-family: var(--f-display); font-weight: 900; font-size: clamp(70px, 9vw, 140px); line-height: .9; color: transparent; -webkit-text-stroke: 1.2px var(--gold); opacity: .8; }
.stack__card h3 { font-family: var(--f-display); font-size: clamp(26px, 3vw, 44px); font-weight: 800; margin-block: 16px 14px; }
.stack__card p { color: var(--ink-2); font-size: 17px; }
.stack__list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.stack__list li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.stack__list li::before { content: ''; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(214, 178, 106, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b26a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.stack__media { position: relative; aspect-ratio: 1.1; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); background: var(--deep); }
.stack__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Platform mockup ---------- */
.platform { height: 100svh; display: grid; align-content: center; justify-items: center; gap: 34px; overflow: hidden; perspective: 1600px; padding-top: 80px; }
.platform__head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.platform__stage { position: relative; width: min(1100px, 92vw); }
.platform__screen { transform-origin: center bottom; border-radius: 22px; padding: 12px; }
.platform__chrome { display: flex; gap: 6px; padding: 4px 8px 12px; }
.platform__chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.app { display: grid; grid-template-columns: 210px 1fr; gap: 12px; height: min(56vh, 540px); }
.app__side { border-radius: 14px; background: rgba(3, 16, 26, .6); padding: 16px 12px; display: grid; align-content: start; gap: 4px; }
.app__side .brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 13px; margin-bottom: 14px; padding-inline: 8px; }
.app__side .brand img { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.app__side a { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); }
.app__side a.on { background: rgba(214, 178, 106, .14); color: var(--gold-2); }
.app__side svg { width: 16px; height: 16px; }
.app__main { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.app__top { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; }
.app__top h5 { font-family: var(--f-display); font-size: 17px; }
.app__top span { font-size: 12px; color: var(--ink-3); }
.app__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--jade)); }
.app__body { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; min-height: 0; }
.app__player { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.app__player img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.app__player .play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 178, 106, .9); color: var(--night); box-shadow: 0 0 0 12px rgba(214, 178, 106, .2); }
.app__player .play svg { width: 26px; height: 26px; margin-inline-start: -3px; }
.app__player .cap { position: absolute; bottom: 0; inset-inline: 0; padding: 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-size: 13px; }
.app__player .cap b { font-family: var(--f-display); display: block; font-size: 15px; }
.app__player .bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin-top: 10px; overflow: hidden; }
.app__player .bar i { display: block; width: 38%; height: 100%; background: var(--gold); }
.app__panel { display: grid; gap: 10px; align-content: start; min-height: 0; overflow: hidden; }
.app__card { border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); padding: 14px; }
.app__card h6 { font-family: var(--f-display); font-size: 13px; margin-bottom: 10px; }
.lesson { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--ink-2); }
.lesson:last-child { border: 0; }
.lesson.done::before { content: '✓'; color: var(--jade); margin-inline-end: 8px; }
.lesson.now { color: var(--gold-2); }
.ring { display: flex; align-items: center; gap: 14px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring b { font-family: var(--f-display); font-size: 22px; }
.ring span { font-size: 12px; color: var(--ink-3); display: block; }
.platform__float { position: absolute; padding: 14px 18px; border-radius: 18px; display: flex; gap: 12px; align-items: center; font-size: 13px; z-index: 3; }
.platform__float b { font-family: var(--f-display); display: block; font-size: 14px; }
.platform__float span { color: var(--ink-3); font-size: 12px; }
.platform__float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(35, 164, 95, .2); color: var(--mint); flex: none; }
.platform__float .ico svg { width: 20px; height: 20px; }
.platform__float--1 { top: 12%; inset-inline-end: -5%; }
.platform__float--2 { bottom: 16%; inset-inline-start: -6%; }
.platform__float--3 { bottom: -6%; inset-inline-end: 10%; }

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { padding: 30px; display: grid; gap: 12px; align-content: start; min-height: 230px; }
.bento .b-4 { grid-column: span 4; } .bento .b-2 { grid-column: span 2; } .bento .b-3 { grid-column: span 3; }
.bento h4 { font-family: var(--f-display); font-size: 21px; font-weight: 700; }
.bento p { color: var(--ink-2); font-size: 15px; }
.bento .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(35, 164, 95, .35), rgba(35, 164, 95, .05)); color: var(--mint); }
.bento .ico svg { width: 26px; height: 26px; }
.bento__langs { display: flex; gap: 8px; margin-top: auto; }
.bento__cert { position: relative; margin-top: 8px; border-radius: 16px; padding: 22px; border: 1px dashed rgba(214, 178, 106, .4); background: rgba(214, 178, 106, .05); text-align: center; font-family: var(--f-display); }
.bento__cert b { display: block; color: var(--gold-2); font-size: 18px; }
.bento__cert span { font-size: 12px; color: var(--ink-3); }

/* ---------- Courses grid ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tabs__btn { font-family: var(--f-display); font-size: 14px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--glass-line); color: var(--ink-2); transition: all .3s; }
.tabs__btn.on, .tabs__btn:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ccard { display: grid; grid-template-rows: 210px 1fr; }
.ccard__img { position: relative; overflow: hidden; background: var(--deep); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ccard:hover .ccard__img img { transform: scale(1.08); }
.ccard__body { padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start; }
.ccard__body h4 { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.5; }
.ccard__body p { font-size: 14px; color: var(--ink-2); }
.ccard__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--glass-line); margin-top: auto; font-size: 13px; color: var(--ink-3); }
.ccard__foot a { color: var(--gold-2); font-family: var(--f-display); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Scholars wall ---------- */
.scholars { overflow: hidden; }
.scholars__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.scholars__wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 110vh; max-height: 900px; overflow: hidden; mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent); }
.scholars__col { display: grid; gap: 14px; align-content: start; }
.scholars__col figure { aspect-ratio: 87/83; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--glass-line); filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.scholars__col figure:hover { filter: none; }
.scholars__col img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.partner { padding: 22px 14px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.partner img { width: 84px; height: 84px; object-fit: contain; border-radius: 50%; background: #fff; padding: 6px; }
.partner span { font-family: var(--f-display); font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.client { padding: 20px; display: grid; gap: 14px; }
.client h5 { font-family: var(--f-display); font-size: 15px; color: var(--gold-2); }
.client img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; }

/* ---------- Light (parchment) sections ---------- */
:root:not([data-theme="light"]) body.light { background: var(--parch); color: var(--parch-ink); }
:root:not([data-theme="light"]) body.light .lead, :root:not([data-theme="light"]) body.light .ccard__body p, :root:not([data-theme="light"]) body.light .faq__a p { color: rgba(12, 32, 48, .72); }
:root:not([data-theme="light"]) body.light .glass { background: linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .35)); border-color: rgba(12, 32, 48, .08); box-shadow: 0 30px 60px -30px rgba(12, 32, 48, .25); }
:root:not([data-theme="light"]) body.light .eyebrow { color: #9a7228; border-color: rgba(154, 114, 40, .25); }
:root:not([data-theme="light"]) body.light .gold-text { background-image: linear-gradient(100deg, #b88a3e, #7a5a1c 50%, #b88a3e); }
:root:not([data-theme="light"]) body.light .tabs__btn { color: var(--parch-ink); border-color: rgba(12, 32, 48, .15); }
:root:not([data-theme="light"]) body.light .tabs__btn.on { color: var(--night); }
:root:not([data-theme="light"]) body.light .ccard__foot { border-color: rgba(12, 32, 48, .1); color: rgba(12, 32, 48, .55); }
:root:not([data-theme="light"]) body.light .ccard__foot a { color: #22669a; }
:root:not([data-theme="light"]) body.light .faq__item { border-color: rgba(12, 32, 48, .12); }
:root:not([data-theme="light"]) body.light .pill { color: rgba(12, 32, 48, .7); border-color: rgba(12, 32, 48, .15); }
:root:not([data-theme="light"]) body.light .bg-pattern, :root:not([data-theme="light"]) body.light #bg-canvas { opacity: .02; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: start; font-family: var(--f-display); font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.faq__q i { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid currentColor; position: relative; opacity: .6; transition: transform .5s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; inset: 0; margin: auto; width: 12px; height: 1.5px; background: currentColor; }
.faq__q i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.faq__item.open .faq__q i { transform: rotate(180deg); }
.faq__item.open .faq__q i::after { transform: rotate(0); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding-bottom: 24px; color: var(--ink-2); max-width: 60ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 80px); display: grid; justify-items: center; gap: 26px; overflow: hidden; }
.cta__star { position: absolute; width: 700px; height: 700px; top: 50%; left: 50%; translate: -50% -50%; opacity: .12; animation: spin 90s linear infinite; pointer-events: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.contact__info { padding: 36px; display: grid; gap: 22px; align-content: start; }
.contact__row { display: flex; gap: 16px; align-items: flex-start; }
.contact__row .ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(214, 178, 106, .12); color: var(--gold); }
.contact__row .ico svg { width: 20px; height: 20px; }
.contact__row b { font-family: var(--f-display); display: block; font-size: 15px; margin-bottom: 2px; }
.contact__row span, .contact__row a { color: var(--ink-2); font-size: 14.5px; direction: ltr; unicode-bidi: plaintext; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--glass-line); transition: all .35s var(--ease); }
.socials a:hover { background: var(--gold); color: var(--night); transform: translateY(-4px); }
.socials svg { width: 20px; height: 20px; }
.contact__form { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__form h3 { grid-column: 1/-1; font-family: var(--f-display); font-size: 26px; margin-bottom: 6px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1/-1; }
.field label { font-size: 13px; color: var(--ink-3); font-family: var(--f-display); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: rgba(3, 16, 26, .5); border: 1px solid var(--glass-line);
  border-radius: 14px; padding: 14px 16px; outline: none; transition: border-color .3s, box-shadow .3s;
}
.field select option { background: var(--night); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 178, 106, .12); }
.contact__form .btn { grid-column: 1/-1; justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding-top: 90px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 70px; width: auto; filter: brightness(0) invert(1) sepia(.3) saturate(2) hue-rotate(5deg); margin-bottom: 18px; }
.footer__brand p { color: var(--ink-3); font-size: 14px; max-width: 38ch; }
.footer h6 { font-family: var(--f-display); font-size: 15px; margin-bottom: 18px; color: var(--gold-2); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14px; transition: color .3s; }
.footer ul a:hover { color: var(--gold-2); }
.footer__big { font-family: var(--f-display); font-weight: 900; font-size: clamp(60px, 16vw, 260px); line-height: 1; text-align: center; margin-top: 60px; color: transparent; -webkit-text-stroke: 1px rgba(241, 217, 155, .22); white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav.open .nav__links { display: grid; position: absolute; top: calc(100% + 10px); inset-inline: 16px; padding: 14px; border-radius: 24px; background: rgba(3, 16, 26, .92); backdrop-filter: blur(20px); border: 1px solid var(--glass-line); }
  .courses { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .hero__grid, .about__grid, .wheel__grid, .scholars__grid, .faq, .contact, .stack__card { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .hero__visual { max-width: 380px; order: -1; }
  .hero__chip--1 { inset-inline-start: 0; } .hero__chip--2 { inset-inline-end: 0; }
  .hero__chip--3 { display: none; }
  .scroll-hint { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hscroll, .wheel, .platform { height: auto; padding-block: 100px; }
  .hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 30px; padding-bottom: 10px; }
  .hscroll__track { padding-inline: 16px; }
  .pcard { width: 82vw; height: auto; min-height: 480px; scroll-snap-align: center; }
  .hscroll__bar, .hscroll__counter { display: none; }
  .wheel__visual { max-width: 340px; }
  .wheel__texts { min-height: 0; display: grid; gap: 34px; }
  .wheel__item { position: static; opacity: 1 !important; }
  .wheel__dots { display: none; }
  .stack__card { top: 90px; min-height: 0; }
  .stack__media { aspect-ratio: 16/10; }
  .app { grid-template-columns: 1fr; height: auto; }
  .app__side { display: none; }
  .app__body { grid-template-columns: 1fr; }
  .app__player { aspect-ratio: 16/9; }
  .platform__float { position: static; margin-top: 10px; }
  .platform__stage { display: grid; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; min-height: 0; }
  .scholars__wall { height: 70vh; grid-template-columns: repeat(3, 1fr); }
  .scholars__col:nth-child(4) { display: none; }
  .clients { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; padding: 24px; }
  .contact__info { padding: 24px; }
  .about__cards { grid-template-columns: 1fr; }
  .cursor-glow { display: none; }
}
@media (max-width: 600px) {
  .courses { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
  .nav__logo span { display: none; }
  .hero__chip { padding: 10px 12px; font-size: 11px; }
  .hero__chip b { font-size: 17px; }
  .hero__chip .ico { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mw { opacity: 1; }
  .wheel__item { opacity: 1 !important; position: static; }
}

/* =========================================================
   Hero portrait composition
   ========================================================= */
.hero__emblem { position: absolute; inset: 10%; width: 80%; opacity: .22; animation: spin 120s linear infinite reverse; filter: drop-shadow(0 0 30px rgba(214, 178, 106, .4)); }
.hero__halo { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(63, 143, 209, .45), rgba(35, 164, 95, .18) 45%, transparent 70%); filter: blur(10px); }
.hero__founder {
  position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 94%; width: auto; max-width: none;
  object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to top, transparent 0, #000 22%);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) saturate(1.05);
}
.hero__visual::after { content: ''; position: absolute; inset-inline: 10%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }
.hero__chip { z-index: 3; }

/* =========================================================
   3D book ring
   ========================================================= */
.ring3d { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding-top: 110px; padding-bottom: 40px; overflow: hidden; }
.ring3d__head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.ring3d__head .lead { margin-inline: auto; }
.ring3d__stage { position: relative; width: 100%; display: grid; place-items: center; perspective: 1800px; perspective-origin: 50% 30%; min-height: 440px; }
.ring3d__spin { position: relative; width: 240px; height: 300px; transform-style: preserve-3d; }
.ring3d__card {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  transform: rotateY(calc(var(--i) * 45deg)) translateZ(clamp(300px, 30vw, 420px));
  border: 1px solid rgba(241, 217, 155, .35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .03);
  -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(255, 255, 255, .18));
  transition: filter .5s;
}
.ring3d__card img { width: 100%; height: 100%; object-fit: cover; }
.ring3d__floor { position: absolute; bottom: 4%; width: min(900px, 90%); height: 120px; border-radius: 50%; background: radial-gradient(ellipse, rgba(214, 178, 106, .22), transparent 70%); filter: blur(10px); }
.ring3d__label { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); z-index: 2; }
.ring3d__idx { color: var(--gold); font-size: 18px; }
.ring3d__name { font-size: clamp(24px, 3vw, 40px); font-weight: 800; }

/* =========================================================
   Social feed
   ========================================================= */
.social__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.social__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.sstat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 22px; border-radius: 20px; }
.sstat svg { width: 26px; height: 26px; grid-row: span 2; color: var(--gold); }
.sstat b { font-family: var(--f-display); font-size: 20px; line-height: 1.2; direction: ltr; text-align: end; }
.sstat span { font-size: 12.5px; color: var(--ink-3); }
.feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.feed__col { display: grid; gap: 16px; }
.feed__col:nth-child(even) { margin-top: 70px; }
.post { position: relative; display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); aspect-ratio: 4/5; background: var(--deep); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.post::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 16, 26, .55), transparent 40%); opacity: 0; transition: opacity .5s; }
.post:hover img { transform: scale(1.07); }
.post:hover::after { opacity: 1; }
.post__src { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 16, 26, .55); backdrop-filter: blur(10px); border: 1px solid var(--glass-line); color: #fff; }
.post__src svg { width: 18px; height: 18px; }

@media (max-width: 899px) {
  .ring3d { min-height: 0; padding-block: 90px 60px; }
  .ring3d__stage { min-height: 0; perspective: none; overflow-x: auto; scroll-snap-type: x mandatory; place-items: start; margin-block: 30px 10px; }
  .ring3d__spin { width: auto; height: auto; display: flex; gap: 14px; padding-inline: 16px; transform: none !important; }
  .ring3d__card { position: relative; flex: none; width: 70vw; aspect-ratio: 4/5; transform: none; -webkit-box-reflect: unset; scroll-snap-align: center; }
  .ring3d__floor, .ring3d__label { display: none; }
  .feed { grid-template-columns: 1fr 1fr; }
  .feed__col:nth-child(even) { margin-top: 40px; }
  .hero__founder { height: 92%; }
}
.gold-text .wi, .gold-text .w { background: inherit; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: inherit; }

/* ---------- Fixes after QA pass 1 ---------- */
.hscroll, .ring3d, .platform, .wheel { grid-template-columns: minmax(0, 1fr); }
.hscroll__viewport { min-width: 0; }
.sec-head > .eyebrow, .ring3d__head > .eyebrow, .platform__head > .eyebrow, .cta > .eyebrow { justify-self: start; }
.sec-head--center > .eyebrow, .ring3d__head > .eyebrow, .platform__head > .eyebrow, .cta > .eyebrow { justify-self: center; }
.stat > span { color: var(--ink-2); font-size: 15px; }
.stat b span { font-size: inherit; color: inherit; }
.social__head { position: relative; z-index: 3; margin-bottom: 80px; }
.feed { position: relative; z-index: 1; }
.ring3d__stage { min-height: 480px; margin-bottom: 10px; }
.ring3d__spin { top: -30px; }
.ring3d__label { padding: 12px 26px; border-radius: 99px; background: rgba(3, 16, 26, .6); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); }
.wheel__disc img { filter: saturate(.85) hue-rotate(-8deg); }

/* =========================================================
   Critic pass — fixes
   ========================================================= */
/* 1. Arabic diacritics / dots must never be clipped */
.h-xl, .h-lg { line-height: 1.42; }
.hero__title { line-height: 1.32; }
.w { padding-block: .22em .38em; margin-block: -.22em -.38em; overflow: clip; overflow-clip-margin: .15em; }
.gold-text { padding-bottom: .12em; }
.saw { font-family: var(--f-quran); font-size: 1.05em; }

/* 2. Wheel — custom SVG, text always upright */
.wheel__disc { display: none; }
.wheel__svg { position: absolute; inset: 7%; width: 86%; height: 86%; overflow: visible; }
.wseg path { fill: rgba(255, 255, 255, .04); stroke: rgba(241, 217, 155, .35); stroke-width: 1; transition: fill .6s var(--ease), stroke .6s; }
.wseg text { text-anchor: middle; font-family: var(--f-display); fill: var(--ink-2); transition: fill .6s; }
.wseg__n { font-size: 20px; font-weight: 800; fill: var(--gold) !important; }
.wseg__t { font-size: 12.5px; font-weight: 600; }
.wseg.on path { fill: url(#wg); stroke: var(--gold-2); filter: drop-shadow(0 0 18px rgba(214, 178, 106, .55)); }
.wseg.on text { fill: var(--night) !important; }
.wheel__emblem { position: absolute; inset: 0; margin: auto; width: 34%; opacity: .9; animation: spin 60s linear infinite; filter: drop-shadow(0 0 20px rgba(214, 178, 106, .45)); }
.wheel__pointer { top: 4%; left: 50%; translate: -50% 0; }

/* 4. Nav on light sections */
:root:not([data-theme="light"]) body.light .nav--solid .nav__bar { background: rgba(243, 236, 220, .78); border-color: rgba(12, 32, 48, .1); }
:root:not([data-theme="light"]) body.light .nav__links a { color: rgba(12, 32, 48, .75); }
:root:not([data-theme="light"]) body.light .nav__links a:hover { color: var(--parch-ink); background: rgba(12, 32, 48, .06); }
:root:not([data-theme="light"]) body.light .nav__logo img, :root:not([data-theme="light"]) body.light .nav__burger { filter: invert(1) brightness(.35) sepia(.4) hue-rotate(160deg); }
:root:not([data-theme="light"]) body.light .btn--ghost { color: var(--parch-ink); border-color: rgba(12, 32, 48, .2); background: rgba(255, 255, 255, .4); }
:root:not([data-theme="light"]) body.light .btn--ghost:hover { color: #9a7228; border-color: #9a7228; }

/* 5. Contact form balance */
.contact__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field input, .field textarea, .field select { width: 100%; min-width: 0; }

/* 8. Tighter rhythm */
.pad { padding-block: clamp(80px, 9vw, 130px); }
.manifesto { padding-block: clamp(70px, 9vw, 120px); }

/* stacked cards: opaque so earlier headings don't bleed through */
.stack__card { background: linear-gradient(145deg, #0b2a3d, #041420); backdrop-filter: none; -webkit-backdrop-filter: none; }
.stack__media img { object-position: center 20%; }
.stack__step { font-size: clamp(80px, 9vw, 140px); -webkit-text-stroke: 1.5px var(--gold); }

/* buttons & tabs distinct hover states */
.tabs__btn:hover:not(.on) { background: rgba(214, 178, 106, .12); color: inherit; border-color: var(--gold); }
.btn--gold:hover { box-shadow: 0 16px 50px -10px rgba(214, 178, 106, .85); }

/* platform mockup polish */
.app__side .brand { white-space: nowrap; }
.platform__float--1 { top: 8%; inset-inline-end: -4%; }
.platform__float--3 { bottom: auto; top: -4%; inset-inline-end: auto; inset-inline-start: 6%; }
.app__player img { object-position: center 30%; opacity: .85; }

/* focus visibility */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* bento media strip */
.bento__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: auto; padding-top: 10px; }
.bento__strip img { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--glass-line); }

/* scholars: consistent framed tiles */
.scholars__col figure { background: #f3ecdc; padding: 6px; }
.scholars__col img { border-radius: 14px; }

.swipe-hint { display: none; }

@media (max-width: 899px) {
  .hero { padding-top: 100px; }
  .hero__grid { gap: 20px; }
  .hero__visual { order: 2; max-width: 300px; }
  .hero__title { font-size: clamp(42px, 12vw, 60px); }
  .swipe-hint { display: block; text-align: center; margin-top: 16px; font-family: var(--f-display); font-size: 13px; color: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
  .wseg path { fill: rgba(214, 178, 106, .12); }
  .wheel__visual { max-width: 330px; }
  .platform__float--3 { position: static; }
  .contact__form { grid-template-columns: minmax(0, 1fr); }
  .bento__strip { grid-template-columns: repeat(4, 1fr); }
}
@keyframes nudge { 50% { transform: translateX(-8px); } }
.gold-text { padding-block: .2em .45em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gold-text .w { padding-bottom: .5em; }

/* =========================================================
   Critic round 2
   ========================================================= */
.platform__float--1 { top: 38%; inset-inline-end: -5%; }
.platform__float--3 { top: auto; bottom: -5%; inset-inline-start: auto; inset-inline-end: 8%; }
.app__player img { object-position: center 18%; }
.ring3d__stage { min-height: 420px; }
.ring3d__spin { top: 10px; }
.hscroll__counter { display: flex; align-items: baseline; gap: 8px; }
.hscroll__counter .hscroll__num { font-size: 56px; }
.hscroll__counter { font-size: 34px; }
#method .h-md { line-height: 1.55; }
.clients { margin-bottom: 0; }
#faq.pad { padding-top: clamp(40px, 5vw, 70px); }
.social.pad { padding-top: clamp(50px, 6vw, 90px); }

/* scholars: round portraits with gold ring, on dark */
.scholars__col figure { position: relative; background: none; border: 0; padding: 0; aspect-ratio: 446/473; filter: grayscale(1) contrast(1.05) brightness(.95); overflow: visible; }
.scholars__col img { border-radius: 0; clip-path: circle(38.5% at 50% 40%); transition: transform .8s var(--ease); }
.scholars__col figure::after { content: ''; position: absolute; left: 50%; top: 40%; width: 79%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(241, 217, 155, .45); box-shadow: 0 0 0 6px rgba(241, 217, 155, .06); pointer-events: none; }
.scholars__col figcaption { position: absolute; bottom: 2%; inset-inline: 0; text-align: center; font-family: var(--f-display); font-size: 12.5px; color: var(--ink-2); }
.scholars__col figure:hover img { transform: scale(1.04); }

/* Critic round 3 */
.platform__float--1 { top: auto; bottom: 22%; inset-inline-end: -7%; }
.platform__float--3 { bottom: 2%; }
.app { height: min(52vh, 500px); }
.ring3d__card img { object-position: center top; }
.clients { margin-bottom: clamp(10px, 2vw, 30px); }
@media (min-width: 900px) {
  .platform__stage { width: min(960px, 78vw); }
  .platform__float { max-width: 230px; }
  .platform__float--1 { top: 18%; bottom: auto; inset-inline-end: calc((100% - 100vw) / 2 + 20px); }
  .platform__float--3 { top: auto; bottom: 12%; inset-inline-end: calc((100% - 100vw) / 2 + 20px); }
  .platform__float--2 { top: 40%; bottom: auto; inset-inline-start: calc((100% - 100vw) / 2 + 20px); }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .platform__stage { width: 70vw; }
  .platform__float { max-width: 178px; padding: 10px 12px; gap: 10px; }
  .platform__float .ico { width: 32px; height: 32px; }
  .platform__float b { font-size: 12.5px; }
  .platform__float span { font-size: 11px; }
  .platform__float--1, .platform__float--3 { inset-inline-end: calc((100% - 100vw) / 2 + 10px); }
  .platform__float--2 { inset-inline-start: calc((100% - 100vw) / 2 + 10px); }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .platform__float--2, .platform__float--3 { display: none; }
  .platform__float--1 { top: -6%; }
}
.platform__float b.langs { white-space: nowrap; font-size: 13px; }
.platform__float b.langs bdi { unicode-bidi: isolate; }
/* header: breathing room from the browser edge */
.nav { top: 18px; }
.nav__bar { transition: background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s; }
@media (max-width: 600px) { .nav { top: 12px; } }

/* =========================================================
   PERFORMANCE PASS — same look, far cheaper to render
   ========================================================= */
/* 1. Full-screen blend layers are the #1 cost: no blend modes, no animated blur */
.grain { mix-blend-mode: normal; opacity: .035; }
.cursor-glow { mix-blend-mode: normal; will-change: transform; }
.bg-aurora { filter: none; will-change: transform; animation-duration: 30s; }
.bg-pattern { mask-image: none; -webkit-mask-image: none; background-image: none; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f1d99b' stroke-width='1'%3E%3Cpath d='M60 10 L74 46 L110 60 L74 74 L60 110 L46 74 L10 60 L46 46Z'/%3E%3Crect x='32' y='32' width='56' height='56' transform='rotate(45 60 60)'/%3E%3Crect x='32' y='32' width='56' height='56'/%3E%3C/g%3E%3C/svg%3E");
  background-image: radial-gradient(ellipse at center, transparent 0, var(--night) 75%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23f1d99b' stroke-width='1'%3E%3Cpath d='M60 10 L74 46 L110 60 L74 74 L60 110 L46 74 L10 60 L46 46Z'/%3E%3Crect x='32' y='32' width='56' height='56' transform='rotate(45 60 60)'/%3E%3Crect x='32' y='32' width='56' height='56'/%3E%3C/g%3E%3C/svg%3E");
}
:root:not([data-theme="light"]) body.light::before { opacity: .02; }

/* 2. Backdrop blur only where something moves behind it; cards get a tuned solid glass instead */
.glass {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(145deg, rgba(20, 52, 72, .62), rgba(8, 26, 40, .55));
}
:root:not([data-theme="light"]) body.light .glass { background: linear-gradient(145deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6)); }
.hero__chip, .about__badge, .platform__float, .ring3d__label {
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* 3. Promote continuously animated layers to the compositor */
.hero__rosette, .hero__emblem, .wheel__emblem, .wheel__ring, .cta__star, .marquee__inner,
.hscroll__track, .scholars__col, .feed__col, .ring3d__spin, .platform__screen, .stack__card { will-change: transform; }
.gold-text { animation: none; background-position: 0 0; }
.hero .gold-text, .cta .gold-text { animation: shimmer 6s linear infinite; }

/* 4. Book ring: no live reflections, shading via composited overlay */
.ring3d__card { -webkit-box-reflect: unset; }
.ring3d__card::after { content: ''; position: absolute; inset: 0; background: #03101a; opacity: var(--shade, 0); pointer-events: none; }

/* 5. Pre-greyscaled scholar portraits — no per-frame filter */
.scholars__col figure { filter: none; }
/* perf 2: pre-cut round portraits, no clip-path */
.scholars__col figure { aspect-ratio: auto; display: grid; justify-items: center; gap: 8px; padding-bottom: 6px; }
.scholars__col img { clip-path: none; width: 80%; aspect-ratio: 1; height: auto; object-fit: contain; }
.scholars__col figure::after { top: 0; width: 80%; translate: -50% 0; }
.scholars__col figcaption { position: static; }
/* perf 2: moving elements never use backdrop blur */
.hero__chip, .about__badge, .platform__float, .ring3d__label, .post__src, .pcard__tag, .btn--ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero__chip, .platform__float, .ring3d__label { background: linear-gradient(145deg, rgba(24, 58, 80, .92), rgba(8, 26, 40, .9)); }
.about__badge { background: rgba(6, 22, 34, .82); }
/* perf 2: 3D-moving cards use a plain border instead of the masked gradient border */
.pcard::after, .ring3d__card::before, .stack__card::after { display: none; }
.pcard { border-color: rgba(241, 217, 155, .18); }
.pcard, .pcard__img img { will-change: transform; }
.pcard__img { transform: translateZ(0); }
/* perf 3: fade edges with static overlays instead of a mask over moving content */
.scholars__wall { mask-image: none; -webkit-mask-image: none; position: relative; }
.scholars__wall::before, .scholars__wall::after { content: ''; position: absolute; inset-inline: 0; height: 18%; z-index: 2; pointer-events: none; }
.scholars__wall::before { top: 0; background: linear-gradient(var(--night), transparent); }
.scholars__wall::after { bottom: 0; background: linear-gradient(transparent, var(--night)); }
/* perf 4: light theme via a composited veil — no whole-page colour transition */
body { transition: none; }
:root:not([data-theme="light"]) body.light { background: var(--night); }
.theme-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: var(--parch); opacity: 0; transition: opacity .7s var(--ease); will-change: opacity; }
:root:not([data-theme="light"]) body.light .theme-veil { opacity: 1; }
.stack__card.glass { background: linear-gradient(145deg, #0b2a3d, #041420); }
.stack__card::after { display: block; content: ''; position: absolute; inset: 0; z-index: 3; padding: 0; border-radius: inherit; background: #03101a; opacity: var(--dim, 0); -webkit-mask: none; mask: none; pointer-events: none; }

/* =========================================================
   Client feedback round — hero stats, ribbons, wheel, cards, footer
   ========================================================= */
/* Hero stats strip */
.hero { grid-template-rows: 1fr auto; align-items: center; padding-bottom: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px;
  border-radius: 24px; border: 1px solid rgba(241, 217, 155, .16);
  background: linear-gradient(145deg, rgba(20, 52, 72, .55), rgba(8, 26, 40, .45));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hstat { padding: 20px 26px; display: grid; gap: 2px; position: relative; }
.hstat + .hstat::before { content: ''; position: absolute; inset-inline-start: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, rgba(241, 217, 155, .35), transparent); }
.hstat b { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: 1.1; color: var(--ink); }
.hstat b sup { color: var(--gold); font-size: .5em; vertical-align: top; }
.hstat > span { font-size: 13.5px; color: var(--ink-2); }
.hero__chip--1 b { font-size: 18px; }

/* Crossed ribbons */
.ribbons { position: relative; height: clamp(150px, 16vw, 210px); overflow: hidden; display: grid; place-items: center; margin-block: 10px; }
.ribbon { position: absolute; width: 112%; left: -6%; overflow: hidden; padding-block: 16px; }
.ribbon--gold { transform: rotate(-3deg); z-index: 2; background: linear-gradient(100deg, #f1d99b, #d6b26a 45%, #b88a3e); box-shadow: 0 20px 50px -20px rgba(214, 178, 106, .55); }
.ribbon--glass { transform: rotate(2.5deg); z-index: 1; background: rgba(11, 42, 61, .9); border-block: 1px solid rgba(241, 217, 155, .3); }
.ribbon .marquee__inner { display: flex; width: max-content; }
.rb__item { display: inline-flex; align-items: center; gap: 26px; padding-inline: 13px; font-family: var(--f-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 34px); white-space: nowrap; line-height: 1.4; }
.ribbon--gold .rb__item { color: #0b1f2c; }
.ribbon--glass .rb__item { color: transparent; -webkit-text-stroke: 1px rgba(241, 217, 155, .85); font-weight: 900; }
.ribbon--glass .rb__item .saw { -webkit-text-stroke: 0; color: var(--gold-2); }
.rb__star { width: 22px; height: 22px; flex: none; }
.ribbon--gold .rb__star { color: #0b1f2c; }
.ribbon--glass .rb__star { color: var(--gold); }
.ribbons:hover .marquee__inner { animation-play-state: paused; }

/* Wheel: numbers in segments, active name in the centre */
.wseg__n { font-size: 34px !important; }
.wseg.on .wseg__n { fill: #0b1f2c !important; }
.wheel__emblem { width: 44%; opacity: .16; }
.wheel__center { position: absolute; inset: 0; margin: auto; width: 40%; height: 40%; display: grid; place-content: center; text-align: center; gap: 4px; pointer-events: none; }
.wheel__center small { font-family: var(--f-display); font-size: 12.5px; color: var(--gold); letter-spacing: .02em; }
.wheel__center b { font-family: var(--f-display); font-weight: 800; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.35; color: var(--ink); }

/* Programme cards: number sits beside the title, not on the photo */
.pcard__body { grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; }
.pcard__body > p, .pcard__body > .pcard__meta { grid-column: 1 / -1; }
.pcard__body > .pcard__meta { align-self: end; }
.pcard__body h3 { align-self: center; }
.pcard__n {
  position: static; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: var(--gold-2); -webkit-text-stroke: 0;
  border: 1px solid rgba(241, 217, 155, .45); background: rgba(214, 178, 106, .1);
}
.pcard__img img { object-fit: cover; }

/* Footer wordmark: a full, legible signature that rises into view */
.footer__big {
  font-size: clamp(64px, 14.5vw, 230px); line-height: 1.35; margin-top: 50px; padding-bottom: .1em;
  -webkit-text-stroke: 0; color: transparent;
  background: linear-gradient(180deg, rgba(241, 217, 155, .55) 0%, rgba(214, 178, 106, .18) 55%, rgba(214, 178, 106, 0) 92%);
  -webkit-background-clip: text; background-clip: text;
}

@media (max-width: 899px) {
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hstat:nth-child(3)::before { display: none; }
  .hstat:nth-child(n+3) { border-top: 1px solid rgba(241, 217, 155, .12); }
  .hstat { padding: 16px 18px; }
  .ribbons { height: 130px; }
  .wheel__center b { font-size: 15px; }
  .wseg__n { font-size: 28px !important; }
}
@media (min-width: 900px) {
  .hero { padding-top: 104px; padding-bottom: 28px; min-height: 100svh; }
  .hero__title { font-size: clamp(40px, 5.3vw, 84px); line-height: 1.28; }
  .hero__content { gap: 20px; }
  .hero__visual { max-width: 480px; }
  .hero__stats { margin-top: 22px; }
  .hstat { padding: 16px 24px; }
}
@media (max-width: 899px) {
  .hscroll__counter { display: none; }
  .wheel__center { display: none; }
  .wheel__emblem { opacity: .5; width: 40%; }
}

/* =========================================================
   Round 5 — client feedback
   ========================================================= */
/* Loader: the real logo on parchment */
.loader { background: var(--parch); }
.loader__inner { gap: 26px; }
.loader__logo { position: relative; width: min(380px, 70vw); }
.loader__logo img { width: 100%; height: auto; display: block; }
.loader__ghost { opacity: .12; filter: grayscale(1); }
.loader__fill { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); }
.loader__bar { width: min(240px, 50vw); height: 2px; border-radius: 2px; background: rgba(12, 32, 48, .1); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: linear-gradient(90deg, #22669a, #23a45f); transform-origin: right; transform: scaleX(0); }
.loader__count { color: rgba(12, 32, 48, .5); letter-spacing: .15em; font-size: 12px; }

/* Government clients rail */
.gov { padding-block: 34px 40px; position: relative; }
.gov__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.gov__label { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--gold-2); white-space: nowrap; }
.gov__line { flex: 1; height: 1px; background: linear-gradient(to left, rgba(241, 217, 155, .35), transparent); }
.gov__rail { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gov__rail .marquee__inner { display: flex; gap: 16px; width: max-content; padding-inline: 8px; }
.gov__tile { flex: none; width: 128px; height: 104px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 12px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); transition: transform .4s var(--ease); }
.gov__tile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gov__tile:hover { transform: translateY(-4px); }

/* Programme photos fill their frame completely */
.pcard__img img { inset: 0; left: 0; right: 0; width: 100%; height: 100%; }

/* Book ring: cards face the viewer, positioned by JS on a flat circle */
.ring3d__spin { transform: none !important; }
.ring3d__card { transform: none; left: 0; top: 0; will-change: transform; transition: none; }

/* Platform: floats hug the frame */
@media (min-width: 900px) {
  .platform__float { inset: auto !important; }
  .platform__float--1 { top: 16% !important; right: calc(100% + 14px) !important; }
  .platform__float--3 { bottom: 14% !important; right: calc(100% + 14px) !important; }
  .platform__float--2 { top: 44% !important; left: calc(100% + 14px) !important; }
}
@media (min-width: 900px) and (max-width: 1299px) {
  .platform__float--1, .platform__float--3 { right: calc(100% - 40px) !important; }
  .platform__float--2 { left: calc(100% - 40px) !important; }
}

/* Platform: tab views */
.app__main { grid-template-rows: auto minmax(0, 1fr); }
.app__views { position: relative; min-height: 0; }
.view { position: absolute; inset: 0; overflow: hidden; }
.view > * { height: 100%; }
.vprogs { display: grid; gap: 10px; align-content: start; }
.vprog { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.vprog img { width: 92px; height: 60px; object-fit: cover; border-radius: 10px; }
.vprog b { font-family: var(--f-display); font-size: 14px; display: block; }
.vprog span { font-size: 12px; color: var(--ink-3); }
.vprog em { font-style: normal; font-family: var(--f-display); font-weight: 700; color: var(--gold-2); font-size: 15px; }
.vbar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); margin-top: 7px; overflow: hidden; }
.vbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--mint)); }
.vbooks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-content: center; }
.vbook { display: grid; gap: 8px; }
.vbook img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.vbook figcaption { font-family: var(--f-display); font-size: 12px; text-align: center; color: var(--ink-2); }
.vsessions { display: grid; gap: 10px; align-content: start; }
.vsess { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.vsess__d { display: grid; justify-items: center; line-height: 1.2; padding: 8px 0; border-radius: 12px; background: rgba(214, 178, 106, .12); }
.vsess__d b { font-family: var(--f-display); font-size: 24px; color: var(--gold-2); }
.vsess__d span { font-size: 11px; color: var(--ink-3); }
.vsess__t b { font-family: var(--f-display); font-size: 14.5px; display: block; }
.vsess__t span { font-size: 12px; color: var(--ink-3); }
.vsess__btn { font-family: var(--f-display); font-size: 12.5px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--glass-line); color: var(--ink-2); white-space: nowrap; }
.vsess__btn.live { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--night); border: 0; box-shadow: 0 0 0 5px rgba(214, 178, 106, .15); }
.vcert { display: grid; place-items: center; }
.vcert .cert { height: 100%; width: auto; aspect-ratio: 1.414; }
.vprogress { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.vkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vkpis div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07); }
.vkpis b { font-family: var(--f-display); font-size: 28px; font-weight: 800; color: var(--gold-2); display: block; line-height: 1.1; }
.vkpis span { font-size: 12px; color: var(--ink-3); }
.vchart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .06); min-height: 0; }
.vchart__c { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 8px; justify-items: center; }
.vchart__c i { align-self: end; width: 70%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold-2), rgba(214, 178, 106, .25)); }
.vchart__c span { font-size: 11px; color: var(--ink-3); }

/* Certificate */
.cert { --c-ink: #13283a; aspect-ratio: 1.414; width: 100%; padding: 10px; border-radius: 10px; background: #f6efdc; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .7); container-type: inline-size; }
.cert__in { position: relative; height: 100%; border: 2px solid #c9a55c; outline: 1px solid rgba(201, 165, 92, .5); outline-offset: -8px; border-radius: 6px; display: grid; justify-items: center; align-content: center; text-align: center; padding: 4% 7%; overflow: hidden; color: var(--c-ink); gap: 1.2cqw; }
.cert__wm { position: absolute; width: 58%; opacity: .07; top: 50%; left: 50%; translate: -50% -50%; filter: sepia(1) saturate(3) hue-rotate(-10deg); }
.cert__logo { width: 26%; height: auto; }
.cert__kicker { font-family: var(--f-display); font-weight: 800; font-size: 5.2cqw; color: #9a7228; line-height: 1.3; }
.cert__line { font-size: 2.3cqw; color: rgba(19, 40, 58, .7); line-height: 1.4; }
.cert__name { font-family: "Aref Ruqaa", var(--f-quran); font-size: 5.4cqw; line-height: 1.35; border-bottom: 1px solid rgba(201, 165, 92, .6); padding-inline: 6%; }
.cert__title { font-family: var(--f-display); font-weight: 800; font-size: 3.6cqw; color: #22669a; line-height: 1.4; }
.cert__foot { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; margin-top: 1.5cqw; }
.cert__meta { display: grid; gap: .2cqw; font-size: 1.8cqw; }
.cert__meta b { font-family: var(--f-display); font-size: 2.1cqw; }
.cert__meta span { color: rgba(19, 40, 58, .6); }
.cert__sig { font-family: "Aref Ruqaa", var(--f-quran); font-size: 3.4cqw !important; color: #22669a !important; line-height: 1.1; }
.cert__seal { width: 11cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #f1d99b, #c9a55c 70%, #9a7228); box-shadow: 0 0 0 3px #f6efdc, 0 0 0 4px #c9a55c; }
.cert__seal img { width: 70%; filter: brightness(.35) sepia(1) saturate(2); }
.cert__id { font-size: 1.5cqw; color: rgba(19, 40, 58, .5); margin-top: .6cqw; }

/* Bento: video thumbs + certificate card */
.bento .b-3 { grid-column: span 3; }
.bento__thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: auto; }
.vthumb { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--glass-line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vthumb:hover img { transform: scale(1.06); }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(3, 16, 26, .85)); }
.vthumb__play { position: absolute; top: 50%; left: 50%; translate: -50% -60%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(214, 178, 106, .92); color: var(--night); }
.vthumb__play svg { width: 16px; height: 16px; margin-inline-start: -2px; }
.vthumb__time { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgba(3, 16, 26, .75); font-family: var(--f-display); }
.vthumb figcaption { position: absolute; bottom: 8px; inset-inline: 10px; z-index: 2; font-family: var(--f-display); font-size: 13px; font-weight: 600; }
.bento__certcard { gap: 18px; }
.bento__certhead { display: flex; gap: 14px; align-items: flex-start; }
.bento__certhead h4 { margin-bottom: 4px; }
.bento__certhead p { font-size: 13.5px; }
.bento__certcard .cert { transform: rotate(-1.5deg); transition: transform .6s var(--ease); }
.bento__certcard:hover .cert { transform: rotate(0) scale(1.02); }

/* Courses: show more of each photo */
.ccard { grid-template-rows: auto 1fr; }
.ccard__img { aspect-ratio: 4/3; height: auto; }

/* CTA emblem */
img.cta__star { width: 560px; height: 560px; object-fit: contain; opacity: .08; }

/* Footer signature: fully inside the frame */
.footer__big { font-size: clamp(56px, 12.5vw, 200px); padding-inline: .12em; white-space: nowrap; overflow: visible; }

/* Jump button */
.jump { position: fixed; bottom: 26px; left: 26px; z-index: 110; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-2);
  background: rgba(6, 22, 34, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s; }
.jump.show { opacity: 1; transform: none; pointer-events: auto; }
.jump:hover { background: rgba(214, 178, 106, .95); color: var(--night); }
.jump__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.jump__ring circle { fill: none; stroke: rgba(241, 217, 155, .18); stroke-width: 2; }
.jump__ring .jump__p { stroke: var(--gold); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; stroke-linecap: round; }
.jump__arrow { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.jump.up .jump__arrow { transform: rotate(180deg); }
:root:not([data-theme="light"]) body.light .jump { background: rgba(255, 255, 255, .85); color: #9a7228; }

@media (max-width: 899px) {
  .view { position: static; }
  .view:not(:first-child) { display: none; }
  .bento__thumbs { grid-template-columns: 1fr 1fr; }
  .gov__tile { width: 104px; height: 86px; }
  .jump { bottom: 18px; left: 16px; width: 48px; height: 48px; }
  .cert__line { font-size: 2.6cqw; }
}
@media (min-width: 900px) { .platform__float { width: max-content; max-width: 240px; } .platform__float b { white-space: nowrap; } }
@media (min-width: 1300px) { .platform__stage { width: min(900px, 66vw); } .platform__float { max-width: 232px; padding: 12px 14px; } }
.platform__float b { white-space: normal !important; } .platform__float b.langs { white-space: nowrap !important; }
@media (min-width: 1200px) and (max-width: 1299px) { .platform__stage { width: 66vw; } .platform__float { max-width: 180px; } .platform__float--1, .platform__float--3 { right: calc(100% + 10px) !important; } .platform__float--2 { left: calc(100% + 10px) !important; } }
@media (min-width: 900px) and (max-width: 1199px) { .platform__float--1 { right: auto !important; left: 12px !important; top: -34px !important; } }
@media (max-width: 1299px) { .platform__float b.langs { white-space: normal !important; } }

/* Government logos: transparent ivory marks, 4 at a time, auto-advancing */
.gov__rail { display: none; }
.gov__car { overflow: hidden; position: relative; }
.gov__track { display: flex; will-change: transform; }
.gov__item { flex: 0 0 25%; height: 150px; display: grid; place-items: center; position: relative; margin: 0; }
.gov__item + .gov__item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, rgba(241, 217, 155, .25), transparent); }
.gov__item img { max-width: 62%; max-height: 118px; object-fit: contain; opacity: .88; transition: opacity .4s, transform .6s var(--ease); }
.gov__item:hover img { opacity: 1; transform: scale(1.06); }
.hero__stats { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(145deg, rgba(20, 52, 72, .78), rgba(8, 26, 40, .72)); }
.jump { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(6, 22, 34, .92); }
@media (max-width: 899px) {
  .gov__item { flex-basis: 50%; height: 120px; }
  .gov__item img { max-height: 92px; }
}

/* =========================================================
   PERF PASS 2 — same visuals, fewer layers and less per-frame work
   ========================================================= */
/* 3D layers only while the pointer is over a card */
.glass-tilt { will-change: auto; transform-style: flat; }
.glass-tilt.is-tilting { will-change: transform; transform-style: preserve-3d; }
/* infinite decorative animations pause while off-screen */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
