/* ==========================================================================
   SAIC AI Engineering Bootcamp — botcamp.syrianai.org
   Built on the Syrian AI Community visual identity (2026):
   Primary #0D1C2B (55%) · Secondary #135264 (25%) · Tertiary #1DA4B8 (15%)
   · Accent #CFE8EB (5%). Sora for Latin, Cairo for Arabic.
   Tertiary is an accent on dark only; on light surfaces use --ink-cyan.
   ========================================================================== */
:root {
  --midnight: #0d1c2b;
  --abyss: #081420;
  --deep: #0a1724;
  --secondary: #135264;
  --cyan: #1da4b8;
  --cyan-hi: #3fc0d2;
  --accent: #cfe8eb;
  --cloud: #f4fafb;
  --mist: #9fb8c4;
  --slate: #3d5866;
  --ink: #16232f;
  --ink-cyan: #146f7c;
  --text: #eaf3f5;
  --text-soft: #c4d6dc;
  --muted: #9fb8c4;
  --card: rgba(19, 82, 100, .14);
  --card-solid: #102434;
  --card-hi: #14304a;
  --line: rgba(159, 184, 196, .16);
  --line-strong: rgba(159, 184, 196, .32);
  --success: #6bd6a2;
  --warning: #f2b134;
  --danger: #ff8f87;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --latin: 'Sora', system-ui, sans-serif;
  --arabic: 'Cairo', 'Sora', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', SFMono-Regular, Consolas, monospace;
  --header-h: 76px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--midnight); color: var(--text); font-family: var(--arabic); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body:has(dialog[open]) { overflow: hidden; }
[lang="en"] body, body:lang(en) { font-family: var(--latin); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.45; color: #fff; }
p { color: var(--muted); }
::selection { background: var(--cyan); color: var(--midnight); }
:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
[dir="ltr"] { font-family: var(--latin); }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 96px; position: relative; }
.section.compact { padding-top: 24px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.lead { font-size: 19px; color: var(--text-soft); }
.desktop-only { display: inline; }
.skip-link { position: fixed; top: -80px; inset-inline-start: 20px; padding: 10px 18px; background: var(--cyan); color: var(--midnight); font-weight: 700; z-index: 200; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--secondary), var(--cyan), var(--accent)); transform-origin: right; transform: scaleX(var(--scroll, 0)); pointer-events: none; }
[dir="ltr"] .scroll-progress { transform-origin: left; }

/* Eyebrow follows the identity's "01 — Section" rule */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--cyan-hi); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow b, .eyebrow .num { font-family: var(--latin); font-weight: 500; letter-spacing: .02em; }

/* ---------- Buttons ---------- */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s; }
.button .icon { transition: transform .3s var(--ease-out); }
.button:hover .icon { transform: translateX(-4px); }
[dir="ltr"] .button:hover .icon { transform: translateX(4px); }
.button-primary { background: var(--cyan); color: var(--midnight); box-shadow: 0 0 0 0 rgba(29, 164, 184, .5), 0 10px 30px -10px rgba(29, 164, 184, .6); }
.button-primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.button-primary:hover { background: var(--cyan-hi); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(29, 164, 184, .14), 0 18px 40px -12px rgba(29, 164, 184, .7); }
.button-primary:hover::after { transform: translateX(120%); }
.button-ghost { border-color: var(--line-strong); background: rgba(13, 28, 43, .4); color: #fff; backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: var(--cyan); background: rgba(29, 164, 184, .1); transform: translateY(-2px); }
.button-light { background: var(--accent); color: var(--midnight); }
.button-light:hover { background: #fff; transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.full-width { width: 100%; }
.icon-button { border: 1px solid transparent; background: transparent; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: var(--text-soft); transition: background .2s, border-color .2s, color .2s; }
.icon-button:hover { background: rgba(159, 184, 196, .1); color: #fff; }
.text-link { color: var(--cyan-hi); display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; transition: gap .25s var(--ease), color .2s; }
.text-link:hover { gap: 16px; color: #fff; }
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--cyan); }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cyan); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
kbd { font: 500 11px var(--latin); border: 1px solid var(--line-strong); padding: 2px 6px; border-radius: 6px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(13, 28, 43, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, height .3s; }
.site-header.is-scrolled { background: rgba(8, 20, 32, .88); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-symbol { display: block; height: 30px; width: auto; transition: transform .4s var(--ease-out); }
.brand:hover .brand-symbol { transform: scale(1.04); }
.brand-divider { width: 1px; height: 30px; background: var(--line-strong); }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name strong { font-size: 15px; font-weight: 700; color: #fff; }
.brand-name small { font: 600 9.5px var(--latin); letter-spacing: .22em; color: var(--cyan-hi); }
.main-nav { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--text-soft); transition: color .2s, background .2s; }
.main-nav a:hover { color: #fff; background: rgba(159, 184, 196, .08); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(29, 164, 184, .14); }
.main-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 3px; inset-inline-start: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); transform: translateX(50%); }
.nav-community { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.search-trigger { padding-inline: 12px; border-color: var(--line); }
.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-watermark { position: absolute; width: 1180px; max-width: none; inset-inline-start: -300px; top: 50%; transform: translateY(-46%); opacity: .045; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a { width: 620px; height: 620px; inset-inline-end: -120px; top: -140px; background: radial-gradient(circle, rgba(19, 82, 100, .9), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.glow-b { width: 420px; height: 420px; inset-inline-end: 18%; bottom: -200px; background: radial-gradient(circle, rgba(29, 164, 184, .35), transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 184, 196, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 184, 196, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--header-h) - 160px); min-height: min(680px, calc(100svh - var(--header-h) - 120px)); }
.edition-tag { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(8, 20, 32, .55); font-size: 12px; color: var(--text-soft); backdrop-filter: blur(6px); }
.edition-tag [dir="ltr"] { font-weight: 600; letter-spacing: .16em; font-size: 10.5px; color: var(--cyan-hi); }
.tag-divider { width: 1px; height: 12px; background: var(--line-strong); }
.hero-title { margin-top: 28px; font-size: clamp(38px, 4.3vw, 62px); line-height: 1.28; font-weight: 800; letter-spacing: 0; }
.hero-title .line { display: block; }
.hero-title .accent, .gradient-text { background: linear-gradient(100deg, var(--cyan-hi) 0%, var(--accent) 55%, var(--cyan) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-description { margin-top: 26px; max-width: 560px; font-size: 18.5px; line-height: 1.95; color: var(--text-soft); }
.hero-copy .button-row { margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 13.5px; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 16px; height: 16px; color: var(--cyan); }

/* Hero art — "The Flow of Connection": ten sessions on one ribbon */
.hero-art { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 600px; justify-self: center; }
.flow-svg { width: 100%; height: 100%; overflow: visible; }
.flow-shadow { stroke: url(#flow-grad); stroke-width: 34; opacity: .14; fill: none; filter: url(#soft-blur); }
.flow-base { stroke: url(#flow-grad); stroke-width: 14; fill: none; stroke-linecap: round; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: draw 2.6s var(--ease-out) .3s forwards; }
.flow-core { stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; fill: none; stroke-dasharray: 2 10; animation: dash 18s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dash { to { stroke-dashoffset: -480; } }
.flow-orbit { fill: none; stroke: rgba(159, 184, 196, .14); stroke-width: 1; stroke-dasharray: 3 7; transform-origin: 300px 270px; animation: spin 80s linear infinite; }
.flow-orbit.two { animation-duration: 120s; animation-direction: reverse; stroke-dasharray: 1 12; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-node { opacity: 0; animation: pop .6s var(--ease-out) forwards; animation-delay: calc(1.1s + var(--i) * .12s); }
.flow-node circle.halo { fill: rgba(29, 164, 184, .16); stroke: none; transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .32s); }
.flow-node circle.dot { fill: var(--midnight); stroke: var(--cyan); stroke-width: 2; transition: fill .2s; }
.flow-node text { font: 600 11px var(--latin); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.flow-node a:hover circle.dot, .flow-node a:focus circle.dot { fill: var(--cyan); }
.flow-node a:focus { outline: none; }
.flow-node a:focus-visible circle.halo { stroke: #fff; stroke-width: 2; }
.flow-node.is-final circle.dot { fill: var(--cyan); stroke: var(--accent); }
.flow-node.is-final text { fill: var(--midnight); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.flow-node { transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.5); opacity: .25; } }
.flow-pulse { fill: #fff; filter: url(#pulse-glow); }
.flow-svg text { direction: ltr; unicode-bidi: plaintext; }
.flow-center { font: 700 11px var(--latin); letter-spacing: .26em; fill: var(--mist); text-anchor: middle; }
.flow-center-big { font: 800 44px var(--latin); fill: #fff; text-anchor: middle; }
.floating-label { position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(10, 23, 36, .78); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); font-family: var(--latin); font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; animation: float 7s ease-in-out infinite; }
.floating-label .icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(29, 164, 184, .16); color: var(--cyan-hi); }
.floating-label small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .18em; color: var(--muted); }
.node-data { top: 8%; left: 0; }
.node-agent { top: 17%; right: 0; animation-delay: -2.5s; }
.node-product { bottom: 3%; right: 0; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats & tools ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-top: 24px; }
.stats-strip > div { padding: 30px 24px; display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--line); }
.stats-strip > div:first-child { border-inline-start: 0; }
.stats-strip strong { font: 700 clamp(34px, 3.6vw, 48px)/1 var(--latin); color: #fff; letter-spacing: -.02em; }
.stats-strip strong small { font-size: .38em; color: var(--cyan-hi); font-weight: 600; margin-inline-start: 10px; letter-spacing: .14em; }
.stats-strip > div > span { font-size: 14px; color: var(--muted); }
.toolbelt { display: flex; align-items: center; gap: 28px; padding-block: 34px; overflow: hidden; }
.toolbelt > span { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.marquee { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee b { font: 600 18px var(--latin); color: var(--text-soft); opacity: .75; white-space: nowrap; display: inline-flex; align-items: center; gap: 52px; }
.marquee b::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section headings ---------- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.35; }
.section-heading h2 span, .page-hero h1 span, .final-cta h2 span, .manifesto h2 span { color: var(--cyan-hi); }
.section-heading p { margin-top: 14px; max-width: 620px; font-size: 17px; }

/* ---------- Journey (tracks) ---------- */
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journey-stage { --tc: var(--cyan); position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(19, 82, 100, .2), rgba(13, 28, 43, 0) 70%); overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s; }
.journey-stage::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tc), transparent); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.journey-stage:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.journey-stage:hover::before { transform: scaleX(1); }
.journey-stage .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(29, 164, 184, .12); color: var(--tc); }
.stage-no { position: absolute; top: 18px; inset-inline-end: 22px; font: 700 54px/1 var(--latin); color: transparent; -webkit-text-stroke: 1px rgba(159, 184, 196, .22); }
.journey-stage h3 { font-size: 21px; margin-top: 6px; }
.journey-stage p { font-size: 14.5px; flex: 1; }
.stage-range { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tc); }
.stage-range .icon { width: 16px; height: 16px; padding: 0; background: none; }

/* Track colours — all from the identity's cyan family */
.tr-1 { --tc: #9fd2dc; }
.tr-2 { --tc: #1da4b8; }
.tr-3 { --tc: #4fd0e2; }
.tr-4 { --tc: #cfe8eb; }
.track-tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--tc, var(--cyan)); background: color-mix(in srgb, var(--tc, var(--cyan)) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tc, var(--cyan)) 30%, transparent); }
.track-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Timeline (home) ---------- */
.timeline { position: relative; display: grid; gap: 14px; padding-inline-start: 56px; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline::after { content: ''; position: absolute; inset-inline-start: 19px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--fill, 0)); background: linear-gradient(180deg, var(--secondary), var(--cyan), var(--accent)); border-radius: 2px; box-shadow: 0 0 14px rgba(29, 164, 184, .6); transition: height .2s linear; }
.timeline-item { --tc: var(--cyan); position: relative; display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 26px; padding: 22px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 23, 36, .5); transition: border-color .3s, background .3s, transform .35s var(--ease-out); }
.timeline-item:hover { border-color: color-mix(in srgb, var(--tc) 55%, transparent); background: rgba(19, 82, 100, .18); transform: translateX(-6px); }
[dir="ltr"] .timeline-item:hover { transform: translateX(6px); }
.timeline-item::before { content: ''; position: absolute; inset-inline-start: -44px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--midnight); border: 2px solid var(--tc); box-shadow: 0 0 0 5px var(--midnight); transition: background .3s, box-shadow .3s; }
.timeline-item:hover::before, .timeline-item.is-visible::before { background: var(--tc); box-shadow: 0 0 0 5px var(--midnight), 0 0 18px var(--tc); }
.timeline-no { font: 700 40px/1 var(--latin); color: transparent; -webkit-text-stroke: 1px var(--tc); }
.timeline-item h3 { font-size: 20px; }
.timeline-item h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.timeline-item p { font-size: 14px; margin-top: 2px; }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
.timeline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.timeline-meta .icon { width: 15px; height: 15px; color: var(--cyan); }
.timeline-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font: 500 12px var(--latin); color: var(--muted); text-align: end; }
.timeline-side b { font: 600 13.5px var(--latin); color: var(--accent); }

/* ---------- Light band (identity's accent surface) ---------- */
.light-band { position: relative; background: var(--accent); color: var(--ink); overflow: hidden; isolation: isolate; }
.light-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(/assets/brand/ribbon.svg) 0 0 / 120px 120px; opacity: .9; }
.light-band::after { content: ''; position: absolute; z-index: -1; width: 780px; height: 780px; inset-inline-start: -220px; top: -260px; background: url(/assets/brand/saic-symbol-color.png) center / contain no-repeat; opacity: .07; }
.light-band h2, .light-band h3 { color: var(--midnight); }
.light-band p { color: var(--slate); }
.light-band .eyebrow { color: var(--ink-cyan); }
.light-band .section-heading { border-color: rgba(19, 82, 100, .2); }
.light-band .section-heading h2 span { color: var(--ink-cyan); }
.light-band .text-link { color: var(--ink-cyan); }
.light-band .text-link:hover { color: var(--midnight); }
.learn-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.learn-stat { padding: 30px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .72); border: 1px solid rgba(19, 82, 100, .14); backdrop-filter: blur(6px); transition: transform .35s var(--ease-out), box-shadow .35s; }
.learn-stat:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(13, 28, 43, .45); }
.learn-stat.is-dark { background: var(--midnight); border-color: var(--midnight); }
.learn-stat.is-dark h3 { color: #fff; }
.learn-stat.is-dark p { color: var(--mist); }
.learn-stat.is-dark strong { color: var(--cyan-hi); }
.learn-stat strong { display: block; font: 700 52px/1 var(--latin); color: var(--secondary); margin-bottom: 14px; }
.learn-stat h3 { font-size: 20px; margin-bottom: 8px; }
.learn-stat .button { margin-top: 22px; }

/* ---------- Cards (shared) ---------- */
.content-card, .sidebar-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.content-card + .content-card { margin-top: 18px; }
.content-card > h2, .sidebar-card > h2 { font-size: 20px; margin-bottom: 16px; }
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(29, 164, 184, .12), transparent 45%); transition: opacity .3s; }
.spotlight:hover::after { opacity: 1; }

/* Session cards */
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.session-card { --tc: var(--cyan); position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(19, 82, 100, .16), rgba(10, 23, 36, .4)); overflow: hidden; transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s; }
.session-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tc) 50%, transparent); box-shadow: 0 30px 60px -30px rgba(29, 164, 184, .35); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.session-number { font: 700 46px/1 var(--latin); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--tc) 70%, transparent); }
.session-number small { font-size: 13px; -webkit-text-stroke: 0; color: var(--muted); font-weight: 500; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(29, 164, 184, .12); color: var(--tc); border: 1px solid rgba(29, 164, 184, .2); transition: transform .5s var(--ease-out); }
.session-card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon .icon { width: 22px; height: 22px; }
.card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card-meta > span:not(.track-tag) { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { width: 15px; height: 15px; }
.session-card h3 { font-size: 21px; }
.session-card h3 a::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.english-label { font-size: 13px; font-weight: 500; color: var(--cyan-hi); margin-top: -8px; }
.card-summary { font-size: 14.5px; flex: 1; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-tags span { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text-soft); background: rgba(159, 184, 196, .08); border: 1px solid var(--line); }
.card-project { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: rgba(8, 20, 32, .55); font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.card-project .icon { width: 16px; height: 16px; color: var(--tc); }
.card-bottom { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-status { flex: 1; }
.card-arrow { position: relative; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: #fff; transition: background .25s, border-color .25s, transform .3s var(--ease-out); }
.session-card:hover .card-arrow { background: var(--cyan); border-color: var(--cyan); color: var(--midnight); transform: translateX(-3px); }
.card-arrow .icon { width: 16px; height: 16px; }
.card-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: transparent; }
.card-progress i, .mini-progress i, .progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--cyan)); border-radius: inherit; transition: width .8s var(--ease-out); }
[dir="rtl"] .card-progress i, [dir="rtl"] .mini-progress i, [dir="rtl"] .progress-track i { background: linear-gradient(270deg, var(--secondary), var(--cyan)); }

/* ---------- Manifesto (progress teaser) ---------- */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 56px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 85% 20%, rgba(19, 82, 100, .45), transparent 55%), var(--deep); overflow: hidden; position: relative; }
.manifesto h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.35; }
.manifesto p { margin-block: 20px 30px; font-size: 17px; }
.manifesto-demo { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: rgba(13, 28, 43, .8); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.demo-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.demo-header > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tiny-tag { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(29, 164, 184, .14); color: var(--cyan-hi); }
.big-progress { display: flex; align-items: baseline; gap: 14px; margin-block: 24px 14px; }
.big-progress strong { font: 700 64px/1 var(--latin); color: #fff; }
.big-progress strong span { font-size: 28px; color: var(--cyan-hi); }
.big-progress > span { color: var(--muted); font-size: 14px; }
.progress-track { height: 8px; border-radius: 999px; background: rgba(159, 184, 196, .12); overflow: hidden; }
.demo-check { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 20, 32, .5); font-size: 14px; font-weight: 600; color: #fff; }
.demo-check > div { flex: 1; }
.demo-check small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.demo-check .icon { color: var(--cyan); }
.mini-square { width: 12px; height: 12px; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 12px rgba(29, 164, 184, .7); }
.mini-square.purple { background: var(--accent); box-shadow: none; }
.storage-caption { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12.5px; }
.storage-caption .icon { width: 16px; height: 16px; color: var(--cyan); }

/* ---------- Capstone banner ---------- */
.capstone-banner { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 54px; align-items: center; padding: 50px 56px; border-radius: 28px; overflow: hidden; background: linear-gradient(120deg, var(--secondary), #0e3a4a 45%, var(--midnight)); border: 1px solid rgba(29, 164, 184, .3); }
.capstone-banner h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.capstone-banner p { color: var(--text-soft); max-width: 560px; margin-bottom: 24px; }
.capstone-banner .eyebrow { color: var(--accent); }
.capstone-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; }
.capstone-orbit, .capstone-orbit::before, .capstone-orbit::after { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(207, 232, 235, .35); animation: spin 30s linear infinite; }
.capstone-orbit::before { content: ''; inset: 16%; border-style: solid; border-color: rgba(207, 232, 235, .18); animation-duration: 22s; animation-direction: reverse; }
.capstone-orbit::after { content: ''; inset: 32%; border: 0; background: radial-gradient(circle, rgba(29, 164, 184, .5), transparent 70%); animation: breathe 4s ease-in-out infinite; }
.capstone-visual > .icon { width: 64px; height: 64px; color: #fff; position: relative; animation: float 5s ease-in-out infinite; }
.capstone-chip { position: absolute; bottom: 8%; padding: 5px 14px; border-radius: 999px; background: var(--accent); color: var(--midnight); font: 700 10px var(--latin); letter-spacing: .18em; }
.banner-number { position: absolute; inset-inline-end: -10px; bottom: -70px; font: 800 260px/1 var(--latin); color: transparent; -webkit-text-stroke: 1px rgba(207, 232, 235, .14); pointer-events: none; }

/* ---------- FAQ ---------- */
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-section .section-heading { border: 0; margin-bottom: 20px; padding: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 23, 36, .45); transition: border-color .3s, background .3s; }
.faq-item[open] { border-color: rgba(29, 164, 184, .4); background: rgba(19, 82, 100, .16); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); font: 400 18px/1 var(--latin); color: var(--cyan-hi); transition: transform .35s var(--ease-out), background .3s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: rgba(29, 164, 184, .16); }
.faq-item p { padding: 0 24px 22px; font-size: 15px; line-height: 1.95; }
.faq-item[open] p { animation: fadeUp .45s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Final CTA & community ---------- */
.final-cta { position: relative; text-align: center; padding: 110px 30px; margin-bottom: 40px; border-radius: 32px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: var(--deep); }
.final-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(29, 164, 184, .38), transparent 70%), radial-gradient(ellipse 40% 50% at 50% 0%, rgba(19, 82, 100, .5), transparent 70%); }
.final-cta .cta-watermark { position: absolute; z-index: -1; width: 900px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .04; }
.final-cta .eyebrow { justify-content: center; }
.final-cta h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.3; margin-bottom: 34px; }
.final-cta .button-row { justify-content: center; }
.final-cta p { margin-top: 24px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: var(--abyss); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 46px; width: auto; display: block; }
.footer-top p { margin-top: 20px; font-size: 14.5px; line-height: 1.9; }
.footer-top > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-top a:not(.footer-logo):not(.button) { color: var(--text-soft); width: fit-content; transition: color .2s, transform .2s; }
.footer-top a:not(.footer-logo):not(.button):hover { color: var(--cyan-hi); transform: translateX(-3px); }
.footer-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-note { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(19, 82, 100, .14); }
.footer-note .footer-title { display: inline-flex; align-items: center; gap: 10px; }
.footer-note p { margin-top: 8px; font-size: 13.5px; }
.footer-note .button { margin-top: 16px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a:hover { color: var(--cyan-hi); }
.footer-tagline { font: 600 11px var(--latin); letter-spacing: .28em; color: var(--cyan-hi); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: 70px 50px; }
.page-hero::before { content: ''; position: absolute; z-index: -1; width: 700px; height: 500px; inset-inline-start: -200px; top: -200px; background: radial-gradient(circle, rgba(19, 82, 100, .55), transparent 65%); filter: blur(30px); }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.3; font-weight: 800; }
.page-hero > p { margin-top: 20px; max-width: 640px; font-size: 18px; color: var(--text-soft); }
.page-hero > .button, .page-hero > .hero-pills { margin-top: 30px; }
.inner-hero-wrap { position: relative; overflow: hidden; isolation: isolate; }
.inner-hero-wrap .hero-watermark { width: 900px; inset-inline-start: auto; inset-inline-end: -320px; opacity: .04; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-size: 13px; color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan-hi); }
.breadcrumb span:last-child { color: var(--text-soft); }
.page-hero .breadcrumb + .eyebrow { display: none; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pills span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 23, 36, .5); font-size: 13.5px; color: var(--text-soft); }
.hero-pills .icon { width: 16px; height: 16px; color: var(--cyan); }

/* ---------- Catalog toolbar ---------- */
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 23, 36, .55); position: sticky; top: calc(var(--header-h) + 10px); z-index: 10; backdrop-filter: blur(14px); }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-soft); transition: background .2s, color .2s; }
.filter-tab span { font-family: var(--latin); font-size: 12px; opacity: .75; margin-inline-start: 4px; }
.filter-tab:hover { color: #fff; background: rgba(159, 184, 196, .08); }
.filter-tab.is-active { background: var(--cyan); color: var(--midnight); }
.catalog-search { display: flex; align-items: center; gap: 10px; min-width: 280px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 20, 32, .7); transition: border-color .2s; }
.catalog-search:focus-within { border-color: var(--cyan); }
.catalog-search .icon { width: 17px; height: 17px; color: var(--muted); }
.catalog-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14.5px; min-width: 0; }
.catalog-search input::placeholder { color: var(--muted); }
.catalog-count { margin-block: 28px 22px; font-size: 14px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.catalog-count #result-count { font-family: var(--latin); font-weight: 700; color: #fff; }
.catalog-count > span:last-child { opacity: .7; }
.catalog-count > span:last-child::before { content: '·'; margin-inline-end: 10px; }
.resource-total { padding-inline: 14px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .icon { width: 40px; height: 40px; color: var(--cyan); }
.empty-state h2 { font-size: 22px; margin-block: 16px 8px; }
.empty-state .button { margin-top: 22px; }

/* ---------- Lesson page ---------- */
.lesson-hero { position: relative; padding-block: 56px 40px; }
.lesson-heading { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.lesson-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.lesson-meta > span:not(.track-tag) { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta .icon { width: 16px; height: 16px; color: var(--cyan); }
.lesson-heading h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.3; font-weight: 800; }
.lesson-heading h1 span { display: block; margin-top: 10px; font-size: .42em; font-weight: 600; color: var(--cyan-hi); line-height: 1.5; }
.lesson-heading p { margin-block: 18px 20px; max-width: 700px; font-size: 17.5px; color: var(--text-soft); }
.lesson-emblem { --tc: var(--cyan); position: relative; display: grid; place-items: center; width: 220px; aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tc) 35%, transparent); background: radial-gradient(circle at 50% 40%, rgba(29, 164, 184, .3), rgba(13, 28, 43, .2) 70%); }
.lesson-emblem::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(159, 184, 196, .25); animation: spin 40s linear infinite; }
.lesson-emblem .icon { width: 56px; height: 56px; color: var(--tc); stroke-width: 1.3; }
.lesson-emblem span { position: absolute; bottom: -12px; padding: 4px 16px; border-radius: 999px; background: var(--midnight); border: 1px solid var(--line-strong); font: 700 20px var(--latin); color: #fff; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; padding-bottom: 80px; }
.lesson-tabs { position: sticky; top: calc(var(--header-h) + 8px); z-index: 10; display: flex; gap: 4px; padding: 6px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 20, 32, .82); backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: none; }
.lesson-tabs::-webkit-scrollbar { display: none; }
.lesson-tabs button { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-soft); transition: background .25s, color .25s; }
.lesson-tabs button .icon { width: 17px; height: 17px; }
.lesson-tabs button:hover { color: #fff; background: rgba(159, 184, 196, .08); }
.lesson-tabs button[aria-selected="true"] { background: var(--cyan); color: var(--midnight); }
.lesson-tabs button span { font-family: var(--latin); font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: rgba(13, 28, 43, .2); }
.tab-panel { animation: fadeUp .45s var(--ease-out); }
.project-callout { position: relative; padding: 34px; margin-bottom: 18px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(29, 164, 184, .35); background: linear-gradient(115deg, rgba(19, 82, 100, .65), rgba(13, 28, 43, .6)); }
.project-callout h2 { font-size: 28px; font-family: var(--latin); }
.project-callout p { margin-top: 8px; color: var(--text-soft); max-width: 80%; }
.project-callout .eyebrow { color: var(--accent); }
.project-callout-icon { position: absolute; inset-inline-end: 28px; top: 50%; transform: translateY(-50%); opacity: .2; }
.project-callout-icon .icon { width: 110px; height: 110px; color: var(--accent); stroke-width: 1; }
.outcome-list { display: grid; gap: 12px; }
.outcome-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.outcome-list .icon { width: 22px; height: 22px; padding: 4px; margin-top: 3px; border-radius: 50%; background: rgba(29, 164, 184, .16); color: var(--cyan-hi); }
.lesson-stages { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: stage; }
.lesson-stages li { position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(8, 20, 32, .5); }
.lesson-stages li span { font: 700 13px var(--latin); color: var(--cyan-hi); }
.lesson-stages h3 { font-size: 15px; margin-top: 8px; }
.lesson-stages li:not(:last-child)::after { content: ''; position: absolute; top: 50%; inset-inline-end: -8px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.callout { position: relative; margin-block: 18px; padding: 20px 24px; border-radius: var(--radius); border: 1px solid rgba(29, 164, 184, .3); border-inline-start: 3px solid var(--cyan); background: rgba(19, 82, 100, .2); color: var(--text-soft); }
.callout strong { color: #fff; }
.callout p { margin-top: 6px; color: var(--text-soft); }
.callout-warning, .callout-caution { border-color: rgba(242, 177, 52, .35); border-inline-start-color: var(--warning); background: rgba(242, 177, 52, .08); }
.callout-important { border-inline-start-color: var(--accent); }
.callout-tip { border-inline-start-color: var(--success); background: rgba(107, 214, 162, .07); }

/* Learning resources (videos & courses) */
.learn-section + .learn-section { margin-top: 18px; }
.learn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.learn-head h2 { font-size: 21px; }
.learn-head p { font-size: 14px; margin-top: 4px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.video-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 20, 32, .55); overflow: hidden; transition: border-color .3s, transform .35s var(--ease-out), background .3s; }
.video-card:hover { border-color: rgba(29, 164, 184, .55); transform: translateY(-3px); background: rgba(19, 82, 100, .2); }
.video-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 70% 30%, rgba(29, 164, 184, .35), transparent 60%), linear-gradient(135deg, var(--secondary), var(--abyss)); }
.video-thumb::before { content: ''; position: absolute; inset: 0; background: url(/assets/brand/ribbon.svg) 0 0 / 70px 70px; opacity: .35; filter: invert(1) brightness(1.4); }
.video-play { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--midnight); box-shadow: 0 0 0 8px rgba(255, 255, 255, .12); transition: transform .35s var(--ease-out), box-shadow .35s; }
.video-play svg { width: 18px; height: 18px; margin-inline-start: 3px; }
[dir="rtl"] .video-play svg { margin-inline-start: 0; margin-inline-end: 3px; }
.video-card:hover .video-play { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(29, 164, 184, .25); }
.video-duration { position: absolute; bottom: 8px; inset-inline-start: 8px; padding: 1px 8px; border-radius: 6px; background: rgba(8, 20, 32, .85); font: 600 11px var(--latin); color: #fff; direction: ltr; }
.video-lang { position: absolute; top: 8px; inset-inline-end: 8px; padding: 1px 9px; border-radius: 6px; background: var(--accent); color: var(--midnight); font-size: 11.5px; font-weight: 700; }
.video-lang.is-ar { background: var(--cyan); }
.video-card h3 { font-size: 15px; line-height: 1.55; color: #fff; }
.video-card h3 a::after { content: ''; position: absolute; inset: 0; }
.video-card .video-channel { font-size: 12.5px; color: var(--cyan-hi); font-weight: 600; }
.video-card p { font-size: 13.5px; line-height: 1.75; }
.level-chip { display: inline-flex; width: fit-content; padding: 1px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text-soft); border: 1px solid var(--line-strong); }
.course-list { display: grid; gap: 10px; }
.course-row { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 20, 32, .55); transition: border-color .3s, background .3s; }
.course-row:hover { border-color: rgba(29, 164, 184, .55); background: rgba(19, 82, 100, .2); }
.course-row > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(29, 164, 184, .14); color: var(--cyan-hi); }
.course-row h3 { font-size: 15px; line-height: 1.55; }
.course-row h3 a::after { content: ''; position: absolute; inset: 0; }
.course-row p { font-size: 13px; margin-top: 2px; }
.course-row .course-provider { font-size: 12.5px; color: var(--cyan-hi); font-weight: 600; }
.course-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.badge-free { background: rgba(107, 214, 162, .14); color: var(--success); }
.badge-paid { background: rgba(242, 177, 52, .12); color: var(--warning); }
.badge-lang { background: rgba(159, 184, 196, .12); color: var(--text-soft); }
.learn-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--muted); }
.learn-note .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--cyan); }
.learn-teaser { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.learn-teaser-stats { display: flex; gap: 20px; }
.learn-teaser-stats div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); }
.learn-teaser-stats strong { font: 700 28px var(--latin); color: #fff; }

/* Content (prose) */
.content-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 20px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.lesson-toc { margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 20, 32, .45); }
.lesson-toc summary { padding: 14px 20px; cursor: pointer; font-weight: 700; color: #fff; }
.lesson-toc nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; padding: 0 20px 18px; }
.lesson-toc a { font-size: 14px; color: var(--text-soft); padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lesson-toc a:hover { color: var(--cyan-hi); }
.prose { font-size: 16.5px; line-height: 2; color: var(--text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5 { position: relative; color: #fff; }
.prose h2 { font-size: 30px; margin-top: 2.2em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 23px; margin-top: 1.8em; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; margin-top: 1.5em; }
.prose p { color: var(--text-soft); }
.prose strong { color: #fff; }
.prose a { color: var(--cyan-hi); text-decoration: underline; text-decoration-color: rgba(63, 192, 210, .4); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--cyan); }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.4em; }
.prose code { font-family: var(--mono); font-size: .86em; padding: 2px 7px; border-radius: 6px; background: rgba(29, 164, 184, .12); color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.prose blockquote { margin: 0; }
.heading-anchor { margin-inline-start: 10px; font-family: var(--latin); font-size: .7em; color: var(--cyan); opacity: 0; transition: opacity .2s; text-decoration: none !important; }
.prose :is(h2, h3, h4, h5):hover .heading-anchor { opacity: 1; }
.code-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--abyss); }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); background: rgba(19, 82, 100, .22); font: 500 12px var(--latin); color: var(--muted); }
.code-toolbar button { border: 1px solid var(--line-strong); background: transparent; padding: 3px 12px; border-radius: 999px; font-size: 12px; color: var(--text-soft); transition: background .2s, color .2s; }
.code-toolbar button:hover { background: var(--cyan); color: var(--midnight); border-color: var(--cyan); }
.code-block pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #d7e8ec; }
.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-scroll th, .table-scroll td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll th { background: rgba(19, 82, 100, .3); color: #fff; font-weight: 700; white-space: nowrap; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: rgba(19, 82, 100, .12); }
.math-block { overflow-x: auto; padding: 18px; border-radius: var(--radius); background: rgba(8, 20, 32, .5); border: 1px solid var(--line); color: #fff; }
.diagram { margin-inline: 0; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cloud); overflow-x: auto; }
.diagram pre.mermaid { margin: 0; color: var(--ink); background: none; font-size: 13px; }
.diagram figcaption { margin-top: 12px; font-size: 12.5px; color: var(--slate); text-align: center; }

/* Tasks & notes */
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { font-size: 26px; }
.panel-heading p { margin-top: 6px; }
.task-tally { padding: 6px 16px; border-radius: 999px; background: rgba(29, 164, 184, .14); font: 700 15px var(--latin); color: var(--cyan-hi); white-space: nowrap; }
.task-filters { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 999px; }
.task-filters button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.task-filters button.is-active { background: rgba(29, 164, 184, .2); color: #fff; }
.task-list { display: grid; gap: 8px; }
.task-row, .custom-task > label { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 20, 32, .5); cursor: pointer; transition: border-color .25s, background .25s; }
.task-row:hover, .custom-task > label:hover { border-color: var(--line-strong); background: rgba(19, 82, 100, .16); }
.task-row:has(input:checked) { border-color: rgba(29, 164, 184, .35); background: rgba(19, 82, 100, .2); }
.task-row:has(input:checked) .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(159, 184, 196, .5); }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 3px 0 0; border-radius: 7px; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
input[type="checkbox"]::before { content: ''; width: 11px; height: 6px; border-inline-start: 2px solid var(--midnight); border-bottom: 2px solid var(--midnight); transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform .25s var(--ease-out); }
[dir="rtl"] input[type="checkbox"]::before { border-inline-start: 0; border-inline-end: 0; border-left: 2px solid var(--midnight); }
input[type="checkbox"]:checked { background: var(--cyan); border-color: var(--cyan); }
input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.task-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.task-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.7; transition: color .2s; }
.task-content small { font-size: 12.5px; color: var(--muted); }
.task-origin { flex-shrink: 0; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: rgba(159, 184, 196, .08); color: var(--muted); }
.empty-filter { padding: 20px; text-align: center; color: var(--muted); }
.custom-task-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.custom-task-section h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 14px; }
.custom-task-section h3 span { font: 700 12px var(--latin); padding: 1px 9px; border-radius: 999px; background: rgba(29, 164, 184, .16); color: var(--cyan-hi); }
.custom-task { position: relative; margin-bottom: 8px; }
.custom-task > label { padding-inline-end: 140px; }
.task-actions { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; gap: 6px; }
.task-actions button { border: 1px solid var(--line); background: rgba(8, 20, 32, .7); padding: 3px 12px; border-radius: 999px; font-size: 12px; color: var(--text-soft); }
.task-actions button:hover { border-color: var(--cyan); color: #fff; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.task-meta span { font-size: 11.5px; padding: 1px 9px; border-radius: 999px; background: rgba(159, 184, 196, .1); color: var(--text-soft); }
.task-meta .priority-high { background: rgba(255, 143, 135, .14); color: var(--danger); }
.task-meta .priority-low { background: rgba(159, 184, 196, .06); color: var(--muted); }
.task-form, .edit-task-form { display: grid; gap: 14px; margin-top: 14px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.task-form label, .edit-task-form label, .status-label, .notes-label { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.task-form-bottom { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.task-form-bottom label { flex: 1; min-width: 150px; }
input:not([type="checkbox"]):not([type="search"]), select, textarea { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(8, 20, 32, .7); font-size: 15px; color: #fff; outline: 0; transition: border-color .2s, box-shadow .2s; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(29, 164, 184, .16); }
select option { background: var(--midnight); }
input[type="date"] { color-scheme: dark; }
textarea { resize: vertical; line-height: 1.9; min-height: 280px; }
.notes-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
#notes-count { font-family: var(--latin); }
.lesson-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.lesson-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(8, 20, 32, .5); transition: border-color .3s, background .3s, transform .35s var(--ease-out); }
.lesson-navigation a:hover { border-color: rgba(29, 164, 184, .5); background: rgba(19, 82, 100, .2); transform: translateY(-3px); }
.lesson-navigation small { font-size: 12.5px; color: var(--muted); }
.lesson-navigation span { font-size: 16px; font-weight: 700; color: #fff; }
.lesson-navigation .next-lesson { text-align: end; }

/* Sidebar */
.lesson-sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; }
.sidebar-card { padding: 24px; }
.sidebar-card > h2 { font-size: 16px; margin-bottom: 10px; }
.sidebar-card > p { font-size: 14px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: #fff; }
.sidebar-heading .icon { color: var(--cyan); }
.progress-card { text-align: center; background: linear-gradient(180deg, rgba(19, 82, 100, .35), rgba(13, 28, 43, .2)); }
.progress-card .sidebar-heading { margin-bottom: 20px; }
.ring { --progress: 0; position: relative; width: 150px; aspect-ratio: 1; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--cyan) calc(var(--progress) * 1%), rgba(159, 184, 196, .12) 0); transition: --progress .8s; }
.ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--card-solid); }
.ring span { position: relative; font: 700 38px var(--latin); color: #fff; }
.ring small { font-size: 18px; color: var(--cyan-hi); }
.progress-card > p { font-size: 13.5px; margin-bottom: 16px; }
.progress-card .status-label { text-align: start; margin-bottom: 14px; }
.progress-card .small { margin-top: 12px; }
.resource-mini { display: grid; gap: 4px; }
.resource-mini a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; margin-inline: -10px; border-radius: 8px; font-size: 13.5px; color: var(--text-soft); transition: background .2s, color .2s; }
.resource-mini a:hover { background: rgba(29, 164, 184, .12); color: #fff; }
.resource-mini .icon { width: 14px; height: 14px; color: var(--muted); }
.local-note { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); font-size: 13px; color: var(--muted); }
.local-note .icon { color: var(--cyan); }
.local-note a { display: block; margin-top: 4px; color: var(--cyan-hi); font-weight: 600; }
.english-lesson { padding-block: 50px 90px; max-width: 860px; }
.english-lesson h1 { font-size: clamp(36px, 4.4vw, 56px); margin-block: 6px 12px; }
.english-lesson .lead { margin-bottom: 36px; }
.english-lesson .text-link { margin-bottom: 30px; }

/* ---------- Dashboard ---------- */
.dashboard { padding-bottom: 90px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.dashboard-stats > div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.dashboard-stats .icon { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(29, 164, 184, .14); color: var(--cyan-hi); margin-bottom: 8px; }
.dashboard-stats strong { font: 700 34px var(--latin); color: #fff; }
.dashboard-stats strong small { font-size: 15px; color: var(--muted); font-weight: 500; }
.dashboard-stats span { font-size: 13.5px; color: var(--muted); }
.continue-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 18px; border-radius: var(--radius-lg); border: 1px solid rgba(29, 164, 184, .35); background: linear-gradient(115deg, var(--secondary), rgba(13, 28, 43, .7)); }
.continue-card .eyebrow { color: var(--accent); margin-bottom: 8px; }
.continue-card h2 { font-size: 26px; }
.continue-card p { color: var(--text-soft); }
.dashboard-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.dashboard-columns > div > .content-card + .content-card { margin-top: 18px; }
.dashboard-columns .panel-heading { margin-bottom: 14px; align-items: center; }
.dashboard-columns .panel-heading h2 { font-size: 20px; }
#dashboard-percent { font: 700 22px var(--latin); color: var(--cyan-hi); }
.progress-session-list { display: grid; gap: 6px; margin-top: 20px; }
.progress-session { display: grid; grid-template-columns: 44px 1fr auto 20px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; transition: background .2s; }
.progress-session:hover { background: rgba(19, 82, 100, .2); }
.progress-session-number { font: 700 20px var(--latin); color: transparent; -webkit-text-stroke: 1px var(--cyan); }
.progress-session h3 { font-size: 14.5px; }
.progress-session > div > span { font-size: 12px; color: var(--muted); }
.progress-session .icon { width: 16px; height: 16px; color: var(--muted); }
.mini-progress { height: 4px; margin-top: 6px; border-radius: 999px; background: rgba(159, 184, 196, .12); overflow: hidden; }
.status-chip { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: rgba(159, 184, 196, .1); color: var(--muted); white-space: nowrap; }
.status-chip.active, .card-status.active { color: var(--cyan-hi); }
.status-chip.complete, .card-status.complete { color: var(--success); }
.upcoming-task { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.upcoming-task:last-child { border-bottom: 0; }
.upcoming-task strong { display: block; font-size: 14.5px; color: #fff; }
.upcoming-task small { font-size: 12px; color: var(--muted); }
.upcoming-task:hover strong { color: var(--cyan-hi); }
.backup-card .card-icon { margin-bottom: 14px; }
.backup-card h2 { font-size: 21px; margin-bottom: 8px; }
.backup-card .button-row { margin-block: 20px 12px; }
.search-empty { padding: 18px 0; color: var(--muted); font-size: 14px; }

/* ---------- Resources library ---------- */
.lib-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.lib-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-soft); transition: background .2s, border-color .2s, color .2s; }
.lib-nav a:hover { border-color: var(--cyan); color: #fff; background: rgba(29, 164, 184, .1); }
.lib-session { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-block: 34px; border-top: 1px solid var(--line); }
.lib-session-head { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
.lib-session-head .timeline-no { display: block; font-size: 56px; margin-bottom: 12px; }
.lib-session-head h3 { font-size: 19px; }
.lib-session-head p { font-size: 13px; margin-top: 4px; color: var(--cyan-hi); }
.lib-session-head .text-link { margin-top: 12px; font-size: 13.5px; }
.lib-session-body { display: grid; gap: 18px; }
.lib-session-body h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: -6px; }
.lib-session-body .video-grid { grid-template-columns: repeat(3, 1fr); }
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.resource-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(8, 20, 32, .5); transition: border-color .3s, background .3s, transform .35s var(--ease-out); }
.resource-card:hover { border-color: rgba(29, 164, 184, .5); background: rgba(19, 82, 100, .18); transform: translateY(-3px); }
.resource-host { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--latin); color: var(--cyan-hi); }
.resource-host .icon { width: 15px; height: 15px; color: var(--muted); }
.resource-card h2 { font-size: 15.5px; line-height: 1.6; flex: 1; }
.resource-card h2 a::after { content: ''; position: absolute; inset: 0; }
.resource-sessions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.resource-sessions a { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: rgba(159, 184, 196, .08); color: var(--text-soft); }
.resource-sessions a:hover { background: var(--cyan); color: var(--midnight); }
.sub-heading { display: flex; align-items: baseline; gap: 14px; margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); }
.sub-heading h2 { font-size: 30px; }
.sub-heading p { font-size: 15px; }

/* ---------- Capstone page ---------- */
.capstone-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.capstone-steps article { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; transition: transform .35s var(--ease-out), border-color .3s; }
.capstone-steps article:hover { transform: translateY(-4px); border-color: rgba(29, 164, 184, .45); }
.capstone-steps span { display: block; font: 700 46px/1 var(--latin); color: transparent; -webkit-text-stroke: 1px var(--cyan); margin-bottom: 18px; }
.capstone-steps h2 { font-size: 19px; margin-bottom: 8px; }
.capstone-steps p { font-size: 14px; }
.capstone-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.capstone-layout .content-card + .content-card { margin-top: 0; }
.capstone-layout h2 { font-size: 24px; margin-bottom: 22px; }
.rubric { display: grid; gap: 16px; }
.rubric > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14.5px; color: var(--text-soft); }
.rubric strong { font: 700 18px var(--latin); color: #fff; }
.rubric small { font-size: 12px; color: var(--muted); }
.rubric > div > div { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: rgba(159, 184, 196, .12); position: relative; overflow: hidden; }
.rubric > div > div::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--weight); border-radius: inherit; background: linear-gradient(270deg, var(--secondary), var(--cyan)); transform-origin: right; animation: grow 1.4s var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }
.presentation-timeline { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; display: grid; gap: 4px; }
.presentation-timeline li { counter-increment: step; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; color: var(--text-soft); }
.presentation-timeline li:nth-child(odd) { background: rgba(8, 20, 32, .45); }
.presentation-timeline li span::before { content: counter(step, decimal-leading-zero); font: 700 12px var(--latin); color: var(--cyan-hi); margin-inline-end: 12px; }
.presentation-timeline strong { font-size: 13px; color: #fff; white-space: nowrap; }
.capstone-final { text-align: center; padding: 44px; }
.capstone-final p { max-width: 640px; margin: 8px auto 24px; }
.capstone-final .button-row { justify-content: center; }

/* ---------- FAQ / privacy / 404 ---------- */
.faq-page > h2 { font-size: 26px; margin-bottom: 20px; }
.faq-group { margin-top: 60px; }
.faq-group .section-heading { margin-bottom: 20px; padding-bottom: 18px; align-items: center; }
.faq-group .section-heading h2 { font-size: 22px; }
.faq-group .section-heading .eyebrow { margin-bottom: 4px; }
.privacy-content .content-card { max-width: 860px; padding: 44px; }
.privacy-content h2 { font-size: 21px; margin-top: 30px; margin-bottom: 8px; }
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content .button { margin-top: 30px; }
.not-found { text-align: center; padding-block: 140px; }
.not-found .eyebrow { justify-content: center; }
.not-found h1 { font-size: clamp(42px, 6vw, 80px); margin-bottom: 14px; }
.not-found p { margin-bottom: 30px; font-size: 18px; }

/* ---------- Dialogs, toast ---------- */
dialog { border: 1px solid var(--line-strong); border-radius: 22px; background: var(--card-solid); color: var(--text); padding: 0; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); }
dialog::backdrop { background: rgba(8, 20, 32, .72); backdrop-filter: blur(6px); }
dialog[open] { animation: dialogIn .35s var(--ease-out); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.search-dialog { width: min(680px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 80px)); padding: 26px; margin-top: 10vh; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dialog-head h2 { font-size: 22px; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--cyan); background: rgba(8, 20, 32, .8); box-shadow: 0 0 0 4px rgba(29, 164, 184, .14); }
.search-input-wrap .icon { color: var(--cyan); }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-dialog > .muted { margin-block: 10px 14px; }
#search-results { display: grid; gap: 8px; }
.search-result { display: block; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.search-result:hover, .search-result:focus { border-color: var(--cyan); background: rgba(19, 82, 100, .22); }
.search-result small { font-size: 12px; color: var(--cyan-hi); }
.search-result h3 { font-size: 15.5px; }
.search-result p { font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.confirm-dialog { width: min(460px, calc(100% - 32px)); padding: 30px; }
.confirm-dialog h2 { font-size: 21px; margin-bottom: 10px; }
.confirm-dialog p { margin-bottom: 24px; white-space: pre-line; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-radius: 999px; background: var(--accent); color: var(--midnight); font-weight: 700; font-size: 14.5px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); animation: toastIn .4s var(--ease-out); }
.toast button { border: 0; background: var(--midnight); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.storage-warning { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 100; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; border-radius: var(--radius); background: #3a1c1f; border: 1px solid rgba(255, 143, 135, .4); color: #ffd9d6; font-size: 14px; }
.storage-warning button { border: 0; background: var(--danger); color: var(--midnight); padding: 5px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.noscript-notice { padding: 12px 20px; background: var(--secondary); color: #fff; text-align: center; font-size: 14px; }

/* ---------- Reveal-on-scroll motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-title .line { opacity: 0; transform: translateY(30px); animation: lineIn 1s var(--ease-out) forwards; }
.js .hero-title .line:nth-child(2) { animation-delay: .12s; }
.js .hero-title .line:nth-child(3) { animation-delay: .24s; }
.js .hero-copy > :not(h1) { opacity: 0; animation: lineIn 1s var(--ease-out) forwards; animation-delay: .45s; }
.js .hero-copy > .edition-tag { animation-delay: 0s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.js .hero-title .accent { animation: lineIn 1s var(--ease-out) .24s forwards, sheen 8s ease-in-out 1.2s infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .hero-art { max-width: 520px; }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .session-grid, .resources-grid, .lib-session-body .video-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-grid { grid-template-columns: 1fr 1fr; }
  .learn-grid > :first-child { grid-column: 1 / -1; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .capstone-steps { grid-template-columns: repeat(2, 1fr); }
  .faq-section { grid-template-columns: 1fr; gap: 10px; }
  .manifesto { grid-template-columns: 1fr; padding: 40px; gap: 40px; }
  .lib-session { grid-template-columns: 1fr; gap: 18px; }
  .lib-session-head { position: static; }
}
@media (max-width: 900px) {
  .main-nav { position: absolute; top: calc(var(--header-h) - 4px); inset-inline: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 20px; border: 1px solid var(--line-strong); background: rgba(8, 20, 32, .97); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease-out), visibility .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .nav-community { display: block; }
  .mobile-toggle { display: inline-flex; border-color: var(--line); }
  .search-trigger kbd { display: none; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-columns, .capstone-layout { grid-template-columns: 1fr; }
  .capstone-banner { grid-template-columns: 1fr; padding: 40px 30px; gap: 30px; }
  .capstone-visual { width: 200px; }
  .lesson-heading { grid-template-columns: 1fr; }
  .lesson-emblem { display: none; }
  .lesson-stages { grid-template-columns: repeat(2, 1fr); }
  .lesson-stages li::after { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > div:nth-child(3) { border-inline-start: 0; }
  .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .timeline-item { grid-template-columns: 64px 1fr; }
  .timeline-side { display: none; }
  .timeline-no { font-size: 32px; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: 64px; }
  .brand-name small { display: none; }
  .brand-name strong { font-size: 12px; line-height: 1.4; max-width: 112px; }
  .brand { gap: 10px; }
  .nav-actions { gap: 6px; }
  .tag-divider, .tag-extra { display: none; }
  .brand-symbol { height: 24px; }
  .brand-divider { height: 24px; }
  .nav-actions .button-light { display: none; }
  .hero { padding-top: 36px; }
  .hero-title { font-size: clamp(34px, 10vw, 46px); }
  .hero-description { font-size: 16.5px; }
  .desktop-only { display: none; }
  .hero-copy .button-row .button { flex: 1 1 100%; }
  .floating-label { display: none; }
  .journey-grid, .session-grid, .resources-grid, .video-grid, .lib-session-body .video-grid, .learn-grid, .capstone-steps { grid-template-columns: 1fr; }
  .journey-stage { min-height: 0; }
  .section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .catalog-toolbar { border-radius: 20px; position: static; }
  .catalog-search { min-width: 0; width: 100%; }
  .timeline { padding-inline-start: 34px; }
  .timeline::before, .timeline::after { inset-inline-start: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .timeline-item::before { inset-inline-start: -33px; }
  .timeline-item:hover { transform: none; }
  .toolbelt { flex-direction: column; align-items: flex-start; gap: 14px; }
  .toolbelt .marquee { width: 100%; }
  .manifesto { padding: 26px; border-radius: 22px; }
  .big-progress strong { font-size: 48px; }
  .final-cta { padding: 70px 22px; border-radius: 24px; }
  .footer-top { grid-template-columns: 1fr; padding-block: 48px 30px; gap: 30px; }
  .lesson-sidebar { grid-template-columns: 1fr; }
  .lesson-tabs { border-radius: 16px; }
  .lesson-navigation { grid-template-columns: 1fr; }
  .lesson-toc nav { grid-template-columns: 1fr; }
  .project-callout { padding: 26px; }
  .project-callout p { max-width: none; }
  .project-callout-icon { display: none; }
  .content-card { padding: 22px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-stats > div { padding: 18px; }
  .progress-session { grid-template-columns: 36px 1fr 20px; }
  .progress-session .status-chip { display: none; }
  .custom-task > label { padding-inline-end: 18px; padding-bottom: 52px; }
  .task-actions { top: auto; bottom: 14px; inset-inline-start: 52px; inset-inline-end: auto; }
  .course-row { grid-template-columns: 1fr; gap: 10px; }
  .course-row > .icon { display: none; }
  .course-badges { flex-direction: row; align-items: center; }
  .privacy-content .content-card { padding: 26px; }
  .banner-number { font-size: 180px; }
  .storage-warning { inset-inline: 16px; max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-title .line, .js .hero-copy > * { opacity: 1 !important; transform: none !important; }
  .flow-base { stroke-dashoffset: 0; }
  .flow-node { opacity: 1; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .lesson-tabs, .lesson-sidebar, .hero-art, .toast, dialog { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose p, .prose h2, .prose h3 { color: #000; }
}
