/* =========================================================
   Sayed Nassrat Kachakech — Official Website
   Personal-portfolio layout after Robinsweb: near-black page, a deep
   green glow (the colours of his YouTube banner and profile picture),
   his huge name with his portrait in front of it, sliding bands of
   numbers, numbered lists and a giant "invite" line. Gold from the logo
   for the small stars.
   ========================================================= */

@font-face { font-family: "SF Pro AR"; src: url("../fonts/SFProAR-Regular.ttf") format("truetype"); font-weight: 100 500; font-display: swap; }
@font-face { font-family: "SF Pro AR"; src: url("../fonts/SFProAR-Semibold.ttf") format("truetype"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("../fonts/GESSTwoLight-Light.otf") format("opentype"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("../fonts/NotoKufiArabic-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Nsr Amiri"; src: url("../fonts/Amiri-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nsr Amiri"; src: url("../fonts/Amiri-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 100 600; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --hero-bg: url("../img/hero-bg.webp"); --hero-bg-sm: url("../img/hero-bg-sm.webp"); --hero-bg-light: url("../img/hero-bg-light.webp"); --name-art: url("../img/name.webp");   /* the dashboard can override these */
  --bg: #06110F;            /* near-black green */
  --bg-2: #0A1A17;
  --surface: #0E201C;
  --surface-2: #132A25;
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .18);
  --text: #F2F6F4;
  --text-2: #B9CBC5;
  --text-3: #86A098;
  --green: #2E7D6B;         /* glow and buttons */
  --green-2: #1E5A52;
  --green-3: #3FA38A;       /* highlights */
  --green-deep: #0E2726;
  --gold: #D4B062;          /* the gold of the logo */
  --grad-btn: linear-gradient(135deg, #3A9A82, #1E5A52);
  --grain: 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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");

  --font-ui: "SF Pro AR", "GE SS Two", "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-classic: "Nsr Amiri", "Amiri", serif;

  --radius: 16px; --radius-lg: 22px; --radius-xl: 28px; --radius-pill: 999px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
  --pad: clamp(16px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { color: var(--text); font: 400 16.5px/1.85 var(--font-ui); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; text-align: inherit; }
svg { width: 22px; height: 22px; flex: none; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green-3); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--green); color: #fff; padding: 8px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.pill-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 22px 6px 6px;
  border-radius: var(--radius-pill); background: var(--grad-btn); color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 10px 30px rgb(46 125 107 / .35), inset 0 1px 0 rgb(255 255 255 / .2);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pill-btn i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--green-2); }
.pill-btn i svg { width: 18px; height: 18px; }
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgb(46 125 107 / .5), inset 0 1px 0 rgb(255 255 255 / .2); }
.pill-btn--sm { min-height: 44px; padding: 4px 18px 4px 4px; font-size: 14.5px; }
.pill-btn--sm i { width: 34px; height: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 500; color: var(--text); }
.text-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.text-link:hover { color: var(--green-3); }
.text-link:hover svg { transform: translate(-2px, 2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.round-arrow { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad-btn); color: #fff; box-shadow: 0 10px 26px rgb(46 125 107 / .35); transition: transform var(--dur) var(--ease); }
.round-arrow svg { width: 22px; height: 22px; }

/* Small label with a gold star, and tag pills */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.eyebrow svg, .label svg { width: 12px; height: 12px; color: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags b { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.h-xl { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1.35; color: var(--text); }
.h-lg { font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; line-height: 1.45; }

/* ---------- Header: pill navigation ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background-color 220ms var(--ease), backdrop-filter 220ms var(--ease); }
.header.is-scrolled { background: rgb(6 17 15 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; white-space: nowrap; }
.brand img { height: 54px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.header__nav a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgb(255 255 255 / .06); font-size: 14.5px; font-weight: 500; color: var(--text-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.header__nav a:hover { color: #fff; background: rgb(255 255 255 / .12); }
.header__nav a.is-active { background: #fff; border-color: #fff; color: var(--bg); font-weight: 700; }
.header__tools { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(255 255 255 / .06); color: var(--text); transition: background var(--dur) var(--ease), transform 400ms var(--ease); }
.theme-btn:hover { background: rgb(255 255 255 / .12); }
.theme-btn:active { transform: rotate(-30deg) scale(.92); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .i-sun, [data-theme="light"] .theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
.burger { display: none; position: relative; width: 46px; height: 46px; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgb(255 255 255 / .06); }
.burger i { position: absolute; top: 50%; left: 50%; width: 20px; height: 2px; margin: -1px 0 0 -10px; border-radius: 2px; background: currentColor; transition: transform 420ms cubic-bezier(.77, 0, .18, 1), opacity 200ms ease; }
.burger i:nth-child(1) { transform: translateY(-6px); }
.burger i:nth-child(3) { transform: translate(-3.8px, 6px) scaleX(.62); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }
body.is-locked .header { background: var(--bg); }
.drawer { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; gap: 6px; padding: calc(var(--header-h) + 16px) 16px 24px; background: var(--bg); overflow-y: auto; clip-path: circle(0px at var(--ox, 50%) var(--oy, 40px)); transition: clip-path 560ms cubic-bezier(.77, 0, .18, 1); }
.drawer.is-open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 40px)); }
.drawer[hidden] { display: none; }
.drawer a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding-inline: 18px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 18px; font-weight: 500; opacity: 0; transform: translateY(20px); transition: opacity 180ms ease, transform 180ms ease; }
.drawer.is-open a { opacity: 1; transform: none; transition: opacity 420ms ease calc(150ms + var(--i, 0) * 55ms), transform 560ms cubic-bezier(.2, .8, .2, 1) calc(150ms + var(--i, 0) * 55ms); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer a, .drawer.is-open a, .burger i { transition: none; } }
.drawer a svg { color: var(--green-3); }
.drawer a.is-active { background: #fff; color: var(--bg); font-weight: 700; }
.drawer a.is-active svg { color: var(--green-2); }

/* ---------- Glow behind the hero and page banners ---------- */
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 50% 30%, rgb(63 163 138 / .4), transparent 70%),
    radial-gradient(38% 52% at 6% 18%, rgb(46 125 107 / .75), transparent 72%),
    radial-gradient(38% 52% at 96% 22%, rgb(30 90 82 / .8), transparent 72%),
    linear-gradient(to bottom, rgb(6 17 15 / 0) 55%, var(--bg) 96%),
    var(--hero-bg) center top / cover no-repeat,
    linear-gradient(to bottom, var(--green-deep) 0%, var(--bg) 78%); }
.hero__glow::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .22; mix-blend-mode: overlay; }

/* ---------- Home hero: huge name, the Sayed in front of it ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: max(100svh, 720px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero__stage { position: absolute; inset: 0; }
.hero__hi { position: absolute; top: calc(var(--header-h) + clamp(28px, 6vh, 70px)); inset-inline-start: max(var(--pad), calc(50% - 600px)); font-size: clamp(18px, 1.8vw, 26px); font-weight: 400; color: var(--text-2); z-index: 1; }
.hero__name { position: absolute; inset-inline: 0; top: calc(var(--header-h) + clamp(44px, 8vh, 96px)); z-index: 1; text-align: center; font-weight: 700; line-height: 1.15; white-space: nowrap; font-size: clamp(64px, 12.6vw, 220px); letter-spacing: 0; }
.hero__name span, .hero__name .wd > b { background: linear-gradient(to bottom, #fff 30%, rgb(255 255 255 / .82) 60%, rgb(255 255 255 / .12) 96%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .hero__name span { background: none; }
.hero__portrait { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; margin-inline: auto; height: min(86svh, 940px); width: auto; aspect-ratio: 1400 / 1770; max-width: none; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%); mask-image: linear-gradient(to bottom, #000 62%, transparent 98%);
}
.hero__foot { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(28px, 5vh, 56px); }
.hero__intro h2 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; line-height: 1.45; }
.hero__intro h2 .nowrap { white-space: nowrap; }
.salam { display: inline-block; height: .62em; aspect-ratio: 423 / 320; margin-block: -.4em; margin-inline-start: .06em; vertical-align: .5em; background: var(--gold); -webkit-mask: url("../img/salam.png") center / contain no-repeat; mask: url("../img/salam.png") center / contain no-repeat; }
.hero__intro .actions { margin-top: 18px; }
.glass-card { display: flex; flex-direction: column; gap: 12px; width: min(330px, 100%); padding: 16px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / .1), rgb(46 125 107 / .35)); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgb(0 0 0 / .35); transition: transform var(--dur) var(--ease); }
.glass-card:hover { transform: translateY(-3px); }
.glass-card__faces { display: flex; align-items: center; }
.glass-card__faces img, .glass-card__faces i { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #0E201C; object-fit: cover; margin-inline-start: -12px; }
.glass-card__faces img:first-child { margin-inline-start: 0; }
.glass-card__faces i { display: grid; place-items: center; background: #fff; color: var(--green-2); }
.glass-card__faces i svg { width: 18px; height: 18px; }
.glass-card__text { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.glass-card__tags { display: flex; gap: 6px; }
.glass-card__tags b { padding: 2px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; }

/* ---------- Sliding bands ---------- */
.marquee { display: block; overflow: hidden; padding-block: clamp(18px, 2.4vw, 30px); }
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding-inline-end: clamp(20px, 2.6vw, 40px); white-space: nowrap; }
.marquee .star { width: clamp(20px, 2.2vw, 34px); height: clamp(20px, 2.2vw, 34px); color: var(--gold); }
@keyframes slide { to { transform: translateX(50%); } }
.marquee--stats span { font-size: clamp(30px, 4.4vw, 64px); font-weight: 700; line-height: 1.4; }
.marquee--soft .marquee__track { animation-duration: 46s; animation-direction: reverse; }
.marquee--soft span { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; color: rgb(255 255 255 / .38); }
.marquee--soft .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.marquee--cta { padding-block: clamp(30px, 5vw, 70px); }
.marquee--cta span { font-size: clamp(64px, 10vw, 170px); font-weight: 700; line-height: 1.3; }
.marquee--cta .star { width: clamp(56px, 7vw, 120px); height: clamp(56px, 7vw, 120px); color: var(--green-3); filter: drop-shadow(0 0 24px rgb(63 163 138 / .6)); }
.marquee--cta:hover .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 7vw, 110px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px clamp(28px, 5vw, 80px); align-items: start; }
.label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; padding-top: 14px; }
.label__line { flex: 1; max-width: 170px; height: 1px; background: var(--line-2); }
.big-text { font-size: clamp(22px, 2.3vw, 34px); font-weight: 400; line-height: 1.75; color: var(--text); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(30px, 4vw, 56px); }
.sec-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; max-width: 360px; text-align: end; color: var(--text-2); }

/* Latest majalis: staggered two-column cards */
.bleed { padding-inline: clamp(12px, 1.6vw, 24px); }
/* Latest majalis: one large video beside a list of three */
.works { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); gap: clamp(14px, 1.6vw, 22px) clamp(20px, 2.6vw, 36px); align-items: start; }
.work:first-child { grid-row: 1 / span 3; }
.work:first-child .work__title { font-size: clamp(20px, 1.8vw, 26px); }
.work:not(:first-child) { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 16px; row-gap: 6px; padding: 10px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: rgb(255 255 255 / .03); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.work:not(:first-child):hover { background: rgb(255 255 255 / .06); border-color: var(--line-2); }
.work:not(:first-child) .work__img { grid-row: 1 / span 2; border-radius: var(--radius-lg); box-shadow: none; }
.work:not(:first-child) .work__title { align-self: end; font-size: 16.5px; line-height: 1.6; }
.work:not(:first-child) .tags { align-self: start; }
.work:not(:first-child) .play { width: 42px; height: 42px; box-shadow: 0 0 0 5px rgb(255 255 255 / .2); }
.work:not(:first-child) .play::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
.work { display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.work__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); box-shadow: 0 24px 50px rgb(0 0 0 / .35); }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.work:hover .work__img img { transform: scale(1.04); }
.work__title { font-size: 18px; font-weight: 700; line-height: 1.5; }
.work:hover .work__title { color: var(--green-3); }
.play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); box-shadow: 0 0 0 8px rgb(255 255 255 / .2); transition: transform var(--dur) var(--ease); }
.play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--green-2); }
.work:hover .play, .vcard:hover .play, .feature__media:hover .play { transform: scale(1.08); }

/* Numbered list (like "How I help you grow") */
.services li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px clamp(28px, 5vw, 80px); padding-block: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); }
.services li:first-child { border-top: 0; padding-top: 0; }
.services__n { display: flex; align-items: center; gap: 14px; padding-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--text-2); }
.services__n span { flex: 1; max-width: 170px; height: 1px; background: var(--line-2); }
.services a { position: relative; display: block; padding-inline-end: 80px; }
.services h3 { font-size: clamp(36px, 5.2vw, 82px); font-weight: 700; line-height: 1.3; transition: color var(--dur) var(--ease); }
.services p { margin: 8px 0 16px; color: var(--text-2); font-size: 16.5px; }
.services .round-arrow { position: absolute; top: 12px; inset-inline-end: 0; }
.services a:hover h3 { color: var(--green-3); }
.services a:hover .round-arrow { transform: rotate(-45deg); }

/* Verse cards (like testimonials) */
.two-col--cards { align-items: center; }
.two-col--cards .text-link { margin-top: 18px; }
.verse-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: center; padding-block: 16px; }
.verse-row::-webkit-scrollbar { display: none; }
.verse { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: clamp(200px, 16vw, 236px); padding: clamp(20px, 2vw, 30px); border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--bg-2); text-align: center; }
.verse::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; background: radial-gradient(90% 100% at 50% 110%, rgb(46 125 107 / .85), transparent 70%); }
.verse::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern.webp") 0 0 / 300px; opacity: .22; }
.verse:nth-child(2) { min-height: clamp(236px, 19vw, 280px); border-color: rgb(212 176 98 / .45); box-shadow: 0 0 0 6px rgb(212 176 98 / .06); }
.verse blockquote { margin-block: auto; font-family: var(--font-classic); font-size: clamp(19px, 1.55vw, 24px); font-weight: 700; line-height: 1.9; }
.verse figcaption { font-size: 14px; color: var(--text-2); }
.verse figcaption::before { content: ""; display: block; width: 40px; height: 1px; margin: 0 auto 12px; background: var(--gold); opacity: .7; }

/* News cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ncard { display: flex; flex-direction: column; gap: 12px; text-align: start; cursor: zoom-in; }
.ncard[href] { cursor: pointer; }
.news-grid--home > .ncard:nth-child(n+4) { display: none; }
.ncard__img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.04); }
.ncard__count { color: #fff; position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: rgb(6 17 15 / .6); font-size: 13.5px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ncard__count svg { width: 16px; height: 16px; }
.ncard__tag { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--grad-btn); font-size: 13.5px; font-weight: 700; color: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .3); }
.ncard__body { display: flex; flex-direction: column; gap: 4px; }
.ncard time { font-size: 13.5px; color: var(--text-3); }
.ncard b { font-size: 19px; font-weight: 700; line-height: 1.6; }
.ncard:hover b { color: var(--green-3); }
.ncard__place { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-2); }
.ncard__place svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Footer: big name in a glowing panel ---------- */
.footer { padding-top: clamp(40px, 5vw, 70px); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(24px, 4vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer__cta h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.45; margin-bottom: 22px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer__col h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.footer__col a { min-height: 34px; display: inline-flex; align-items: center; font-size: 15px; color: var(--text-2); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--green-3); }
.footer__big { position: relative; isolation: isolate; overflow: hidden; margin-inline: clamp(8px, 2vw, 24px); border-radius: 32px 32px 0 0; padding-top: clamp(20px, 3vw, 40px); }
.footer__big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 20% 100%, rgb(46 125 107 / .9), transparent 70%), radial-gradient(50% 110% at 85% 90%, rgb(30 90 82 / .9), transparent 70%), var(--bg-2); }
.footer__big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), url("../img/pattern.webp") 0 0 / 420px; opacity: .3; mix-blend-mode: soft-light; }
.footer__name { padding-block: clamp(10px, 2vw, 28px) 0; }
.footer__name .name-logo { --nw: min(90vw, 1240px); }
.footer__name .name-art { animation: none; clip-path: none; }
.footer__name .name-art > i { background: linear-gradient(to bottom, rgb(255 255 255 / .95) 20%, rgb(255 255 255 / .1) 100%); animation: none; clip-path: none; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 20px 26px; font-size: 14px; color: var(--text-2); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green-2); transition: transform var(--dur) var(--ease); }
.socials a:hover { transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(44px, 6vw, 80px); text-align: center; }
.crumbs { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 6px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgb(255 255 255 / .05); font-size: 14px; color: var(--text-2); }
.crumbs svg { width: 10px; height: 10px; color: var(--gold); }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(44px, 7.5vw, 120px); font-weight: 700; line-height: 1.25; }
.page-hero h1, .page-hero h1 .wd > b { background: linear-gradient(to bottom, #fff 40%, rgb(255 255 255 / .25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .page-hero h1 { background: none; }
.page-hero .hero__glow { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
.page-hero p { max-width: 680px; margin: 10px auto 0; color: var(--text-2); font-size: clamp(16px, 1.3vw, 18.5px); }

/* ---------- Inner pages (shared blocks) ---------- */
.band { padding-block: clamp(44px, 5vw, 80px); }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.rule-title { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(22px, 2.6vw, 34px); font-size: clamp(26px, 3vw, 42px); font-weight: 700; line-height: 1.4; }
.rule-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.lead { max-width: 760px; margin: -8px 0 clamp(26px, 3vw, 40px); color: var(--text-2); font-size: clamp(16px, 1.3vw, 18.5px); }
.note { max-width: 720px; margin: 30px auto 0; text-align: center; color: var(--text-3); }
.center { text-align: center; margin-top: 40px; }
.sub-title { margin-top: clamp(30px, 4vw, 50px); font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li, .chips--links a, .chips--links button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); font-size: 15px; color: var(--text-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.chips--links { justify-content: center; margin: 0 0 clamp(28px, 3.4vw, 46px); }
.chips--links a:hover, .chips--links button:hover { background: #fff; color: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 700; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary, .btn--navy { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 28px rgb(46 125 107 / .35); }
.btn--outline { border: 1px solid var(--line-2); background: rgb(255 255 255 / .05); color: var(--text); }
.btn--outline:hover { background: #fff; color: var(--bg); }

/* Biography */
.about { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.about__text { padding: clamp(22px, 3vw, 44px); }
.about__text h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; margin-bottom: 14px; }
.about__text p { color: var(--text-2); font-size: 17.5px; line-height: 2; margin-bottom: 12px; }
.name-note { display: flex; align-items: center; gap: 18px; margin: 20px 0 0 !important; padding: 14px 18px; border-radius: var(--radius-lg); background: rgb(46 125 107 / .18); border: 1px solid rgb(63 163 138 / .3); font-size: 15.5px !important; color: var(--text) !important; }
.name-note b { font-family: var(--font-classic); font-size: 34px; line-height: 1.3; color: var(--gold); white-space: nowrap; }
.about__side { display: flex; }
.about__photo { flex: 1; }
.about__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius-xl); }
.steps { display: grid; gap: 12px; }
.steps--row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.steps li:hover { transform: translateY(-4px); border-color: rgb(63 163 138 / .5); }
.steps b { font-size: 26px; font-weight: 700; color: var(--green-3); }
.steps span { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; text-align: center; border-radius: var(--radius-xl); border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 120%, rgb(46 125 107 / .45), transparent 70%), var(--bg-2); }
.stat__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid var(--line-2); }
.stat__icon svg { width: 28px; height: 28px; }
.stat b { font-size: clamp(32px, 3.4vw, 48px); font-weight: 700; line-height: 1.3; }
.stat > span:last-child { font-size: 15px; color: var(--text-2); }
.shrines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shrine { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 14px 26px; text-align: center; transition: transform var(--dur) var(--ease); }
.shrine:hover { transform: translateY(-4px); }
.ptile__icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 10px; border-radius: 50%; color: var(--gold); background: rgb(46 125 107 / .2); border: 1px solid rgb(63 163 138 / .3); }
.ptile__icon svg { width: 34px; height: 34px; }
.shrine h3 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; }
.shrine p { font-size: 15px; color: var(--text-2); }

/* Library */
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--bg-2); margin-bottom: clamp(30px, 3.4vw, 46px); }
.feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; background: var(--surface); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(22px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.feature__tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--text-2); }
.feature__title { margin: 14px 0 10px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 700; line-height: 1.55; }
.feature__body p { color: var(--text-2); margin-bottom: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--radius-pill); background: var(--grad-btn); color: #fff; font-weight: 700; }
.link-arrow svg { width: 20px; height: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: rgb(255 255 255 / .04); color: var(--text-2); font-size: 15.5px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--bg); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(14px, 1.6vw, 24px); }
.vcard { display: block; cursor: pointer; animation: cardIn 420ms var(--ease) both; }
.vcard__media { display: block; position: relative; }
.vcard__img { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); transition: transform var(--dur) var(--ease); }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.vcard:hover .vcard__img { transform: translateY(-3px); }
.vcard .play { width: 50px; height: 50px; opacity: 0; }
.vcard .play::after { border-width: 7px 0 7px 12px; margin-left: 3px; }
.vcard:hover .play, .vcard:focus-visible .play { opacity: 1; }
.vcard__num { color: #fff; position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; min-width: 30px; height: 26px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); background: rgb(6 17 15 / .7); font-size: 13px; font-weight: 700; }
.vcard__title { display: block; margin-top: 12px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.vcard:hover .vcard__title { color: var(--green-3); }
.vcard__meta { display: block; font-size: 13.5px; color: var(--text-3); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Poetry */
.poem { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 60px); text-align: center; background: radial-gradient(80% 60% at 50% 120%, rgb(46 125 107 / .35), transparent 70%), var(--bg-2); }
.poem__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; color: var(--gold); margin-bottom: 14px; }
.poem__sub { margin: -8px 0 14px; font-size: 15px; color: var(--text-3); }
.bayt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 56px); padding: 14px 0; font-family: var(--font-classic); font-size: clamp(20px, 2vw, 27px); line-height: 1.9; white-space: nowrap; }
.bayt + .bayt { border-top: 1px solid var(--line); }
.bayt span:first-child { text-align: left; }
.bayt span:last-child { text-align: right; }
/* main.js stretches each half-line with kashida to the longest one; the last pixels are shared out by justify */
.bayt span.is-stretched { width: var(--w); text-align: justify; text-align-last: justify; }
.bayt span.is-stretched:first-child { justify-self: end; }
.bayt span.is-stretched:last-child { justify-self: start; }
.poem-wrap + .poem-wrap { margin-top: clamp(36px, 5vw, 64px); }
.lead--center { margin: 0 auto 22px; text-align: center; }

/* Gallery */
.masonry { columns: 4; column-gap: 14px; }
.mshot { display: block; width: 100%; margin-bottom: 14px; padding: 0; overflow: hidden; break-inside: avoid; border-radius: var(--radius-lg); cursor: zoom-in; background: var(--surface); }
.mshot img { width: 100%; height: auto; transition: transform 700ms var(--ease); }
.mshot:hover img { transform: scale(1.04); }
.follow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: clamp(30px, 4vw, 50px); padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 40px); }
.follow h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; }
.follow p { color: var(--text-2); }

/* Invitation form: underlined fields */
.invite { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 2vw, 28px); }
.form { padding: clamp(22px, 3.4vw, 46px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 0; font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; appearance: none; -webkit-appearance: none; transition: border-color var(--dur) var(--ease); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-size: 6px 6px; background-repeat: no-repeat; background-position: left 8px center, left 2px center; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--green-3); }
.field input[aria-invalid="true"] { border-bottom-color: #E5484D; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form__status { font-size: 15px; color: var(--green-3); }
.invite__side { display: grid; gap: clamp(16px, 2vw, 28px); }
.tips { padding: clamp(20px, 2.6vw, 32px); }
.tips h2 { margin-bottom: 12px; font-size: 20px; font-weight: 700; }
.tips ol { display: grid; gap: 14px; }
.tips li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.tips li b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); font-weight: 700; }
.tips--navy { background: radial-gradient(90% 80% at 50% 120%, rgb(46 125 107 / .6), transparent 70%), var(--bg-2); }
.tips--navy .socials { margin-top: 16px; }

/* Hadith band on the biography page */
.hadith { text-align: center; }
.hadith blockquote { max-width: 940px; margin: 0 auto; }
.hadith p { font-family: var(--font-classic); font-weight: 700; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.7; color: var(--gold); }
.hadith cite { display: block; font-style: normal; color: var(--text-2); }

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 70px var(--pad) 40px; background: rgb(3 9 8 / .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 200ms var(--ease); }
.modal[hidden] { display: none; }
.modal__body { width: min(1120px, 100%); }
.modal__body img { max-height: 80vh; width: auto; margin: auto; border-radius: 18px; }
.ratio { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ratio--tall { aspect-ratio: 9 / 16; width: min(100%, 46vh); margin-inline: auto; }
/* news card of a live stream or video: a play button over the picture */
.ncard--video { cursor: pointer; }
.ncard--video .ncard__img { position: relative; }
.ncard--video .play { position: absolute; inset: 0; margin: auto; z-index: 1; }
.modal__close { position: absolute; top: 16px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--bg); font-size: 26px; line-height: 1; }
.modal__close { display: grid; place-items: center; padding: 0; z-index: 2; }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal--photo .modal__body { width: auto; max-width: min(1120px, 100%); }
.modal--photo figcaption { margin-top: 12px; text-align: center; color: var(--text-2); font-size: 15px; }
.modal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .12); border: 1px solid var(--line-2); }
.modal__nav:hover { background: var(--green); }
.modal__nav[hidden] { display: none; }
.modal__nav--prev { right: 18px; }
.modal__nav--prev svg { transform: scaleX(-1); }
.modal__nav--next { left: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Effects (after robinsweb.net) ---------- */
/* Loading screen */
.loader { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 5vw, 64px); background: var(--bg); color: #fff; clip-path: circle(150% at 0% 100%); transition: clip-path 850ms cubic-bezier(.77, 0, .18, 1); }
.loader::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 15% 100%, rgb(46 125 107 / .55), transparent 70%); }
.loader.is-done { clip-path: circle(0% at 0% 100%); pointer-events: none; }
html:not(.is-loading) .loader { display: none; }
html.is-loading body { overflow: hidden; }
.loader__word { display: flex; align-items: baseline; gap: 4px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; color: var(--text-2); }
.loader__word i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-3); animation: dot 1s infinite; }
.loader__word i:nth-child(2) { animation-delay: .18s; } .loader__word i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 100% { opacity: .15; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.2); } }
.loader__count { display: flex; align-items: flex-end; gap: .02em; direction: ltr; justify-content: flex-end; font-size: clamp(110px, 22vw, 340px); font-weight: 700; line-height: 1; }
.loader__d { display: inline-block; min-width: .62em; text-align: center; }
.loader__pc { color: var(--green-3); font-size: .7em; margin-inline-start: .08em; }
.loader__bar { position: absolute; inset: auto 0 0 0; height: 3px; background: rgb(255 255 255 / .08); }
.loader__bar i { display: block; height: 100%; width: 0; margin-inline-start: auto; background: linear-gradient(to left, var(--green-3), var(--green)); }

/* Name and page titles: each word rises out of a mask */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wd > b { display: inline-block; font-weight: inherit; transform: translateY(105%); animation: wordUp 1100ms cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d0, .25s) + var(--i) * .14s); }
html.is-loading .wd > b, html.pt-in:not(.pt-go) .wd > b { animation-play-state: paused; }
.hero__name .wd > b { --d0: .35s; }
@keyframes wordUp { to { transform: none; } }
.hero__portrait { animation: portraitIn 1400ms cubic-bezier(.2, .8, .2, 1) .15s both; }
html.is-loading .hero__portrait, html.pt-in:not(.pt-go) .hero__portrait { animation-play-state: paused; }
@keyframes portraitIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* About paragraph: words light up while scrolling */
.big-text .lw { color: rgb(255 255 255 / .22); transition: color 350ms var(--ease); }
.big-text .lw.on { color: var(--text); }

/* Cursor ring + dot (mouse only) */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-video] { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cur-ring, .cur-dot { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; border-radius: 50%; }
.cur-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border: 1.5px solid rgb(255 255 255 / .55); transition: width 280ms var(--ease), height 280ms var(--ease), margin 280ms var(--ease), background 280ms var(--ease), border-color 280ms var(--ease), opacity 200ms; }
.cur-ring span { font-size: 13px; font-weight: 700; color: var(--bg); opacity: 0; transition: opacity 200ms; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--green-3); transition: opacity 200ms; }
.cur-ring.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--green-3); background: rgb(63 163 138 / .12); }
.cur-ring.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; border-color: transparent; background: #fff; }
.cur-ring.is-view span { opacity: 1; }
.cur-ring.is-view + .cur-dot { opacity: 0; }
.cur-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cur-out .cur-ring, .cur-out .cur-dot { opacity: 0; }

/* Video cards: tilt with a soft light */
.work__img, .feature__media { transform-style: preserve-3d; transition: transform 500ms var(--ease), box-shadow var(--dur) var(--ease); will-change: transform; }
.work__img.is-tilting, .feature__media.is-tilting { transition: transform 120ms linear; }
.work__img::after, .feature__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .22), transparent 60%); transition: opacity 300ms var(--ease); }
.work__img.is-tilting::after, .feature__media.is-tilting::after { opacity: 1; }

/* Numbered list: photo following the cursor */
.services { position: relative; }
.follow-pic { position: absolute; top: 0; left: 0; z-index: 3; width: 220px; aspect-ratio: 4 / 5; border-radius: 20px; background: center / cover no-repeat var(--surface); box-shadow: 0 30px 60px rgb(0 0 0 / .5); pointer-events: none; opacity: 0; scale: .7; transition: opacity 300ms var(--ease), scale 400ms var(--ease); }
.follow-pic.is-on { opacity: 1; scale: 1; }
@media (max-width: 1023px) { .follow-pic { display: none; } }
.services .round-arrow { transition: translate 250ms var(--ease), transform var(--dur) var(--ease); }

/* Buttons: fill sweeps in from where the cursor enters */
.pill-btn, .btn, .link-arrow { position: relative; isolation: isolate; overflow: hidden; }
.pill-btn::before, .btn::before, .link-arrow::before { content: ""; position: absolute; z-index: -1; left: var(--sx, 50%); top: var(--sy, 50%); width: 0; height: 0; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: width 500ms var(--ease), height 500ms var(--ease); }
.pill-btn:hover::before, .btn:hover::before, .link-arrow:hover::before { width: 260%; height: 600%; }
.pill-btn:hover, .btn--primary:hover, .link-arrow:hover { color: var(--green-2); }
.pill-btn:hover i { background: var(--green-2); color: #fff; }

/* Shown on every page while a live stream is on */
.live-pill { position: fixed; bottom: 22px; inset-inline-start: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(460px, calc(100vw - 104px)); height: 52px; padding: 0 20px; border-radius: var(--radius-pill); background: #B3261E; color: #fff; font-size: 15px; box-shadow: 0 12px 30px rgb(0 0 0 / .35); animation: livePillIn 500ms var(--ease) both; }
.live-pill[hidden] { display: none; }
.live-pill b { font-weight: 700; white-space: nowrap; }
.live-pill span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .9; }
.live-pill i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: livePulse 1400ms ease-out infinite; }
@keyframes livePulse { from { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } to { box-shadow: 0 0 0 12px rgb(255 255 255 / 0); } }
@keyframes livePillIn { from { opacity: 0; translate: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .live-pill, .live-pill i { animation: none; } }
@media (max-width: 560px) { .live-pill span { display: none; } }

/* Back-to-top button with progress ring */
.to-top { position: fixed; bottom: 22px; left: 22px; z-index: 60; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgb(10 26 23 / .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity 300ms var(--ease), translate 300ms var(--ease); }
.to-top.is-shown { opacity: 1; translate: none; pointer-events: auto; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--green-3); stroke-width: 2; }
.to-top__arrow { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__nav a { padding: 0 12px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .masonry { columns: 3; }
}
@media (max-width: 1023px) {
  .hero__glow { background-image: radial-gradient(42% 46% at 50% 30%, rgb(63 163 138 / .4), transparent 70%), linear-gradient(to bottom, rgb(6 17 15 / 0) 55%, var(--bg) 96%), var(--hero-bg-sm), linear-gradient(to bottom, var(--green-deep) 0%, var(--bg) 78%); background-size: auto, auto, cover, auto; background-position: center, center, center top, center; background-repeat: no-repeat; }
  .header__nav, .header .pill-btn--sm { display: none; }
  .header__inner { justify-content: space-between; }
  .burger { display: grid; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 10px); }
  .hero__stage { position: relative; height: min(118vw, 640px); }
  .hero__hi { top: 4px; inset-inline-start: var(--pad); }
  .hero__name { top: clamp(30px, 7vw, 60px); font-size: 17vw; }
  .hero__portrait { height: 100%; }
  .hero__foot { flex-direction: column; align-items: stretch; margin-top: -40px; }
  .glass-card { width: 100%; }

  .two-col, .services li { grid-template-columns: minmax(0, 1fr); }
  .services__n { padding-top: 0; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .work:first-child { grid-row: auto; }
  .verse-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(78vw, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .verse { scroll-snap-align: center; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__cta { grid-column: 1 / -1; }
  .sec-head__side { align-items: flex-start; text-align: start; }
  .about, .invite, .feature { grid-template-columns: minmax(0, 1fr); }
  .about__photo img { aspect-ratio: 4 / 3; min-height: 0; }
  .steps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shrines, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bayt { white-space: normal; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 17px; }
  .brand img { height: 46px; }
  .hero__name { font-size: 18.5vw; }
  .hero__intro .actions { gap: 10px 18px; }
  .services a { padding-inline-end: 0; }
  .services .round-arrow { position: static; margin-top: 4px; width: 46px; height: 46px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .masonry { columns: 2; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .bayt { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 0; }
  .bayt span:first-child, .bayt span:last-child { text-align: center; }
  .bayt span.is-stretched:first-child, .bayt span.is-stretched:last-child { justify-self: center; }
  .steps--row { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
  .modal__nav { width: 44px; height: 44px; top: auto; bottom: 18px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wd > b { transform: none; }
  .big-text .lw { color: var(--text); }
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; }
}

/* Calligraphy name (hero + footer): the artwork is a mask, the colour is a gradient */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name-logo { --nw: min(90vw, 1220px); --gap: 0px; position: relative; display: block; width: calc(var(--nw) + var(--gap)); margin-inline: auto; }
.name-top { position: absolute; top: calc(var(--nw) * -.012); right: calc(var(--nw) * .012); font-weight: 600; font-size: calc(var(--nw) * .036); line-height: 1.2; color: #fff; white-space: nowrap; }
.footer__name .name-top { color: rgb(255 255 255 / .9); }
/* The artwork is cut between the two words so the hero can open a space for the portrait */
.name-art { display: flex; justify-content: space-between; width: 100%; height: calc(var(--nw) * 474 / 1905); }
.name-art > i { display: block; height: 100%; background: linear-gradient(to bottom, #fff 30%, rgb(255 255 255 / .85) 62%, rgb(255 255 255 / .14) 100%); -webkit-mask: var(--name-art) right center / var(--nw) 100% no-repeat; mask: var(--name-art) right center / var(--nw) 100% no-repeat; }
.name-art > i:first-child { width: calc(var(--nw) * .494); }
.name-art > i:last-child { width: calc(var(--nw) * .506); -webkit-mask-position: left center; mask-position: left center; }
.hero__name .name-logo { --nw: min(74vw, 1000px); --gap: min(9vw, 130px); }
@media (max-width: 1023px) { .hero__name .name-logo { --nw: 82vw; --gap: 8vw; } }
.hero__name .name-logo { clip-path: inset(-20% 0 -5% 100%); animation: inkIn 1800ms cubic-bezier(.55, .1, .2, 1) .3s forwards; }
html.is-loading .hero__name .name-logo, html.pt-in:not(.pt-go) .hero__name .name-logo { animation-play-state: paused; }
@keyframes inkIn { to { clip-path: inset(-20% 0 -5% 0); } }
@media (prefers-reduced-motion: reduce) { .hero__name .name-logo { animation: none; clip-path: none; } }

/* Page transition (like the reference site's loader wipe): a green circle covers the page from the
   bottom corner with the destination's name, and the next page opens by shrinking it to the top corner */
.pt { position: fixed; inset: 0; z-index: 290; pointer-events: none; }
.pt__panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(55% 65% at 85% 100%, rgb(63 163 138 / .5), transparent 70%), radial-gradient(45% 55% at 10% 0%, rgb(30 90 82 / .6), transparent 70%), linear-gradient(160deg, var(--green-deep), var(--bg)); clip-path: circle(0% at 100% 100%); }
.pt__panel::after { content: ""; position: absolute; inset: 0; background: var(--grain), url("../img/pattern.webp") 0 0 / 420px; opacity: .22; mix-blend-mode: soft-light; }
.pt__logo { width: 64px; height: auto; opacity: 0; transform: translateY(14px); }
.pt__label { font-size: clamp(38px, 7vw, 104px); font-weight: 700; line-height: 1.2; color: #fff; opacity: 0; transform: translateY(24px); }
.pt__bar { position: absolute; inset: auto 0 0 0; height: 3px; background: rgb(255 255 255 / .08); }
.pt__bar i { display: block; height: 100%; width: 0; margin-inline-start: auto; background: linear-gradient(to left, var(--gold), var(--green-3)); }
html.pt-out .pt { pointer-events: auto; }
html.pt-out .pt__panel { clip-path: circle(150% at 100% 100%); transition: clip-path 420ms cubic-bezier(.77, 0, .18, 1); }
html.pt-out .pt__logo, html.pt-out .pt__label { opacity: 1; transform: none; transition: opacity 240ms ease 160ms, transform 340ms cubic-bezier(.2, .8, .2, 1) 160ms; }
html.pt-out .pt__bar i { width: 70%; transition: width 420ms cubic-bezier(.3, .6, .2, 1); }
html.pt-in .pt__panel { clip-path: circle(150% at 0% 0%); }
html.pt-in .pt__logo, html.pt-in .pt__label { opacity: 1; transform: none; }
html.pt-in .pt__bar i { width: 100%; }
html.pt-in.pt-go .pt__panel { clip-path: circle(0% at 0% 0%); transition: clip-path 520ms cubic-bezier(.77, 0, .18, 1); }
html.pt-in.pt-go .pt__logo, html.pt-in.pt-go .pt__label { opacity: 0; transform: translateY(-20px); transition: opacity 200ms ease, transform 300ms ease; }
@media (prefers-reduced-motion: reduce) { .pt { display: none; } }

/* ---------- Page backdrop: soft drifting glows and the calligraphic weave, very faint ---------- */
body::before, body::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
body::before { inset: -20%;
  background:
    radial-gradient(28% 32% at 78% 22%, var(--glow-1), transparent 70%),
    radial-gradient(30% 34% at 18% 72%, var(--glow-2), transparent 70%),
    radial-gradient(22% 24% at 55% 50%, var(--glow-3), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate; }
body::after { inset: 0; background: var(--weave);
  -webkit-mask: url("../img/pattern-mask.webp") 0 0 / 520px; mask: url("../img/pattern-mask.webp") 0 0 / 520px;
  opacity: var(--weave-op); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(-4%, 3%, 0) rotate(4deg); } 100% { transform: translate3d(3%, -2%, 0) rotate(-3deg); } }
:root { --glow-1: rgb(46 125 107 / .16); --glow-2: rgb(30 90 82 / .2); --glow-3: rgb(212 176 98 / .05); --weave: linear-gradient(160deg, #D4B062, #3FA38A); --weave-op: .02; }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* ---------- Light theme: white with the same green ---------- */
:root[data-theme="light"] {
  --bg: #F9F8F4; --bg-2: #FFFFFF; --surface: #EEECE6; --surface-2: #E6E3DB;
  --line: rgb(14 39 38 / .1); --line-2: rgb(14 39 38 / .17);
  --text: #0E2726; --text-2: #3E5C55; --text-3: #6A837C;
  --green-3: #2A8770; --gold: #B38B3C;
  --glow-1: rgb(63 163 138 / .13); --glow-2: rgb(30 90 82 / .09); --glow-3: rgb(63 163 138 / .05);
  --weave: linear-gradient(160deg, #1E5A52, #2A8770); --weave-op: .05;
  color-scheme: light;
}
/* Panels that stay deep green in the light theme */
[data-theme="light"] :is(.verse, .footer__big, .loader, .pt, .modal) {
  --bg: #06110F; --bg-2: #0A1A17; --surface: #0E201C; --line: rgb(255 255 255 / .1); --line-2: rgb(255 255 255 / .18);
  --text: #F2F6F4; --text-2: #B9CBC5; --text-3: #86A098; --green-3: #3FA38A; --gold: #D4B062; color: var(--text);
}
[data-theme="light"] .header.is-scrolled { background: rgb(249 248 244 / .82); }
[data-theme="light"] body.is-locked .header { background: var(--bg); }
[data-theme="light"] :is(.header__nav a, .burger, .theme-btn, .tags b, .crumbs, .chips li, .chips--links a, .tab, .btn--outline) { background: rgb(14 39 38 / .035); }
[data-theme="light"] :is(.header__nav a, .tab, .crumbs a):hover, [data-theme="light"] .theme-btn:hover { color: var(--text); background: rgb(14 39 38 / .08); }
[data-theme="light"] :is(.header__nav a.is-active, .tab[aria-selected="true"], .drawer a.is-active, .chips--links a:hover, .btn--outline:hover) { background: var(--green-2); border-color: var(--green-2); color: #fff; }
[data-theme="light"] .drawer a.is-active svg { color: #fff; }

/* Light hero: the same scene as the dark one, redrawn in ivory white */
[data-theme="light"] .hero__glow, [data-theme="light"] .page-hero .hero__glow { background:
    radial-gradient(42% 46% at 50% 30%, rgb(255 255 255 / .6), transparent 70%),
    radial-gradient(38% 52% at 6% 18%, rgb(255 255 255 / .4), transparent 72%),
    radial-gradient(38% 52% at 96% 22%, rgb(255 255 255 / .4), transparent 72%),
    linear-gradient(to bottom, rgb(249 248 244 / 0) 55%, var(--bg) 96%),
    var(--hero-bg-light) center top / cover no-repeat,
    #FBFBF8; }
[data-theme="light"] .hero__glow::after { opacity: .1; }
[data-theme="light"] .hero__name .name-art > i { background: linear-gradient(to bottom, #0E2726 25%, #1E5A52 62%, rgb(30 90 82 / .14) 100%); }
[data-theme="light"] .hero__name .name-top { color: var(--green-2); }
[data-theme="light"] .glass-card { background: linear-gradient(160deg, rgb(255 255 255 / .8), rgb(63 163 138 / .14)); box-shadow: 0 20px 50px rgb(14 39 38 / .12); }
[data-theme="light"] .glass-card__faces :is(img, i) { border-color: #fff; }
[data-theme="light"] .glass-card__faces i { background: var(--green-2); color: #fff; }
[data-theme="light"] .work:not(:first-child) { background: var(--bg-2); box-shadow: 0 10px 30px rgb(14 39 38 / .06); }
[data-theme="light"]:not(.js) .page-hero h1, [data-theme="light"] .page-hero h1 .wd > b { background-image: linear-gradient(to bottom, #0E2726 40%, rgb(30 90 82 / .35)); }
[data-theme="light"] .marquee--soft span { color: rgb(14 39 38 / .3); }
[data-theme="light"] .big-text .lw { color: rgb(14 39 38 / .2); }
[data-theme="light"] .big-text .lw.on { color: var(--text); }
[data-theme="light"] :is(.work__img, .card, .feature, .stat) { box-shadow: 0 18px 44px rgb(14 39 38 / .08); }
[data-theme="light"] .verse { box-shadow: 0 24px 50px rgb(14 39 38 / .18); }
[data-theme="light"] .stat { background: radial-gradient(90% 80% at 50% 120%, rgb(63 163 138 / .16), transparent 70%), var(--bg-2); }
[data-theme="light"] .poem { background: radial-gradient(80% 60% at 50% 120%, rgb(63 163 138 / .12), transparent 70%), var(--bg-2); }
[data-theme="light"] .bayt { color: #000; }
[data-theme="light"] .tips--navy { background: radial-gradient(90% 80% at 50% 120%, rgb(63 163 138 / .18), transparent 70%), var(--bg-2); }
[data-theme="light"] .socials a { background: var(--green-2); color: #fff; }
[data-theme="light"] .footer__big .socials a { background: #fff; color: var(--green-2); }
[data-theme="light"] .pill-btn::before, [data-theme="light"] .btn::before, [data-theme="light"] .link-arrow::before { background: #0E2726; }
[data-theme="light"] :is(.pill-btn, .btn--primary, .link-arrow):hover { color: #fff; }
[data-theme="light"] .pill-btn:hover i { background: #fff; color: var(--green-2); }
[data-theme="light"] .cur-ring { border-color: rgb(14 39 38 / .45); }
[data-theme="light"] .cur-ring.is-view { background: var(--green-2); }
[data-theme="light"] .cur-ring.is-view span { color: #fff; }

/* Theme switch: the new theme opens as a circle from the button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Written lectures ---------- */
.lfilter { justify-content: center; margin: 0 0 clamp(22px, 3vw, 36px); }
.lfilter button { cursor: pointer; font: inherit; }
.lfilter button.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.lcard { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-2); color: inherit; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.lcard:hover { border-color: var(--line-2); transform: translateY(-3px); }
.lcard[hidden] { display: none; }
.lcard__meta, .lecture__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-3); font-size: 14px; }
.lecture__meta { justify-content: center; margin-top: 12px; }
.lcard__meta .dot, .lecture__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.lcard__title { font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; line-height: 1.5; }
.lcard__text { color: var(--text-2); line-height: 1.9; }
.lcard__more { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--gold); font-weight: 600; }
.lcard__more svg { width: 18px; height: 18px; }
.lcard__more small { margin-inline-start: auto; color: var(--text-3); font-weight: 400; font-size: 13.5px; }
.page-hero--lecture h1 { max-width: 980px; margin-inline: auto; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.4; }
.lecture__watch { text-align: center; margin: 0 0 clamp(18px, 2.5vw, 28px); }
.lecture__watch .pill-btn { border: 0; cursor: pointer; font: inherit; }
.lecture { max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 60px); font-family: "Tajawal", var(--font-ui); font-size: clamp(19px, 1.45vw, 21px); line-height: 2.1; }
.lecture p + p, .lecture p + h2, .lecture blockquote, .lecture ul { margin-top: 1.1em; }
.lecture h2 { margin-top: 1.6em; font-size: clamp(21px, 1.8vw, 26px); color: var(--gold); line-height: 1.6; }
.lecture h2:first-child { margin-top: 0; }
.lecture blockquote { margin-inline: 0; padding: 14px 22px; border-inline-start: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: rgb(212 176 98 / .08); font-family: var(--font-classic); font-size: 1.15em; font-weight: 700; line-height: 2; }
.lecture ul { padding-inline-start: 1.3em; list-style: disc; }
.lecture li::marker { color: var(--gold); }
.lecture li + li { margin-top: .35em; }
.lnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 860px; margin: clamp(22px, 3vw, 34px) auto 0; }
.lnav a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit; text-decoration: none; }
.lnav a:hover { border-color: var(--line-2); }
.lnav small { color: var(--text-3); }
.lnav__prev { grid-column: 2; text-align: end; }
[data-theme="light"] .lecture { color: #000; }
@media (max-width: 760px) {
  .lgrid, .lnav { grid-template-columns: minmax(0, 1fr); }
  .lnav__prev { grid-column: auto; }
}
