/* Hero — Ibrahim · se77en. Layers, back to front: room (bg + glow) → IBRA75 → the photo (its light is in the photo itself) → embers, grain, vignette → the words. */


:root {
  --void: #07070a;
  --red: #e3262d;
  --red-hi: #ff4a4f;
  --red-deep: #6d070c;
  --bone: #eeeae6;
  --ash: #a2a4a9;
  --dim: #6c6f75;
  --mx: 0;
  --my: 0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--void); color: var(--bone); }
body { font-family: Inter, "IBM Plex Sans Arabic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; background: var(--void); }
.layer { position: absolute; inset: 0; pointer-events: none; }

/* ---------- the room ---------- */
.bg { transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), 0) scale(1.06); }
/* the room drifts very slowly; moved (not repainted) so it costs almost nothing */
.bg::before {
  content: ""; position: absolute; inset: 0;
  background: url(/i/assets/bg.webp) 62% 100% / cover no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(.5%, 0, 0); } }
.glow {
  background:
    radial-gradient(38% 46% at 66% 74%, rgba(227, 38, 45, .55), transparent 70%),
    radial-gradient(60% 40% at 64% 100%, rgba(150, 10, 18, .6), transparent 75%);
  mix-blend-mode: screen;
  animation: breathe 6.5s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.05); } }

/* ---------- IBRA + the mark ---------- */
.word { display: grid; justify-items: center; align-items: start; padding-top: max(11vh, 92px); z-index: 1; transform: translate3d(calc(var(--mx) * -16px), calc(var(--my) * -8px), 0); opacity: calc(1 - var(--leave, 0) * .45); }
.word-svg { display: block; overflow: visible; opacity: 0; direction: ltr; unicode-bidi: isolate; }
/* the moving light and shine sit exactly on top of the word, on their own layer */
.word > .word-svg { grid-area: 1 / 1; }
.word-fx { will-change: transform; }
.ready .word-svg { animation: arrive 1.4s cubic-bezier(.2, .7, .2, 1) .2s forwards; }
@keyframes arrive { from { opacity: 0; transform: translateY(4vh) scale(.96); } to { opacity: .95; transform: none; } }
/* the mark draws its outline slowly, then the red fills in */
.mark-draw path { fill-opacity: 0; stroke-dasharray: 1 1; stroke-dashoffset: 1; stroke-linejoin: round; animation: mark-line 4.6s cubic-bezier(.45, 0, .2, 1) .8s forwards, mark-fill 2.4s cubic-bezier(.4, 0, .2, 1) 4.2s forwards; }
.mark-draw path:nth-child(2) { animation-delay: 1.2s, 4.5s; }
.mark-draw path:nth-child(3) { animation-delay: 1.6s, 4.8s; }
.mark-draw path:nth-child(4) { animation-delay: 2s, 5.1s; }
@keyframes mark-line { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
/* then a short, soft light glides round the outline — slowly, one line at a time */
.trace path { stroke-dasharray: .045 .955; stroke-dashoffset: 1; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 var(--glow, 4px) rgba(255, 90, 85, .7)); animation: trace 16s linear 6s infinite, trace-in 2.5s ease 6s forwards; }
.trace path:nth-child(2) { animation-delay: 10s, 6s; }
.trace path:nth-child(3) { animation-delay: 14s, 6s; }
.trace path:nth-child(4) { animation-delay: 18s, 6s; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes trace-in { to { opacity: .75; } }
/* a soft shine sweeps across the whole word every 16s */
.shine { animation: sweep 16s 5s infinite; }
@keyframes sweep { 0% { transform: translateX(0); animation-timing-function: cubic-bezier(.45, 0, .55, 1); } 50%, 100% { transform: translateX(var(--sweep)); } }
@media (max-width: 760px) {
  .trace path { stroke-dasharray: .03 .97; }
  @keyframes trace-in { to { opacity: .6; } }
}

/* ---------- the person ---------- */
.person {
  position: absolute; bottom: -5svh; left: 3vw; margin: 0; height: 106svh; aspect-ratio: var(--ratio, 3 / 4); z-index: 2;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 4px), 0);
}
.person img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

/* the scene's light breathes; the photo brightens and dims with it — no
   colour is painted on the figure */
@keyframes breathe-person { 0%, 100% { filter: brightness(.96); } 50% { filter: brightness(1.04); } }

/* ---------- atmosphere ---------- */
.embers { z-index: 3; width: 100%; height: 100%; }
.grain {
  z-index: 4; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
  will-change: transform;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
/* the bottom edge fades fully into the page colour, so the hero meets the next section without a seam */
.vignette { z-index: 4; background: radial-gradient(120% 90% at 55% 60%, transparent 55%, rgba(0, 0, 0, .7) 100%), linear-gradient(0deg, #07070a, rgba(7, 7, 10, .85) 6%, transparent 24%); }

/* ---------- top bar ---------- */
.top { position: absolute; z-index: 6; top: clamp(18px, 4vh, 40px); inset-inline: clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 24px; height: 36px; background: var(--red); -webkit-mask: url(/i/assets/mark.svg) center / contain no-repeat; mask: url(/i/assets/mark.svg) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(227, 38, 45, .45)); }
.brand-lines { display: grid; gap: 3px; font-size: 13px; letter-spacing: .12em; }
.brand-lines b { font-weight: 500; color: var(--red); }
.brand-lines small { font-size: 13px; color: var(--ash); }
.top-end { display: flex; align-items: center; gap: 14px; }
.pill { font-size: 13.5px; letter-spacing: .1em; color: var(--ash); transition: color .2s; }
.pill em { font-style: normal; color: var(--red); }
.pill:hover { color: var(--bone); }
.star { display: inline-block; width: 18px; height: 18px; background: var(--red); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 6px rgba(227, 38, 45, .7)); animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(.72); opacity: .75; } }
.lang { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(238, 234, 230, .18); background: rgba(255, 255, 255, .04); color: var(--bone); font: 600 15px "IBM Plex Sans Arabic", Inter, sans-serif; cursor: pointer; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--red); background: rgba(227, 38, 45, .12); }

/* ---------- the words ---------- */
/* the photo stands on the left in both languages so the mark on the right of
   the word stays in view; the words sit on the right */
.intro { position: absolute; z-index: 5; right: clamp(20px, 7vw, 140px); bottom: clamp(24px, 9vh, 96px); width: min(500px, 40vw); opacity: calc(1 - var(--leave, 0)); transform: translateY(calc(var(--leave, 0) * -48px)); }
.intro > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro > :nth-child(1) { animation-delay: 1.5s; }
.intro > :nth-child(2) { animation-delay: 1.1s; }
.intro > :nth-child(3) { animation-delay: 1.25s; }
.intro > :nth-child(4) { animation-delay: 1.45s; }
.intro > :nth-child(5) { animation-delay: 1.6s; }
.intro > :nth-child(6) { animation-delay: 1.72s; }
.intro > :nth-child(7) { animation-delay: 1.84s; }
.intro > :nth-child(8) { animation-delay: 1.96s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.orb { position: absolute; top: clamp(70px, 10vh, 110px); inset-inline-start: calc(-1 * clamp(64px, 7vw, 108px)); width: clamp(52px, 5.4vw, 80px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(227, 38, 45, .45); display: grid; place-items: center; box-shadow: 0 0 30px rgba(227, 38, 45, .18) inset; }
.orb .star { width: 38%; height: 38%; }
.hello { margin: 0 0 -.18em; font: 400 clamp(40px, 4.6vw, 70px)/1 "Mr Dafoe", cursive; color: var(--red); transform-origin: left bottom; rotate: -5deg; text-shadow: 0 0 24px rgba(227, 38, 45, .35); }
.name { margin: 0; font: 400 clamp(52px, 6.2vw, 100px)/.92 Anton, Impact, sans-serif; letter-spacing: .005em; color: var(--bone); text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.sign { position: relative; display: inline-block; margin: .05em 0 0 .6em; font: 400 clamp(34px, 3.7vw, 56px)/1 "Mr Dafoe", cursive; color: var(--bone); rotate: -4deg; }
.sign svg { position: absolute; inset-inline-start: .1em; bottom: -.12em; width: 120%; height: .34em; overflow: visible; }
.sign path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.role { margin: clamp(18px, 3vh, 30px) 0 10px; font-weight: 600; font-size: clamp(15px, 1.35vw, 20px); letter-spacing: .06em; color: var(--red); }
.lead { margin: 0; max-width: 400px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: var(--ash); }
/* the words sit over the red mark: a soft dark shadow keeps them readable */
.role, .lead, .hello, .sign { text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.role { text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
/* the promise under the intro */
.promise { text-wrap: pretty; margin: 14px 0 0; max-width: 400px; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; color: var(--bone); text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.promise::before { content: "✦"; color: var(--red); margin-inline-end: 8px; }
.rule { display: block; width: 46px; height: 2px; margin-top: clamp(18px, 3vh, 28px); background: var(--red); }

/* off screen, the hero's endless animations wait */
.hero.is-away *, .hero.is-away *::before { animation-play-state: paused !important; }

/* the person: arrive */
.person { opacity: 0; }
.ready .person { animation: enter 1.3s cubic-bezier(.2, .7, .2, 1) .5s forwards, breathe-person 6.5s ease-in-out 1.8s infinite; }
@keyframes enter { from { opacity: 0; translate: 0 5vh; } to { opacity: 1; translate: 0 0; } }

/* ---------- 2. the face: photo half + line half ---------- */
.stage { position: relative; }
/* the face holds still (sticky) while the threads draw it: the track gives
   the scroll room for that */
.face-track { position: relative; height: 420vh; height: 420svh; background: #000; }
.face { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; background: #000; overflow: hidden; isolation: isolate; }
.face::before { content: ""; position: absolute; inset: 0 0 auto; height: 18vh; background: linear-gradient(#07070a, transparent); z-index: 1; pointer-events: none; }
.face::after { content: ""; position: absolute; inset: auto 0 0; height: 14vh; background: linear-gradient(transparent, #000); z-index: 1; pointer-events: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the centre line of the face (--split across the picture) sits in the middle of the screen */
.face-art { --split: .4004; position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: var(--art-ratio, 1); translate: calc(var(--split) * -100%) 0; }
/* the real half, lit by the studio light behind him; the light breathes */
.face-photo { position: absolute; top: 0; left: calc(var(--split) * 100%); width: calc((1 - var(--split)) * 100%); height: 100%; object-fit: cover; object-position: left center; animation: studio 7s ease-in-out infinite; }
@keyframes studio { 0%, 100% { filter: brightness(.95); } 50% { filter: brightness(1.06); } }
/* the drawn half: each line draws in (--draw) and then fills (--fill) */
.face-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.face-lines path { stroke-dasharray: 1 1; stroke-dashoffset: 1; fill-opacity: 0; stroke-opacity: var(--line, 1); }
/* the mark on its way down (drawn by face.js above both sections) */
.morph { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; overflow: visible; }
.morph > g:not(.threads):not(.pens) path { fill-opacity: var(--mfill, 1); stroke-opacity: var(--mline, 0); }
/* the threads: fine, with a soft red glow */
.threads path { stroke-width: .8px; }
.pens { filter: drop-shadow(0 0 4px rgba(255, 90, 90, .9)); }
.word-svg.handoff .fill .mark-g, .word-svg.handoff + .word-fx .trace { opacity: 0; }
@media (max-width: 760px) {
  .face-track { height: 400svh; }
  .face { min-height: 0; }
  .face-art { top: auto; bottom: 0; height: min(100%, 120vw); width: auto; }
}

/* ---------- 3. the conversation: glass messages ---------- */
.chat { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
/* next to whoever speaks: offsets from the centre line scale with the face (vh) */
.msg { position: absolute; max-width: min(380px, 34vw); }
.msg.from-right { left: calc(50% + 24vh); top: 20%; }
.msg.from-left { right: calc(50% + 29vh); top: 33%; }
.msg.from-left.second { top: 46%; }
/* glass: a blurred, lightly tinted pane, a soft sheen and a bright hairline */
.bubble, .typing {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .07) 48%, rgba(255, 255, 255, .12));
  border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -10px 24px -18px rgba(255, 255, 255, .25);
}
.bubble {
  display: flex; align-items: center; gap: 14px; direction: ltr;
  padding: 14px 22px 14px 16px; border-radius: 26px;
  color: #f7f4f1; font: 500 clamp(16px, 1.3vw, 19px)/1.55 "IBM Plex Sans Arabic", Inter, sans-serif;
  opacity: 0; transform: translateY(16px) scale(.94); filter: blur(6px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1.1), filter .6s ease;
}
/* the sheen: light caught on the top of the glass */
.bubble::before { content: ""; position: absolute; inset: 1px 1px 45% 1px; border-radius: 25px 25px 60% 60% / 25px 25px 18px 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); pointer-events: none; }
.bubble p { margin: 0; flex: 1; position: relative; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.msg-mark { position: relative; flex: none; width: 20px; height: 30px; background: #ff3b40; -webkit-mask: url(/i/assets/mark.svg) center / contain no-repeat; mask: url(/i/assets/mark.svg) center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(227, 38, 45, .6)); }
/* the tail, curling out of the bottom corner towards whoever speaks */
.tail { position: absolute; bottom: -1px; width: 18px; height: 22px; overflow: visible; }
.tail-fill { fill: rgba(255, 255, 255, .13); }
.tail-edge { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.from-left .bubble { border-bottom-right-radius: 5px; }
.from-left .tail { right: -17px; }
.from-right .bubble { border-bottom-left-radius: 5px; }
.from-right .tail { left: -17px; transform: scaleX(-1); }
/* "typing…": a small glass pill with three dots, before the words */
.typing {
  position: absolute; bottom: 0; display: flex; gap: 6px; padding: 14px 18px; border-radius: 22px;
  opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1.1);
}
/* the dots sit on the speaker's side, where the tail will be */
.from-left .typing { right: 0; border-bottom-right-radius: 5px; }
.from-right .typing { left: 0; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .8); animation: dot 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.msg.is-typing .typing { opacity: 1; transform: none; }
.msg.is-on .typing { opacity: 0; transform: translateY(-6px) scale(.9); }
.msg.is-on .bubble { opacity: 1; transform: none; filter: none; }
@media (max-width: 760px) {
  /* phones: the faces fill the bottom (face-art: min(100%, 120vw) tall), and the talk stacks like a chat right above the
     two heads: the question on the right (over the photo), the answers on the left (over the drawing), whatever the screen height */
  .chat { inset: auto 0 calc(min(100%, 120vw) - 3vw) 0; display: flex; flex-direction: column; gap: 14px; padding: 0 18px; }
  .msg, .msg.from-right, .msg.from-left, .msg.from-left.second { position: relative; inset: auto; width: fit-content; max-width: 78%; }
  .msg.from-right { margin-left: auto; }
  .msg.from-left { margin-right: auto; }
  .bubble { font-size: 15px; padding: 11px 16px 11px 12px; gap: 10px; }
  .msg-mark { width: 16px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble, .typing { transition: none; }
  .typing i { animation: none; }
}


/* ---------- 5. the course: glass panel over the 3D scene ---------- */
.course { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; display: grid; place-items: center; padding: 10vh 20px; background: radial-gradient(90% 70% at 50% 60%, #0a0c14 0%, #030306 60%, #000 100%); }
.course-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* the panel: big, clear glass — the scene shows through, softly */
.glass-panel {
  position: relative; z-index: 2; width: min(920px, 100%);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 32px;
  color: #f4f1ee;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 42%, rgba(255, 255, 255, .09));
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -24px 60px -40px rgba(227, 38, 45, .35);
}
.glass-panel::before { content: ""; position: absolute; inset: 1px 1px 60% 1px; border-radius: 31px 31px 50% 50% / 31px 31px 40px 40px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), transparent); pointer-events: none; }
.gp-head { position: relative; display: flex; align-items: center; gap: 18px; }
.gp-mark { flex: none; width: clamp(44px, 5vw, 64px); aspect-ratio: 545 / 813; background: linear-gradient(180deg, #ff4a4f, #a10d15); -webkit-mask: url(/i/assets/mark.svg) center / contain no-repeat; mask: url(/i/assets/mark.svg) center / contain no-repeat; filter: drop-shadow(0 0 16px rgba(227, 38, 45, .55)); }
.gp-kick { margin: 0 0 4px; font-size: 13px; letter-spacing: .16em; color: #ff6b6f; }
.gp-title { margin: 0; font: 400 clamp(44px, 6vw, 84px)/.95 Anton, Impact, sans-serif; letter-spacing: .01em; background: linear-gradient(180deg, #fff, #d8d2cd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gp-dream { text-wrap: pretty; position: relative; margin: 18px 0 0; max-width: 62ch; padding-inline-start: 14px; border-inline-start: 2px solid var(--red); font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; color: #fff; }
/* the se77en word: the 77 is the mark (#m77), drawn in the text colour */
.wm { white-space: nowrap; }
.w77 { display: inline-block; height: 1.46em; width: auto; aspect-ratio: 537 / 1324; margin: 0 .08em 0 .06em; vertical-align: -.42em; fill: currentColor; overflow: visible; }
.gp-lead { position: relative; margin: 22px 0 0; max-width: 62ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; color: rgba(244, 241, 238, .82); }
.gp-facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.gp-facts li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.gp-facts b { font: 400 clamp(20px, 2vw, 28px)/1 Anton, Impact, sans-serif; letter-spacing: .02em; color: #fff; }
.gp-facts span { font-size: 13px; color: rgba(244, 241, 238, .7); }
.gp-lessons { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin: 26px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); counter-reset: none; }
.gp-lessons li { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(244, 241, 238, .88); }
.gp-lessons b { flex: none; font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; color: #ff5a5f; }
/* what we do in the course: numbered cards in balanced columns, then the bottom line */
.gp-sub { position: relative; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font: 400 clamp(22px, 2.2vw, 30px)/1.2 Anton, Impact, sans-serif; letter-spacing: .02em; color: #fff; }
.gp-plan { display: block; columns: 3 280px; column-gap: 14px; margin: 16px 0 0; padding: 0; border-top: 0; }
.gp-plan li { display: flex; align-items: flex-start; gap: 12px; break-inside: avoid; margin: 0 0 14px; padding: 16px 16px 15px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .11); }
.gp-plan b { margin-top: 3px; }
.gp-plan strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: #fff; }
.gp-plan span { display: block; font-size: 14px; line-height: 1.75; color: rgba(244, 241, 238, .8); text-wrap: pretty; }
.gp-plan em { font-style: normal; font-weight: 700; color: #ff6b6f; }
.gp-zubda { position: relative; display: grid; gap: 6px; margin: 4px 0 0; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(227, 38, 45, .2), rgba(227, 38, 45, .06)); border: 1px solid rgba(255, 90, 95, .35); }
.gp-zubda p { margin: 0; font-size: clamp(14.5px, 1.15vw, 16px); line-height: 1.8; color: rgba(255, 255, 255, .9); }
.gp-zubda .gp-zubda-main { font-size: clamp(16px, 1.4vw, 19px); color: #fff; }
.gp-zubda b { color: #ff6b6f; }
[lang="ar"] .gp-sub { font: 400 clamp(24px, 2.3vw, 32px)/1.4 Lalezar, "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
[lang="ar"] .gp-plan strong { font-size: 16px; }
[lang="ar"] .gp-plan span { font-size: 15px; line-height: 1.9; }
.gp-cta { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 15px 26px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 16px; background: linear-gradient(180deg, #ff3b40, #c3141b); box-shadow: 0 16px 40px -12px rgba(227, 38, 45, .75), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s, filter .2s; }
.gp-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.gp-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .gp-cta svg { transform: scaleX(-1); }
[lang="ar"] .gp-kick { letter-spacing: 0; font-size: 14px; }
[lang="ar"] .gp-lead { line-height: 1.95; }
@media (max-width: 860px) {
  .gp-facts { grid-template-columns: 1fr; }
  .gp-lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .course { padding: 8vh 14px; }
  .gp-lessons { grid-template-columns: 1fr; }
  .glass-panel { border-radius: 26px; }
}

/* ---------- Arabic ---------- */
[lang="ar"] body { font-family: "IBM Plex Sans Arabic", Inter, sans-serif; }
[lang="ar"] .brand-lines { letter-spacing: 0; font-size: 14px; }
[lang="ar"] .brand-lines small { font-size: 13px; }
[lang="ar"] .pill { letter-spacing: 0; font-size: 14px; }
[lang="ar"] .hello { font: 700 clamp(38px, 4.2vw, 64px)/1.3 "Aref Ruqaa", serif; rotate: 4deg; transform-origin: right bottom; margin-bottom: -.05em; }
[lang="ar"] .name { font: 400 clamp(52px, 6vw, 96px)/1.15 Lalezar, "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
[lang="ar"] .sign { margin: .1em .6em 0 0; rotate: 3deg; font: 700 clamp(28px, 2.9vw, 44px)/1.3 "Aref Ruqaa", serif; }
[lang="ar"] .role { letter-spacing: 0; font-size: clamp(16px, 1.4vw, 21px); }
[lang="ar"] .lead { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.9; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .hero { min-height: 700px; }
  .word { padding-top: 13vh; }
  .person { height: 70svh; bottom: -4svh; left: 50%; translate: -50% 0; }
  .ready .person { animation: enter-m 1.3s cubic-bezier(.2, .7, .2, 1) .5s forwards, breathe-person 6.5s ease-in-out 1.8s infinite; }
  @keyframes enter-m { from { opacity: 0; translate: -50% 5vh; } to { opacity: 1; translate: -50% 0; } }
  .vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 50%, rgba(0, 0, 0, .75) 100%), linear-gradient(0deg, rgba(7, 7, 10, .98) 8%, rgba(7, 7, 10, .6) 34%, transparent 52%); }
  .intro { width: auto; left: 22px; right: 22px; bottom: 26px; }
  .orb { display: none; }
  .pill { display: none; }
  .brand-lines small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg, .bg::before, .glow, .word-svg, .mark-draw path, .trace path, .shine, .person, .grain, .star, .intro > *, .sign path { animation: none !important; }
  .mark-draw path { fill-opacity: 1; stroke-opacity: 0; }
  .trace { display: none; }
  .word-svg, .person, .intro > * { opacity: 1 !important; transform: none !important; }
  .word-svg { opacity: .95 !important; }
  .sign path { stroke-dashoffset: 0; }
  .embers { display: none; }
}
