/* Omar Wafaey — test redesign: dark, simple, type-led. Motion lives in assets/js/site.js (GSAP). */
@import url("../fonts/fonts.css");

:root {
  --bg: #050816;
  --panel: #0C1432;
  --fg: #F4F3EF;
  --muted: #A4AECB;
  --line: rgba(164, 190, 255, .16);
  --accent: #3B7BFF;
  --font: "Inter Tight", "Rubik", system-ui, sans-serif;
  --font-ar: "Rubik", "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 96px; background: var(--bg); }
html.lang-wait body { opacity: 0; }
body { font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--fg); background: var(--bg); overflow-x: clip; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -.025em; overflow-wrap: normal; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.3; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 32px; }
section { padding-block: 112px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--muted); }
html[lang="ar"] .mono { font-family: var(--font-ar); font-size: 14px; letter-spacing: 0; }
.sec-head { margin-bottom: 56px; }
.sec-head h2, .big { font-size: clamp(38px, 6vw, 76px); }
.sec-head p { color: var(--muted); max-width: 620px; margin-top: 16px; font-size: 19px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--fg); }
.pill.solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.solid:hover { background: var(--accent); border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* floating nav */
nav.top { position: fixed; z-index: 50; top: 16px; inset-inline: 0; display: flex; justify-content: center; padding-inline: 16px; pointer-events: none; }
.nav-pill { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 22px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 8, 22, .92); }
html[dir="rtl"] .nav-pill { padding: 6px 6px 6px 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; overflow-wrap: normal; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); padding-block: 6px; }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.lang-btn { min-height: 36px; padding: 2px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; white-space: nowrap; }
.menu-btn { display: none; width: 36px; height: 36px; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; padding: 0; background: radial-gradient(60% 62% at 50% 72%, rgba(255, 122, 26, .42), rgba(255, 122, 26, .08) 56%, transparent 74%), var(--bg); }
.hero-name { position: absolute; inset: 11vh 0 auto; text-align: center; font-weight: 600; font-size: clamp(72px, 15.5vw, 250px); line-height: .9; letter-spacing: -.045em; color: rgba(244, 243, 239, .2); white-space: nowrap; overflow-wrap: normal; }
.hero-name span { display: block; }
html[lang="ar"] .hero-name { letter-spacing: 0; line-height: 1.05; font-weight: 700; }
.hero-photo { position: absolute; bottom: 0; left: 50%; width: min(52vw, 66vh); max-width: 720px; translate: -50% 0; -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 94%); mask-image: linear-gradient(to bottom, #000 56%, transparent 94%); }
.hero-foot { position: absolute; inset: auto 0 32px; }
.hero-foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 64px); max-width: 8.5em; }
.hero-side { text-align: end; display: grid; gap: 4px; }
.hero-side .mono { color: var(--fg); }

/* statement */
.statement { padding-block: 128px 96px; }
.statement p { font-size: clamp(28px, 4.2vw, 54px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; max-width: 21em; }
html[lang="ar"] .statement p { letter-spacing: 0; line-height: 1.5; }
.statement p + p { margin-top: .7em; }
.w { display: inline-block; }

/* logos */
.logos { padding-block: 24px 88px; overflow: hidden; }
.logos .mono { display: block; text-align: center; margin-bottom: 20px; }
.marquee { display: flex; width: max-content; direction: ltr; animation: marquee 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-set { display: flex; gap: 14px; padding-inline-end: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 8px 24px; border-radius: 14px; background: var(--fg); color: #10142E; font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; overflow-wrap: normal; }
.chip img { height: 26px; width: auto; }
.chip img.tall { height: 40px; }

/* numbers */
.numbers { padding-block: 0 112px; }
.num-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 32px; }
.num-grid b { display: block; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; direction: ltr; text-align: start; overflow-wrap: normal; font-variant-numeric: tabular-nums; }
.num-grid span { font-size: 15px; color: var(--muted); }

/* projects */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.work { display: block; text-decoration: none; }
.work.is-hidden { display: none; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--panel); }
.shot > img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.work:hover .shot > img { scale: 1.03; }
img[src*="kinderly-site"] { object-fit: contain !important; background: #EFEDFB; }
.shot.phones { display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding: 32px 32px 0; direction: ltr; }
.shot.phones img { width: 30%; height: auto; border-radius: 12px 12px 0 0; }
.shot.textcard { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px; }
.shot.textcard strong { font-size: clamp(32px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.shot.textcard small { font-size: 15px; color: var(--muted); }
.work .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.work h3 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 6px; }
.work p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { min-height: 42px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 15px; }
.filters button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* experience */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.role h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; }
.role p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.role ul { margin-top: 12px; display: grid; gap: 8px; color: var(--muted); font-size: 17px; }

/* recognition */
.recog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.proof-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.proof-btn i { font-style: normal; transition: rotate .2s; }
.proof-btn[aria-expanded="true"] i { rotate: 180deg; }
.rc-shot img { width: 100%; border-radius: 12px; }

/* hackathons */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.events h3 { font-size: 22px; line-height: 1.25; }
.events p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pc { margin: 0; }
.pc button { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--panel); }
.pc img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.pc button:hover img { scale: 1.04; }
.pc figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-grid p { color: var(--muted); margin-top: 16px; font-size: 19px; }
.contact-links { display: grid; gap: 4px; margin-top: 24px; }
form.join { display: grid; gap: 22px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 15px; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--fg); background: transparent; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--accent); }
form.join input[aria-invalid="true"] { border-bottom-color: #FF6B5E; }
form.join .pill { width: fit-content; }
.form-error { color: #FF8A7E; font-size: 15px; }
.form-error .mail-fallback { display: flex; width: fit-content; margin-top: 8px; color: var(--fg); }
.done-state { display: none; }
form.join.sent > *:not(.done-state) { display: none; }
form.join.sent .done-state { display: block; }
.done-state h3 { font-size: 28px; }
.spinner { width: 15px; height: 15px; margin-inline-end: 8px; border: 2px solid rgba(5, 8, 22, .25); border-top-color: var(--bg); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* about */
.page-hero { padding-block: 168px 72px; }
.page-hero h1 { font-size: clamp(48px, 9vw, 128px); line-height: 1; }
.page-hero .lead { color: var(--muted); font-size: clamp(19px, 2vw, 24px); max-width: 720px; margin-top: 24px; line-height: 1.5; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 56px; align-items: end; }
.about-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 16px; }
.what-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.what-grid h3 { font-size: 22px; line-height: 1.25; }
.what-grid p, .bullets, .tools-grid .tags { color: var(--muted); font-size: 17px; margin-top: 8px; }
.bullets { display: grid; gap: 8px; }
.info-grid, .tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.info-grid h3, .tools-grid h3 { font-size: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* project pages */
.cs-hero { padding-block: 148px 56px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 20px; text-decoration: none; color: var(--muted); font-size: 15px; }
.cs-back:hover { color: var(--fg); }
html[dir="rtl"] .cs-back svg, html[dir="rtl"] .next-card svg { scale: -1 1; }
.cs-hero h1 { font-size: clamp(44px, 8vw, 112px); line-height: 1; margin-top: 10px; }
.cs-sub { color: var(--muted); font-size: clamp(19px, 2vw, 24px); line-height: 1.5; max-width: 760px; margin-top: 24px; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.cs-meta dt { font-family: var(--mono); font-size: 13px; color: var(--muted); }
html[lang="ar"] .cs-meta dt { font-family: var(--font-ar); }
.cs-meta dd { font-size: 16px; font-weight: 500; margin-top: 2px; }
.cs-media { padding-block: 0 72px; }
.cs-shot { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--panel); }
.cs-shot > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-shot.phones { display: flex; justify-content: center; gap: 28px; padding: 40px 40px 0; direction: ltr; }
.cs-shot.phones img { width: 22%; height: auto; align-self: flex-start; border-radius: 16px 16px 0 0; }
.cs-shot.shot.textcard { aspect-ratio: 16 / 6; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-top: 40px; }
.stat-grid b { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; direction: ltr; text-align: start; overflow-wrap: normal; }
.stat-grid span { font-size: 15px; color: var(--muted); }
.cs-section { padding-block: 72px; border-top: 1px solid var(--line); }
.cs-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.cs-section h2, .tint h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cs-text { color: var(--muted); margin-top: 14px; font-size: 19px; max-width: 640px; }
.scope { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--muted); font-size: 17px; }
.tint { padding-block: 72px; border-top: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin-top: 32px; }
.card-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note { border-top: 1px solid var(--line); padding-top: 16px; }
.note h3 { font-size: 21px; line-height: 1.25; }
.note p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.status { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.next-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 40px; border-top: 1px solid var(--line); text-decoration: none; }
.next-card b { display: block; font-size: clamp(32px, 6vw, 72px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.next-card svg { width: 40px; height: 40px; flex: none; }
.next-card:hover b { color: var(--accent); }

/* before / after */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; }
.screen-tabs button { min-height: 42px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 15px; }
.screen-tabs button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.compare { position: relative; width: 320px; max-width: 100%; aspect-ratio: 560 / 1213; margin-inline: auto; border-radius: 24px; overflow: hidden; background: #fff; --pos: 50%; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.c-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--bg); pointer-events: none; }
.c-handle i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; font-style: normal; }
.c-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.c-label { position: absolute; top: 12px; background: var(--bg); color: var(--fg); border-radius: 999px; padding: 1px 12px; font-size: 13px; pointer-events: none; }
.c-l-before { left: 10px; } .c-l-after { right: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 22, .94); display: grid; place-items: center; padding: 24px; }
.lightbox figure { max-width: min(1000px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox figcaption { margin-top: 12px; font-size: 16px; }
.lb-btn, .lb-close { position: fixed; width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 22px; }
.lb-btn { top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 16px; right: 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 32px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer a { text-decoration: none; color: var(--muted); font-size: 15px; }
footer a:hover { color: var(--fg); }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1000px) {
  .num-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .what-grid, .card-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-grid, .contact-grid, .recog, .cs-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  section { padding-block: 72px; }
  nav.top { top: 10px; padding-inline: 12px; }
  .nav-pill { width: 100%; justify-content: space-between; gap: 8px; }
  .menu-btn { display: grid; }
  .nav-links { display: none; }
  .nav-links.open { display: grid; position: absolute; top: calc(100% + 8px); inset-inline: 0; gap: 0; padding: 8px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
  .nav-links.open a { padding-block: 12px; font-size: 17px; }
  .nav-end { display: flex; align-items: center; gap: 4px; }
  .hero-name { top: 92px; font-size: 25vw; }
  .hero-photo { width: 104vw; max-width: 460px; }
  .hero-foot { bottom: 20px; }
  .hero-foot .wrap { display: block; }
  .hero h1 { font-size: 34px; max-width: none; }
  .hero-side { text-align: start; grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: 8px; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0; height: 46%; background: linear-gradient(to top, var(--bg) 42%, transparent); pointer-events: none; }
  .hero-foot { z-index: 2; }
  .work-grid, .info-grid, .tools-grid, .events, .card-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .about-grid img { max-width: 240px; }
  .page-hero { padding-block: 120px 40px; }
  .cs-hero { padding-block: 104px 40px; }
  .cs-shot.phones { padding: 24px 24px 0; gap: 14px; }
  .cs-shot.phones img { width: 38%; }
  .cs-shot { aspect-ratio: 16 / 12; }
  .cs-shot.shot.textcard { aspect-ratio: 16 / 9; }
  .shot.phones { padding: 22px 22px 0; }
  .shot.phones img { width: 36%; }
}
@media (max-width: 560px) {
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .what-grid, .card-grid.n3 { grid-template-columns: minmax(0, 1fr); }
  .screen-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .screen-tabs::-webkit-scrollbar { display: none; }
  .screen-tabs button { flex: none; white-space: nowrap; }
  .compare { width: min(300px, 100%); }
  .row .pill { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  * { transition: none !important; }
}




/* dark blue version */
.w { display: inline-block; }
.w.hi { position: relative; --line: 0; }
.w.hi::after { content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: 2px; background: var(--accent); transform: scaleX(var(--line)); transform-origin: left; }
html[dir="rtl"] .w.hi::after { transform-origin: right; }
.c { display: inline-block; }
.wipe { position: fixed; z-index: 90; inset: 0; background: linear-gradient(160deg, #1F54E0, #0B1B4D); visibility: hidden; pointer-events: none; will-change: transform; }
.cursor { position: fixed; z-index: 95; left: 0; top: 0; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; pointer-events: none; will-change: transform; opacity: .92; }
.cursor.live { display: flex; }
.cursor:not(.on) { background: transparent; border: 3px solid var(--accent); }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.on span { opacity: 1; }
@media (hover: none) { .cursor { display: none !important; } }

/* pill */
nav.top { top: 14px; }
.nav-pill { gap: 10px; padding: 5px 6px; background: rgba(5, 8, 22, .94); }
html[dir="rtl"] .nav-pill { padding: 5px 6px; }
.brand img { width: 34px; height: 34px; }
.pill-label { display: block; min-width: 118px; max-width: 170px; overflow: hidden; height: 22px; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 22px; white-space: nowrap; text-align: center; overflow-wrap: normal; }
.pill-label span { display: block; }
.ring { position: relative; width: 36px; height: 36px; flex: none; }
.ring svg { position: absolute; inset: 0; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: var(--line); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px var(--mono); font-variant-numeric: tabular-nums; direction: ltr; }
.lang-btn { min-height: 34px; min-width: 34px; padding: 0 10px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; }
.menu-btn { display: grid; width: 34px; height: 34px; }
.nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.nav-links.open { display: flex; }
.nav-links a { padding-block: 10px; font-size: 17px; }
@media (max-width: 760px) { .nav-pill { width: auto; gap: 8px; } .pill-label { min-width: 104px; } .nav-links.open { display: flex; position: absolute; } }

/* hero */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; padding: 0; background: var(--bg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, var(--bg) 8%, transparent); pointer-events: none; z-index: 1; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 62%, #1F54E0 0%, #102A7A 34%, #070D2A 68%, var(--bg) 100%); background-size: 100% 130%; background-position: 50% 100%; }
.hero-name { position: absolute; inset: 10vh 0 auto; text-align: center; font-weight: 700; font-size: clamp(72px, 16vw, 270px); line-height: .88; letter-spacing: -.045em; color: rgba(214, 228, 255, .2); white-space: nowrap; overflow-wrap: normal; will-change: transform; }
.hero-name span { display: block; }
html[lang="ar"] .hero-name { letter-spacing: 0; line-height: 1.06; }
.hero-photo { position: absolute; bottom: 0; left: 50%; width: min(58vw, 76vh); max-width: 820px; translate: -50% 0; -webkit-mask-image: radial-gradient(70% 78% at 50% 34%, #000 62%, transparent 100%); mask-image: radial-gradient(70% 78% at 50% 34%, #000 62%, transparent 100%); will-change: transform; }
.hero-foot { position: absolute; inset: auto 0 34px; z-index: 2; }
.hero-foot .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; max-width: none; padding-inline: 4vw; }
.hero h1 { font-size: clamp(34px, 4.6vw, 70px); font-weight: 600; line-height: 1.04; max-width: none; }
html[lang="ar"] .hero h1 { line-height: 1.25; }
.hero-side { text-align: end; display: grid; gap: 4px; }
.hero-side .mono { color: var(--fg); }

/* showreel mosaic */
.reel { position: relative; height: 100vh; padding: 0; overflow: hidden; background: var(--bg); }
.mosaic { position: absolute; inset: 5vh 3vw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 14px; background: var(--panel); will-change: transform; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-title { position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none; font-size: clamp(56px, 11vw, 190px); font-weight: 700; letter-spacing: -.04em; color: #fff; text-shadow: 0 8px 50px rgba(0, 0, 0, .55); }
html[lang="ar"] .reel-title { letter-spacing: 0; }

/* story */
.story { padding-block: 120px 96px; }
.story p { font-size: clamp(28px, 4vw, 56px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; max-width: 22em; }
html[lang="ar"] .story p { letter-spacing: 0; line-height: 1.55; }
.story p + p { margin-top: .6em; }
.story .row { margin-top: 44px; }
.story-tail { font-size: 19px !important; }

.big-marquee { overflow: hidden; padding-block: 8px 48px; }
.bm-track { display: flex; width: max-content; font-size: clamp(64px, 12vw, 190px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; white-space: nowrap; overflow-wrap: normal; will-change: transform; }
.bm-track span { padding-inline: 28px; color: transparent; -webkit-text-stroke: 1.5px #5B7BC9; }
.bm-track span:nth-of-type(even) { color: var(--accent); -webkit-text-stroke: 0; }
.bm-track i { font-style: normal; color: var(--accent); font-size: .4em; align-self: center; }
.chip { background: #F2F5FF; }

.numbers { padding-block: 88px; background: linear-gradient(120deg, #1F54E0, #3B7BFF); color: #fff; will-change: transform; }
.numbers .num-grid { border-top: 0; padding-top: 0; }
.numbers .num-grid b { font-size: clamp(38px, 4.5vw, 72px); font-weight: 700; white-space: nowrap; }
.numbers .num-grid span { color: #E4ECFF; }

/* how I work */
.px { padding: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.px-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; width: 100%; }
.px-title { font-size: clamp(38px, 6vw, 76px); margin-bottom: 36px; }
.px-steps { position: relative; min-height: 220px; }
.px-step { position: absolute; inset: 0; }
.px-step h3 { font-size: clamp(30px, 3.6vw, 48px); margin-top: 8px; }
.px-step p { color: var(--muted); font-size: 20px; margin-top: 14px; max-width: 520px; }
.px-stage { position: relative; height: 460px; }
.px-stage i { position: absolute; left: 50%; top: 50%; margin: -7px; background: #DCE6FF; border-radius: 2px; will-change: transform; }
.px-stage i.lead { background: var(--accent); box-shadow: 0 0 22px var(--accent); }

/* projects */
.hscroll { position: relative; padding-block: 96px; overflow: hidden; }
.hscroll .htrack { display: grid; gap: 48px; padding-inline: 16px; }
.hscroll.h-on { padding-block: 0; height: 100vh; display: flex; align-items: center; }
.hscroll.h-on .htrack { display: flex; flex-wrap: nowrap; width: max-content; gap: 44px; padding-inline: 5vw; align-items: center; }
.h-on .panel { flex: none; width: min(60vw, 100vh); }
.h-on .panel.intro { width: min(38vw, 620px); }
.h-on .panel.outro { width: auto; padding-inline: 4vw; }
.h-on .work { will-change: transform; }
.panel.intro h2 { font-size: clamp(44px, 6.2vw, 100px); line-height: 1; }
.panel.intro p { color: var(--muted); margin-top: 20px; font-size: 20px; }
.hcount { position: absolute; top: 84px; inset-inline-end: 5vw; font-family: var(--mono); font-size: 15px; color: var(--muted); display: none; }
.hcount b { color: var(--accent); font-size: 34px; font-weight: 600; }
.h-on .hcount { display: block; }
.shot video, .cs-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.work .shot { border: 1px solid var(--line); }

/* experience with logos */
.role { position: relative; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 24px; transition: padding .35s cubic-bezier(.2, .7, .2, 1), background .35s; border-radius: 12px; }
.role:hover { padding-inline: 16px; background: rgba(59, 123, 255, .1); }
.co { width: 76px; height: 76px; border-radius: 14px; background: #F2F5FF; display: grid; place-items: center; overflow: hidden; color: #0B1B4D; font-size: 15px; }
.co img { max-width: 56px; max-height: 56px; object-fit: contain; }

/* recognition */
.recog { grid-template-columns: 240px minmax(0, 1fr); align-items: center; }
.rc-mark { width: 200px; height: 200px; border-radius: 40px; background: #F2F5FF; display: grid; place-items: center; }
.rc-mark img { width: 118px; height: 118px; }
.rc-text { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 640px; }

/* hackathons */
.chips-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.events { border-top: 0; padding-top: 0; gap: 24px; }
.event { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--panel); }
.ev-logos { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); }
.ev-logos i { font-style: normal; }
.chip.sm { height: 44px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }
.chip.sm img { height: 20px; }
.films { display: grid; gap: 16px; margin-top: 56px; overflow: hidden; }
.film { display: flex; gap: 16px; width: max-content; }
.film .pc { width: clamp(260px, 34vw, 520px); flex: none; }

/* contact + footer */
.talk { background: radial-gradient(60% 80% at 50% 100%, #1F54E0, #0B1B4D 46%, var(--bg) 82%); padding-block: 120px 96px; text-align: center; }
.talk-head p { color: #DCE6FF; margin-top: 18px; font-size: 19px; }
.huge { font-size: clamp(68px, 14vw, 240px); line-height: 1; letter-spacing: -.05em; font-weight: 700; overflow-wrap: normal; }
html[lang="ar"] .huge { letter-spacing: 0; line-height: 1.25; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.contact-links .pill { gap: 8px; }
.contact-links img { width: 18px; height: 18px; }
form.join { max-width: 720px; margin: 56px auto 0; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: start; }
form.join .field.wide, form.join .form-error, form.join .done-state { grid-column: 1 / -1; }
form.join .pill { grid-column: 1 / -1; justify-self: center; }
footer { border-top: 0; padding-block: 28px 0; overflow: hidden; background: var(--bg); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer .wrap.foot-row { width: min(1240px, 100%); }
.foot-name { font-size: 15.6vw; font-weight: 800; letter-spacing: -.05em; line-height: 1.02; text-align: center; white-space: nowrap; overflow-wrap: normal; padding-block: 8px 20px; color: #E6EDFF; }
html[lang="ar"] .foot-name { letter-spacing: 0; line-height: 1.35; }
.foot-name .c, .huge .c { transform-origin: 50% 100%; }

.about-frame { border-radius: 16px; overflow: hidden; }
.about-frame img { scale: 1.14; }
.cs-video { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--panel); margin-bottom: 24px; }
.cs-media .cs-shot { aspect-ratio: auto; }
.cs-media .cs-shot > img { height: auto; }

@media (max-width: 899px) {
  .hero-photo { width: 118vw; max-width: 620px; }
  .hero-name { top: 92px; font-size: 25vw; }
  .hero-foot .wrap { display: block; padding-inline: 16px; }
  .hero h1 { font-size: 38px; }
  .hero-side { text-align: start; grid-auto-flow: column; justify-content: start; gap: 14px; margin-top: 8px; }
  .mosaic { inset: 11vh 8px 7vh; gap: 8px; }
  .px { height: auto; min-height: 100vh; padding-block: 24px; }
  .px-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .px-stage { height: 300px; order: -1; transform: scale(.72); }
  .px-title { margin-bottom: 14px; }
  .px-steps { min-height: 230px; }
  .role { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
  .role > .mono { grid-column: 2; }
  .co { width: 56px; height: 56px; }
  .co img { max-width: 42px; max-height: 42px; }
  .recog { grid-template-columns: minmax(0, 1fr); }
  .rc-mark { width: 120px; height: 120px; border-radius: 24px; }
  .rc-mark img { width: 72px; height: 72px; }
  form.join { grid-template-columns: minmax(0, 1fr); }
}

.numbers .num-grid b { font-size: clamp(32px, 3.7vw, 60px); }
.num-grid { gap: 28px; }
.reel-title { inset: auto 0 3vh; display: block; text-align: center; font: 500 14px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }

/* hero hook */
.hero-lead { max-width: min(46vw, 640px); }
.hook { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(164, 190, 255, .34); background: rgba(5, 8, 22, .62); font-size: 15px; font-weight: 500; max-width: 100%; }
.hook i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #7FB0FF; box-shadow: 0 0 10px #7FB0FF; }
.hook-box { display: grid; }
.hook-box > span { grid-area: 1 / 1; white-space: nowrap; overflow-wrap: normal; }
.hero-cta { margin-top: 18px; }
.hero-cta .pill:not(.solid) { background: rgba(5, 8, 22, .55); }
html:not(.js-on) .hook-box > span + span { }

/* showreel */
.reel-head { position: absolute; top: 72px; inset-inline: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: none; padding-inline: 3vw; }
.reel-head h2 { font-size: clamp(24px, 3vw, 40px); }
.mosaic { inset: 136px 3vw 3vh; gap: 12px; }
.tile { display: block; padding: 0; text-decoration: none; color: #fff; cursor: pointer; }
.tile > img, .tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile > video { opacity: 0; transition: opacity .3s; }
.tile.playing > video { opacity: 1; }
.tile.center > video { opacity: 1; }
.tile-label { position: absolute; inset: auto 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 34px 14px 10px; background: linear-gradient(to top, rgba(5, 8, 22, .9), transparent); font-size: 15px; }
.tile-label b { font-weight: 600; }
.tile-label small { font-family: var(--mono); font-size: 12px; color: #C8D6FF; }
html[lang="ar"] .tile-label small { font-family: var(--font-ar); }
.tile-all { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); font-size: 20px; font-weight: 600; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--bg); transition: scale .25s; }
.tile.center:hover .tile-play { scale: 1.12; }
.tile-play svg { width: 26px; height: 26px; }
.reel-hint { position: absolute; left: 0; right: 0; bottom: 3vh; z-index: 5; text-align: center; font: 500 14px var(--mono); color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); pointer-events: none; }
html[lang="ar"] .reel-hint { font-family: var(--font-ar); }
.lightbox.player video { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 12px; background: #000; }
@media (max-width: 899px) {
  .hero-lead { max-width: none; }
  .hook { font-size: 13px; padding: 6px 12px; }
  .hook-box > span { white-space: normal; }
  .hero-cta { margin-top: 12px; }
  .hero-cta .pill { min-height: 42px; padding: 8px 16px; font-size: 15px; flex: 0 1 auto; }
  .hero-foot { bottom: 14px; }
  .hero h1 { font-size: 34px; }
  .reel-head { top: 64px; padding-inline: 12px; }
  .reel-head h2 { font-size: 22px; }
  .reel-head .link { min-height: 36px; }
  .mosaic { inset: 112px 8px 2vh; gap: 6px; }
  .tile-label { padding: 22px 8px 6px; font-size: 12px; }
  .tile-label small { display: none; }
  .tile-play { width: 40px; height: 40px; }
  .tile-all { font-size: 15px; }
}

/* hero: clean photo, glow behind the head, the dark lower half hides where the photo ends */
html.js .hero-name span, html.js .hero-photo, html.js .hero-foot { visibility: hidden; }
.hero-bg { background: radial-gradient(52% 58% at 50% 32%, #2E6BFF 0%, #173FAE 36%, #0A1747 66%, var(--bg) 100%); background-size: 100% 100%; background-position: 50% 0; }
.hero::after { height: 62%; background: linear-gradient(to top, var(--bg) 26%, rgba(5, 8, 22, .82) 52%, transparent); }
.hero-photo { width: min(46vw, 62vh); -webkit-mask-image: none; mask-image: none; bottom: -2vh; }
.hero-name { top: 8vh; }
.boom { position: absolute; left: 50%; top: 36%; width: 0; height: 0; z-index: 1; --r: 0; pointer-events: none; }
.boom::before { content: ""; position: absolute; left: 0; top: 0; width: 240vmax; height: 240vmax; margin: -120vmax; border-radius: 50%; border: 6vmax solid rgba(160, 196, 255, .85); transform: scale(var(--r)); }
.boom i { position: absolute; width: 12px; height: 12px; margin: -6px; background: #DCE6FF; border-radius: 2px; }
.boom i:nth-child(3n) { background: var(--accent); }

/* the personal row */
.loves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.love { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); font-size: 17px; font-weight: 500; }
.ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #16295F; color: #BFD3FF; overflow: hidden; }
.ic svg, .ic img { width: 30px; height: 30px; }
.ic-ai svg { fill: #7FB0FF; animation: pulse 1.8s ease-in-out infinite; }
.ic-swim svg { animation: swim 1.6s linear infinite; }
.ic-ball svg { animation: roll 2.6s linear infinite; }
@keyframes pulse { 50% { transform: scale(.72) rotate(45deg); } }
@keyframes swim { 50% { transform: translateX(-8px); } }
@keyframes roll { to { transform: rotate(360deg); } }
.story .row { margin-top: 28px; }

/* how I work */
.px-stage i { margin: -9px; border-radius: 3px; }
.px-stage.talking i { animation: none; }
.contact-links svg { width: 20px; height: 20px; }
@media (max-width: 899px) {
  .hero-photo { width: 104vw; max-width: 560px; bottom: -3vh; }
  .hero-bg { background: radial-gradient(90% 46% at 50% 36%, #2E6BFF 0%, #173FAE 40%, #0A1747 70%, var(--bg) 100%); }
  .hero::after { height: 56%; background: linear-gradient(to top, var(--bg) 44%, transparent); }
  .loves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .love { padding: 12px; gap: 10px; font-size: 15px; }
  .ic { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .ic svg { animation: none !important; } }

/* gate and opening */
.gate { display: none; position: fixed; z-index: 96; inset: 0; background: var(--bg); place-items: center; text-align: center; padding: 24px; }
html.first .gate { display: grid; }
.gate-in { display: grid; justify-items: center; gap: 18px; }
.gate-title { font-size: clamp(30px, 5vw, 64px); font-weight: 600; letter-spacing: -.03em; }
.gate-go { min-height: 60px; padding: 14px 32px; font-size: 19px; gap: 10px; }
.gate-go svg { width: 22px; height: 22px; }
.cold { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cold b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: clamp(46px, 11vw, 190px); font-weight: 800; letter-spacing: -.045em; line-height: 1; padding: 16px; visibility: hidden; opacity: 0; }
html[lang="ar"] .cold b { letter-spacing: 0; line-height: 1.25; }

/* sound button */
.snd-btn { display: flex; align-items: center; justify-content: center; gap: 2px; width: 34px; height: 34px; border-radius: 50%; }
.snd-btn i { width: 2.5px; height: 4px; border-radius: 2px; background: var(--muted); }
.snd-btn[aria-pressed="true"] i { background: #7FB0FF; animation: bars .9s ease-in-out infinite; }
.snd-btn i:nth-child(2) { animation-delay: .15s !important; } .snd-btn i:nth-child(3) { animation-delay: .3s !important; } .snd-btn i:nth-child(4) { animation-delay: .45s !important; }
@keyframes bars { 50% { height: 16px; } }

/* hero */
.hero-name { top: 76px; font-size: 13.8vw; line-height: 1; font-weight: 800; color: #F4F6FF; letter-spacing: -.05em; display: flex; justify-content: center; gap: .24em; }
.hero-name span { display: inline-block; will-change: transform; }
html[lang="ar"] .hero-name { font-size: 15vw; line-height: 1.15; letter-spacing: 0; }
.hero-photo { width: min(40vw, 58vh); }
.hero-foot .wrap { align-items: flex-end; }
.hero h1 { font-size: clamp(34px, 4vw, 62px); }
.hero-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 14px 30px; text-align: start; }
.hero-stats b { display: block; font-size: clamp(26px, 2.8vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; direction: ltr; text-align: start; overflow-wrap: normal; white-space: nowrap; }
.hero-stats span { font-size: 14px; color: #C6D4FF; }
.boom { top: 19%; }

/* story chapters */
.chapters { padding-block: 104px; position: relative; }
.ch-grid { position: relative; display: grid; gap: 72px; }
.ch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.ch-text .mono { font-size: 15px; color: #7FB0FF; }
.ch h2 { font-size: clamp(38px, 6.2vw, 96px); line-height: 1.02; margin-top: 8px; }
html[lang="ar"] .ch h2 { line-height: 1.2; }
.ch p { color: var(--muted); font-size: clamp(19px, 1.9vw, 26px); line-height: 1.45; margin-top: 18px; max-width: 640px; }
.ch-art { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ch-logo { width: clamp(120px, 13vw, 190px); height: clamp(120px, 13vw, 190px); border-radius: 26px; background: #F2F5FF; display: grid; place-items: center; }
.ch-logo img { max-width: 66%; max-height: 66%; object-fit: contain; }
.ch-code { font: 700 clamp(70px, 10vw, 150px) var(--mono); color: var(--accent); direction: ltr; }
.chapters.ch-on { height: 100vh; padding: 0; display: flex; align-items: center; }
.ch-on .ch-grid { width: 100%; height: 60vh; }
.ch-on .ch { position: absolute; inset: 0; padding-inline: 32px; }
.ch-rail { display: none; position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%; gap: 10px; }
.ch-on .ch-rail { display: grid; }
.ch-rail i { width: 8px; height: 26px; border-radius: 4px; background: var(--line); transition: background .25s; }
.ch-rail i.on { background: var(--accent); }
.loves { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; width: 100%; }
.love { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 12px; }
.ic { width: 76px; height: 76px; border-radius: 20px; }
.ic svg, .ic img { width: 48px; height: 48px; }

@media (max-width: 899px) {
  .hero-name { top: 70px; font-size: 16.4vw; }
  html[lang="ar"] .hero-name { font-size: 18vw; }
  .hero-photo { width: 96vw; max-width: 500px; bottom: 14vh; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 62%, transparent 96%); }
  .hero::after { height: 52%; background: linear-gradient(to top, var(--bg) 58%, transparent); }
  .hero-stats { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 8px; margin-top: 14px; }
  .hero-stats b { font-size: 21px; }
  .hero-stats span { font-size: 11px; line-height: 1.2; display: block; }
  .hero h1 { font-size: 32px; }
  .hero-foot { bottom: 12px; }
  .ch { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ch-grid { gap: 56px; }
  .ch-art { justify-content: flex-start; }
  .chapters { padding-block: 72px; }
}

/* larger portrait: the face stays clear of the name */
.hero-photo { width: min(50vw, 74vh); bottom: 0; }
.hero::after { height: 40%; background: linear-gradient(to top, var(--bg) 14%, rgba(5, 8, 22, .7) 56%, transparent); }
@media (max-width: 899px) { .hero-photo { width: 104vw; max-width: 540px; bottom: 12vh; } .hero::after { height: 50%; background: linear-gradient(to top, var(--bg) 56%, transparent); } }

/* opening: the video is the first section */
.vhero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.hv-frame { position: absolute; inset: 0; overflow: hidden; background: #050816; will-change: transform; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-hit { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.hv-frame::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, rgba(5, 8, 22, .94), transparent); pointer-events: none; }
.hv-tap { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; border-radius: 999px; background: #fff; color: #050816; font-size: 18px; font-weight: 700; pointer-events: none; transition: opacity .25s, scale .25s; animation: tap 1.6s ease-in-out infinite; z-index: 2; white-space: nowrap; }
.hv-tap.off { opacity: 0; scale: .8; animation: none; }
@keyframes tap { 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .18); } }
.snd-ico { width: 22px; height: 22px; background: #1F54E0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9zm13 3a4 4 0 0 0-2-3.5v7A4 4 0 0 0 16 12zm-2-8v2a7 7 0 0 1 0 12v2a9 9 0 0 0 0-16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9zm13 3a4 4 0 0 0-2-3.5v7A4 4 0 0 0 16 12zm-2-8v2a7 7 0 0 1 0 12v2a9 9 0 0 0 0-16z'/%3E%3C/svg%3E") center / contain no-repeat; }
.hv-bar { position: absolute; inset: auto 0 28px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-inline: 4vw; pointer-events: none; }
.hv-bar a, .hv-bar button { pointer-events: auto; }
.hv-id h1 { font-size: clamp(30px, 3.6vw, 56px); font-weight: 700; line-height: 1.05; }
.hv-id p { color: #D6E1FF; font-size: 18px; margin-top: 4px; }
.hv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.hv-actions .pill { background: rgba(5, 8, 22, .6); color: #fff; }
.hv-actions .pill.solid { background: #fff; color: #050816; }
.hv-sound { gap: 10px; }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: currentColor; }
.hv-sound[aria-pressed="true"] .bars i { background: #7FB0FF; animation: bars .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .15s !important; } .bars i:nth-child(3) { animation-delay: .3s !important; } .bars i:nth-child(4) { animation-delay: .45s !important; }
@media (max-width: 899px) {
  .vhero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 84px 16px 24px; }
  .hv-frame { position: relative; inset: auto; aspect-ratio: 16 / 9; border-radius: 16px; order: 2; }
  .hv-frame::after { display: none; }
  .hv-tap { padding: 10px 18px; font-size: 15px; }
  .hv-bar { position: relative; inset: auto; display: contents; }
  .hv-id { order: 1; }
  .hv-id h1 { font-size: 17vw; line-height: 1; }
  .hv-actions { order: 3; justify-content: flex-start; }
  .hv-actions .pill { flex: 1 1 auto; }
}

/* hero: the real photo fills one side, the name fills the other */
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: stretch; background: var(--bg); }
.split::after { display: none; }
.split-photo { position: relative; grid-column: 2; grid-row: 1; overflow: hidden; }
.split-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 50% 18%; will-change: transform; }
.split-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 22, .35) 26%, transparent 55%), linear-gradient(to top, rgba(31, 84, 224, .5), transparent 42%); pointer-events: none; }
html[dir="rtl"] .split-photo::after { background: linear-gradient(270deg, var(--bg) 0%, rgba(5, 8, 22, .35) 26%, transparent 55%), linear-gradient(to top, rgba(31, 84, 224, .5), transparent 42%); }
.split-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 2; align-self: center; padding: 84px 0 28px 4vw; display: grid; justify-items: start; gap: 4px; }
html[dir="rtl"] .split-copy { padding: 84px 4vw 28px 0; }
.split .hero-name { position: static; inset: auto; display: block; text-align: start; font-size: clamp(72px, 11.4vw, 200px); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: #F4F6FF; white-space: nowrap; }
.split .hero-name span { display: block; }
html[lang="ar"] .split .hero-name { font-size: clamp(70px, 11vw, 190px); line-height: 1.12; letter-spacing: 0; }
.split h1 { font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; color: #D6E1FF; margin-top: 16px; }
.split .hook { margin: 0 0 14px; }
.split .hero-cta { margin-top: 20px; }
.split .hero-stats { grid-template-columns: repeat(4, auto); gap: 8px 30px; margin-top: 26px; }
.split .boom { left: 26%; top: 46%; z-index: 3; }
html[dir="rtl"] .split .boom { left: 74%; }

/* showreel controls */
.reel-tools { display: flex; align-items: center; gap: 14px; }
.reel .hv-tap { z-index: 6; }
.tile.center > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
@media (max-width: 899px) {
  .split { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .split-photo { order: 1; flex: 1 1 42svh; min-height: 42svh; }
  .split-photo::after { background: linear-gradient(to top, var(--bg) 0%, rgba(5, 8, 22, .3) 34%, transparent 62%); }
  html[dir="rtl"] .split-photo::after { background: linear-gradient(to top, var(--bg) 0%, rgba(5, 8, 22, .3) 34%, transparent 62%); }
  .split-copy, html[dir="rtl"] .split-copy { order: 2; padding: 0 16px 20px; margin-top: -11vh; }
  .split .hero-name { font-size: 21vw; }
  html[lang="ar"] .split .hero-name { font-size: 22vw; }
  .split h1 { font-size: 22px; margin-top: 10px; }
  .split .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-top: 16px; }
  .split .boom, html[dir="rtl"] .split .boom { left: 50%; top: 62%; }
  .reel-tools .pill { min-height: 38px; padding: 4px 12px; font-size: 14px; }
}

@media (max-width: 899px) {
  .reel-head { top: 74px; }
  .mosaic { inset: 126px 8px 2vh; }
}

/* the sound button is a real, clickable control */
.hv-tap { pointer-events: auto; cursor: pointer; border: 0; font: inherit; font-weight: 700; padding: 12px 22px; font-size: 16px; }
.hv-tap:hover { scale: 1.06; }
.hv-tap.off { pointer-events: none; }
/* smooth showreel: each tile is its own layer */
.tile { will-change: transform, opacity; backface-visibility: hidden; transform: translateZ(0); }
.tile:not(.center) { background-clip: padding-box; }
.reel .mosaic { contain: layout; }

/* ── About: the film ── */
.movie { position: relative; background: #03050F; padding: 0; }
.film-stage { position: relative; }
.fs { position: relative; display: flex; align-items: center; min-height: 80vh; padding: 120px 0; overflow: hidden; background: #03050F; }
.fs-in { position: relative; z-index: 2; width: min(1240px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.fs-k { display: block; color: #8FB4FF; }
.fs-h { font-size: clamp(44px, 8.2vw, 128px); line-height: 1.02; letter-spacing: -.035em; margin-top: 14px; max-width: 12em; color: #fff; }
html[lang="ar"] .fs-h { letter-spacing: 0; line-height: 1.2; }
.fs-sub { color: #C9D4F2; font-size: clamp(18px, 2vw, 26px); line-height: 1.45; max-width: 34em; margin-top: 20px; }
.fs-beat { color: #6FA0FF; font-weight: 600; font-size: clamp(30px, 5vw, 76px); line-height: 1.12; letter-spacing: -.025em; margin-top: 22px; }
html[lang="ar"] .fs-beat { letter-spacing: 0; line-height: 1.3; }
.fs-bg { position: absolute; inset: 0; overflow: hidden; }
.fs-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.fs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 5, 15, .94) 0%, rgba(3, 5, 15, .72) 44%, rgba(3, 5, 15, .24) 100%); }
html[dir="rtl"] .fs-bg::after { transform: scaleX(-1); }
.fs0 .fs-bg { inset: 0 0 0 auto; width: 58%; }
html[dir="rtl"] .fs0 .fs-bg { inset: 0 auto 0 0; }
.fs0 .fs-bg img { object-position: 50% 16%; }
.fs0 .fs-bg::after { background: linear-gradient(90deg, #03050F 0%, rgba(3, 5, 15, .4) 44%, rgba(3, 5, 15, .1) 100%), linear-gradient(0deg, rgba(3, 5, 15, .7), transparent 34%); }
.fs0 .fs-in .row { margin-top: 28px; }
.fs-play { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; color: #8FB4FF; }
.fs-year { position: absolute; inset-inline-end: -2vw; bottom: 8vh; font-size: clamp(120px, 30vw, 460px); font-weight: 700; line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(111, 160, 255, .22); will-change: transform; pointer-events: none; }
.fs-art { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.fs-logo { width: 60px; height: 60px; border-radius: 14px; background: #F2F5FF; display: grid; place-items: center; overflow: hidden; }
.fs-logo img { max-width: 44px; max-height: 44px; object-fit: contain; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-chips span { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(143, 180, 255, .4); background: rgba(12, 20, 50, .66); color: #E4ECFF; font-size: 15px; font-weight: 600; white-space: nowrap; }
.fs-tag { font-family: var(--mono, monospace); font-size: clamp(30px, 4.4vw, 60px); color: #6FA0FF; }
.fs.center { text-align: center; }
.fs.center .fs-h, .fs.center .fs-sub { margin-inline: auto; }
.fs.center .fs-art { justify-content: center; }
.film-grain, .film-bar, .film-hud { display: none; }
/* the film runs only when motion is on; otherwise the scenes simply stack */
.movie.on { height: 100svh; overflow: hidden; }
.movie.on .film-stage { position: absolute; inset: 0; }
.movie.on .fs { position: absolute; inset: 0; min-height: 0; padding: 0; }
.movie.on .fs:not(.active) a { pointer-events: none; }
.movie.on .film-grain { display: block; position: absolute; inset: -60px; z-index: 3; background: url(../img/film/grain.webp) 0 0 / 220px 220px; opacity: .05; pointer-events: none; animation: grain .9s steps(6) infinite; will-change: transform; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-22px, 16px); } 40% { transform: translate(18px, -26px); } 60% { transform: translate(-14px, -12px); } 80% { transform: translate(24px, 20px); } 100% { transform: translate(0, 0); } }
.movie.on .film-bar { display: block; position: absolute; inset-inline: 0; height: 9svh; background: #000; z-index: 4; pointer-events: none; will-change: transform; }
.film-bar.top { top: 0; transform-origin: 50% 0; }
.film-bar.bot { bottom: 0; transform-origin: 50% 100%; }
.movie.on .film-hud { position: absolute; inset-inline: 0; bottom: 0; height: 9svh; z-index: 5; display: flex; align-items: center; gap: 20px; padding-inline: clamp(20px, 5vw, 56px); color: #C9D4F2; font-size: 13px; }
.film-hud b { font-weight: 600; color: #fff; }
.film-strip { flex: 1; display: flex; gap: 4px; min-width: 0; }
.film-strip i { flex: 1; height: 3px; border-radius: 2px; background: rgba(143, 180, 255, .22); transition: background .3s; }
.film-strip i.on { background: #6FA0FF; }
.film-tc { font-variant-numeric: tabular-nums; }
.film-skip { color: #fff; font-size: 13px; }

/* ── About: What I do ── */
.what-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.wc { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px; border-radius: 22px; background: linear-gradient(160deg, #0F1A42, #0A1130); border: 1px solid rgba(111, 160, 255, .18); overflow: hidden; transition: border-color .35s, translate .45s cubic-bezier(.2, .7, .2, 1); }
.wc::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 123, 255, .3), transparent 70%); }
.wc:hover { border-color: rgba(143, 180, 255, .55); translate: 0 -4px; }
.wc:hover::before { opacity: 1; }
.wc > * { position: relative; }
.w7 { grid-column: span 7; } .w5 { grid-column: span 5; } .w4 { grid-column: span 4; }
.w12 { grid-column: span 12; min-height: 0; background: linear-gradient(110deg, #1C47C9, #0F2472 70%); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
.w12 .wc-ic { grid-row: span 2; margin: 0; color: #fff; }
.w12 p { color: #DCE6FF; }
.w12 .wc-stat { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; text-align: end; }
.wc-ic { width: 46px; height: 46px; color: #6FA0FF; margin-bottom: 20px; }
.wc-ic svg { width: 100%; height: 100%; display: block; }
.wc-ic path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease; }
.wc h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.wc p { color: var(--muted); font-size: 17px; line-height: 1.5; margin-top: 10px; }
.wc-stat { margin-top: auto; padding-top: 20px; }
.wc-stat b { display: block; font-size: clamp(44px, 5.6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; text-align: start; }
.w12 .wc-stat b { text-align: end; }
.wc-stat span { display: block; color: #A9BBE8; font-size: 15px; margin-top: 6px; }

/* ── About: Where I've worked, small ── */
.folds { border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold h3 { font: inherit; letter-spacing: 0; }
.fold-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; align-items: center; gap: 16px; width: 100%; padding: 12px 8px; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; border-radius: 10px; transition: background .3s; }
.fold-head:hover { background: rgba(59, 123, 255, .1); }
.fold .co { width: 44px; height: 44px; border-radius: 10px; font-size: 12px; }
.fold .co img { max-width: 32px; max-height: 32px; }
.fold-t { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; min-width: 0; }
.fold-t b { font-size: 18px; font-weight: 600; }
.fold-t small { font-size: 15px; color: var(--muted); }
.plus { position: relative; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; border-radius: 2px; background: #8FB4FF; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.plus::after { transform: rotate(90deg); }
.open .plus::after { transform: rotate(0); }
.open .plus::before { transform: rotate(180deg); }
.fold-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .46s cubic-bezier(.2, .7, .2, 1); }
.open .fold-body { grid-template-rows: 1fr; }
html:not(.js) .fold-body { grid-template-rows: 1fr; }
.fold-in { min-height: 0; overflow: hidden; }
.fold-in .bullets { padding: 4px 8px 18px 68px; margin: 0; font-size: 16px; }
html[dir="rtl"] .fold-in .bullets { padding: 4px 68px 18px 8px; }

/* ── Work page: buttons under the project name ── */
.work-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill.sm { padding: 8px 16px; font-size: 14px; min-height: 0; gap: 6px; }
.work-shot { display: block; }
.work-grid .work:hover .shot { border-color: rgba(143, 180, 255, .55); }
.snd-ask { position: fixed; inset-inline-start: 50%; translate: -50% 0; bottom: 84px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(59, 123, 255, .4); transition: scale .25s; }
html[dir="rtl"] .snd-ask { translate: 50% 0; }
.snd-ask:hover { scale: 1.06; }
.sound-on .snd-ask { display: none; }

@media (max-width: 899px) {
  .w7, .w5, .w4 { grid-column: span 6; }
  .w12 { grid-column: span 12; grid-template-columns: auto minmax(0, 1fr); }
  .w12 .wc-stat { grid-column: 1 / -1; grid-row: auto; text-align: start; margin-top: 16px; }
  .w12 .wc-stat b { text-align: start; }
  .film-tc { display: none; }
}
@media (max-width: 640px) {
  .w7, .w5, .w4 { grid-column: span 12; }
  .wc { min-height: 0; padding: 22px; }
  .w12 .wc-ic { grid-row: auto; margin-bottom: 14px; }
  .w12 { display: flex; }
  .fs0 .fs-bg { width: 100%; }
  .fs0 .fs-bg::after { background: linear-gradient(0deg, #03050F 26%, rgba(3, 5, 15, .55) 60%, rgba(3, 5, 15, .15) 100%); }
  html[dir="rtl"] .fs0 .fs-bg::after { transform: none; }
  .movie.on .fs0 { align-items: flex-end; padding-bottom: 11svh; }
  .fs0 .fs-in .row { margin-top: 16px; }
  .fs-play { margin-top: 14px; }
  .fs-bg::after { background: linear-gradient(0deg, rgba(3, 5, 15, .92), rgba(3, 5, 15, .6)); }
  .fs-year { bottom: 12svh; }
  .fs-sub { font-size: 17px; margin-top: 12px; }
  .fold-head { grid-template-columns: 38px minmax(0, 1fr) 14px; gap: 12px; padding: 10px 2px; }
  .fold .co { width: 38px; height: 38px; }
  .fold .co img { max-width: 28px; max-height: 28px; }
  .fold-head > .mono { grid-column: 2; grid-row: 2; font-size: 12px; }
  .fold-t b { font-size: 16px; } .fold-t small { font-size: 14px; }
  .plus { grid-column: 3; grid-row: 1; }
  .fold-in .bullets, html[dir="rtl"] .fold-in .bullets { padding: 2px 4px 16px; }
  .movie.on .film-hud { gap: 12px; }
  .snd-ask { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .film-grain { animation: none !important; } }

/* photo scenes: the person stays clear of the words */
.fs-h, .fs-sub, .fs-beat { text-wrap: balance; }
.fs4 .fs-bg { inset: 0 0 0 auto; width: 60%; }
html[dir="rtl"] .fs4 .fs-bg { inset: 0 auto 0 0; }
.fs4 .fs-bg img { object-position: 50% 62%; }
.fs4 .fs-bg::after { background: linear-gradient(90deg, #03050F 0%, rgba(3, 5, 15, .3) 46%, rgba(3, 5, 15, .06) 100%); }
@media (max-width: 640px) {
  .fs4 .fs-bg { width: 100%; }
  .fs4 .fs-bg::after { background: linear-gradient(0deg, rgba(3, 5, 15, .94) 30%, rgba(3, 5, 15, .5)); }
}

@media (max-width: 640px) {
  .movie.on .fs.photo { align-items: flex-end; padding-bottom: 12svh; }
  .fs.photo .fs-bg::after { background: linear-gradient(0deg, #03050F 34%, rgba(3, 5, 15, .3) 66%, rgba(3, 5, 15, .1)) !important; }
  html[dir="rtl"] .fs.photo .fs-bg::after { transform: none; }
  .fs4 .fs-bg img { object-position: 50% 30%; }
  .fs7 .fs-bg img { object-position: 66% 30%; }
}

/* the sound label lives inside the video tile, and the whole tile is the button */
.tile.center { cursor: pointer; }
.tile.center .hv-tap { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; pointer-events: none; white-space: nowrap; padding: 12px 22px; font-size: 16px; animation: tap 1.8s ease-in-out infinite; transition: opacity .3s .9s, background .25s, color .25s; }
.tile.center:hover .hv-tap { background: var(--accent); color: #fff; }
.tile.center .hv-tap.off { opacity: 0; scale: 1; animation: none; background: var(--accent); color: #fff; }
.tile.center:hover .hv-tap.off { opacity: 1; transition-delay: 0s; }
.hv-tap .t-on { display: none; }
.hv-tap.off .t-on { display: inline; }
.hv-tap.off .t-off { display: none; }

/* ── About: Background ── */
.bg-sec { padding-top: 0; }
.bg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bg-card { padding: 26px; border-radius: 22px; background: linear-gradient(160deg, #0F1A42, #0A1130); border: 1px solid rgba(111, 160, 255, .18); min-width: 0; }
.b7 { grid-column: span 7; } .b5 { grid-column: span 5; } .b12 { grid-column: span 12; }
.bg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.bg-top h3 { font-size: 22px; }
.bg-ic { width: 40px; height: 40px; color: #6FA0FF; flex: none; }
.bg-ic svg { width: 100%; height: 100%; display: block; }
.bg-ic path { stroke-dasharray: 1; }
.bg-card h4 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.bg-card p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 2px; }
.edu { position: relative; display: grid; gap: 20px; padding-inline-start: 26px; }
.edu-line { position: absolute; inset-block: 6px; inset-inline-start: 4px; width: 2px; background: rgba(111, 160, 255, .2); }
.edu-line b { position: absolute; inset: 0; background: #6FA0FF; transform-origin: 50% 0; display: block; }
.edu-step { position: relative; }
.edu-step::before { content: ""; position: absolute; inset-inline-start: -26px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #6FA0FF; box-shadow: 0 0 0 4px rgba(111, 160, 255, .2); }
.edu-step h4 { margin-top: 2px; }
.grade { display: inline-block; padding: 1px 9px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; margin-inline-end: 6px; }
.edu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.edu-tags span { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(143, 180, 255, .35); font-size: 14px; color: #DCE6FF; }
.lang-card { display: flex; flex-direction: column; }
.langs { display: grid; gap: 18px; margin-block: auto; }
.lang-b { display: flex; align-items: center; gap: 16px; }
.bub { position: relative; flex: none; width: 66px; height: 66px; border-radius: 20px 20px 20px 4px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 700; animation: bob 3.4s ease-in-out infinite; }
.bub.two { background: #F2F5FF; color: #0B1B4D; border-radius: 20px 20px 4px 20px; font-size: 24px; animation-delay: -1.7s; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(-3deg); } }
.certs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cert { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: rgba(5, 8, 22, .5); border: 1px solid rgba(111, 160, 255, .16); transition: translate .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; min-width: 0; }
.cert:hover { translate: 0 -6px; border-color: rgba(143, 180, 255, .6); }
.cert h4 { font-size: 16px; overflow-wrap: anywhere; }
.cert p { font-size: 14px; }
.cert .mono { font-size: 12px; margin-top: 4px; }
.cert-ic { width: 46px; height: 46px; padding: 8px; border-radius: 12px; background: #F2F5FF; color: #1C47C9; display: grid; place-items: center; margin-bottom: 10px; }
.cert-ic svg, .cert-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.achs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ach { padding: 20px; border-radius: 16px; background: linear-gradient(120deg, #1C47C9, #0F2472); min-width: 0; }
.ach > img { width: 38px; height: 38px; padding: 7px; border-radius: 10px; background: #fff; object-fit: contain; display: block; }
.ach-logos { display: flex; gap: 6px; }
.ach-logos img { height: 38px; width: 70px; padding: 7px; border-radius: 10px; background: #fff; object-fit: contain; }
.ach b { display: block; margin-top: 14px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1; font-weight: 600; letter-spacing: -.03em; color: #fff; text-align: start; font-variant-numeric: tabular-nums; }
.ach p { color: #DCE6FF; }

/* ── About: Tools ── */
.tools-sec { padding-top: 0; overflow: hidden; }
.tool-rows { display: grid; gap: 18px; }
.trow > h3 { display: block; width: min(1240px, 100%); margin: 0 auto 8px; padding-inline: clamp(20px, 5vw, 56px); font-weight: 500; }
.tmq { overflow: hidden; }
.ttrack { display: flex; width: max-content; will-change: transform; }
.tset { display: contents; }
.tchip { display: inline-flex; align-items: center; gap: 10px; flex: none; height: 58px; padding: 0 22px; margin-inline-end: 12px; border-radius: 14px; background: #F2F5FF; color: #0B1B4D; font-weight: 700; font-size: 17px; white-space: nowrap; }
.tchip img { width: 28px; height: 28px; object-fit: contain; }

/* ── About: Outside work ── */
.life { position: relative; overflow: hidden; padding-block: 90px 0; background: linear-gradient(180deg, var(--bg), #0B1640 62%, #16307F); }
.life-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: tw 2.8s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; } }
.life-moon { position: absolute; top: 90px; inset-inline-end: 12%; width: 74px; height: 74px; border-radius: 50%; background: #F2E9C9; box-shadow: 0 0 60px rgba(242, 233, 201, .5), inset -14px -6px 0 rgba(0, 0, 0, .08); will-change: transform; }
.life-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: end; }
.life-copy { padding-bottom: 120px; }
.life-p { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 30em; }
.life-loves { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ll { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgba(12, 20, 50, .7); border: 1px solid rgba(143, 180, 255, .3); font-weight: 600; font-size: 16px; }
html[dir="rtl"] .ll { padding: 10px 10px 10px 18px; }
.ll-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; overflow: hidden; }
.ll-ic.wave svg { width: 84px; height: auto; flex: none; max-width: none; animation: wavey 1.8s linear infinite; }
.ll-ic.wave { justify-items: start; }
@keyframes wavey { to { transform: translateX(-32px); } }
.ll-ic.ball svg { width: 30px; height: 30px; animation: roll 3s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.ll-ic.code { font-family: var(--mono); font-size: 14px; font-weight: 700; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { background: #6FA0FF; } }
.life-tower { display: flex; justify-content: center; }
.tower { display: block; height: min(620px, 74vh); width: auto; margin-bottom: -6px; will-change: transform; overflow: visible; }
.tower [data-draw] { stroke-dasharray: 1; }
.tl { animation: tw 2.2s ease-in-out infinite; }
.tl:nth-child(2n) { animation-delay: -1.1s; }
.t-tip { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { fill: #5A1C2A; } }
.life-nile { position: relative; z-index: 3; display: flex; width: 200%; height: 54px; margin-top: -24px; animation: nile 9s linear infinite; will-change: transform; }
.life-nile svg { flex: 0 0 50%; width: 50%; height: 100%; display: block; fill: #050816; }
@keyframes nile { to { transform: translateX(-50%); } }

@media (max-width: 899px) {
  .b7, .b5 { grid-column: span 12; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life-grid { grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; }
  .life-copy { padding-bottom: 70px; }
  .tower { height: 440px; }
}
@media (max-width: 640px) {
  .tile.center .hv-tap { padding: 7px 12px; font-size: 12px; gap: 6px; }
  .bg-card { padding: 20px; }
  .achs { grid-template-columns: minmax(0, 1fr); }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .cert { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; }
  .cert-ic { grid-row: span 3; margin: 0; }
  .life-grid { grid-template-columns: minmax(0, 1fr); }
  .life-copy { padding-bottom: 0; }
  .life-tower { margin-top: 20px; }
  .tower { height: 380px; }
  .life-moon { top: 40px; width: 52px; height: 52px; }
  .tchip { height: 48px; padding: 0 16px; font-size: 15px; }
  .tchip img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .bub, .tl, .t-tip, .life-nile, .life-stars i, .ll-ic svg, .ll-ic.code { animation: none !important; } .tower [data-draw] { stroke-dasharray: none; } }

.trow > h3.mono { color: #A9BBE8; font-size: 14px; line-height: 1.4; letter-spacing: .02em; }

.tile.center:hover .snd-ico, .tile.center .hv-tap.off .snd-ico { background: #fff; }

/* home hero: same film look as the About opening */
.hbar { display: none; position: absolute; inset-inline: 0; height: 50.5%; background: #000; z-index: 1; pointer-events: none; will-change: transform; }
.hbar.t { top: 0; transform-origin: 50% 0; }
.hbar.b { bottom: 0; transform-origin: 50% 100%; }
.split-photo::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 8, 22, .42) 34%, rgba(5, 8, 22, .08) 100%), linear-gradient(0deg, rgba(5, 8, 22, .72), transparent 36%) !important; }
html[dir="rtl"] .split-photo::after { background: linear-gradient(270deg, var(--bg) 0%, rgba(5, 8, 22, .42) 34%, rgba(5, 8, 22, .08) 100%), linear-gradient(0deg, rgba(5, 8, 22, .72), transparent 36%) !important; }
.hook-box > span + span { opacity: 0; visibility: hidden; }

/* master sound switch */
.snd-btn { color: #A9BBE8; transition: background .2s, color .2s; }
.snd-btn svg { width: 20px; height: 20px; display: none; }
.snd-btn .s-off { display: block; }
.snd-btn[aria-pressed="true"] { color: #fff; background: var(--accent); }
.snd-btn[aria-pressed="true"] .s-on { display: block; }
.snd-btn[aria-pressed="true"] .s-off { display: none; }
.snd-btn:hover { color: #fff; }

/* new love icons */
.ic-ai svg { fill: none; animation: chip 2.4s ease-in-out infinite; }
@keyframes chip { 50% { transform: scale(1.08); color: #fff; } }
.ic-swim svg { animation: swimb 2.2s ease-in-out infinite; }
@keyframes swimb { 50% { transform: translate(3px, -3px); } }

/* project pages: the same film as About */
.case0 { background: radial-gradient(70% 90% at 80% 40%, rgba(31, 84, 224, .3), transparent 70%), #03050F; }
.case0 .fs-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.case0 .fs-h { font-size: clamp(38px, 5.6vw, 84px); }
.case0 .fs-sub { font-size: clamp(16px, 1.5vw, 20px); }
.case0 .row { margin-top: 18px; }
.case0 .fs-play { margin-top: 18px; }
.cs-lead .cs-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #C9D4F2; text-decoration: none; font-size: 15px; }
.cs-reel { border-radius: 18px; overflow: hidden; border: 1px solid rgba(143, 180, 255, .3); box-shadow: 0 30px 80px rgba(31, 84, 224, .3); background: #0C1432; aspect-ratio: 16 / 10; }
.cs-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-h.md { font-size: clamp(34px, 5.8vw, 92px); }
.fs-year.nm { font-size: clamp(70px, 15vw, 240px); white-space: nowrap; inset-inline-end: auto; inset-inline-start: 2vw; bottom: 11vh; -webkit-text-stroke-color: rgba(111, 160, 255, .13); }
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cr { min-width: 170px; max-width: 340px; padding: 14px 20px; border-radius: 14px; background: rgba(12, 20, 50, .8); border: 1px solid rgba(143, 180, 255, .28); }
.cr .mono { display: block; color: #8FB4FF; }
.cr b { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; margin-top: 2px; color: #fff; }
.fs-story { font-size: clamp(24px, 3.5vw, 50px); line-height: 1.32; font-weight: 500; letter-spacing: -.015em; color: #fff; max-width: 26em; margin-top: 16px; }
html[lang="ar"] .fs-story { letter-spacing: 0; line-height: 1.6; }
.fs-chips.big { justify-content: center; margin-top: 26px; gap: 12px; max-width: 900px; margin-inline: auto; }
.fs-chips.big span { padding: 11px 20px; font-size: 18px; background: #F2F5FF; color: #0B1B4D; border: 0; }
.fs-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.fs-nums.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.fs-nums.n2, .fs-nums.n4 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; }
.fn { padding: 20px; border-radius: 18px; background: linear-gradient(120deg, #1C47C9, #0F2472); text-align: center; min-width: 0; }
.fn b { display: block; font-size: clamp(38px, 5.6vw, 84px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.fn span { display: block; color: #DCE6FF; font-size: 16px; line-height: 1.35; margin-top: 4px; }

/* What I did: same blocks as What I do */
.cs-did { padding-top: 96px; }
.w4x { grid-column: span 4; } .w5x { grid-column: span 5; } .w6x { grid-column: span 6; } .w7x { grid-column: span 7; } .w12x { grid-column: span 12; }
.cs-did .wc { min-height: 240px; }
.wc-n { position: absolute !important; top: 22px; inset-inline-end: 24px; font-family: var(--mono); font-size: 13px; color: #8FB4FF; }

@media (max-width: 899px) {
  .w4x, .w5x, .w7x, .w6x { grid-column: span 6; }
  .case0 .fs-in { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cs-reel { max-height: 34vh; width: 100%; }
  .fs-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-nums.n1, .fs-nums.n2, .fs-nums.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .w4x, .w5x, .w6x, .w7x { grid-column: span 12; }
  .cs-did { padding-top: 64px; }
  .cs-did .wc { min-height: 0; }
  .case0 .fs-sub { font-size: 15px; margin-top: 10px; }
  .fs-chips.big span { padding: 8px 14px; font-size: 15px; }
  .fn { padding: 14px; }
  .fs-year.nm { bottom: 12svh; }
}
@media (prefers-reduced-motion: reduce) { .ic-ai svg, .ic-swim svg { animation: none !important; } }

.fs-nums, .fs-nums.n1, .fs-nums.n2, .fs-nums.n4 { display: flex; flex-wrap: wrap; justify-content: center; }
.fn { flex: 0 1 260px; }
@media (max-width: 640px) { .fn { flex: 0 1 calc(50% - 6px); } }

/* home first section: a short story */
.hero-story { color: #C9D4F2; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55; max-width: 31em; margin-top: 12px; }
html[lang="ar"] .hero-story { line-height: 1.8; }
.split .hero-cta { align-items: center; gap: 18px; flex-wrap: wrap; }
.split .hero-cta .fs-play { margin: 0; }

/* showreel: big frames, and the whole picture always fits inside */
@media (max-width: 640px) {
  .reel { --top: 122px; --H: calc(100vh - var(--top) - 2vh); --W: min(calc(100vw - 24px), calc((var(--H) - 26px) / 1.875)); }
  .mosaic, .reel .mosaic { inset: var(--top) auto 2vh 50%; width: var(--W); translate: -50% 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; align-content: center; gap: 6px; }
  .tile { aspect-ratio: 16 / 10; }
  .tile.center { grid-column: 1 / -1; order: -1; }
  .reel-head { gap: 8px; }
  .reel-head h2 { font-size: 20px; }
  .hero-story { font-size: 15px; line-height: 1.5; margin-top: 8px; }
  html[lang="ar"] .hero-story { line-height: 1.7; }
  .split .hero-cta { gap: 12px; }
}

/* the sound label sits low on the tile, so it never covers the video's main words */
.tile.center .hv-tap { top: 84%; }
.reel-head h2 { white-space: nowrap; }
.reel-tools .link { white-space: nowrap; }
@media (max-width: 380px) {
  .reel-head h2 { font-size: 18px; }
  .reel-tools { gap: 8px; }
  .hv-sound > [data-en] { display: none; }
  .hv-sound { min-width: 40px; padding: 4px 10px; }
}
/* very short phones: a smaller name keeps the whole story on screen */
@media (max-width: 640px) and (max-height: 640px) {
  .split .hero-name { font-size: 52px; }
  html[lang="ar"] .split .hero-name { font-size: 50px; }
  .split h1 { font-size: 20px; margin-top: 6px; }
  .hero-story { font-size: 14px; }
  .hero.split { min-height: 568px; }
}

.tile { background: var(--tile, var(--panel)); }
.tile > img, .tile > video { object-fit: contain; }
.tile.center { background: #050816; }
.tile.center > video { object-fit: contain; }
.tile.center .hv-tap { display: inline-flex; align-items: center; gap: 8px; animation: none; transition: background .25s, color .25s, scale .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.tile.center:hover .hv-tap { scale: 1.06; }
.tile.center:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* the full story, opened from the tile */
html.reel-open { overflow: hidden; }
.reel-box { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(3, 5, 15, .94); }
.rb-frame { width: min(100%, calc((100svh - 2 * clamp(12px, 3vw, 40px)) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(31, 84, 224, .35); transform-origin: 50% 50%; will-change: transform; }
.rb-frame video { width: 100%; height: 100%; display: block; }
.rb-close { position: fixed; top: 16px; inset-inline-end: 16px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #050816; cursor: pointer; z-index: 2; }
.rb-close:hover { background: var(--accent); color: #fff; }

.tile.tile-all { background: var(--accent); }
/* the project name sits under the picture, never on top of it */
.tile:not(.center):not(.tile-all) { --lab: 38px; }
.tile:not(.center):not(.tile-all) > img, .tile:not(.center):not(.tile-all) > video { inset: 6px 6px var(--lab) 6px; width: calc(100% - 12px); height: calc(100% - var(--lab) - 6px); }
.tile-label { padding: 0 14px; height: 38px; align-items: center; background: none; }
@media (max-width: 640px) {
  .tile:not(.center):not(.tile-all) { --lab: 26px; }
  .tile-label { padding: 0 8px; height: 26px; }
}

/* showreel final: each frame has the picture's own shape and stays big; the last row scrolls into view */
.reel { --W: min(94vw, 1560px); --top: 132px; height: auto; padding-bottom: 4vh; }
.reel-head { width: var(--W); max-width: var(--W); margin-inline: auto; padding-inline: 0; inset-inline: 0; }
.mosaic, .reel .mosaic { position: relative; inset: auto; translate: none; width: var(--W); margin: var(--top) auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; align-content: start; gap: 14px; }
.tile { aspect-ratio: auto; display: block; }
.tile:not(.center):not(.tile-all) > img { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tile:not(.center):not(.tile-all) > video { position: absolute; inset: 0 0 auto 0; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-label { position: relative; inset: auto; height: 38px; }
.reel-hint { top: 92vh; bottom: auto; }
.tile.center > video { object-fit: contain; }
@media (max-width: 899px) {
  .reel { --W: calc(100vw - 24px); --top: 124px; }
  .mosaic, .reel .mosaic { gap: 8px; }
  .tile-label b { font-size: 13px; }
}
@media (max-width: 640px) {
  .reel { --W: calc(100vw - 24px); --top: 122px; }
  .mosaic, .reel .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile.center { aspect-ratio: 16 / 9; }
  .tile-label { height: 28px; }
}

.tile.tile-all { display: flex; align-items: center; justify-content: center; gap: 10px; }
.puzzle { position: absolute; inset: 0; z-index: 0; }
.puzzle i { position: absolute; display: block; background-repeat: no-repeat; will-change: transform, opacity; backface-visibility: hidden; }
.split-photo::after { z-index: 1; }
.hero.split { overflow: hidden; }

/* nothing shows before the opening sequence starts */
html.intro .split-photo, html.intro .split-copy > :not(.hero-name), html.intro .hero-name span, html.intro:has(.hero.split) nav.top { opacity: 0; }

/* the whole first section always fits one screen */
html.intro-lock { touch-action: none; }
.hbar { height: 11%; }
.hero.split { height: 100svh; min-height: 0; }
@media (min-width: 900px) {
  .split-copy { padding: 68px 0 16px 4vw; gap: 2px; }
  html[dir="rtl"] .split-copy { padding: 68px 4vw 16px 0; }
  .split .hero-name, html[lang="ar"] .split .hero-name { font-size: min(11.4vw, 21vh); }
  .split h1 { font-size: clamp(20px, min(2.6vw, 4.4vh), 40px); margin-top: 10px; }
  .hero-story { font-size: clamp(14px, min(1.45vw, 2.5vh), 21px); margin-top: 8px; }
  .split .hook { margin-bottom: 8px; }
  .split .hero-cta { margin-top: 12px; }
}

@media (min-width: 900px) { html[lang="ar"] .split .hero-name { font-size: min(10.5vw, 17vh); } html[lang="ar"] .hero-story { line-height: 1.6; } }

/* ── Home: the opening film ── */
html.intro .ttl span, html.intro .ttl-line, html.intro .home-film .fs-play, html.intro .home-film .film-hud, html.intro:has(.home-film) nav.top { opacity: 0; }
.ttl-scene { justify-content: center; text-align: center; background: radial-gradient(60% 70% at 50% 50%, rgba(31, 84, 224, .28), transparent 72%), #03050F; }
.ttl-scene .fs-in { display: flex; flex-direction: column; align-items: center; }
.ttl { font-size: min(19vw, 27vh); line-height: .92; font-weight: 800; letter-spacing: -.05em; color: #F4F6FF; white-space: nowrap; }
.ttl span { display: block; }
html[lang="ar"] .ttl { font-size: min(21vw, 24vh); line-height: 1.16; letter-spacing: 0; }
.ttl-line { font-size: clamp(20px, min(3vw, 4.6vh), 44px); font-weight: 500; color: #D6E1FF; margin-top: 2.4vh; }
.ttl-scene .fs-play { margin-top: 3vh; font-size: 14px; }
.boom { z-index: 1; }
.pic-right .fs-bg { inset: 0 0 0 auto; width: 58%; }
html[dir="rtl"] .pic-right .fs-bg { inset: 0 auto 0 0; }
.pic-right .fs-bg img { position: relative; z-index: 1; object-position: 50% 16%; }
.pic-right .fs-bg::after { z-index: 2; background: linear-gradient(90deg, #03050F 0%, rgba(3, 5, 15, .4) 44%, rgba(3, 5, 15, .1) 100%), linear-gradient(0deg, rgba(3, 5, 15, .7), transparent 34%); }
.collide { position: relative; height: 1.25em; font-size: clamp(44px, min(10vw, 17vh), 160px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; color: #fff; margin-top: 10px; }
html[lang="ar"] .collide { letter-spacing: 0; line-height: 1.25; }
.cl { position: absolute; left: 50%; top: 0; white-space: nowrap; }
.cl.c { color: #6FA0FF; }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; text-align: start; }
.door { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: linear-gradient(160deg, #122063, #0A1130); border: 1px solid rgba(143, 180, 255, .3); transition: translate .4s cubic-bezier(.2, .7, .2, 1), border-color .3s; min-width: 0; }
.door:hover { translate: 0 -6px; border-color: rgba(143, 180, 255, .75); }
.door h3 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.2; color: #fff; }
.door p { color: #C9D4F2; font-size: 16px; line-height: 1.45; }
.door-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
@media (max-width: 899px) {
  .doors { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .door { padding: 16px; }
}
@media (max-width: 640px) {
  .pic-right .fs-bg { width: 100%; }
  .pic-right .fs-bg::after { background: linear-gradient(0deg, #03050F 26%, rgba(3, 5, 15, .4) 60%, rgba(3, 5, 15, .1)); }
  html[dir="rtl"] .pic-right .fs-bg::after { transform: none; }
  .movie.on .fs.pic-right { align-items: flex-end; padding-bottom: 13svh; }
  .collide { font-size: min(13vw, 12vh); }
  /* the menu never overflows on the smallest phones */
  .pill-label { min-width: 0; max-width: 34vw; overflow: hidden; }
  .pill-label span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-pill { min-width: 0; }
}

.movie.on .ttl-scene { align-items: center; padding-bottom: 0; }
@media (max-width: 640px) {
  .ttl { font-size: min(24vw, 21vh); }
  html[lang="ar"] .ttl { font-size: min(28vw, 20vh); }
  .fs3 .fs-bg img { object-position: 66% 30%; }
}

/* ── Home: Who am I? One open stage, no frames ── */
html.intro .ttl span, html.intro .ttl-line, html.intro .who .fs-play, html.intro .who-mid, html.intro .orbs, html.intro .who-end, html.intro:has(.who) nav.top { opacity: 0; }
.who { position: relative; background: radial-gradient(60% 70% at 50% 50%, rgba(31, 84, 224, .26), transparent 72%), #03050F; padding: 0; }
.who-title { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 120px 20px 40px; }
.who-mid { text-align: center; padding: 20px; }
.who-q { font-size: clamp(30px, min(5vw, 8vh), 72px); color: #fff; }
.who-lines p { color: #C9D4F2; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.3; margin-top: 8px; }
.orbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px; }
.orb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: clamp(104px, min(13vw, 21vh), 190px); aspect-ratio: 1; border-radius: 26px; background: linear-gradient(150deg, #2556E6, #0F2472); box-shadow: 0 24px 60px rgba(31, 84, 224, .35); color: #fff; }
.orb b { font-size: clamp(14px, 1.3vw, 19px); font-weight: 700; text-align: center; line-height: 1.15; padding-inline: 6px; }
.orb-n { position: absolute; top: 10px; inset-inline-start: 12px; font-family: var(--mono); font-size: 12px; color: #BCD2FF; }
.orb-ic { display: grid; place-items: center; width: 44%; aspect-ratio: 1; }
.orb-ic svg { width: 100%; height: 100%; }
.orb-code { font-family: var(--mono); font-weight: 700; font-size: clamp(22px, 2.6vw, 38px); }
.who-end { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 80px); padding: 20px; flex-wrap: wrap; }
.who-cap h2 { font-size: clamp(40px, min(6vw, 11vh), 96px); color: #fff; }
.who-cap p { color: #C9D4F2; font-size: clamp(17px, 1.7vw, 24px); line-height: 1.4; margin-block: 8px 20px; max-width: 16em; }
.who-photo { height: auto; width: min(86vw, 440px); aspect-ratio: 1122 / 1402; border-radius: 24px; box-shadow: 0 30px 90px rgba(31, 84, 224, .4); display: block; }
/* with motion on, everything shares one screen */
.who.on { height: 100svh; overflow: hidden; }
.who.on .who-stage { position: absolute; inset: 0; }
.who.on .who-title, .who.on .who-mid, .who.on .who-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.who.on .who-title { padding: 0 20px; will-change: transform; }
.who.on .who-mid { pointer-events: none; }
.who.on .who-lines { position: relative; width: min(90vw, 560px); height: 2.8em; margin-top: 6px; font-size: clamp(18px, 2.2vw, 30px); }
.who.on .who-lines p { position: absolute; inset: 0; margin: 0; font-size: 1em; text-wrap: balance; }
.who.on .orbs { position: absolute; left: 50%; top: 50%; width: 0; height: 0; padding: 0; display: block; }
.who.on .orb { position: absolute; left: 0; top: 0; margin-inline-start: 0; translate: -50% -50%; will-change: transform; }
html[dir="rtl"] .who.on .orbs { direction: ltr; }
.who.on .who-end { flex-direction: row; padding: 84px 5vw 24px; }
.who.on .who-photo { height: min(76svh, 46vw * 1.25); width: auto; will-change: transform; }
@media (max-width: 759px) {
  .who.on .who-mid { justify-content: flex-end; padding-bottom: 12svh; }
  .who.on .who-end { flex-direction: column; flex-wrap: nowrap; gap: 14px; padding: 76px 20px 20px; justify-content: center; text-align: center; }
  .who.on .who-photo { order: -1; height: min(54svh, 112vw); }
  .who-cap p { margin-inline: auto; margin-block: 6px 12px; }
  .ttl { font-size: min(24vw, 21vh); }
}

/* code marks never break onto two lines */
.ch-code, .fs-tag, .ll-ic.code, .orb-code { white-space: nowrap; }
@media (max-width: 640px) {
  /* small cards: the number keeps clear of the icon, and two-line labels still fit */
  .orb { gap: 4px; padding-top: 16px; }
  .orb-ic { width: 36%; }
  .orb b { font-size: 13px; line-height: 1.1; }
}
