/* =========================================================
   Omar Hardani — personal site
   Design system: monochrome black & white, glass, grid, glow
   ========================================================= */

:root {
  /* Colors */
  --bg: #000;
  --surface: #080808;
  --surface-2: #0f0f0f;
  --text: #ffffff;
  --text-soft: #cccccc;
  --text-mute: #8a8a8a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --head-1: #e4e5f2;
  --head-2: rgba(228, 229, 242, 0.32);

  /* Type */
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --serif-ar: "Amiri", "Noto Naskh Arabic", serif;
  --serif-en: "Instrument Serif", Georgia, serif;

  /* Shape */
  --r-sm: 12px;
  --r: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-xl: 48px;
  --pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section: 128px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); overflow-x: clip; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; }

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 255, 255, 0.85); color: #000; }

/* Film-grain noise over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.22;
  font-weight: 500;
}
html[lang="en"] .h1 { line-height: 1.04; letter-spacing: -0.035em; }

.h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.35;
  font-weight: 400;
}
html[lang="en"] .h2 { line-height: 1.15; letter-spacing: -0.02em; }

.h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; font-weight: 500; }
html[lang="en"] .h3 { line-height: 1.3; letter-spacing: -0.01em; }

.lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--text-soft); text-wrap: pretty; }
.h1, .h2, .quote { text-wrap: balance; }
html[lang="ar"] .accent { font-size: 1.06em; }
.muted { color: var(--text-mute); }
.small { font-size: 14px; }

/* Gradient headline — fades away from the reading start */
.grad {
  background: linear-gradient(218deg, var(--head-1) 38%, var(--head-2) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* room for descenders, dots and Amiri's deep strokes so nothing gets clipped */
  padding-block: 0.1em 0.22em;
  margin-bottom: -0.12em;
}
html[dir="ltr"] .grad { background-image: linear-gradient(142deg, var(--head-1) 38%, var(--head-2) 94%); }

/* Serif accent words */
.accent { font-family: var(--serif-ar); font-weight: 400; }
html[lang="en"] .accent { font-family: var(--serif-en); font-style: italic; letter-spacing: -0.01em; }

/* ---------- Section heading block ---------- */
.head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.head .h2 { margin-top: 20px; }
.head .lead { margin: 16px auto 0; max-width: 560px; }
.head.start { text-align: start; margin-inline: 0; }
.head.start .lead { margin-inline: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-transform: uppercase;
  white-space: nowrap;
}
.tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 12px rgba(255,255,255,.6);
}
html[lang="ar"] .tag { letter-spacing: 0; font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding-inline: 22px;
  border-radius: var(--pill);
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(180deg, #fff, #e3e3e3);
  color: #000;
  padding-inline-end: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 30px rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.08);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.6), 0 10px 40px rgba(255,255,255,.22), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-primary .btn-ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #0b0b0b;
  color: #fff;
  display: grid; place-items: center;
  transition: transform .35s var(--ease);
}
.btn-ico svg { width: 16px; height: 16px; }
.btn > svg { width: 18px; height: 18px; flex: none; }
.btn-sm .btn-ico svg { width: 14px; height: 14px; }
.btn-primary:hover .btn-ico { transform: translateX(3px); }
html[dir="rtl"] .btn-primary:hover .btn-ico { transform: translateX(-3px); }

.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { --h: 40px; padding-inline: 18px; font-size: 14px; }
.btn-sm.btn-primary { padding-inline-end: 4px; }
.btn-sm .btn-ico { width: 32px; height: 32px; }

.i-dir { transition: transform .3s; }
html[dir="rtl"] .i-dir { transform: scaleX(-1); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(255,255,255,.03),
    0 24px 60px -20px rgba(0,0,0,.8);
  border-radius: var(--r-md);
}
/* Liquid edge highlight */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,.06) 32%, rgba(255,255,255,0) 58%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
}
.card::before { /* top glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255,255,255,.09), transparent 60%);
}
.card::after { /* cursor spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), transparent 60%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }

.icon-box {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #1c1c1c, #0a0a0a);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.08), 0 0 30px rgba(255,255,255,.08);
}
.icon-box svg { width: 24px; height: 24px; }

/* ---------- Background effects ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}
.dots-bg {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 16px;
  transition: background .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; }
html[lang="en"] .brand { letter-spacing: -0.01em; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: var(--pill);
  background: rgba(10,10,10,.6);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-pill a {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--pill);
  font-size: 14px;
  color: var(--text-soft);
  transition: color .3s, background .3s;
}
.nav-pill a:hover { color: #fff; }
.nav-pill a.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.nav-end { display: flex; align-items: center; gap: 10px; }

.lang-btn {
  height: 40px;
  min-width: 40px;
  padding-inline: 12px;
  border-radius: var(--pill);
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 500;
  transition: background .3s;
}
.lang-btn:hover { background: rgba(255,255,255,.12); }
.lang-btn [data-for="ar"] { font-family: var(--font-ar); }

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  cursor: pointer;
  place-items: center;
}
.menu-btn { flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.menu-btn span { display: block; flex: none; width: 18px; height: 1.5px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 96px var(--gutter) 32px;
  background: rgba(0,0,0,.82);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.mobile-menu a:not(.btn) { font-size: 26px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: 168px; padding-bottom: 40px; text-align: center; overflow: hidden; }
.hero .glow.g1 { width: 1000px; height: 520px; top: -260px; left: 50%; transform: translateX(-50%); opacity: .9; }
.hero .dots-bg.d1 { top: 40px; inset-inline-start: 0; width: 260px; height: 320px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.hero .dots-bg.d2 { top: 0; left: 50%; transform: translateX(-50%); width: 900px; height: 140px; opacity: .5; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }

.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color .3s, background .3s;
}
.hero .badge:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); }
.hero .badge b { font-weight: 500; color: #000; background: #fff; border-radius: var(--pill); padding: 2px 10px; font-size: 12px; }
html[dir="rtl"] .hero .badge { padding: 6px 6px 6px 16px; }

.hero .h1 { max-width: 960px; margin: 28px auto 0; }
.hero .lead { max-width: 640px; margin: 24px auto 0; }
.hero-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-media {
  position: relative;
  margin: 72px auto 0;
  max-width: 1080px;
  padding: 6px;
  border-radius: 34px;
}
.hero-media::after { /* top light spill like the template */
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  box-shadow: 0 0 40px 8px rgba(255,255,255,.18);
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
}
.hero-media .caption {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--pill);
  font-size: 14px;
}
html[dir="rtl"] .hero-media .caption { padding: 10px 10px 10px 16px; }
.hero-media .caption .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), background .3s;
}
.hero-play svg { width: 30px; height: 30px; margin-left: 5px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.hero-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  animation: pulse 2.4s var(--ease) infinite;
}
.hero-play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,.14); }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(transparent, #000); pointer-events: none; }

/* =========================================================
   VENTURES MARQUEE
   ========================================================= */
.ventures { padding-block: 72px 40px; }
.ventures .label { display: flex; align-items: center; gap: 20px; justify-content: center; color: var(--text-soft); font-size: 15px; margin-bottom: 36px; }
.ventures .label::before, .ventures .label::after { content: ""; height: 1px; flex: 0 1 240px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3)); }
.ventures .label::after { transform: scaleX(-1); }
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 36px; width: auto; opacity: .55; filter: grayscale(1) brightness(1.6); transition: opacity .3s; }
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   ABOUT — three pillars
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 0; min-height: 420px; display: flex; flex-direction: column; }
.pillar .art { position: relative; flex: 1; min-height: 240px; display: grid; place-items: center; overflow: hidden; }
.pillar .art .grid-bg { -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); background-size: 32px 32px; }
.pillar .body { padding: 0 28px 28px; }
.pillar .body p { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; }

.creds { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cred { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r); font-size: 14px; color: var(--text-soft); }
.cred svg { width: 20px; height: 20px; color: #fff; flex: none; }
.cred b { color: #fff; font-weight: 500; }

/* Pillar illustrations */
.art-blocks { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; transform: rotate(-8deg); }
.art-blocks i { height: 44px; border-radius: 10px; background: linear-gradient(180deg, #232323, #0c0c0c); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(255,255,255,.06); transition: transform .6s var(--ease); }
.art-blocks i.on { background: linear-gradient(180deg, #fff, #bdbdbd); box-shadow: 0 0 30px rgba(255,255,255,.35); }
.art-blocks i.ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border: 0; }
.pillar:hover .art-blocks i:nth-child(odd) { transform: translateY(-6px); }

.art-compass { width: 170px; height: 170px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 30%, #1b1b1b, #050505); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px rgba(255,255,255,.08); }
.art-compass::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.art-compass .needle { position: absolute; left: 50%; top: 50%; width: 4px; height: 120px; margin: -60px 0 0 -2px; transition: transform 1.2s var(--ease); transform: rotate(35deg); }
.art-compass .needle::before, .art-compass .needle::after { content: ""; position: absolute; left: 0; width: 4px; height: 60px; border-radius: 4px; }
.art-compass .needle::before { top: 0; background: linear-gradient(#fff, #9a9a9a); box-shadow: 0 0 16px rgba(255,255,255,.5); }
.art-compass .needle::after { bottom: 0; background: #2a2a2a; }
.art-compass .pin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #fff; }
.pillar:hover .art-compass .needle { transform: rotate(-20deg); }

.art-lines { width: 210px; padding: 18px; border-radius: 16px; background: #0b0b0b; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(6deg); }
.art-lines i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); margin-block: 10px; }
.art-lines i:nth-child(2) { width: 80%; }
.art-lines i:nth-child(3) { width: 92%; background: rgba(255,255,255,.85); box-shadow: 0 0 14px rgba(255,255,255,.4); }
.art-lines i:nth-child(4) { width: 64%; }
.art-lines i:nth-child(5) { width: 86%; }
.art-lines .q { font-family: var(--serif-en); font-size: 54px; line-height: .6; color: #fff; height: 26px; }

/* =========================================================
   FOCUS — 3x2 cards
   ========================================================= */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.focus-card { padding: 28px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.focus-card p { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; }

/* =========================================================
   COURSE — sticky + numbered lessons
   ========================================================= */
.course { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.course-intro { position: sticky; top: 120px; }
.course-intro .h2 { margin-top: 20px; }
.course-intro .lead { margin-top: 16px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 13px; color: var(--text-soft); }
.chip svg { width: 15px; height: 15px; color: #fff; }

.lessons { position: relative; display: flex; flex-direction: column; gap: 40px; padding-inline-start: 104px; }
.lessons::before { content: ""; position: absolute; inset-inline-start: 44px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.3) 10%, rgba(255,255,255,.3) 90%, transparent); }
.lesson { position: relative; transition: opacity .6s var(--ease), filter .6s var(--ease); }
.js .lesson { opacity: .45; }
.js .lesson.is-active { opacity: 1; filter: none; }
.lesson .num {
  position: absolute;
  inset-inline-start: -104px;
  top: 0;
  width: 88px;
  text-align: center;
  font-size: 44px;
  font-weight: 200;
  line-height: 1;
  padding-block: 8px;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-en);
  letter-spacing: -0.04em;
}
.lesson .card { padding: 28px; }
.lesson .step { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-soft); padding: 4px 12px; border-radius: var(--pill); border: 1px solid var(--line); margin-bottom: 18px; }
.lesson ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.lesson li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 15px; }
.lesson li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #fff; opacity: .9; }
html[lang="en"] .lesson li svg { margin-top: 2px; }

/* =========================================================
   QUESTIONS
   ========================================================= */
.questions { max-width: 920px; margin-inline: auto; border-top: 1px solid var(--line); }
.q-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 16px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .4s, padding .4s var(--ease);
}
.q-row:hover { background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); padding-inline: 20px; }
.q-row .n { font-family: var(--font-en); font-size: 14px; color: var(--text-mute); letter-spacing: .05em; }
.q-row p { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; }
html[lang="en"] .q-row p { line-height: 1.4; letter-spacing: -0.01em; }
.q-row svg { width: 20px; height: 20px; color: var(--text-mute); transition: transform .4s var(--ease), color .3s; }
.q-row:hover svg { color: #fff; transform: rotate(45deg); }

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.manifesto { text-align: center; overflow: hidden; }
.manifesto .glow { width: 800px; height: 400px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .6; }
.manifesto blockquote { margin: 28px auto 0; max-width: 980px; }
.manifesto .quote { font-size: clamp(34px, 5vw, 64px); line-height: 1.35; font-weight: 400; color: var(--head-1); margin: 0; }
.manifesto .quote .accent { color: #fff; }
html[lang="en"] .manifesto .quote { line-height: 1.1; letter-spacing: -0.03em; }
.manifesto .lead { max-width: 620px; margin: 28px auto 0; }
.signature { margin-top: 28px; font-family: var(--serif-ar); font-size: 26px; color: var(--text-soft); }
html[lang="en"] .signature { font-family: var(--serif-en); font-style: italic; }

/* =========================================================
   GUIDE — lead capture
   ========================================================= */
.guide { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: stretch; }
.guide-copy { padding: 48px; border-radius: var(--r-lg); }
.guide-copy .h2 { margin-top: 20px; }
.guide-copy .lead { margin-top: 14px; }
.guide-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.guide-points li { display: flex; gap: 10px; color: var(--text-soft); font-size: 15px; }
.guide-points svg { width: 18px; height: 18px; flex: none; margin-top: 5px; }

.form { display: grid; gap: 14px; margin-top: 32px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.input {
  width: 100%;
  height: 50px;
  padding-inline: 16px;
  border-radius: 14px;
  border: 0;
  outline: 0;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: box-shadow .3s, background .3s;
}
.input::placeholder { color: #6d6d6d; }
.input:focus { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 0 0 4px rgba(255,255,255,.06); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--text-mute); margin: 0; }
.form-status { font-size: 14px; margin: 0; min-height: 1px; }
.form-status.err { color: #ff8b8b; }
.form-success { display: none; padding: 20px; border-radius: var(--r); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.form-success p { margin: 0 0 14px; }
.is-done .form-fields { display: none; }
.is-done .form-success { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.guide-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; min-height: 520px; background: var(--surface); border: 1px solid var(--line); }
.guide-visual .grid-bg { -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.guide-visual .glow { width: 420px; height: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.doc {
  position: relative;
  width: 280px;
  aspect-ratio: 1 / 1.38;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateY(-14deg) rotateX(6deg);
  transition: transform .8s var(--ease);
}
html[dir="rtl"] .doc { transform: perspective(1000px) rotateY(14deg) rotateX(6deg); }
.guide-visual:hover .doc { transform: perspective(1000px) rotateY(0) rotateX(0); }
.doc-back { position: absolute; width: 280px; aspect-ratio: 1/1.38; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1000px) rotateY(-14deg) rotateX(6deg) translate(26px, 18px); }
html[dir="rtl"] .doc-back { transform: perspective(1000px) rotateY(14deg) rotateX(6deg) translate(-26px, 18px); }
.doc .doc-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-mute); font-family: var(--font-en); letter-spacing: .1em; }
.doc .doc-title { margin-top: auto; font-size: 26px; line-height: 1.35; font-weight: 500; }
html[lang="en"] .doc .doc-title { line-height: 1.1; letter-spacing: -0.02em; }
.doc .doc-sub { margin-top: 10px; font-size: 13px; color: var(--text-soft); }
.doc .doc-bars { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 6px; height: 70px; margin-top: 28px; }
.doc .doc-bars i { background: rgba(255,255,255,.14); border-radius: 4px 4px 2px 2px; }
.doc .doc-bars i:last-child { background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.5); }

/* =========================================================
   VIDEOS (shorts)
   ========================================================= */
.shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.short {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  text-align: start;
  isolation: isolate;
  transition: transform .6s var(--ease), border-color .4s;
}
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s var(--ease), filter .6s; filter: saturate(.85); }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.92)); z-index: 1; }
.short:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.short:hover img { transform: scale(1.07); filter: saturate(1); }
.short .meta { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 18px; }
.short .meta p { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short .play { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.short .play svg { width: 16px; height: 16px; }
.short .kind { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; font-size: 11px; padding: 4px 10px; border-radius: var(--pill); background: rgba(0,0,0,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); font-family: var(--font-en); letter-spacing: .06em; }
.short.skeleton { background: linear-gradient(110deg, #0b0b0b 30%, #161616 50%, #0b0b0b 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.videos-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* Player modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-frame { width: min(420px, 100%); aspect-ratio: 9/16; max-height: 86vh; border-radius: var(--r-md); overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 30px 80px rgba(0,0,0,.8); }
.modal.wide .modal-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; max-height: 86vh; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: 20px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }

/* =========================================================
   CONTACT / BOOKING
   ========================================================= */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-copy { padding: 48px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.contact-copy > .tag { align-self: flex-start; }
.contact-copy .h2 { margin-top: 20px; }
.contact-copy .lead { margin-top: 14px; }
.contact-copy .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.contact-links { margin-top: auto; padding-top: 40px; display: grid; gap: 10px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-size: 14px; transition: background .3s; }
.contact-link:hover { background: rgba(255,255,255,.07); }
.contact-link span { display: inline-flex; align-items: center; gap: 10px; }
.contact-link svg { width: 18px; height: 18px; }
.contact-link .ltr { direction: ltr; unicode-bidi: isolate; color: var(--text-soft); }
.cal-wrap { border-radius: var(--r-lg); padding: 10px; min-height: 640px; overflow: hidden; }
.cal-wrap #cal-inline { width: 100%; height: 100%; min-height: 620px; overflow: auto; border-radius: 22px; }
.cal-fallback { display: grid; place-items: center; text-align: center; min-height: 600px; padding: 24px; color: var(--text-soft); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding-block: 88px 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer .glow { width: 900px; height: 300px; left: 50%; bottom: -220px; transform: translateX(-50%); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-soft); max-width: 340px; margin: 16px 0 24px; }
.footer h4 { font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-soft); font-size: 15px; transition: color .3s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }
.footer-word { margin-top: 56px; font-size: clamp(64px, 14vw, 200px); line-height: .9; font-weight: 500; text-align: center; opacity: .9; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
html[lang="en"] .footer-word { letter-spacing: -0.05em; }

.socials { display: flex; gap: 10px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s, transform .3s var(--ease); }
.social:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* =========================================================
   SUB-PAGES
   ========================================================= */
.page-hero { position: relative; padding-top: 176px; padding-bottom: 64px; text-align: center; overflow: hidden; }
.page-hero .glow { width: 900px; height: 460px; top: -240px; left: 50%; transform: translateX(-50%); }
.page-hero .h1 { margin-top: 24px; }
.page-hero .lead { max-width: 600px; margin: 18px auto 0; }
.page-hero .hero-ctas { margin-top: 32px; }

.count { font-family: var(--font-en); color: var(--text-mute); font-size: 14px; }

/* Blog coming soon */
.soon { max-width: 720px; margin-inline: auto; padding: 48px; border-radius: var(--r-lg); text-align: center; }
.soon .topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.soon .form { max-width: 460px; margin-inline: auto; }
.soon .form .btn { justify-self: center; }

/* Links page */
.links-page { min-height: 100vh; padding: 64px var(--gutter) 48px; position: relative; overflow: hidden; }
.links-page .glow.g1 { width: 700px; height: 500px; top: -260px; left: 50%; transform: translateX(-50%); }
.links-page .grid-bg { -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 10%, transparent 70%); }
.links-wrap { position: relative; max-width: 520px; margin-inline: auto; text-align: center; }
.links-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.avatar { width: 112px; height: 112px; margin-inline: auto; border-radius: 50%; padding: 4px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.links-wrap .name { margin-top: 20px; font-size: 28px; font-weight: 500; }
.links-wrap .bio { color: var(--text-soft); margin: 8px auto 0; max-width: 400px; font-size: 15px; }
.links-wrap .socials { justify-content: center; margin-top: 22px; }
.link-list { display: grid; gap: 12px; margin-top: 32px; }
.link-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px;
  padding-inline-end: 18px;
  border-radius: 20px;
  text-align: start;
  transition: transform .4s var(--ease), background .3s;
}
.link-item:hover { transform: translateY(-2px); }
.link-item .icon-box { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.link-item .icon-box svg { width: 20px; height: 20px; }
.link-item .t { flex: 1; min-width: 0; }
.link-item .t b { display: block; font-weight: 500; font-size: 15px; }
.link-item .t span { display: block; font-size: 13px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-item > svg { width: 18px; height: 18px; color: var(--text-mute); flex: none; }
.link-item.featured { background: linear-gradient(180deg, #fff, #e2e2e2); color: #000; box-shadow: 0 10px 40px rgba(255,255,255,.12); }
.link-item.featured .icon-box { background: #0b0b0b; }
.link-item.featured .t span, .link-item.featured > svg { color: #444; }
.link-item.soon-item { opacity: .6; }
.links-foot { margin-top: 40px; font-size: 13px; color: var(--text-mute); }

/* =========================================================
   LONG VIDEOS (16:9) + TABS
   ========================================================= */
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vids[hidden], .shorts[hidden], .tabs[hidden] { display: none; }
.vid {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); cursor: pointer; padding: 0; text-align: start; isolation: isolate;
  transition: transform .6s var(--ease), border-color .4s;
}
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .8s var(--ease), filter .6s; filter: saturate(.85); }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.9)); z-index: 1; }
.vid:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.vid:hover img { transform: scale(1.07); filter: saturate(1); }
.vid .meta { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 18px; }
.vid .meta p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid .play { position: absolute; left: 50%; top: 44%; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.vid .play svg { width: 20px; height: 20px; margin-left: 3px; }
.vid:hover .play { transform: translate(-50%, -50%) scale(1.08); }

.tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto 32px; gap: 2px; padding: 5px; border-radius: var(--pill); background: rgba(10,10,10,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.1); }
.tabs button { border: 0; background: none; cursor: pointer; padding: 8px 20px; border-radius: var(--pill); font-size: 14px; color: var(--text-soft); transition: color .3s, background .3s; }
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; }
.pager[hidden] { display: none; }
.pager button { min-width: 42px; height: 42px; padding-inline: 14px; border: 0; border-radius: var(--pill); cursor: pointer; font: inherit; font-size: 14px; color: var(--text-soft); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .3s, color .3s; font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.1); }
.pager button.on { color: #000; background: #fff; box-shadow: 0 0 20px rgba(255,255,255,.18); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .pg-gap { color: var(--text-mute); padding-inline: 4px; }

/* =========================================================
   BLOG — list
   ========================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; padding: 0; text-align: start; }
.post-card:hover { transform: translateY(-4px); }
.post-card[lang="en"] { font-family: var(--font-en); }
.post-card[lang="ar"] { font-family: var(--font-ar); }
.post-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.08), transparent 70%); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-cover .grid-bg { background-size: 32px 32px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.post-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post-body p { margin: 8px 0 0; color: var(--text-soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-mute); margin-bottom: 10px; }
.post-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font-size: 14px; color: #fff; }
.post-more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.post-card[dir="rtl"] .post-more svg, .post[dir="rtl"] .post-back svg { transform: scaleX(-1); }
.post-card[dir="ltr"] .post-more svg, .post[dir="ltr"] .post-back svg { transform: none; }

/* =========================================================
   BLOG — article
   ========================================================= */
.post[lang="en"] { font-family: var(--font-en); line-height: 1.6; }
.post[lang="ar"] { font-family: var(--font-ar); line-height: 1.75; }
.post-wrap { max-width: calc(760px + var(--gutter) * 2); }
.post-hero { text-align: start; padding-bottom: 40px; }
.post-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); margin-bottom: 28px; transition: color .3s; }
.post-back:hover { color: #fff; }
.post-back svg { width: 16px; height: 16px; rotate: 180deg; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.post-title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 500; line-height: 1.3; color: var(--head-1); text-wrap: balance; }
.post[lang="en"] .post-title { line-height: 1.1; letter-spacing: -0.03em; }
.post-hero .lead { margin: 18px 0 0; max-width: none; }
.post-hero .post-meta { margin: 24px 0 0; }
.post-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 48px; }

.prose { font-size: 18px; color: #dedede; }
.post[lang="ar"] .prose { line-height: 2; }
.post[lang="en"] .prose { line-height: 1.75; }
.prose > * { margin-block: 0 1.3em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 500; color: #fff; margin-top: 2em; line-height: 1.4; }
.prose h3 { font-size: 21px; font-weight: 500; color: #fff; margin-top: 1.8em; line-height: 1.5; }
.post[lang="en"] .prose h2, .post[lang="en"] .prose h3 { letter-spacing: -0.015em; line-height: 1.25; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: #fff; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--text-mute); }
.prose blockquote { margin-inline: 0; padding: 22px 26px; border-radius: var(--r-md); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.06); font-size: 20px; color: #fff; }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.prose pre { direction: ltr; text-align: left; padding: 18px; border-radius: var(--r); background: var(--surface-2) !important; border: 1px solid var(--line); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.post-end { padding: 32px; border-radius: var(--r-lg); }
.post-end .muted { margin: 8px 0 0; }

@media (max-width: 1100px) { .vids, .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .vids, .posts { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .post-end { padding: 24px 20px; }
}

/* Focus ring only for keyboard users (no blue ring after a mouse click) */
button:focus, a:focus { outline: none; }
button:focus-visible, a:focus-visible, .input:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: 3px; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .lesson { opacity: 1; filter: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-pill a { padding: 8px 12px; }
  .course { grid-template-columns: 1fr; gap: 56px; }
  .course-intro { position: static; text-align: center; }
  .course-intro .lead { margin-inline: auto; max-width: 600px; }
  .course-meta { justify-content: center; }
  .shorts { grid-template-columns: repeat(3, 1fr); }
  .shorts .short:nth-child(4) { display: none; }
  .videos-page .shorts .short:nth-child(4) { display: block; }
}

@media (max-width: 900px) {
  :root { --section: 96px; }
  .nav-pill, .nav-end .btn { display: none; }
  .menu-btn { display: flex; }
  .pillars, .focus-grid { grid-template-columns: 1fr 1fr; }
  .pillars .pillar:last-child { grid-column: 1 / -1; }
  .guide, .contact { grid-template-columns: 1fr; }
  .guide-visual { min-height: 420px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section: 80px; --gutter: 18px; }
  .hero { padding-top: 132px; }
  .ventures .label::before, .ventures .label::after { display: none; }
  .ventures .label { text-align: center; }
  .hero-media { margin-top: 48px; border-radius: 24px; padding: 4px; }
  .hero-media img { border-radius: 20px; }
  .hero-play { width: 64px; height: 64px; }
  .hero-play svg { width: 22px; height: 22px; margin-left: 3px; }
  .hero-media .caption { bottom: 14px; inset-inline-start: 14px; font-size: 13px; }
  .pillars, .focus-grid { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
  .pillar .art { min-height: 220px; }
  .focus-card { min-height: 0; gap: 36px; }
  .lessons { padding-inline-start: 0; gap: 20px; }
  .lessons::before { display: none; }
  .lesson .num { position: static; width: auto; text-align: start; font-size: 36px; padding: 0 0 10px; background: none; }
  .q-row { grid-template-columns: 40px 1fr 20px; gap: 12px; padding: 20px 4px; }
  .q-row:hover { padding-inline: 4px; }
  .guide-copy, .contact-copy, .soon { padding: 28px 22px; }
  .form .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .doc, .doc-back { width: 220px; }
  .shorts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shorts .short:nth-child(4) { display: block; }
  .short .meta { padding: 12px; }
  .short .meta p { font-size: 13px; }
  .cal-wrap { padding: 6px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .hero-ctas .btn { flex: 1 1 100%; max-width: 360px; }
}
