:root { --ink: #090909; --paper: #f7f6ee; --yellow: #f6e016; --muted: #aaa; --pad: clamp(20px, 5vw, 80px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: #fff; font-family: Tajawal, Arial, sans-serif; font-size: 16px; overflow-x: clip; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: Lalezar, Anton, sans-serif; font-weight: 400; }
em { font-style: normal; color: var(--yellow); }
.site-header { height: 86px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; background: rgba(9,9,9,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid #242424; }
.brand { width: 46px; height: 46px; flex: none; border: 1px solid #777; border-radius: 50%; display: grid; place-items: center; background: #151515; box-shadow: inset 0 1px 0 #555; }
.brand span { font-family: Anton, Arial, sans-serif; color: var(--yellow); font-size: 19px; font-style: italic; line-height: 1; transform: translate(-1.5px, 1px); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language { background: transparent; border: 0; color: var(--yellow); font-weight: 800; padding: 10px; min-width: 44px; min-height: 44px; }
.header-home { font-weight: 700; border-bottom: 1px solid currentColor; padding: 5px 0; }
.header-home:hover, .site-footer a:hover { color: var(--yellow); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #ddd; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.eyebrow.dark { color: #555; }
.yellow-square { display: inline-block; width: 11px; height: 11px; background: var(--yellow); flex: none; }
.catalog-hero { min-height: min(760px, 84svh); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 90px var(--pad) 110px; overflow: hidden; }
.catalog-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 78% 45%, #2a260d 0, transparent 35%), #090909; }
.catalog-hero::after { content: ''; position: absolute; inset-inline: var(--pad); bottom: 0; height: 1px; background: #3c3c3c; }
.hero-orbit { position: absolute; width: min(54vw, 620px); aspect-ratio: 1; border: 1px solid #252525; border-radius: 50%; inset-inline-end: -8%; top: 15%; z-index: -1; transform: rotate(-20deg); }
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; inset: 12%; border: 1px solid #333; border-radius: 50%; }
.hero-orbit::after { inset: 25%; border-color: #4b4612; box-shadow: 0 0 80px #f6e01615; }
.hero-orbit i:first-child { position: absolute; width: 14px; height: 14px; background: var(--yellow); border-radius: 50%; top: 12%; inset-inline-end: 12%; box-shadow: 0 0 24px #f6e01670; }
.hero-orbit i:last-child { position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; bottom: 17%; inset-inline-start: 15%; }
.catalog-hero h1 { font-size: clamp(76px, 12vw, 180px); line-height: .88; margin: 26px 0 30px; max-width: 1000px; }
.hero-lead { max-width: 540px; color: #ccc; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.65; }
.scroll-cue { display: inline-flex; gap: 18px; align-items: center; color: var(--yellow); font-weight: 800; margin-top: 42px; padding-bottom: 8px; border-bottom: 1px solid var(--yellow); }
.scroll-cue:hover { gap: 24px; }
.hero-index { position: absolute; bottom: 34px; inset-inline-end: var(--pad); direction: ltr; font-family: Anton, Arial, sans-serif; color: #777; font-size: 14px; }
.catalog-section { background: var(--paper); color: var(--ink); padding: clamp(80px, 9vw, 150px) var(--pad) clamp(90px, 11vw, 170px); scroll-margin-top: 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 44px; margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(56px, 7.5vw, 100px); line-height: .95; margin-top: 22px; }
.section-heading > p { max-width: 320px; color: #555; font-size: 17px; line-height: 1.6; padding-bottom: 7px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalog-card { min-width: 0; background: #fff; border: 1px solid #e1e0d8; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 50px #0000000b; transition: transform .3s, box-shadow .3s; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px #00000018; }
.card-image { aspect-ratio: 16 / 9; display: block; position: relative; overflow: hidden; background: #101627; }
.card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #0008); pointer-events: none; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.catalog-card:hover .card-image img { transform: scale(1.04); }
.image-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: #000; box-shadow: 0 10px 25px #0005; }
.card-content { display: grid; align-content: start; padding: clamp(23px, 3vw, 40px); min-height: 282px; }
.card-index { display: flex; align-items: center; gap: 12px; color: #685f22; font-size: 13px; font-weight: 800; }
.card-index span { color: #aaa; }
.card-content h3 { font-size: clamp(38px, 4vw, 58px); line-height: 1.06; margin-top: 20px; }
.card-content p { color: #555; font-size: 17px; line-height: 1.6; margin-top: 10px; }
.card-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; width: fit-content; min-width: 165px; min-height: 48px; padding: 0 18px; margin-top: 28px; color: #000; background: var(--yellow); border-radius: 30px; font-weight: 800; }
.card-link:hover, .primary-button:hover, .contact-button:hover { background: #fff176; }
.coming-section { padding: clamp(90px, 11vw, 160px) var(--pad) clamp(100px, 13vw, 180px); position: relative; background: radial-gradient(circle at 75% 20%, #25220d, transparent 30%), #090909; }
.coming-line { display: block; height: 1px; background: #333; position: absolute; top: 0; inset-inline: var(--pad); }
.coming-section h2 { font-size: clamp(61px, 8vw, 110px); line-height: .98; margin: 24px 0; }
.coming-section > p:not(.eyebrow) { max-width: 570px; color: #bbb; font-size: 19px; line-height: 1.65; }
.contact-button, .primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 56px; padding: 0 24px; border-radius: 100px; background: var(--yellow); color: #000; font-weight: 800; box-shadow: 0 12px 30px #0002; }
.coming-section .contact-button { margin-top: 32px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px var(--pad); border-top: 1px solid #333; color: #bbb; font-size: 14px; }
.site-footer a { font-weight: 700; }
.crumbs { display: flex; align-items: center; gap: 14px; padding: 24px var(--pad) 0; color: #aaa; font-size: 14px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs > span:last-child { color: #fff; }
.detail-hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); align-items: center; gap: 60px; padding: 65px var(--pad) 105px; overflow: hidden; }
.detail-copy { position: relative; z-index: 1; }
.course-number { color: #686868; direction: ltr; width: fit-content; font: 20px Anton, Arial, sans-serif; margin-top: 48px; }
.detail-copy h1 { font-size: clamp(70px, 9vw, 130px); line-height: .9; margin: 14px 0 26px; }
.detail-lead { max-width: 610px; color: #ccc; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.6; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 32px; }
.status-pill { border: 1px solid #555; border-radius: 100px; color: #ccc; min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; font-size: 13px; font-weight: 700; }
.detail-visual { aspect-ratio: 1; width: min(100%, 420px); border-radius: 50%; border: 1px solid #3b3715; background: radial-gradient(circle, #302b09 0, #0b0b0a 55%); display: grid; place-items: center; position: relative; justify-self: center; box-shadow: 0 0 100px #f6e01610; }
.detail-visual::before, .detail-visual::after { content: ''; position: absolute; inset: 12%; border: 1px solid #3b3715; border-radius: 50%; }
.detail-visual::after { inset: 26%; border-color: #625919; }
.detail-visual span { font-family: Anton, Arial, sans-serif; font-size: clamp(120px, 16vw, 220px); line-height: 1; color: var(--yellow); position: relative; z-index: 1; text-shadow: 0 10px 50px #f6e01650; }
.detail-visual i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); top: 15%; inset-inline-end: 15%; box-shadow: 0 0 20px #f6e01680; }
.preview-section { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr); gap: clamp(40px, 5vw, 90px); padding: clamp(80px, 9vw, 140px) var(--pad); background: var(--paper); color: var(--ink); scroll-margin-top: 86px; }
.preview-heading h2 { font-size: clamp(58px, 6vw, 88px); line-height: .95; margin: 22px 0 18px; }
.preview-heading p:last-child { color: #555; font-size: 18px; line-height: 1.6; }
.video-frame { aspect-ratio: 16 / 9; min-width: 0; border-radius: 22px; overflow: hidden; background: #101627; box-shadow: 0 22px 55px #0003; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #101627; }
.lessons-section { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: clamp(90px, 10vw, 150px) var(--pad); background: #101010; }
.lessons-section h2 { font-size: clamp(60px, 7vw, 100px); line-height: .96; margin: 23px 0 20px; }
.lessons-section p:not(.eyebrow) { max-width: 470px; color: #aaa; font-size: 18px; line-height: 1.65; }
.lessons-empty { min-height: 280px; border: 1px dashed #555; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: #171717; }
.empty-mark { width: 54px; height: 54px; border-radius: 50%; border: 1px solid #6f671b; display: grid; place-items: center; color: var(--yellow); font-size: 28px; }
.lessons-empty strong { font-family: Lalezar, Anton, sans-serif; font-size: 34px; font-weight: 400; line-height: 1; }
.lessons-empty small { color: #999; font-size: 14px; }
.course-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 46px var(--pad); background: var(--yellow); color: #000; }
.course-cta p { font-family: Lalezar, Anton, sans-serif; font-size: clamp(30px, 4vw, 50px); line-height: 1; }
.course-cta .contact-button { background: #000; color: #fff; }
.course-cta .contact-button:hover { background: #222; }
@media (max-width: 800px) {
  .site-header { height: 86px; }
  .header-actions { gap: 10px; }
  .header-home { font-size: 14px; }
  .catalog-hero { min-height: 650px; min-height: 78svh; padding-top: 70px; padding-bottom: 110px; }
  .hero-orbit { width: 85vw; top: 11%; inset-inline-end: -46%; opacity: .65; }
  .catalog-hero h1 { font-size: clamp(70px, 17vw, 115px); margin: 24px 0; }
  .hero-lead { font-size: 18px; max-width: 470px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: clamp(56px, 13vw, 82px); }
  .section-heading > p { margin-top: 20px; font-size: 16px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 22px; }
  .catalog-card { border-radius: 20px; }
  .card-content { min-height: 0; padding: 24px; }
  .card-content h3 { font-size: 45px; }
  .card-content p { font-size: 16px; }
  .coming-section h2 { font-size: clamp(61px, 13vw, 87px); }
  .coming-section > p:not(.eyebrow) { font-size: 17px; }
  .site-footer { flex-wrap: wrap; gap: 15px 28px; }
  .site-footer span { width: 100%; }
  .detail-hero { display: flex; flex-direction: column; align-items: stretch; gap: 35px; padding-top: 70px; padding-bottom: 85px; min-height: 0; }
  .course-number { margin-top: 45px; }
  .detail-copy h1 { font-size: clamp(66px, 14vw, 100px); }
  .detail-lead { font-size: 20px; }
  .detail-visual { width: min(70vw, 300px); margin: 5px auto 0; }
  .detail-visual span { font-size: clamp(120px, 33vw, 180px); }
  .preview-section { grid-template-columns: 1fr; gap: 30px; }
  .preview-heading h2 { font-size: 66px; }
  .preview-heading p:last-child { font-size: 16px; }
  .video-frame { border-radius: 16px; }
  .lessons-section { grid-template-columns: 1fr; gap: 30px; }
  .lessons-section h2 { font-size: 68px; }
  .lessons-section p:not(.eyebrow) { font-size: 16px; }
  .lessons-empty { min-height: 230px; }
  .course-cta { display: block; }
  .course-cta .contact-button { margin-top: 18px; }
}
@media (max-width: 400px) { .catalog-hero h1 { font-size: 66px; } .detail-copy h1 { font-size: 61px; } .card-content h3 { font-size: 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Course viewer: a working sample playlist using excerpts from the approved introductions. */
.learning-section { padding: clamp(80px, 8vw, 130px) var(--pad) clamp(90px, 9vw, 140px); background: var(--paper); color: var(--ink); scroll-margin-top: 86px; }
.learning-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 390px); align-items: end; gap: 12px 42px; margin-bottom: 40px; }
.learning-heading .eyebrow { grid-column: 1; grid-row: 1; }
.learning-heading h2 { grid-column: 1; grid-row: 2; font-size: clamp(60px, 7vw, 94px); line-height: .95; margin-top: 8px; }
.learning-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; max-width: 390px; font-size: 17px; color: #555; line-height: 1.6; }
.learning-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.player-column { min-width: 0; border-radius: 23px; overflow: hidden; background: #101010; color: #fff; box-shadow: 0 24px 60px #0002; }
.player-column .video-frame { border-radius: 0; box-shadow: none; }
.player-column video { object-fit: contain; }
.player-caption { display: flex; justify-content: space-between; gap: 24px; padding: 24px 28px 27px; }
.player-kicker { color: var(--yellow); font-size: 12px; font-weight: 800; }
.player-caption h3 { font-size: clamp(29px, 3vw, 42px); line-height: 1.05; margin-top: 8px; }
.player-caption p { color: #aaa; font-size: 15px; line-height: 1.5; margin-top: 5px; }
.player-duration { color: #aaa; font-family: Anton, Arial, sans-serif; font-size: 15px; direction: ltr; flex: none; }
.playlist { background: #fff; border: 1px solid #e3e1d7; border-radius: 23px; overflow: hidden; box-shadow: 0 16px 45px #0000000c; }
.playlist-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px 25px 20px; border-bottom: 1px solid #eae9e3; }
.playlist-header span { color: #857800; font-size: 12px; font-weight: 800; }
.playlist-header h3 { font-size: 31px; line-height: 1.1; margin-top: 6px; }
.playlist-header b { font: 24px Anton, Arial, sans-serif; color: #a49b55; }
.playlist-items { padding: 10px; display: grid; gap: 4px; }
.lesson-item { width: 100%; border: 1px solid transparent; border-radius: 14px; display: flex; align-items: center; gap: 13px; text-align: start; background: transparent; color: #111; padding: 14px 13px; min-height: 77px; transition: background .2s, border-color .2s; }
.lesson-item:hover { background: #f6f4e8; }
.lesson-item.active { background: #faf7ce; border-color: #e6d436; }
.lesson-play { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #111; color: var(--yellow); display: grid; place-items: center; line-height: 1; }
.image-play svg, .lesson-play svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.lesson-item.active .lesson-play { background: var(--yellow); color: #000; }
.lesson-copy { min-width: 0; display: grid; gap: 4px; flex: 1; }
.lesson-copy strong { font-size: 16px; font-weight: 800; }
.lesson-copy small { font-size: 12px; color: #777; }
.lesson-item time { color: #777; direction: ltr; font-family: Anton, Arial, sans-serif; font-size: 13px; flex: none; }
.playlist-footnote { border-top: 1px solid #eae9e3; margin: 0; padding: 15px 25px 20px; color: #777; font-size: 13px; line-height: 1.5; }
.overview-section { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 7vw, 120px); padding: clamp(90px, 11vw, 165px) var(--pad); background: radial-gradient(circle at 82% 15%, #28240e, transparent 32%), #0b0b0b; }
.overview-copy h2 { font-size: clamp(66px, 8vw, 112px); line-height: .95; margin: 23px 0 28px; }
.overview-copy > p:last-child { max-width: 650px; color: #ccc; font-size: 19px; line-height: 1.75; }
.overview-topics { border-top: 1px solid #555; border-bottom: 1px solid #555; padding: 27px 0 23px; }
.overview-topics > span { color: var(--yellow); font-size: 13px; font-weight: 800; }
.overview-topics ul { list-style: none; padding: 0; margin: 22px 0 15px; }
.overview-topics li { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid #343434; color: #eee; font-size: 18px; line-height: 1.45; }
.overview-topics li span { font-family: Anton, Arial, sans-serif; font-size: 15px; color: #888; direction: ltr; }
.overview-topics small { color: #999; font-size: 13px; line-height: 1.5; }
@media (max-width: 1000px) {
  .learning-layout { grid-template-columns: 1fr; }
  .playlist { max-width: none; }
  .overview-section { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .learning-section { padding-top: 78px; padding-bottom: 90px; }
  .learning-heading { display: block; margin-bottom: 26px; }
  .learning-heading h2 { font-size: clamp(54px, 13vw, 78px); }
  .learning-heading > p { margin-top: 18px; font-size: 15px; }
  .player-column, .playlist { border-radius: 18px; }
  .player-caption { padding: 20px; }
  .player-caption h3 { font-size: 31px; }
  .player-caption p { font-size: 13px; }
  .playlist-header { padding: 21px 19px 16px; }
  .playlist-header h3 { font-size: 29px; }
  .playlist-items { padding: 7px; }
  .lesson-item { min-height: 72px; padding: 12px 10px; gap: 10px; }
  .lesson-copy strong { font-size: 15px; }
  .lesson-copy small { font-size: 11px; }
  .playlist-footnote { padding: 14px 18px 18px; }
  .overview-copy h2 { font-size: clamp(61px, 13vw, 84px); }
  .overview-copy > p:last-child { font-size: 17px; }
  .overview-topics li { font-size: 16px; }
  .detail-visual { width: min(58vw, 240px); }
}


/* ===== Arabic font: Almarai everywhere (Ahmed's choice, 2026-11-13). English keeps its own fonts. ===== */
html[lang="ar"] { --disp: "Almarai", sans-serif; --num: "Almarai", sans-serif; --body: "Almarai", system-ui, sans-serif; }
html[lang="ar"] body { font-family: "Almarai", system-ui, sans-serif; }
html[lang="ar"] .course-cta p,
html[lang="ar"] .detail-visual span,
html[lang="ar"] .hero-index,
html[lang="ar"] .lesson-item time,
html[lang="ar"] .lessons-empty strong,
html[lang="ar"] .overview-topics li span,
html[lang="ar"] .player-duration,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { font-family: "Almarai", sans-serif; font-weight: 800; }

/* Site review 2026-11-14: smallest text is 14px, and small links get a comfortable tap height */
.eyebrow, .card-index, .player-kicker, .playlist-header span, .lesson-copy small, .lesson-item time, .playlist-footnote, .overview-topics > span, .overview-topics small, .player-caption p, .status-pill { font-size: 14px; }
@media (max-width: 800px) { .lesson-copy small, .player-caption p { font-size: 14px; } }
.header-home, .scroll-cue, .site-footer a, .crumbs a { position: relative; }
.header-home::after, .scroll-cue::after, .site-footer a::after, .crumbs a::after { content: ""; position: absolute; inset: -12px -8px; } /* bigger tap area, same look */

/* «قريبًا / Coming soon» (Ahmed, 2026-11-17): the courses page is one screen until the courses are published */
.soon-hero { min-height: calc(100svh - 140px); }
.soon-hero h1 em { color: var(--yellow); font-style: normal; }
.soon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; margin-top: 38px; }
.soon-actions .contact-button { margin: 0; }
.soon-actions .scroll-cue { margin-top: 0; }

/* Thmanyah font (Ahmed, 2026-11-18); the «AE» logo keeps its own letters */
@font-face { font-family: "thmanyah sans"; src: url('../shared/img/fonts/thmanyahsans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "thmanyah sans"; src: url('../shared/img/fonts/thmanyahsans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "thmanyah sans"; src: url('../shared/img/fonts/thmanyahsans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "thmanyah sans"; src: url('../shared/img/fonts/thmanyahsans-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
body *:not(.brand):not(.brand *):not(svg):not(svg *) { font-family: "thmanyah sans", system-ui, sans-serif !important; }
