/* =========================================================
   AI Bel Araby — Design system
   Brand: crimson #BF182A · ink #0F0F11 · paper #FAF8F5
   ========================================================= */
:root {
  --red: #bf182a;
  --red-600: #a01222;
  --red-700: #7f0e1b;
  --red-300: #e8606e;
  --red-50: #fcedef;
  --ink: #0f0f11;
  --ink-2: #17171b;
  --ink-3: #222228;
  --ink-4: #2e2e35;
  --paper: #faf8f5;
  --paper-2: #f3efea;
  --white: #ffffff;
  --text: #17161a;
  --muted: #66625d;
  --muted-2: #8f8a84;
  --line: #e6e1db;
  --line-dark: rgba(255, 255, 255, 0.09);
  --ok: #17a673;

  --f-display: "Bricolage Grotesque", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 17, 0.06), 0 1px 1px rgba(15, 15, 17, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 15, 17, 0.18), 0 2px 6px rgba(15, 15, 17, 0.05);
  --shadow-red: 0 14px 34px -14px rgba(191, 24, 42, 0.55);
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[lang="ar"] { font-family: var(--f-ar); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, 0.55); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: var(--red-300); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.22); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 0.65em 1.1em; font-size: 0.9rem; }
.btn-lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
.btn .ico { transition: transform 0.2s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.35em 0.8em; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  background: var(--paper-2); color: var(--text); border: 1px solid var(--line);
}
.chip-red { background: var(--red-50); color: var(--red-600); border-color: #f4ccd1; }
.chip-dark { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.85); border-color: var(--line-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 245, 0.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand-logo { height: 46px; width: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 0.5em 0.9em; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--text); background: rgba(15, 15, 17, 0.05); }
.nav-links a.is-active { color: var(--text); background: rgba(15, 15, 17, 0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); align-items: center; justify-content: center; }
.nav-toggle .ico { width: 20px; height: 20px; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu { border-top: 1px solid var(--line); padding: 10px 20px 18px; display: grid; }
.mobile-menu a { padding: 0.85em 0.2em; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .brand-logo { height: 40px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 78% 40%, rgba(191, 24, 42, 0.26), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(191, 24, 42, 0.14), transparent 60%),
    var(--ink);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(15,15,17,.92) 0%, rgba(15,15,17,.7) 36%, rgba(15,15,17,0) 54%); }
@media (max-width: 960px) { .hero-fade { background: linear-gradient(180deg, rgba(15,15,17,.2) 0%, rgba(15,15,17,.85) 45%); } }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 96px 0 72px; min-height: min(86vh, 780px); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .accent { font-family: "Playfair Display", "Times New Roman", Georgia, serif; font-style: italic; font-weight: 800; letter-spacing: -0.02em; color: #e3243b; padding-right: 0.06em; }
.hero h1 .line { display: block; }
.hero-ar { width: fit-content; max-width: 100%; font-size: clamp(1.15rem, 2vw, 1.45rem); color: rgba(255, 255, 255, 0.82); margin-bottom: 14px; }
.hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.66); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-meta .ico { color: var(--red-300); }

.hero-card {
  justify-self: end; width: min(100%, 400px);
  background: rgba(23, 23, 27, 0.72); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.hero-card .hc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-card .hc-badge { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--red-300); text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(191, 24, 42, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(191, 24, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(191, 24, 42, 0); } }
.hero-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.hero-card p { color: rgba(255, 255, 255, 0.6); font-size: 0.93rem; }
.hc-modules { margin: 18px 0; display: grid; gap: 2px; }
.hc-modules div { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.hc-modules div:hover { background: rgba(255, 255, 255, 0.04); }
.hc-modules .n { font-family: var(--f-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.4); width: 22px; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); padding-top: 16px; margin-bottom: 16px; }
.hc-stats b { display: block; font-family: var(--f-display); font-size: 1.5rem; }
.hc-stats span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 0 56px; min-height: 0; }
  .hero-card { justify-self: start; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--red); color: #fff; overflow: hidden; border-block: 1px solid var(--red-700); }
.ticker-track { display: flex; gap: 48px; padding: 14px 0; width: max-content; animation: ticker 38s linear infinite; font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-track span::after { content: "✦"; opacity: 0.6; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-paper2 { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head h2 { margin-top: 14px; max-width: 760px; }
.section-head p { color: var(--muted); max-width: 440px; font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.6); }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.stat { padding: 30px 28px; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; }
.stat b em { font-style: normal; color: var(--red); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-inline-end: 0; } .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); } }

/* featured course */
.featured {
  display: grid; grid-template-columns: 1.05fr 0.95fr; border-radius: 28px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.featured-visual { position: relative; background: var(--ink); min-height: 420px; overflow: hidden; }
.featured-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-visual::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(15,15,17,.9)); pointer-events: none; }
.featured-visual .fv-label { z-index: 1; position: absolute; left: 24px; bottom: 22px; right: 24px; display: flex; justify-content: space-between; align-items: end; color: #fff; }
.featured-visual .fv-label img { height: 54px; width: auto; }
.featured-body { padding: 44px; display: flex; flex-direction: column; }
.featured-body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 6px; letter-spacing: -0.03em; }
.featured-body .ar { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.featured-body > p { color: var(--muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.featured-body .actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } .featured-visual { min-height: 260px; } .featured-body { padding: 28px; } }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
.track { background: var(--ink); padding: 34px 30px 30px; position: relative; transition: background 0.3s; min-height: 250px; display: flex; flex-direction: column; }
.track:hover { background: var(--ink-2); }
.track .t-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(191, 24, 42, 0.14); color: var(--red-300); margin-bottom: 26px; border: 1px solid rgba(191, 24, 42, 0.3); }
.track .t-ico .ico { width: 26px; height: 26px; }
.track h3 { margin-bottom: 10px; }
.track p { color: rgba(255, 255, 255, 0.58); font-size: 0.95rem; }
.track .t-num { position: absolute; top: 30px; right: 28px; font-family: var(--f-mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.28); }
.track .t-mod { margin-top: auto; padding-top: 20px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); font-family: var(--f-mono); letter-spacing: 0.04em; }
@media (max-width: 900px) { .tracks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tracks { grid-template-columns: 1fr; } .track { min-height: 0; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; position: relative; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-mono); font-size: 0.78rem; color: var(--red); letter-spacing: 0.1em; }
.step .s-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 18px 0 22px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* mission split */
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mission-quote { font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.mission-quote em { font-style: normal; color: var(--red); }
.mission-ar { font-size: 1.2rem; line-height: 1.75; color: var(--text); padding: 30px; border-inline-start: 3px solid var(--red); background: var(--white); border-radius: 0 var(--r) var(--r) 0; }
.pillars { display: grid; gap: 14px; margin-top: 30px; }
.pillar { display: flex; gap: 16px; align-items: flex-start; }
.pillar .ico { color: var(--red); width: 22px; height: 22px; margin-top: 3px; }
.pillar b { display: block; }
.pillar span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .mission { grid-template-columns: 1fr; gap: 36px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--text); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.25s var(--ease); color: var(--red); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: var(--red); color: #fff; padding: 64px 56px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%), radial-gradient(400px 300px at 0% 100%, rgba(0, 0, 0, 0.25), transparent 60%); }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 10px; }
.cta-band .btn-dark { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 16px; font-weight: 500; }
.footer-grid a { display: block; padding: 5px 0; font-size: 0.95rem; transition: color 0.15s; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 62px; width: auto; margin-bottom: 18px; }
.footer-slogan { font-family: var(--f-display); font-size: 1.25rem; color: #fff; }
.footer-ar { margin-top: 4px; color: rgba(255, 255, 255, 0.55); }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-dark); padding: 0; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 85% 20%, rgba(191, 24, 42, 0.3), transparent 60%); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.45; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 16px; }
.page-head p { color: rgba(255, 255, 255, 0.65); margin-top: 14px; max-width: 620px; font-size: 1.08rem; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }
.crumbs a:hover { color: #fff; }
.crumbs .ico { width: 14px; height: 14px; }

/* ---------- catalog ---------- */
.toolbar { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -28px 0 36px; position: relative; z-index: 2; }
.search { flex: 1 1 340px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; height: 56px; box-shadow: var(--shadow); }
.search .ico { color: var(--muted); }
.search input { border: 0; outline: 0; background: none; font: inherit; flex: 1; height: 100%; color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 0.6em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 0.88rem; font-weight: 500; transition: all 0.15s; }
.filter:hover { border-color: var(--text); }
.filter.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.ccard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard-cover { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.ccard-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ccard-cover .cc-tag { position: absolute; top: 14px; left: 14px; }
.ccard-cover .cc-title { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.ccard-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ccard-body p { color: var(--muted); font-size: 0.95rem; }
.ccard-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.ccard-meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.ccard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--red); }
.ccard.soon { border-style: dashed; background: transparent; justify-content: center; align-items: center; text-align: center; padding: 40px; min-height: 380px; }
.ccard.soon .ico { width: 40px; height: 40px; color: var(--red); margin-bottom: 16px; }
.ccard.soon:hover { transform: none; box-shadow: none; }
.empty { padding: 60px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); }

.bar { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width 0.6s var(--ease); }

/* ---------- course detail ---------- */
.course-hero { padding: 64px 0 120px; }
.course-hero .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.course-hero .ar-title { font-size: 1.2rem; color: rgba(255, 255, 255, 0.75); margin-top: 12px; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; }
.course-hero .facts span { display: inline-flex; align-items: center; gap: 0.5em; }
.course-hero .facts .ico { color: var(--red-300); }
.course-layout { display: grid; grid-template-columns: 1fr 370px; gap: 48px; align-items: start; margin-top: -84px; position: relative; z-index: 2; }
.course-main { min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; margin-bottom: 24px; }
.panel h2 { font-size: 1.7rem; margin-bottom: 18px; }
.panel > p { color: var(--muted); font-size: 1.03rem; }
.tabs { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 86px; z-index: 5; box-shadow: var(--shadow-sm); }
.tabs a { padding: 0.6em 1.1em; border-radius: 999px; font-weight: 500; font-size: 0.92rem; color: var(--muted); white-space: nowrap; transition: all 0.15s; }
.tabs a:hover { color: var(--text); }
.tabs a.is-on { background: var(--ink); color: #fff; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.outcomes li, .plain li { display: flex; gap: 12px; align-items: flex-start; }
.outcomes .ico { color: var(--red); margin-top: 3px; }
ul.clean { list-style: none; padding: 0; margin: 0; }
.plain { display: grid; gap: 10px; }
.plain .ico { color: var(--red); margin-top: 4px; width: 16px; height: 16px; }
@media (max-width: 680px) { .outcomes { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col h3 { font-size: 1.1rem; margin-bottom: 14px; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }

.cur-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cur-head h2 { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--red); font-weight: 600; font-size: 0.9rem; padding: 0; }
.module { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; background: var(--white); }
.module summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.module summary::-webkit-details-marker { display: none; }
.module summary:hover { background: var(--paper); }
.module .m-num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; }
.module[open] .m-num { background: var(--red); color: #fff; }
.module .m-title { font-weight: 600; font-size: 1.03rem; }
.module .m-sub { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.module .m-right { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.module .m-right .ico.chev { transition: transform 0.25s var(--ease); }
.module[open] .m-right .ico.chev { transform: rotate(180deg); }
.lesson-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 20px 13px 24px; border-top: 1px solid var(--line); font-size: 0.95rem; transition: background 0.15s; }
.lesson-row:hover { background: var(--paper); }
.lesson-row .l-ico { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.lesson-row .l-ico .ico { width: 14px; height: 14px; }
.lesson-row.done .l-ico { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-row .l-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 0.82rem; }
.lesson-row .soon { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
.lesson-row .lab { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: var(--red-50); border-radius: 99px; padding: 2px 8px; }

.mats { display: grid; gap: 10px; }
.mat { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.15s, background 0.15s; }
.mat:hover { border-color: var(--text); background: var(--paper); }
.mat .m-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.mat b { display: block; font-weight: 600; font-size: 0.95rem; }
.mat small { color: var(--muted); }
.mat .dl { color: var(--muted); }

.instructor { display: flex; gap: 18px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.mark img { width: 70%; height: auto; object-fit: contain; }

.side { position: sticky; top: 96px; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.side-preview { aspect-ratio: 16 / 9; background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; }
.side-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-btn { position: relative; width: 66px; height: 66px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(191, 24, 42, 0.25); transition: transform 0.2s var(--ease); }
.play-btn:hover { transform: scale(1.06); }
.play-btn .ico { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.side-body { padding: 24px; }
.side-body .price-big { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.side-body .price-big small { font-size: 0.9rem; font-weight: 500; color: var(--muted); font-family: var(--f-body); letter-spacing: 0; margin-left: 6px; }
.side-body .btn { width: 100%; margin-top: 16px; }
.side-prog { margin-top: 18px; }
.side-prog .row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.includes { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 0.93rem; }
.includes div { display: flex; gap: 12px; align-items: center; }
.includes .ico { color: var(--muted); }
.share-row { display: flex; gap: 8px; margin-top: 18px; }
.share-row button { flex: 1; }
@media (max-width: 1000px) { .course-layout { grid-template-columns: 1fr; margin-top: -84px; } .side { position: static; order: -1; } .tabs { top: 80px; } }
@media (max-width: 560px) { .panel { padding: 22px; } .lesson-row { padding-inline: 16px; } .module summary { padding: 16px; gap: 12px; } .module .m-right .count { display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 0.92rem; opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.nf .code { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 12rem); font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -0.05em; }

/* =========================================================
   LEARN — lecture player
   ========================================================= */
body.learn { background: var(--ink); color: #fff; }
.player-app { min-height: 100vh; display: flex; flex-direction: column; }
.p-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 18px; background: rgba(15, 15, 17, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-dark); }
.p-back { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; color: rgba(255, 255, 255, 0.85); }
.p-back:hover { color: #fff; }
.p-back img { height: 30px; width: auto; }
.p-ctitle { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-prog { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); font-family: var(--f-mono); }
.p-prog .bar { width: 160px; }
.bar.dark { background: rgba(255, 255, 255, 0.1); }
.p-iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04); display: grid; place-items: center; color: #fff; }
.p-iconbtn:hover { background: rgba(255, 255, 255, 0.1); }
.p-body { flex: 1; display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
body.side-collapsed .p-body { grid-template-columns: 1fr 0; }
body.side-collapsed .p-side { display: none; }
.p-main { min-width: 0; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #000; max-height: calc(100vh - 64px); width: 100%; }
.stage iframe, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; overflow: hidden; background: radial-gradient(600px 300px at 50% 50%, rgba(191, 24, 42, 0.18), transparent 70%), var(--ink-2); }
.stage-empty canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.se-inner { position: relative; padding: 24px; background: rgba(15, 15, 17, 0.55); border-radius: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 520px; }
.se-inner h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 12px 0 8px; }
.se-inner p { color: rgba(255, 255, 255, 0.6); }
.p-under { padding: 28px 32px 60px; max-width: 1100px; }
.p-lhead { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line-dark); }
.p-lhead h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 10px 0 10px; letter-spacing: -0.02em; }
.p-lmeta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; }
.p-lmeta span { display: inline-flex; gap: 0.45em; align-items: center; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#doneBtn.is-done { background: var(--ok); box-shadow: none; }
.p-tabs { display: flex; gap: 4px; margin: 22px 0 20px; border-bottom: 1px solid var(--line-dark); }
.p-tabs button { background: none; border: 0; padding: 12px 16px; color: rgba(255, 255, 255, 0.55); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.p-tabs button:hover { color: #fff; }
.p-tabs button.is-on { color: #fff; border-bottom-color: var(--red); }
.p-panel { color: rgba(255, 255, 255, 0.82); line-height: 1.75; }
.rich p { margin-bottom: 1em; }
.rich a { color: var(--red-300); text-decoration: underline; }
.rich h3, .rich h4 { margin: 1.4em 0 0.5em; }
.mats.dark .mat { border-color: var(--line-dark); }
.mats.dark .mat:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.03); }
.mats.dark .m-ic { background: rgba(191, 24, 42, 0.15); color: var(--red-300); }
.mats.dark small, .mats.dark .dl { color: rgba(255, 255, 255, 0.5); }
#myNotes { width: 100%; min-height: 220px; resize: vertical; background: var(--ink-2); color: #fff; border: 1px solid var(--line-dark); border-radius: var(--r); padding: 18px; font: inherit; line-height: 1.7; }
#myNotes:focus { outline: none; border-color: var(--red); }
.notes-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.85rem; gap: 12px; flex-wrap: wrap; }
.kbd-hint { margin-top: 40px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.38); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
kbd { font-family: var(--f-mono); font-size: 0.75rem; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.75); }

.p-side { background: var(--ink-2); border-inline-start: 1px solid var(--line-dark); position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; }
.p-side-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line-dark); }
.p-side-head b { font-family: var(--f-display); font-size: 1.05rem; }
.p-search { margin-top: 12px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); border-radius: 10px; padding: 0 12px; height: 40px; color: rgba(255, 255, 255, 0.5); }
.p-search input { flex: 1; border: 0; background: none; color: #fff; font: inherit; font-size: 0.9rem; outline: none; height: 100%; }
.p-list { overflow-y: auto; flex: 1; padding-bottom: 30px; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.p-mod-h { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 14px 18px; background: var(--ink-3); font-weight: 600; font-size: 0.88rem; border-bottom: 1px solid var(--line-dark); }
.p-mod-h .mono { color: var(--red-300); font-size: 0.75rem; }
.p-mod-h small { color: rgba(255, 255, 255, 0.4); font-family: var(--f-mono); font-weight: 400; }
.p-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); border-inline-start: 3px solid transparent; transition: background 0.15s; }
.p-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.p-item.is-cur { background: rgba(191, 24, 42, 0.14); border-inline-start-color: var(--red); color: #fff; }
.p-check { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; color: rgba(255, 255, 255, 0.5); }
.p-check .ico { width: 12px; height: 12px; }
.p-item.done .p-check { background: var(--ok); border-color: var(--ok); color: #fff; }
.p-it em { font-style: normal; font-family: var(--f-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.35); margin-inline-start: 4px; }
.p-dur { font-size: 0.78rem; color: rgba(255, 255, 255, 0.4); font-family: var(--f-mono); }

@media (max-width: 1000px) {
  .p-body, body.side-collapsed .p-body { grid-template-columns: 1fr; }
  .p-side { position: fixed; top: 64px; right: 0; bottom: 0; height: auto; width: min(380px, 92vw); z-index: 40; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
  .p-prog .bar { width: 80px; }
}
@media (max-width: 600px) {
  .p-under { padding: 20px 18px 50px; }
  .p-prog span { display: none; }
  .p-ctitle { font-size: 0.92rem; }
  .p-actions { width: 100%; }
  .p-actions .btn { flex: 1; padding-inline: 0.6em; }
}
.ar-title, .featured-body .ar, .hero-ar { width: fit-content; max-width: 100%; }
@media (max-width: 600px) {
  .se-inner { padding: 14px 18px; margin: 0 16px; }
  .se-inner h2 { font-size: 1.15rem; margin: 6px 0 0; }
  .se-inner p { display: none; }
  .kbd-hint { display: none; }
}

/* ---------- sessions, demos & toolkits ---------- */
.l-num { font-family: var(--f-mono); font-size: 0.78rem; color: var(--red); margin-right: 12px; }
.p-n { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; color: var(--red-300); margin-right: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); }
.badges span { display: inline-flex; align-items: center; gap: 0.45em; }
.badges .ico { color: var(--red-300); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.acc { display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; white-space: nowrap; border: 1px solid transparent; }
.acc.open { background: #e7f6ef; color: #0e7a52; border-color: #bfe8d5; }
.acc.free { background: #e8f0fd; color: #1d4fb8; border-color: #c7d8f7; }
.acc.commercial { background: var(--red-50); color: var(--red-600); border-color: #f4ccd1; }
.kit-h { font-size: 1.05rem; margin: 26px 0 12px; }
.kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.kit-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.kit-n { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted-2); padding-top: 2px; }
.kit-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.kit-item p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.contact-line { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.contact-line:hover { border-color: var(--text); }
.contact-line .ico { color: var(--red); width: 20px; height: 20px; }
.contact-line b { display: block; color: var(--text); font-size: 1rem; font-family: var(--f-mono); letter-spacing: 0.02em; }

body.learn .kit-item { background: var(--ink-2); border-color: var(--line-dark); }
body.learn .kit-item p { color: rgba(255, 255, 255, 0.6); }
body.learn .kit-n { color: rgba(255, 255, 255, 0.35); }
body.learn .acc.open { background: rgba(23, 166, 115, 0.14); color: #5fd4a5; border-color: rgba(23, 166, 115, 0.3); }
body.learn .acc.free { background: rgba(80, 140, 255, 0.14); color: #8db3ff; border-color: rgba(80, 140, 255, 0.3); }
body.learn .acc.commercial { background: rgba(191, 24, 42, 0.18); color: var(--red-300); border-color: rgba(191, 24, 42, 0.35); }
.ov-h { font-size: 1.05rem; margin: 28px 0 14px; color: #fff; }
.ov-h:first-child { margin-top: 4px; }
.ov-list { display: grid; gap: 10px; }
.ov-list li { display: flex; gap: 12px; align-items: flex-start; }
.ov-list .ico { color: var(--red-300); margin-top: 5px; }
.demo { display: flex; gap: 16px; align-items: flex-start; margin-top: 26px; padding: 20px 22px; border-radius: var(--r); background: rgba(191, 24, 42, 0.1); border: 1px solid rgba(191, 24, 42, 0.3); }
.demo > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--red); color: #fff; fill: currentColor; flex: none; }
.demo p { margin-top: 6px; color: #fff; }
.takeaway { margin: 30px 0 0; padding: 22px 26px; border-inline-start: 3px solid var(--red); background: var(--ink-2); border-radius: 0 var(--r) var(--r) 0; }
.takeaway p { margin-top: 8px; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; color: #fff; letter-spacing: -0.01em; }

/* ---------- two-row navigation ---------- */
.nav { height: 70px; }
.nav-slogan { flex: 1; text-align: center; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.subnav { border-top: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 7px 0; justify-content: space-between; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 0.5em 0.85em; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.15s, background 0.15s; }
.subnav a:hover { color: var(--text); background: rgba(15, 15, 17, 0.05); }
.subnav a.is-active { color: #fff; background: var(--ink); }
.subnav a[href="courses.html"]:not(.is-active) { color: var(--red); }
.mobile-menu a.is-active { color: var(--red); }
.tabs { top: 132px; }
.side { top: 142px; }
@media (max-width: 1180px) { .subnav-inner { justify-content: flex-start; } }
@media (max-width: 900px) {
  .nav-slogan { display: none; }
  .nav { height: 62px; }
  .subnav { display: none; }
  .tabs { top: 70px; }
}

/* ---------- coming-soon pages ---------- */
.soon-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow); }
.soon-ico { width: 84px; height: 84px; border-radius: 22px; background: var(--red-50); color: var(--red); display: grid; place-items: center; border: 1px solid #f4ccd1; }
.soon-ico .ico { width: 40px; height: 40px; }
.soon-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.soon-card p { color: var(--muted); max-width: 620px; }
.soon-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.soon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.soon-ph { border: 1.5px dashed var(--line); border-radius: var(--r-lg); min-height: 180px; display: grid; place-items: center; color: var(--muted-2); font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(15,15,17,.025) 12px 24px); }
@media (max-width: 760px) { .soon-card { grid-template-columns: 1fr; padding: 28px; } .soon-grid { grid-template-columns: 1fr; } .soon-ph { min-height: 120px; } }

/* ---------- events ---------- */
.evh { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.evh-mosaic { position: absolute; inset: -4%; z-index: -2; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 50%; gap: 4px; transform: rotate(-3deg) scale(1.08); opacity: .55; }
.evh-mosaic span { background-size: cover; background-position: center; filter: grayscale(.55) contrast(1.05); }
.evh-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,15,17,.96) 0%, rgba(15,15,17,.82) 45%, rgba(15,15,17,.45) 100%), linear-gradient(0deg, rgba(15,15,17,.9), transparent 55%); }
.evh-inner { padding: 92px 0 72px; }
.evh h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-top: 16px; letter-spacing: -.035em; }
.evh p { color: rgba(255,255,255,.72); margin-top: 14px; max-width: 560px; font-size: 1.1rem; }
.evh-stats { display: flex; gap: 0; margin-top: 36px; width: fit-content; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(15,15,17,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.evh-stats span { padding: 14px 26px; color: rgba(255,255,255,.62); font-size: .88rem; border-inline-start: 1px solid rgba(255,255,255,.12); }
.evh-stats span:first-child { border: 0; }
.evh-stats b { display: block; color: #fff; font-family: var(--f-display); font-size: 2rem; line-height: 1.05; letter-spacing: -.02em; }
.evbar { position: sticky; top: 112px; z-index: 20; background: rgba(250,248,245,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.evbar-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; }
.evf { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.evf::-webkit-scrollbar { display: none; }
.evf-b { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 500; color: var(--muted); transition: all .15s; }
.evf-b i { font-style: normal; font-family: var(--f-mono); font-size: .72rem; color: var(--muted-2); }
.evf-b:hover { color: var(--text); border-color: var(--text); }
.evf-b.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.evf-b.is-on i { color: var(--red-300); }
.evjump select { font: inherit; font-size: .88rem; padding: .6em 2.2em .6em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366625d' stroke-width='2'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; color: var(--text); max-width: 260px; cursor: pointer; }
.evlist-wrap { padding-top: 64px; }
.ev { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 190px; }
.ev:first-child { border-top: 0; padding-top: 0; }
.ev.flip { grid-template-columns: minmax(0, 1fr) minmax(0, .4fr); }
.ev.flip .ev-meta { order: 2; }
.ev-meta { position: sticky; top: 200px; }
.ev-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ev-num { font-family: var(--f-display); font-size: 3.6rem; font-weight: 800; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--red); letter-spacing: -.04em; }
.ev-type { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); padding: 5px 10px; border-radius: 99px; background: var(--red-50); border: 1px solid #f4ccd1; }
.ev-meta h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); text-wrap: balance; }
.ev-facts { margin: 16px 0 18px; display: grid; gap: 8px; }
.ev-facts div { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: .95rem; }
.ev-facts dt { color: var(--red); display: flex; }
.ev-facts dd { margin: 0; font-weight: 500; }
.ev-meta p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.ev-all { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 600; transition: all .15s; }
.ev-all:hover { border-color: var(--text); }
.ev-collage { display: grid; gap: 10px; }
.ev-tile { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--ink); cursor: zoom-in; min-height: 0; }
.ev-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .7s var(--ease); }
.ev-tile:hover img { transform: scale(1.045); }
.ev-tile.contain { background: #fff; border: 1px solid var(--line); }
.ev-tile.contain img { object-fit: contain; padding: 6px; }
.ev-tile.contain:hover img { transform: scale(1.02); }
.ev-zoom { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,15,17,.7); color: #fff; opacity: 0; transform: translateY(6px); transition: all .25s var(--ease); }
.ev-tile:hover .ev-zoom, .ev-tile:focus-visible .ev-zoom { opacity: 1; transform: none; }
.ev-more { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15,15,17,.62); color: rgba(255,255,255,.85); font-size: .82rem; transition: background .25s; }
.ev-more b { font-family: var(--f-display); font-size: 2.2rem; color: #fff; line-height: 1; }
.ev-tile:hover .ev-more { background: rgba(191,24,42,.72); }
.ev-collage.c1 .ev-tile { aspect-ratio: 16 / 10; }
.ev-collage.c2 { grid-template-columns: 1.25fr 1fr; height: clamp(340px, 36vw, 500px); }
.ev-collage.c3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(380px, 40vw, 560px); }
.ev-collage.c3 .ev-tile:first-child { grid-row: 1 / 3; }
.ev-collage.c4 { grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(3, 1fr); height: clamp(420px, 44vw, 600px); }
.ev-collage.c4 .ev-tile:first-child { grid-row: 1 / 4; }
.ev-collage.c5 { grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; height: clamp(380px, 38vw, 540px); }
.ev-collage.c5 .ev-tile:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.ev-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,12,.96); display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; color: #fff; }
.lb-top b { font-family: var(--f-display); font-size: 1.1rem; margin-right: 12px; }
.lb-top span { font-family: var(--f-mono); font-size: .78rem; color: rgba(255,255,255,.55); }
.lb-stage { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; min-height: 0; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; height: 100%; justify-content: center; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 210px); object-fit: contain; border-radius: 8px; opacity: 0; transition: opacity .25s; }
.lb-fig img.ready { opacity: 1; }
.lb-fig figcaption { color: rgba(255,255,255,.75); font-size: .92rem; text-align: center; padding: 0 10px; }
.lb-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; justify-self: center; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 18px; justify-content: safe center; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 74px; height: 54px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .5; background: #222; transition: all .15s; }
.lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumbs button:hover { opacity: .85; }
.lb-thumbs button.on { opacity: 1; border-color: var(--red); }

@media (max-width: 900px) {
  .evbar { top: 62px; }
  .evjump { display: none; }
  .ev, .ev.flip { grid-template-columns: 1fr; gap: 22px; padding: 44px 0; scroll-margin-top: 130px; }
  .ev.flip .ev-meta { order: 0; }
  .ev-meta { position: static; }
  .ev-num { font-size: 2.6rem; }
  .ev-collage.c2, .ev-collage.c3, .ev-collage.c4, .ev-collage.c5 { height: auto; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .ev-collage .ev-tile { aspect-ratio: 1; grid-row: auto !important; }
  .ev-collage .ev-tile:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .ev-collage.c2 .ev-tile:first-child { grid-column: auto; aspect-ratio: 1; }
  .ev-collage.c4 .ev-tile:last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .evh-inner { padding: 64px 0 52px; }
  .evh-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 34%; }
  .evh-stats span { padding: 12px 18px; }
  .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-thumbs { justify-content: flex-start; }
}

/* ---------- testimonials ---------- */
.th { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.th::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,15,17,.97) 0%, rgba(15,15,17,.85) 48%, rgba(15,15,17,.35) 100%), radial-gradient(600px 400px at 85% 30%, rgba(191,24,42,.3), transparent 60%); }
.th-bubbles { position: absolute; inset: 0; z-index: -2; display: flex; flex-wrap: wrap; gap: 14px; align-content: center; justify-content: flex-end; padding: 30px 4vw; opacity: .9; }
.th-bubbles .b { max-width: 300px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #232328; color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.th-bubbles .b1 { margin-top: 30px; } .th-bubbles .b2 { background: #2a1418; } .th-bubbles .b3 { margin-top: -10px; } .th-bubbles .b4 { background: #1e2a22; }
.th-inner { padding: 92px 0 76px; }
.th h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-top: 16px; letter-spacing: -.035em; max-width: 720px; text-wrap: balance; }
.th p { color: rgba(255,255,255,.72); margin-top: 16px; max-width: 540px; font-size: 1.1rem; }
.th-stats { display: flex; margin-top: 36px; width: fit-content; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(15,15,17,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.th-stats span { padding: 14px 26px; color: rgba(255,255,255,.62); font-size: .88rem; border-inline-start: 1px solid rgba(255,255,255,.12); }
.th-stats span:first-child { border: 0; }
.th-stats b { display: block; color: #fff; font-family: var(--f-display); font-size: 2rem; line-height: 1.05; }

.tf-wrap { padding: 72px 0 0; }
.tf { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tf-card { margin: 0; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.tf-card.big { grid-row: 1 / 3; background: var(--ink); color: #fff; border-color: var(--ink); padding: 40px; justify-content: space-between; }
.qmark { width: 42px; height: 32px; color: var(--red); flex: none; }
.tf-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.tf-card.big blockquote { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; letter-spacing: -.01em; color: #fff; }
.tf-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.tf-card.big .tcard-meta small { color: rgba(255,255,255,.5); }
.tf-card.big .tavatar { background: rgba(255,255,255,.08); color: var(--red-300); }
.tf-card.big .tview { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.tcard-meta { display: flex; align-items: center; gap: 12px; }
.tcard-meta b { display: block; font-size: .92rem; }
.tcard-meta small { display: block; color: var(--muted); font-size: .78rem; }
.tavatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red-50); color: var(--red); flex: none; }
.tview { display: inline-flex; align-items: center; gap: 7px; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .82rem; font-weight: 600; transition: all .15s; }
.tview:hover { border-color: var(--red); color: var(--red); }
.tview.icon { padding: 0; width: 36px; height: 36px; justify-content: center; }

.tl-wrap { padding: 96px 0 0; }
.tl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.tl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.tl-top { display: flex; gap: 12px; align-items: center; }
.tl-in { width: 40px; height: 40px; border-radius: 10px; background: #0a66c2; color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--f-body); flex: none; }
.tl-top b { display: block; font-size: .98rem; }
.tl-top small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.tl-prog { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.tl-card blockquote { margin: 0; color: var(--text); font-size: .95rem; line-height: 1.6; flex: 1; }
.tl-card .tview { align-self: flex-start; }

.tw-wrap { padding: 96px 0 0; }
.tw-f { margin-bottom: 24px; flex-wrap: wrap; }
.tw { columns: 3 300px; column-gap: 16px; }
.tcard { margin: 0 0 16px; break-inside: avoid; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s var(--ease); }
.tcard:hover { border-color: #d8d1c9; transform: translateY(-2px); }
.tcard[hidden] { display: none; }
.tkind { align-self: flex-start; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line); border-radius: 99px; }
.tcard blockquote { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text); }
.tcard blockquote::before { content: "“"; color: var(--red); font-family: var(--f-display); font-size: 1.6em; line-height: 0; vertical-align: -.35em; margin-right: 2px; }
.tcard blockquote.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tmore { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; font-size: .85rem; margin-top: -6px; }
.tcard figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.tr { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--paper-2); }
.tr-l { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.tr-b { padding: .5em .95em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .86rem; color: var(--text); }
.tr-b:hover { border-color: var(--red); color: var(--red); }

.tp-wrap { background: var(--ink); color: #fff; margin-top: 110px; }
.tp { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: stretch; }
.tp-award { padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #3a0d12; cursor: zoom-in; min-height: 420px; }
.tp-award img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tp-award:hover img { transform: scale(1.03); }
.tp-side { display: grid; gap: 20px; }
.tp-card { position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 26px; color: #fff; display: block; }
.tp-card h3 { font-size: 1.35rem; margin: 10px 0 6px; }
.tp-card p { color: rgba(255,255,255,.6); font-size: .95rem; }
.tp-live { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tp-live button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; aspect-ratio: 16 / 9; cursor: zoom-in; }
.tp-live img { width: 100%; height: 100%; object-fit: cover; }
.tp-link { transition: border-color .2s; }
.tp-link:hover { border-color: var(--red); }
.tp-arrow { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--red-300); }
.tp-arrow .ico { width: 24px; height: 24px; }
.tlb .lb-stage { grid-template-columns: 72px minmax(0, 1fr) 72px; }
.tlb .lb-fig img { max-height: calc(100vh - 140px); background: #111; }

@media (max-width: 900px) {
  .th-bubbles { opacity: .35; justify-content: center; }
  .th-inner { padding: 64px 0 52px; }
  .th-stats span { padding: 12px 16px; }
  .th-stats b { font-size: 1.6rem; }
  .tf { grid-template-columns: 1fr; }
  .tf-card.big { grid-row: auto; padding: 28px; }
  .tp { grid-template-columns: 1fr; }
  .tp-award { min-height: 0; aspect-ratio: 3 / 4; max-height: 520px; }
  .tlb .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}
/* original + translation */
.tq { display: grid; gap: 12px; }
.t-orig { font-family: var(--f-ar); white-space: pre-line; font-size: 1.08rem; line-height: 1.85; color: var(--text); }
.t-orig[lang="arz-Latn"] { font-family: var(--f-body); font-style: italic; }
.t-en { font-size: .93rem; line-height: 1.6; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.t-en span { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.t-en.solo { color: var(--text); font-size: 1rem; border: 0; padding: 0; }
.tcard blockquote::before { content: none; }
.tcard blockquote.clamp { display: block; -webkit-line-clamp: unset; max-height: 17em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tf-card blockquote .t-orig { font-size: 1.15rem; }
.tf-card.big blockquote { font-family: var(--f-body); font-size: 1rem; }
.tf-card.big .t-orig { color: #fff; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.8; }
.tf-card.big .t-en { color: rgba(255,255,255,.6); border-top-color: rgba(255,255,255,.15); }
.tf-card.big .t-en span { color: rgba(255,255,255,.4); }
.tr-b { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 14px; text-align: start; }
.tr-b b { font-family: var(--f-ar); font-weight: 500; font-size: .95rem; align-self: stretch; text-align: right; }
.tr-b small { color: var(--muted); font-size: .76rem; }

/* ---------- our beloved students (yearbook) ---------- */
body.yb { --cream: #f3eee3; --cream-2: #ebe3d3; background: var(--cream); }
body.yb .site-header, body.yb .site-header.is-scrolled { background: rgba(243,238,227,.92); }
.crumbs.dark { color: var(--muted); }
.crumbs.dark a:hover { color: var(--text); }
.sh { position: relative; overflow: hidden; border-bottom: 1px solid var(--cream-2); }
.sh::before { content: ""; position: absolute; top: 0; right: 0; width: 34%; height: 100%; background: var(--red); }
.sh-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 70px 0 50px; }
.sh-badge { display: inline-block; margin-top: 22px; font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .02em; color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: 6px 14px; }
.sh h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.04em; margin: 18px 0 20px; }
.sh h1 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.sh p { color: var(--muted); font-size: 1.12rem; max-width: 500px; }
.sh-stats { display: flex; gap: 34px; margin-top: 30px; }
.sh-stats span { color: var(--muted); font-size: .9rem; }
.sh-stats b { display: block; font-family: var(--f-display); font-size: 2.6rem; color: var(--text); line-height: 1; }
.sh-fan { position: relative; height: 470px; }
.pol { position: relative; margin: 0; padding: 10px 10px 0; background: #fff; border: 0; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 30px -12px rgba(40,25,10,.35); transform: rotate(var(--r, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; cursor: zoom-in; display: block; width: 100%; text-align: center; }
.pol img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 2px; }
.pol figcaption { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: .95rem; color: var(--ink-3); padding: 10px 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.pol:hover { transform: rotate(0deg) translateY(-6px) scale(1.03); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 26px 44px -16px rgba(40,25,10,.45); z-index: 2; }
.sh-fan .pol { position: absolute; width: 270px; cursor: default; }
.sh-fan .f0 { left: 4%; top: 70px; transform: rotate(-9deg); }
.sh-fan .f1 { right: 2%; top: 40px; transform: rotate(7deg); }
.sh-fan .f2 { left: 26%; top: 130px; transform: rotate(-1deg); z-index: 2; }
.sh-index { position: relative; display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 34px; }
.sh-index a { display: inline-flex; align-items: center; gap: 10px; padding: .6em 1.1em; border-radius: 999px; background: #fff; border: 1px solid var(--cream-2); font-size: .9rem; font-weight: 500; transition: all .15s; }
.sh-index a span { font-family: var(--f-mono); font-size: .72rem; color: var(--red); }
.sh-index a i { font-style: normal; font-family: var(--f-mono); font-size: .72rem; color: var(--muted-2); }
.sh-index a:hover { border-color: var(--text); }
.sc { padding: 90px 0; scroll-margin-top: 110px; }
.sc.alt { background: #fbf8f2; border-block: 1px solid var(--cream-2); }
.sc-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 60px; align-items: start; }
.sc-head { position: sticky; top: 140px; }
.sc-num { display: block; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 800; font-size: 4.4rem; line-height: .9; color: var(--red); }
.sc-kind { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sc-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin: 8px 0 14px; text-wrap: balance; }
.sc-head p { color: var(--muted); line-height: 1.7; }
.sc-count { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .92rem; padding-top: 18px; border-top: 1px solid var(--cream-2); }
.sc-count b { font-family: var(--f-display); font-size: 2rem; color: var(--text); }
.sc-cover { margin-top: 22px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; display: block; width: 100%; box-shadow: var(--shadow); cursor: zoom-in; }
.sc-cover img { width: 100%; display: block; }
.sw-pols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 34px 26px; padding: 10px; }
.sw-pols.few { grid-template-columns: repeat(2, minmax(0, 300px)); }
.sw-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sw-poster { padding: 0; border: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .35s var(--ease); }
.sw-poster:nth-child(2) { transform: translateY(36px); }
.sw-poster:hover { transform: translateY(-6px); }
.sw-poster:nth-child(2):hover { transform: translateY(28px); }
.sw-poster img { width: 100%; display: block; }
.sw-wide .pol { --r: -1deg; padding: 14px 14px 0; }
.sw-wide .pol img { aspect-ratio: auto; }
.sh-next { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--cream-2); border-radius: 28px; padding: 44px; }
.sh-next-frame { width: 220px; padding: 12px 12px 0; background: #fff; box-shadow: 0 14px 30px -12px rgba(40,25,10,.35); transform: rotate(-4deg); border-radius: 4px; }
.sh-next-frame span { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed #d7cbb6; border-radius: 2px; text-align: center; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.2rem; color: var(--muted); margin-bottom: 40px; background: var(--cream); }
.sh-next h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sh-next p { color: var(--muted); margin: 10px 0 22px; }
@media (max-width: 900px) {
  .sh::before { width: 100%; height: 38%; top: auto; bottom: 0; }
  .sh-inner { grid-template-columns: 1fr; padding: 48px 0 30px; }
  .sh-fan { height: 330px; }
  .sh-fan .pol { width: 180px; }
  .sh-fan .f0 { left: 0; top: 40px; } .sh-fan .f1 { right: 0; top: 20px; } .sh-fan .f2 { left: calc(50% - 90px); top: 90px; }
  .sh-index { background: var(--cream); margin: 0; padding: 18px 20px 28px; width: 100%; }
  .sc { padding: 60px 0; }
  .sc-grid { grid-template-columns: 1fr; gap: 30px; }
  .sc-head { position: static; }
  .sc-num { font-size: 3.2rem; }
  .sc-cover { max-width: 420px; }
  .sw-pols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 4px; }
  .sw-pols.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pol figcaption { font-size: .82rem; }
  .sw-posters { grid-template-columns: 1fr 1fr; }
  .sw-poster:nth-child(2) { transform: none; }
  .sw-poster:last-child { grid-column: 1 / -1; max-width: 60%; justify-self: center; }
  .sh-next { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .sh-next-frame { width: 170px; }
}

/* poster course cards + info course pages */
.ccard-cover.poster { aspect-ratio: 1; background: #fff; }
.ccard-cover.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ccard:hover .ccard-cover.poster img { transform: scale(1.03); }
.ccard-h { font-size: 1.25rem; line-height: 1.2; }
.cstatus { font-size: .85rem; font-weight: 600; color: var(--red); }
.side-poster { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.panel.bonus { display: flex; gap: 18px; align-items: center; background: var(--red-50); border-color: #f4ccd1; }
.bonus-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.bonus-ico .ico { width: 26px; height: 26px; }
.grad-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .2s; }
.grad-link:hover { border-color: var(--text); }
.grad-link > .ico { color: var(--red); width: 26px; height: 26px; }
.live-strip { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 20px; align-items: center; margin-top: 56px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.live-strip h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.live-strip figure { margin: 0; }
.live-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.live-strip figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .live-strip { grid-template-columns: 1fr; } }
.grid-courses .ccard-cover { aspect-ratio: 1; }

/* ---------- onsite (lab) ---------- */
body.lab { --lab: #1d3a8a; --lab-2: #e9eefb; }
.lh { position: relative; color: #fff; overflow: hidden; isolation: isolate; min-height: 560px; display: flex; align-items: flex-end; }
.lh-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; }
.lh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,18,45,.94) 0%, rgba(10,18,45,.75) 45%, rgba(10,18,45,.15) 100%), linear-gradient(0deg, rgba(10,18,45,.8), transparent 50%); }
.lh-inner { padding: 120px 0 64px; }
.lh-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; background: var(--lab); padding: 6px 12px; border-radius: 6px; }
.lh-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ea1ff; box-shadow: 0 0 0 4px rgba(126,161,255,.25); }
.lh h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); letter-spacing: -.04em; margin: 18px 0 16px; max-width: 700px; }
.lh p { color: rgba(255,255,255,.75); font-size: 1.12rem; max-width: 520px; }
.lh-stats { display: flex; gap: 0; margin-top: 34px; width: fit-content; border-left: 3px solid var(--red); }
.lh-stats span { padding: 4px 26px; color: rgba(255,255,255,.65); font-size: .88rem; }
.lh-stats b { display: block; font-family: var(--f-display); font-size: 2.2rem; color: #fff; line-height: 1.05; }
.lt { padding: 90px 0 70px; scroll-margin-top: 110px; }
.lt.alt { background: var(--lab-2); }
.lt-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.lt.alt .lt-media { order: 2; }
.lt-hero { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--ink); cursor: zoom-in; box-shadow: 0 30px 60px -30px rgba(10,18,45,.55); }
.lt-hero.poster { cursor: default; aspect-ratio: 1; background: #fff; }
.lt-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
button.lt-hero:hover img { transform: scale(1.03); }
.lt-count { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10,18,45,.78); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.lt-sheet { background: #fff; border: 1px solid #d9e0f2; border-radius: 22px; padding: 36px; position: relative; }
.lt-sheet::before { content: ""; position: absolute; left: 36px; right: 36px; top: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 30%, var(--lab) 30% 100%); border-radius: 0 0 4px 4px; }
.lt-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lab); }
.lt-badge { background: var(--red); color: #fff; padding: 4px 10px; border-radius: 6px; letter-spacing: .06em; }
.lt-sheet h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 14px 0 12px; text-wrap: balance; }
.lt-sheet > p { color: var(--muted); line-height: 1.7; }
.lt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #d9e0f2; border: 1px solid #d9e0f2; border-radius: 12px; overflow: hidden; margin: 22px 0; }
.lt-facts div { background: #f7f9fe; padding: 12px 14px; }
.lt-facts dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.lt-facts dd { margin: 3px 0 0; font-weight: 600; font-size: .95rem; }
.lt-skills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lt-skills span { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; width: 100%; margin-bottom: 4px; }
.lt-skills i { font-style: normal; font-size: .84rem; padding: 5px 11px; border-radius: 999px; background: var(--lab-2); color: var(--lab); font-weight: 500; }
.lt-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.lt-grad { font-weight: 600; font-size: .9rem; color: var(--red); display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.lt-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 28px; padding-bottom: 10px; scrollbar-width: thin; }
.lt-shot { flex: 0 0 200px; scroll-snap-align: start; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); cursor: zoom-in; }
.lt-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lt-shot:hover img { transform: scale(1.05); }
.lab-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: var(--lab); color: #fff; border-radius: 26px; padding: 48px; }
.lab-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 10px; }
.lab-cta p { color: rgba(255,255,255,.72); margin-top: 8px; }
@media (max-width: 900px) {
  .lh { min-height: 480px; } .lh-inner { padding: 90px 0 44px; }
  .lt { padding: 56px 0 44px; }
  .lt-grid { grid-template-columns: 1fr; gap: 24px; }
  .lt.alt .lt-media { order: 0; }
  .lt-hero { aspect-ratio: 4 / 3.4; }
  .lt-sheet { padding: 26px 22px; } .lt-sheet::before { left: 22px; right: 22px; }
  .lt-facts { grid-template-columns: 1fr; }
  .lt-shot { flex-basis: 150px; }
  .lab-cta { padding: 30px 24px; }
}
.lt-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; } .ig a { border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; } .ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .ig a:hover img { transform: scale(1.05); }

/* ---------- webinars (on air) ---------- */
.ah { background: #0b0b0d; color: #fff; overflow: hidden; position: relative; }
.ah::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 60%, rgba(191,24,42,.35), transparent 70%); }
.ah-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 84px 0 70px; }
.onair { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px; border: 2px solid var(--red); border-radius: 8px; font-family: var(--f-display); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; color: #ff4a5c; text-shadow: 0 0 14px rgba(255,74,92,.7); box-shadow: 0 0 24px rgba(191,24,42,.45), inset 0 0 14px rgba(191,24,42,.3); }
.onair i { width: 10px; height: 10px; border-radius: 50%; background: #ff2d42; box-shadow: 0 0 12px #ff2d42; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ah h1 { font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: -.04em; margin: 18px 0 14px; }
.ah p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 480px; }
.ah-stats { display: flex; gap: 30px; margin-top: 30px; }
.ah-stats span { color: rgba(255,255,255,.55); font-size: .88rem; }
.ah-stats b { display: block; font-family: var(--f-display); font-size: 2.3rem; color: #fff; line-height: 1; }
.ah-wave { height: 240px; display: flex; align-items: center; gap: 5px; }
.ah-wave i { flex: 1; height: var(--h); border-radius: 99px; background: linear-gradient(180deg, #ff4a5c, var(--red-700)); animation: wave 1.6s ease-in-out infinite alternate; animation-delay: var(--d); transform-origin: center; }
@keyframes wave { from { transform: scaleY(.35); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
.ep-wrap { padding-top: 80px; }
.ep-head { margin-bottom: 40px; } .ep-head h2 { margin-top: 12px; }
.eps { position: relative; display: grid; gap: 26px; }
.eps::before { content: ""; position: absolute; left: 89px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(180deg, var(--red) 0 8px, transparent 8px 16px); opacity: .5; }
.ep { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) 300px; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease); scroll-margin-top: 120px; }
.ep:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ep-date { background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 14px; position: relative; }
.ep-date::after { content: ""; position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
.ep-no { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; color: #ff4a5c; }
.ep-date b { font-family: var(--f-display); font-size: 4.2rem; line-height: 1; margin: 8px 0 2px; }
.ep-m { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.ep-w { color: rgba(255,255,255,.5); font-size: .82rem; margin-top: 2px; }
.ep-t { margin-top: 12px; font-size: .78rem; color: rgba(255,255,255,.8); display: inline-flex; gap: 5px; align-items: center; border-top: 1px dashed rgba(255,255,255,.2); padding-top: 10px; }
.ep-body { padding: 30px 34px; display: flex; flex-direction: column; gap: 12px; }
.ep-topic { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ep-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; text-wrap: balance; }
.ep-body > p { color: var(--muted); }
.ep-spk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--paper); border-radius: 14px; }
.ep-mic { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.ep-spk b { display: block; } .ep-spk small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }
.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.ep-tags span { font-size: .78rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.ep-tags a { font-size: .84rem; font-weight: 600; color: var(--red); display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.ep-posters { background: var(--paper-2); padding: 18px; display: grid; place-items: center; }
.ep-posters.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-posters button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); transition: transform .3s var(--ease); width: 100%; }
.ep-posters button:hover { transform: scale(1.03) rotate(-1deg); }
.ep-posters img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.unf { background: #f3eee3; padding: 90px 0; margin-top: 40px; }
.unf-inner { display: grid; grid-template-columns: 380px 1fr; gap: 60px; align-items: center; }
.unf img { width: 100%; border-radius: 22px; box-shadow: var(--shadow); }
.unf-ar { font-family: var(--f-ar); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.35; text-align: right; }
.unf-ar em, .unf-en em { font-style: normal; color: var(--red); }
.unf-en { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-top: 18px; letter-spacing: -.02em; }
.unf-en em { font-style: italic; }
.unf-sub { color: var(--muted); margin: 18px 0 24px; }
@media (max-width: 1000px) {
  .ah-inner { grid-template-columns: 1fr; padding: 60px 0 40px; } .ah-wave { height: 110px; }
  .eps::before { display: none; }
  .ep { grid-template-columns: 1fr; }
  .ep-date { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; justify-content: flex-start; padding: 16px 22px; text-align: left; }
  .ep-date::after { display: none; }
  .ep-date b { font-size: 2.4rem; margin: 0; }
  .ep-t { margin: 0; border: 0; padding: 0; }
  .ep-body { padding: 22px; }
  .ep-posters { order: -1; } .ep-posters:not(.two) img { max-width: 340px; margin: 0 auto; }
  .unf-inner { grid-template-columns: 1fr; gap: 30px; } .unf img { max-width: 340px; }
}

/* ---------- ramadan hackathon ---------- */
body.rmd { --gold: #d9a441; --gold-2: #f3d58a; --night: #1a0a0e; --night-2: #2a0f15; background: var(--night); color: #f4ead9; }
body.rmd .site-header, body.rmd .site-header.is-scrolled { background: rgba(250,248,245,.94); }
.rh { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 500px at 75% 10%, #5a1220 0%, transparent 60%), linear-gradient(180deg, #12050a 0%, var(--night) 100%); }
.rh-sky { position: absolute; inset: 0; z-index: -1; }
.rh-sky i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff3d1; opacity: .7; animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes twinkle { 50% { opacity: .15; } }
.rh-lanterns { position: absolute; top: 0; right: 4%; display: flex; gap: 34px; color: var(--gold); z-index: -1; }
.ln { display: block; width: 48px; transform-origin: top center; animation: sway 5s ease-in-out infinite; filter: drop-shadow(0 0 14px rgba(255,200,110,.45)); }
.ln svg { width: 100%; height: auto; display: block; }
.ln.l0 { margin-top: 0; width: 56px; } .ln.l1 { margin-top: 70px; animation-delay: -1.2s; } .ln.l2 { margin-top: 20px; width: 62px; animation-delay: -2.4s; } .ln.l3 { margin-top: 110px; width: 40px; animation-delay: -3.3s; }
.ln.l0 svg line, .ln.l2 svg line { } 
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.rh-inner { position: relative; padding: 90px 0 80px; }
.rh .crumbs { color: rgba(244,234,217,.55); }
.rh-moon { display: block; width: 64px; height: 64px; border-radius: 50%; margin: 26px 0 10px; box-shadow: -14px 6px 0 0 var(--gold-2); transform: rotate(-20deg); filter: drop-shadow(0 0 18px rgba(243,213,138,.5)); }
.rh-kicker { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.rh h1 { font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -.035em; margin: 14px 0 20px; color: #fff; max-width: 820px; }
.rh h1 span { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: var(--gold-2); font-weight: 800; }
.rh-sub { color: rgba(244,234,217,.72); font-size: 1.12rem; max-width: 540px; }
.rh-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 34px; border: 1px solid rgba(217,164,65,.35); border-radius: 16px; width: fit-content; background: rgba(0,0,0,.25); }
.rh-stats span { padding: 14px 26px; font-size: .86rem; color: rgba(244,234,217,.6); border-inline-start: 1px solid rgba(217,164,65,.25); }
.rh-stats span:first-child { border: 0; }
.rh-stats b { display: block; font-family: var(--f-display); font-size: 2rem; color: var(--gold-2); line-height: 1.05; }
.rmd-sec { background: var(--night); }
.rmd-alt { background: var(--night-2); }
.rmd-head { margin-bottom: 44px; }
.rmd-head h2 { color: #fff; margin-top: 12px; }
.rmd-head p { color: rgba(244,234,217,.65); margin-top: 10px; max-width: 560px; }
.rmd-eyebrow { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.rmd-eyebrow::before { content: "☾"; font-size: 1rem; letter-spacing: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: end; }
.pod { display: flex; flex-direction: column; gap: 14px; }
.pod-photo { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.pod-photo:hover { transform: translateY(-4px); }
.pod-photo img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.pod-name { text-align: center; } .pod-name b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: #fff; } .pod-name span { color: rgba(244,234,217,.55); font-size: .85rem; }
.pod-step { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px 14px 4px 4px; color: var(--night); }
.pod-step span { font-family: var(--f-display); font-weight: 800; font-size: 3rem; line-height: 1; } .pod-step sup { font-size: .4em; } .pod-step small { font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.p1 .pod-step { height: 170px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 0 40px rgba(243,213,138,.35); }
.p2 .pod-step { height: 120px; background: linear-gradient(180deg, #e6e3ea, #a9a6b4); }
.p3 .pod-step { height: 90px; background: linear-gradient(180deg, #f2b07a, #c46a35); }
.p1 .pod-name b { color: var(--gold-2); font-size: 1.8rem; }
.rmd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 56px auto 0; max-width: 640px; }
.rmd-card { position: relative; padding: 0; border: 1px solid rgba(217,164,65,.25); border-radius: 18px; overflow: hidden; cursor: zoom-in; background: #000; display: block; width: 100%; transition: transform .3s var(--ease), border-color .3s; }
.rmd-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.rmd-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.rmd-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-weight: 600; font-size: .9rem; text-align: left; }
.rmd-card.flat img { aspect-ratio: auto; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.day { background: rgba(0,0,0,.25); border: 1px solid rgba(217,164,65,.22); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.day-n { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 800; font-size: 2.2rem; color: var(--gold-2); line-height: 1; }
.day h3 { color: #fff; font-size: 1.2rem; } .day p { color: rgba(244,234,217,.62); font-size: .92rem; }
.medals { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.medals li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); color: #fff; font-weight: 600; font-size: 1.05rem; }
.medals li span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: var(--night); flex: none; }
.medals .m1 span { background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 0 16px rgba(243,213,138,.5); } .medals .m1 { background: rgba(217,164,65,.14); }
.medals .m2 span { background: linear-gradient(180deg, #e6e3ea, #a9a6b4); } .medals .m3 span { background: linear-gradient(180deg, #f2b07a, #c46a35); }
.day-src { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.spots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.partners h2 { color: #fff; margin: 12px 0 20px; }
.p-list { display: grid; gap: 10px; } .p-list li { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(217,164,65,.25); color: #fff; font-weight: 500; }
.rmd-cta { background: linear-gradient(90deg, #7f0e1b, var(--red)); padding: 56px 0; }
.rmd-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rmd-cta h2 { color: #fff; } .rmd-cta p { color: rgba(255,255,255,.8); margin-top: 8px; }
.rmd-btn { background: var(--gold-2); color: var(--night); } .rmd-btn:hover { background: #fff; }
@media (max-width: 900px) {
  .rh-lanterns { right: 2%; gap: 14px; opacity: .55; } .ln { width: 30px !important; }
  .rh-inner { padding: 60px 0 56px; }
  .rh-stats span { padding: 12px 16px; } .rh-stats b { font-size: 1.5rem; }
  .podium { grid-template-columns: 1fr; } .p1 { order: -1; }
  .pod-step { height: 64px !important; flex-direction: row; gap: 8px; }
  .pod-step span { font-size: 2rem; }
  .rmd-pair { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: 1fr; }
  .spots { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr; gap: 24px; }
}
.ed26-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; } .ed26 h2 { color: #fff; margin: 12px 0 14px; } .ed26 p { color: rgba(244,234,217,.68); max-width: 520px; } .ed26 .rmd-card img { aspect-ratio: 4/5; } @media (max-width: 900px) { .ed26-in { grid-template-columns: 1fr; gap: 24px; } .ed26 .rmd-card { max-width: 360px; } }

/* ---------- AI Biovision spin wheel ---------- */
.spin { position: relative; overflow: hidden; background: radial-gradient(700px 400px at 75% 50%, rgba(191,24,42,.35), transparent 65%), linear-gradient(180deg, #120609, #1c0a0f); color: #fff; padding: 64px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sw-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #f3d58a; border: 1px solid rgba(217,164,65,.5); padding: 6px 12px; border-radius: 999px; }
.sw-copy h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1; margin: 18px 0 14px; letter-spacing: -.03em; }
.sw-copy h2 em { font-family: "Playfair Display", Georgia, serif; font-style: italic; color: #f3d58a; }
.sw-copy > p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 460px; }
.sw-copy > p b { color: #f3d58a; }
.sw-form { margin-top: 26px; display: grid; gap: 12px; max-width: 420px; }
.sw-form label { display: grid; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; }
.sw-form input { font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.sw-form input:focus { outline: none; border-color: #f3d58a; box-shadow: 0 0 0 3px rgba(243,213,138,.2); }
.sw-form .btn { margin-top: 6px; }
.sw-err { color: #ff8a95; font-size: .88rem; min-height: 1.2em; }
.sw-fine { color: rgba(255,255,255,.45); font-size: .78rem; }
.sw-stage { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; }
.sw-wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 8px #2a0f15, 0 0 0 10px #d9a441, 0 30px 70px -20px rgba(0,0,0,.8), 0 0 80px rgba(191,24,42,.35); transform-origin: 50% 50%; }
.sw-pointer { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid #f3d58a; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.sw-hub { position: absolute; top: 50%; left: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid #f3d58a; background: radial-gradient(circle at 35% 30%, #e8324a, #7f0e1b); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: clamp(.9rem, 2vw, 1.2rem); letter-spacing: .06em; box-shadow: 0 8px 20px rgba(0,0,0,.5); z-index: 2; transition: transform .2s; }
.sw-hub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.06); }
.sw-hub:disabled { cursor: default; }
.sw-result { margin-top: 26px; max-width: 440px; padding: 24px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(243,213,138,.4); }
.sw-result.pop { animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.sw-r-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #f3d58a; }
.sw-result > b { display: block; font-family: var(--f-display); font-size: 2.2rem; margin: 6px 0; }
.sw-result > p { color: rgba(255,255,255,.75); }
.sw-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; padding: 12px 14px; border-radius: 12px; background: #0f0f11; border: 1px dashed rgba(243,213,138,.5); }
.sw-code span { font-size: .75rem; color: rgba(255,255,255,.5); }
.sw-code strong { font-family: var(--f-mono); font-size: 1.15rem; letter-spacing: .08em; color: #f3d58a; flex: 1; }
.sw-code button { display: inline-flex; gap: 6px; align-items: center; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .8rem; }
.sw-how { font-size: .88rem; margin-bottom: 14px; }
@media (max-width: 900px) {
  .spin { padding: 44px 0; }
  .sw-grid { grid-template-columns: 1fr; gap: 30px; }
  .sw-stage { order: -1; width: min(86%, 360px); }
}
/* webinar records */
.rec-wrap { padding-top: 70px; padding-bottom: 10px; scroll-margin-top: 120px; }
.recs { display: grid; gap: 24px; }
.rec { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.rec-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.rec-player iframe, .rec-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rec-info { padding: 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.rec-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; animation: pulseR 2s infinite; }
@keyframes pulseR { 0%, 100% { box-shadow: 0 0 0 0 rgba(191,24,42,.6); } 50% { box-shadow: 0 0 0 10px rgba(191,24,42,0); } }
.rec-info h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }
.rec-info > p { color: rgba(255,255,255,.65); }
.rec-info .ep-spk { background: rgba(255,255,255,.06); }
.rec-info .ep-spk small { color: rgba(255,255,255,.55); }
.rec-date { font-size: .82rem; color: rgba(255,255,255,.5); display: inline-flex; gap: 6px; align-items: center; }
.ep-watch { align-self: flex-start; }
@media (max-width: 900px) { .rec { grid-template-columns: 1fr; } .rec-info { padding: 22px; } }
