:root {
  --ink: #0B0B2E;
  --navy: #282860;
  --blue: #0063FF;
  --blue-2: #3D8BFF;
  --sky: #CFE6FF;
  --yellow: #FFBE19;
  --paper: #F5F7FC;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, .72);
  --muted-dark: #4A4A70;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(40, 40, 96, .14);
  --radius: 22px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Sora", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.ar { font-family: var(--font-ar); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 16px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255,190,25,.7); }
.btn--yellow:hover { background: #FFD04D; }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.5); color: var(--white); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 20px 34px; font-size: clamp(16px, 2.2vw, 22px); }
.btn span { transition: transform .3s; }
.btn:hover span { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--yellow);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--blue); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,190,25,.25); }
.h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.02; font-weight: 700; }
.h2--dark { color: var(--navy); }

/* ---------- Curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--blue);
  display: none; place-items: center;
}
.js .curtain { display: grid; }
.curtain__logo { width: min(240px, 50vw); opacity: 0; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; width: calc(100% - 2 * var(--gutter)); max-width: 1240px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(11, 11, 46, .35); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .4s;
}
.nav.is-solid { background: rgba(11, 11, 46, .82); }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--white); }
@media (max-width: 760px) { .nav__links { display: none; } .nav { padding-left: 16px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: 140px 0 110px;
}
.hero__bg {
  position: absolute; inset: -6%; background-size: cover; background-position: center;
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(11,11,46,.88) 0%, rgba(11,11,46,.6) 38%, rgba(11,11,46,.05) 72%),
    linear-gradient(0deg, rgba(11,11,46,.75) 0%, rgba(11,11,46,0) 30%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title {
  font-size: clamp(64px, 11vw, 190px); line-height: .92; font-weight: 800;
  letter-spacing: -.04em;
}
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--yellow); }
.hero__tagline { margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; color: var(--white); }
.hero__sub { max-width: 600px; margin-top: 16px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 900px) { .hero__veil { background: linear-gradient(0deg, rgba(11,11,46,.9), rgba(11,11,46,.45)); } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { width: 1.5px; height: 42px; background: linear-gradient(var(--yellow), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; padding: 20px 0; transform: rotate(-1.2deg) scale(1.02); position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 34px); white-space: nowrap; }
.marquee__track b { color: var(--blue); font-size: .7em; }

/* ---------- Intro: statement + arch photo ---------- */
.intro {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center;
  padding-top: clamp(110px, 15vw, 190px); padding-bottom: clamp(90px, 12vw, 150px);
}
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
.statement__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.3vw, 48px); line-height: 1.18; letter-spacing: -.02em;
}
.statement__text .word { color: rgba(255,255,255,.14); }
.arch { position: relative; margin: 0; aspect-ratio: 1180 / 986; }
.arch::before {
  content: ""; position: absolute; right: -4%; top: -7%; width: 46%; height: 9%;
  background: var(--yellow); border-radius: 4px;
}
.arch__bg, .arch__cut { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch__bg { border-radius: 24px; object-fit: cover; }
.arch__cut { z-index: 2; border-radius: 24px; }
.arch__shape { position: absolute; z-index: 1; left: -5%; top: 3%; width: 56%; fill: var(--yellow); transform-origin: 50% 100%; }

/* ---------- History: growth line ---------- */
.history { padding: 100px 0 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.history__head { margin-bottom: 20px; }
.history__stage { position: relative; }
.history__track { position: relative; height: min(56vh, 520px); aspect-ratio: 5 / 1; margin-left: var(--gutter); }
.history__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.history__ghost, .history__line { fill: none; stroke-width: 34; stroke-linecap: round; }
.history__ghost { stroke: rgba(255,255,255,.07); }
.history__line { stroke: var(--yellow); }
.ms { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.ms__dot {
  position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue); box-shadow: 0 0 0 6px rgba(255,255,255,.08);
  transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1);
}
.ms__card {
  position: absolute; inset-inline-start: -12px; width: 270px;
  padding-inline-start: 16px; border-inline-start: 2px solid var(--yellow);
  opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1);
}
.ms--up .ms__card { bottom: 34px; }
.ms--down .ms__card { top: 34px; }
.ms__year { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--blue-2); margin-bottom: 8px; }
.ms__card h3 { font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.ms__card p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.ms--now .ms__card { width: 330px; }
.ms--now .ms__card h3 { font-size: 26px; color: var(--white); }
.ms--now .ms__year { color: var(--yellow); }
.ms.is-on .ms__dot { transform: scale(1); }
.ms.is-on .ms__card { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .history { min-height: 0; padding-top: 30px; }
  .history__track { height: auto; aspect-ratio: auto; margin: 0 var(--gutter); padding-inline-start: 28px; }
  .history__track::before { content: ""; position: absolute; inset-inline-start: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--yellow)); transform-origin: top; transform: scaleY(var(--grow, 1)); }
  .history__svg { display: none; }
  .ms { position: relative; width: auto; height: auto; margin-bottom: 36px; left: auto !important; top: auto !important; right: auto !important; }
  .ms__dot { left: -30px; top: 8px; transform: scale(1); }
  .ms__year { font-size: 30px; }
  .ms__card, .ms--now .ms__card { position: static; width: auto; opacity: 1; transform: none; text-align: start; border: 0; padding: 0; }
}

/* ---------- Lessons (light) ---------- */
.lessons, .services, .process { background: var(--paper); color: var(--navy); }
.lessons { padding: clamp(90px, 12vw, 160px) 0 60px; border-radius: 40px 40px 0 0; }
.lessons__list { list-style: none; padding: 0; margin: 60px 0 0; }
.lesson {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start;
  padding: 34px 0; border-top: 1px solid var(--line-dark);
}
.lesson:last-child { border-bottom: 1px solid var(--line-dark); }
.lesson__n { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--blue); padding-top: 10px; }
.lesson h3 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.08; margin-bottom: 10px; }
.lesson p { color: var(--muted-dark); max-width: 620px; }
@media (max-width: 600px) { .lesson { grid-template-columns: 1fr; gap: 6px; } .lesson__n { padding-top: 0; } }

/* ---------- Services ---------- */
.services { padding: 100px 0 clamp(90px, 12vw, 150px); }
.services__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.services__intro { max-width: 400px; color: var(--muted-dark); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 32px 28px 34px; min-height: 250px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, background .4s, color .4s;
}
.svc:hover { transform: translateY(-6px); background: var(--blue); color: var(--white); box-shadow: 0 30px 60px -30px rgba(0,99,255,.6); }
.svc:hover p { color: rgba(255,255,255,.85); }
.svc:hover .svc__icon { background: var(--yellow); color: var(--ink); }
.svc__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(0,99,255,.1); color: var(--blue); font-size: 22px; margin-bottom: 46px;
  transition: background .4s, color .4s;
}
.svc h3 { font-size: 23px; margin-bottom: 10px; }
.svc p { color: var(--muted-dark); font-size: 16px; transition: color .4s; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(100px, 13vw, 170px) 0; overflow: hidden; background: var(--ink); }
.gallery__head { margin-bottom: 70px; }
.gallery__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 0 var(--gutter); max-width: 1400px; margin: 0 auto;
}
.gcol { display: flex; flex-direction: column; gap: 18px; }
.gcol:nth-child(2) { margin-top: 80px; }
.gcol img { width: 100%; border-radius: 18px; object-fit: cover; }
.gcol img { aspect-ratio: 3 / 4; }
.gcol:nth-child(2) img { aspect-ratio: 2 / 3; }
@media (max-width: 700px) {
  .gallery__cols { grid-template-columns: 1fr 1fr; }
  .gcol:nth-child(3) { display: none; }
  .gcol:nth-child(2) { margin-top: 40px; }
}

/* ---------- About ---------- */
.about { background: var(--ink); padding: 0 0 clamp(100px, 13vw, 170px); }
.about__grid { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.about__copy { max-width: 520px; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.about__photo { margin: 0 auto; }
.about__frame { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; }
.about__frame img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 700px) { .about__frame { aspect-ratio: 16 / 10; border-radius: 20px; } }

/* ---------- Founders ---------- */
.founders {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
  background: var(--blue); border-radius: 32px; padding: clamp(32px, 5vw, 72px);
}
@media (max-width: 640px) { .founders { grid-template-columns: 1fr; } }
.founder__photo { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-bottom: 34px; }
.founder__block { position: absolute; inset: 9% -7% -7% 9%; background: var(--yellow); }
.founder__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); clip-path: inset(0% 0% 0% 0%); }
.founder h3 { font-size: clamp(30px, 3.4vw, 46px); }
.founder__role { font-family: var(--font-display); font-weight: 600; color: var(--yellow); margin-top: 4px; }
.founder__bio { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 34ch; }
.about__label { margin: clamp(70px, 9vw, 110px) 0 24px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); }

/* ---------- Process ---------- */
.process { padding: clamp(90px, 12vw, 150px) 0; border-radius: 40px 40px 0 0; }
.process__rail { position: relative; height: 3px; background: var(--line-dark); border-radius: 3px; margin: 64px 0 40px; overflow: hidden; }
.process__bar { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--yellow)); transform-origin: left; transform: scaleX(0); }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 900px) { .process__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process__steps { grid-template-columns: 1fr; } }
.step__n { display: inline-block; font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: 15px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(0,99,255,.1); }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { color: var(--muted-dark); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; text-align: center; background: var(--blue); }
.cta__bg { position: absolute; inset: -10%; background-size: cover; background-position: center; opacity: .55; mix-blend-mode: screen; }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,60,190,.35), rgba(11,11,46,.75)); }
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(56px, 11vw, 170px); line-height: .92; font-weight: 800; letter-spacing: -.05em; }
.cta__sub { max-width: 560px; margin: 30px 0 40px; color: rgba(255,255,255,.88); font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__tag { margin-top: 16px; color: var(--muted); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { text-decoration: none; color: var(--muted); }
.footer__links a:hover { color: var(--white); }
.footer__legal { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer__legal strong { color: var(--white); }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(255,255,255,.5); }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
  .statement__text .word { color: inherit; }
}
