/* ==========================================================================
   VEGA — public site styles
   Loaded after Bootstrap 5.3. Sections:
   1. Fonts & tokens   2. Bootstrap theme bridge   3. Base
   4. Buttons          5. Header & nav             6. Home
   7. Inner pages      8. Work & projects          9. Contact
   10. Footer & misc   11. Animations              12. Responsive
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --art-hero: url("../images/hero.webp");
  --art-about: url("../images/about.webp");
  --art-services: url("../images/services.webp");

  --ink: #0a080f;
  --base: #0b0911;
  --surface: #140f1f;
  --white: #f7f6fa;
  --lav: #cdbafa;
  --violet: #784cef;
  --silver: #d0cdd4;
  --muted: #c2b9d0;
  --line: #d5c1ff2d;

  --pad: clamp(20px, 5.1vw, 88px);
  --max: 1540px;
  --radius: 14px;
  --font: "Montserrat", Arial, sans-serif;
  --arabic: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Bootstrap theme bridge ---------------------------------------------- */
[data-bs-theme=dark] {
  --bs-body-bg: var(--base);
  --bs-body-color: var(--white);
  --bs-body-font-family: var(--font);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-primary: var(--violet);
  --bs-primary-rgb: 120, 76, 239;
  --bs-link-color: var(--lav);
  --bs-link-hover-color: #fff;
  --bs-gutter-x: 1.5rem;
}
html[lang=ar] { --bs-body-font-family: var(--arabic); }

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--base); color: var(--white); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
html[lang=ar] body { font-family: var(--arabic); font-size: 17px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 5px; }
::selection { background: #784cef88; color: #fff; }

.skip { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: inherit; font-weight: 700; line-height: 1.06; letter-spacing: -.053em; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.8vw, 111px); }
h2 { font-size: clamp(34px, 4.65vw, 72px); }
h3 { font-size: clamp(18px, 2vw, 28px); letter-spacing: -.035em; }
em { font-style: normal; color: var(--lav); }
html[lang=ar] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.18; font-weight: 600; }
html[lang=ar] h1 { font-size: clamp(47px, 6.8vw, 108px); }

.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--lav); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 1px; background: currentColor; display: block; flex: 0 0 auto; }
html[lang=ar] .eyebrow { font-size: 13px; letter-spacing: 0; }
.lead { font-size: clamp(15px, 1.34vw, 20px); font-weight: 400; line-height: 1.67; color: var(--muted); max-width: 38rem; }
.muted { color: var(--muted); }
.actions, .direct-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.index { font-size: 12px; color: #c7a8fa; font-weight: 700; letter-spacing: .06em; direction: ltr; }
.glint { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; background: #d2b9ff; transform: rotate(45deg); border-radius: 2px; }

/* 4. Buttons (Bootstrap .btn + VEGA variants) ----------------------------- */
.btn {
  --bs-btn-padding-x: 17px;
  --bs-btn-padding-y: 10px;
  --bs-btn-font-size: 13px;
  --bs-btn-font-weight: 700;
  --bs-btn-line-height: 1.3;
  --bs-btn-border-radius: 40px;
  --bs-btn-focus-box-shadow: 0 0 0 .2rem #cdbafa55;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 46px; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { width: 15px; height: 15px; flex: 0 0 15px; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translate(2px, -2px); }
html[dir=rtl] .btn .arr { transform: scaleX(-1); }
html[dir=rtl] .btn:hover .arr { transform: scaleX(-1) translate(2px, -2px); }

.btn-vega {
  --bs-btn-color: #171020; --bs-btn-bg: var(--white); --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #171020; --bs-btn-hover-bg: var(--lav); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #171020; --bs-btn-active-bg: #b9a0f5; --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: #171020; --bs-btn-disabled-bg: var(--silver); --bs-btn-disabled-border-color: transparent;
}
.btn-glass {
  --bs-btn-color: var(--white); --bs-btn-bg: #c8b5ff13; --bs-btn-border-color: #dfceff54;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #b48bff32; --bs-btn-hover-border-color: #e5d7ff80;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #b48bff45; --bs-btn-active-border-color: #e5d7ff80;
  backdrop-filter: blur(12px);
}
.btn-ink {
  --bs-btn-color: var(--white); --bs-btn-bg: #190f2d; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #3d2570; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #2b1a52; --bs-btn-active-border-color: transparent;
}

/* 5. Header & nav --------------------------------------------------------- */
.site-header { position: fixed; z-index: 1030; top: 16px; inset-inline: 0; pointer-events: none; transition: top .3s var(--ease); }
.nav-shell {
  pointer-events: auto; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 65px; padding: 8px 12px 8px 17px; border: 1px solid #ddccff2a; border-radius: 19px;
  background: #100d19df; backdrop-filter: blur(20px); box-shadow: 0 10px 40px #05030b4c;
  transition: min-height .3s var(--ease), background .3s, box-shadow .3s;
}
.site-header.scrolled { top: 8px; }
.site-header.scrolled .nav-shell { min-height: 56px; background: #0e0b16f2; box-shadow: 0 14px 50px #05030b80; }

.logo { color: var(--white); flex: 0 0 auto; width: 124px; display: inline-block; --mark: var(--lav); direction: ltr; }
.logo svg { width: 100%; height: auto; }

.nav-actions, #navigation { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 36px); }
.nav-actions { gap: 12px; }
#navigation > a { position: relative; color: #e6dfef; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 8px 0; }
#navigation > a::after { content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: #ae89fa; transform: scaleX(0); transition: transform .25s var(--ease); }
#navigation > a:hover, #navigation > a[aria-current=page] { color: #fff; }
#navigation > a:hover::after, #navigation > a[aria-current=page]::after { transform: scaleX(1); }
html[lang=ar] #navigation > a { font-size: 14px; }
.mobile-contact { display: none; }

.nav-cta { min-height: 39px; --bs-btn-padding-y: 8px; --bs-btn-padding-x: 13px; }
#language { padding: 9px 3px; color: #e2d1fc; font-size: 13px; font-weight: 600; }
#language:hover { color: #fff; }
#menu { display: none; }

/* 6. Home ----------------------------------------------------------------- */
.hero { position: relative; min-height: clamp(680px, 85vh, 1020px); isolation: isolate; display: grid; align-items: center; background: #0c0814; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-photo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--art-hero) center / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0814b0 0%, transparent 60%); }
html[dir=rtl] .hero-photo::after { background: linear-gradient(90deg, #0c0814b0 0%, transparent 60%); }
.hero-inner { padding-block: 147px 100px; }
.hero h1 { font-size: clamp(63px, 7.4vw, 120px); line-height: .97; font-weight: 800; letter-spacing: -.075em; max-width: 790px; margin-block: 23px 21px; }
.hero h1 em { color: #ceb8ff; }
.hero .lead { max-width: 490px; color: #e4dced; }
.hero .actions { margin-top: 28px; }
.hero-scroll { position: absolute; bottom: 27px; inset-inline-start: var(--pad); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--lav); animation: bob 2.4s ease-in-out infinite; }
.hero-scroll:hover { border-color: var(--lav); }
html[dir=rtl] .hero-inner { direction: rtl; margin-inline: auto; }
html[dir=rtl] .hero-inner > * { margin-inline-start: 0; margin-inline-end: auto; width: fit-content; max-width: min(53vw, 720px); text-align: right; }
html[dir=rtl] .hero-photo { transform: scaleX(-1); }
html[lang=ar] .hero h1 { font-size: clamp(53px, 7.15vw, 107px); letter-spacing: 0; line-height: 1.05; }

.reel { padding-block: 35px; }
.reel-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 16px; }
.reel-heading h2 { font-size: clamp(25px, 3vw, 46px); }
.reel-heading .eyebrow { margin-bottom: 6px; }
.reel-media { position: relative; isolation: isolate; aspect-ratio: 2.26; overflow: hidden; background: #110c1c; border: 1px solid #cfb8fc38; border-radius: var(--radius); }
.reel-media img, .reel-media video { width: 100%; height: 100%; object-fit: cover; }
.reel-media video { background: #060509; object-fit: contain; }
.reel-tag { position: absolute; inset-inline-end: 18px; bottom: 17px; background: #14101bbd; border: 1px solid #f3e9ff4d; border-radius: 30px; padding: 8px 14px; display: flex; gap: 14px; align-items: center; font-size: 12px; color: #f4eaff; backdrop-filter: blur(10px); }

.signal-chapter { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 6vw, 100px); align-items: center; padding-block: clamp(75px, 11vw, 165px); position: relative; isolation: isolate; border-top: 1px solid var(--line); }
.signal-editorial h2 { margin-block: 18px 22px; }
.signal-editorial .lead { max-width: 425px; }
.signal-focus { margin-top: 23px; }
.signal-stage { position: relative; width: 100%; min-width: 0; min-height: 385px; aspect-ratio: 1.6; border-radius: 23px; border: 1px solid #c3a4ff44; background: radial-gradient(ellipse at center, #351c5d7a, #100b1b 73%); overflow: hidden; box-shadow: 0 18px 85px #06030d59; }
.signal-stage canvas { position: absolute; width: 100%; height: 100%; inset: 0; }
.signal-top, .signal-status { position: absolute; inset-inline: 24px; display: flex; align-items: center; gap: 10px; color: #e2d2ff; font-size: 11px; font-weight: 600; }
.signal-top { top: 19px; }
.signal-status { bottom: 16px; justify-content: end; min-height: 18px; }
.signal-stage-control { position: absolute; inset-inline: 23px; bottom: 41px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 10px 13px; background: #150e23e0; border: 1px solid #e1ceff51; border-radius: 12px; font-size: 11px; font-weight: 600; }
.signal-stage-control input { width: 100%; min-width: 0; accent-color: #c8a8ff; cursor: ew-resize; direction: ltr; margin: 0; }
.signal-percentage { font-variant-numeric: tabular-nums; min-width: 32px; text-align: end; direction: ltr; }

.home-about, .about-intro, .service-intro { position: relative; isolation: isolate; overflow: hidden; color: #181120; background: #f4f1f7; }
.home-about { min-height: clamp(450px, 48vw, 670px); display: flex; align-items: center; }
.home-about-photo, .about-intro::before, .service-intro::before { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52%; z-index: -1; pointer-events: none; background-size: cover; background-repeat: no-repeat; background-position: 70% center; }
.home-about-photo, .about-intro::before { background-image: var(--art-about); }
.about-intro::before, .service-intro::before { content: ""; }
.service-intro::before { background-image: var(--art-services); background-position: 77% center; }
.home-about-content { padding-block: 92px; }
.home-about h2 { margin-block: 19px 20px; }
.home-about :is(h2, .lead), .about-intro :is(h1, .lead), .service-intro :is(h1, .lead) { max-width: min(39vw, 580px); }
.home-about .lead { color: #41384e; }
.home-about .eyebrow { color: #5939a4; }
.home-about .btn { margin-top: 24px; }
.about-intro .lead, .service-intro .lead { color: #3c3248; }
html[dir=rtl] .home-about-photo, html[dir=rtl] :is(.about-intro, .service-intro)::before { transform: scaleX(-1); }

.expertise { padding-block: clamp(70px, 9vw, 133px); }
.expertise-layout { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(25px, 8vw, 133px); margin-top: 25px; }
.expertise h2 { max-width: 590px; }
.expertise-layout .btn { margin-top: 24px; }

.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service summary { display: grid; grid-template-columns: 45px 1fr 22px; align-items: center; gap: 14px; list-style: none; cursor: pointer; min-height: 76px; padding-block: 15px; }
.service summary::-webkit-details-marker { display: none; }
.service summary h3 { transition: color .2s; }
.service summary:hover h3, .service[open] summary h3 { color: var(--lav); }
.plus { display: block; width: 17px; height: 17px; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 8px 0 auto; height: 1px; background: var(--lav); }
.plus::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.service[open] .plus::after { transform: rotate(0); }
.service-copy { color: var(--muted); padding: 0 29px 20px 59px; font-size: 15px; }
html[dir=rtl] .service-copy { padding: 0 59px 20px 29px; }
.service[open] .service-copy { animation: fadeUp .35s var(--ease); }
.service-copy .scope { margin-top: 8px; color: #e9dfff; }
.service-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--lav); font-size: 13px; font-weight: 700; }
.service-link .arr { width: 13px; height: 13px; }
.service-link:hover { color: #fff; }
html[dir=rtl] .service-link .arr { transform: scaleX(-1); }

.work-teaser { padding: 40px 0 70px; border-top: 1px solid var(--line); }
.work-teaser-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; }
.work-teaser h2 { margin-top: 12px; }

.contact-band { background: radial-gradient(ellipse at 68% 112%, #7245ba7a, transparent 68%), linear-gradient(108deg, #171020, #231436 75%, #181023); border-block: 1px solid #ceb5ff28; }
.contact-band-inner { padding-block: clamp(40px, 7vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.contact-band h2 { font-size: clamp(32px, 5vw, 76px); }

/* 7. Inner pages ---------------------------------------------------------- */
.intro { padding-block: clamp(145px, 16vw, 235px) 105px; position: relative; }
.intro h1 { max-width: 800px; }
.intro .lead { margin-top: 24px; }

.about-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 7vw, 110px); padding-block: clamp(60px, 10vw, 120px); }
.about-story h2 { margin-top: 15px; }
.about-story .muted { margin-top: 20px; max-width: 36rem; }
.principles { padding-bottom: clamp(65px, 9vw, 120px); }
.steps { margin-top: 12px; }
.step { height: 100%; border-top: 1px solid var(--line); padding-top: 14px; transition: border-color .3s; }
.step:hover { border-color: var(--lav); }
.step h3 { margin: 10px 0; }
.step p { font-size: 14px; color: var(--muted); }

.services-page { padding-block: 70px 110px; }
.services-page .services-list { margin-top: 25px; max-width: 1080px; }
.services-page .service summary { min-height: 91px; }


/* 8. Work & projects ------------------------------------------------------ */
.work-intro { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 75% 18%, #42266b, #1b1229 73%); border-bottom: 1px solid var(--line); }
.work-intro-mark { position: absolute; z-index: -1; inset-inline-end: 12%; top: 90px; width: min(37vw, 570px); aspect-ratio: 226 / 262; height: auto; transform: rotate(-8deg); opacity: .12; --mark: #d3baff; filter: drop-shadow(0 0 35px #a684ff77); }

.portfolio { padding-block: 40px 100px; }
.portfolio-empty { display: grid; grid-template-columns: .7fr 1fr; align-items: center; gap: clamp(26px, 8vw, 120px); padding-block: 45px; border-block: 1px solid var(--line); }
.portfolio-empty .lead { margin-top: 15px; }
.portfolio-empty .btn { margin-top: 24px; }
.work-orb { display: grid; place-items: center; min-height: 220px; width: 100%; background: radial-gradient(ellipse, #452b6c 0%, #1b122c 46%, transparent 72%); }
.work-orb svg { width: 113px; height: 130px; --mark: #e4d4ff; filter: drop-shadow(0 0 12px #b289ff); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: #ffffff08; color: var(--muted); border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 600; transition: all .2s; }
.chip:hover { color: #fff; border-color: #e5d7ff80; }
.chip.active { background: var(--white); color: #171020; border-color: transparent; }
.portfolio-grid > .is-hidden { display: none; }

.project-card { display: block; height: 100%; }
.project-thumb { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1.5; background: radial-gradient(ellipse at center, #51317b, #1b1128); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-blank { width: 100%; height: 100%; display: grid; place-items: center; }
.project-blank svg { width: 70px; aspect-ratio: 226 / 262; height: auto; --mark: #e4d4ff; opacity: .6; }
.project-open { position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: #171020; opacity: 0; transform: scale(.7); transition: all .3s var(--ease); }
.project-open .arr { width: 15px; height: 15px; }
html[dir=rtl] .project-open .arr { transform: scaleX(-1); }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-card:hover .project-open, .project-card:focus-visible .project-open { opacity: 1; transform: scale(1); }
.project-meta { padding-top: 14px; }
.project-meta h3 { margin-bottom: 4px; transition: color .2s; }
.project-card:hover h3 { color: var(--lav); }
.project-meta span { color: var(--muted); font-size: 13px; }

.client-strip { margin-top: 70px; padding-top: 45px; border-top: 1px solid var(--line); }
.client-strip h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 50px); }
.client-card { display: grid; place-items: center; height: 120px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff05; color: var(--lav); font-weight: 600; text-align: center; transition: background .25s, border-color .25s; }
.client-card img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .8; transition: all .25s; }
a.client-card:hover, .client-card:hover { background: #ffffff0d; border-color: #e5d7ff60; }
.client-card:hover img { filter: none; opacity: 1; }

.project-hero { padding-block: clamp(130px, 13vw, 190px) 40px; }
.project-hero h1 { margin-top: 16px; font-size: clamp(42px, 6vw, 96px); }
.back-link { display: inline-flex; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.back-link:hover { color: #fff; }
.project-facts { display: grid; gap: 14px; margin: 0; }
.project-facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-weight: 400; font-size: 13px; }
.project-facts dd { margin: 0; font-weight: 600; }
.project-cover img { width: 100%; max-height: 82vh; object-fit: cover; border-radius: 18px; cursor: zoom-in; }
.project-body { padding-block: 50px 90px; }
.project-description { max-width: 46rem; }
.project-gallery { margin-top: 40px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.related { padding-bottom: 90px; }
.related-title { font-size: clamp(26px, 3vw, 44px); margin-bottom: 24px; padding-top: 40px; border-top: 1px solid var(--line); }

.lightbox .modal-content { background: #07050be8; backdrop-filter: blur(8px); display: grid; place-items: center; border: 0; border-radius: 0; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; object-fit: contain; border-radius: 10px; }
.lightbox .btn-close { position: absolute; top: 22px; inset-inline-end: 22px; z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff10; color: #fff; font-size: 28px; line-height: 1; }
.lightbox-nav:hover { background: #ffffff25; }
.lightbox-nav.prev { inset-inline-start: 20px; }
.lightbox-nav.next { inset-inline-end: 20px; }
html[dir=rtl] .lightbox-nav { transform: scaleX(-1); }
.lightbox-count { position: absolute; bottom: 20px; color: var(--muted); font-size: 13px; direction: ltr; }

/* 9. Contact -------------------------------------------------------------- */
.contact-page { position: relative; padding-block: clamp(130px, 14vw, 215px) 100px; display: grid; grid-template-columns: 1fr .9fr; gap: clamp(28px, 7vw, 110px); isolation: isolate; }
.contact-page::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--pad) * -1) auto; height: 780px; background: radial-gradient(ellipse at 12% 40%, #4c2b826e, transparent 58%); pointer-events: none; }
.contact-page h1 { font-size: clamp(41px, 5.5vw, 90px); margin-block: 17px 24px; }
.contact-page .direct-links { margin-top: 23px; }
.contact-cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; max-width: 420px; }
.contact-cards li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff05; }
.contact-cards span { color: var(--muted); font-size: 13px; }
.contact-cards a { font-weight: 600; }
.contact-cards a:hover { color: var(--lav); }

.brief { align-self: start; padding: clamp(20px, 3vw, 40px); border-radius: 20px; border: 1px solid var(--line); background: #191222ba; backdrop-filter: blur(10px); box-shadow: 0 20px 70px #05030b55; }
.brief h2 { font-size: clamp(25px, 3vw, 40px); margin-bottom: 22px; }
.brief .form-label { color: #eee2fd; font-size: 14px; margin-bottom: 6px; }
.brief .form-control, .brief .form-select {
  --bs-body-bg: #0e0a16;
  min-height: 44px; color: #fff; background-color: #0e0a16; border-color: #cdb5f54d; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.brief .form-control:focus, .brief .form-select:focus { border-color: var(--lav); box-shadow: 0 0 0 .2rem #cdbafa30; }
.brief .form-control::placeholder { color: #8c829b; }
.brief .was-validated .form-control:valid, .brief.was-validated .form-control:valid, .brief.was-validated .form-select:valid { border-color: #cdb5f54d; background-image: none; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.brief .alert { border-radius: 12px; font-size: 14px; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 10. Footer & misc ------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, #0d0a14, #08060c); color: #c4b6d1; }
.footer-top { padding-block: 56px 36px; }
.footer-about { max-width: 360px; font-size: 14px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); margin-bottom: 14px; }
html[lang=ar] .footer-title { letter-spacing: 0; font-size: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-list a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.copyright { white-space: nowrap; direction: ltr; }

.to-top { position: fixed; z-index: 1020; bottom: 22px; inset-inline-end: 22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #dfceff54; background: #140f1fd9; color: var(--lav); backdrop-filter: blur(10px); transition: transform .2s, background .2s; }
.to-top:hover { transform: translateY(-3px); background: #2a1b47; }

/* 11. Animations ---------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-anim { animation: fadeUp .8s var(--ease) both; }
.hero-anim:nth-child(2) { animation-delay: .08s; }
.hero-anim:nth-child(3) { animation-delay: .16s; }
.hero-anim:nth-child(4) { animation-delay: .24s; }

html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Loading screen (views/partials/preloader.php) */
.preloader { display: none; }
html.js .preloader {
  position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center;
  background: radial-gradient(ellipse 55% 45% at 50% 45%, #2c1a4f 0%, transparent 70%), var(--ink);
  transition: opacity .7s var(--ease), visibility .7s;
  animation: preloader-failsafe 0s 8s forwards; /* never stuck, even if JS fails */
}
html.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; transition: transform .7s var(--ease), opacity .5s; }
html.is-loaded .preloader-inner { transform: scale(.94); opacity: 0; }
.preloader-orb { position: relative; display: grid; place-items: center; width: 132px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #452b6c 0%, #1b122c 60%, transparent 72%); }
.preloader-orb > svg { width: 52px; height: 60px; --mark: #e4d4ff; filter: drop-shadow(0 0 14px #b289ff); animation: preloader-pulse 1.6s ease-in-out infinite; }
.preloader-ring { position: absolute; inset: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, transparent 0 60%, var(--lav) 85%, #fff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 1.1s linear infinite; }
.preloader-ring.is-slow { inset: -14px; opacity: .35; animation-duration: 3s; animation-direction: reverse; }
.preloader-word { width: 112px; height: 37px; --mark: var(--lav); opacity: .9; animation: fadeUp .8s .1s var(--ease) both; }
.preloader-bar { width: 160px; height: 2px; border-radius: 2px; background: #d5c1ff26; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--lav)); transform-origin: left; animation: preloader-fill 1.2s var(--ease) forwards; }
[dir=rtl] .preloader-bar span { transform-origin: right; }
/* Next pages in the same visit: a short fade only, no logo */
html.loader-quick .preloader { transition-duration: .35s; }
html.loader-quick .preloader-inner { display: none; }
/* Keep the hero intro animation for after the loader disappears */
html.js:not(.is-loaded) .hero-anim { animation-play-state: paused; }

/* Thin progress bar while the next page loads */
.page-progress { position: fixed; top: 0; inset-inline: 0; z-index: 3001; height: 3px; pointer-events: none; opacity: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--violet), var(--lav)); box-shadow: 0 0 12px #b289ff; }
[dir=rtl] .page-progress { transform-origin: right; }
html.is-navigating .page-progress { opacity: 1; animation: page-progress 6s cubic-bezier(.1, .7, .2, 1) forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes preloader-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes page-progress { 0% { transform: scaleX(0); } 15% { transform: scaleX(.4); } 100% { transform: scaleX(.92); } }

/* 12. Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-actions { gap: 9px; }
  #navigation { gap: 17px; }
  .nav-shell { gap: 13px; }
  .signal-stage { min-height: 340px; }
  .service summary { grid-template-columns: 32px 1fr 18px; gap: 12px; }
  .service-copy { padding-inline-start: 44px; }
  .hero { min-height: 700px; }
}

@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero-photo { position: relative; z-index: auto; height: clamp(275px, 57vw, 460px); background-position: 76% 46%; }
  .hero-photo::after { display: none; }
  .hero-inner { padding-block: 26px 72px; }
  html[dir=rtl] .hero-inner > * { max-width: 100%; }
  .home-about { display: block; min-height: 0; }
  .home-about-photo, .about-intro::before, .service-intro::before { position: relative; inset: auto; display: block; width: 100%; height: clamp(225px, 53vw, 370px); z-index: auto; }
  .home-about-photo { background-position: 68% center; }
  .home-about-content { padding-block: 42px 48px; }
  .about-intro .intro, .service-intro .intro { padding-block: 36px 50px; }
  .about-intro::before, .service-intro::before { margin-top: 76px; }
  .home-about :is(h2, .lead), .about-intro :is(h1, .lead), .service-intro :is(h1, .lead) { max-width: 100%; }
  .contact-page { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-header { top: 9px; }
  .nav-shell { min-height: 56px; padding: 6px 8px 6px 12px; border-radius: 13px; }
  .logo { width: 99px; }
  .nav-cta { display: none; }
  .nav-actions { gap: 12px; }
  #menu { display: grid; width: 36px; height: 36px; padding: 9px 7px; align-content: center; gap: 5px; background: #ffffff0c; border: 1px solid var(--line); border-radius: 8px; }
  #menu span { height: 1px; background: #eee1ff; width: 100%; transition: transform .25s; }
  #menu[aria-expanded=true] span:first-child { transform: translateY(3px) rotate(45deg); }
  #menu[aria-expanded=true] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  #navigation { display: none; position: absolute; inset-inline: 0; top: calc(100% + 8px); padding: 10px 16px; background: #140e20f7; border: 1px solid var(--line); border-radius: 13px; align-items: stretch; box-shadow: 0 20px 50px #05030b80; }
  #navigation.open { display: grid; gap: 0; animation: fadeUp .25s var(--ease); }
  #navigation > a { padding: 12px 1px; font-size: 14px; border-bottom: 1px solid var(--line); }
  #navigation > a::after { display: none; }
  #navigation > a:last-child { border-bottom: 0; }
  #navigation > a[aria-current=page] { color: var(--lav); }
  #navigation.open .mobile-contact { display: block; }

  .hero h1 { font-size: clamp(49px, 11vw, 77px); margin-block: 14px 15px; line-height: 1.01; }
  .hero .lead { max-width: 100%; font-size: 14px; }
  .hero .actions { margin-top: 19px; gap: 8px; }
  .hero .btn { min-height: 42px; --bs-btn-padding-x: 12px; --bs-btn-font-size: 11px; }
  html[lang=ar] .hero h1 { font-size: clamp(48px, 11vw, 75px); }
  .hero-scroll { bottom: 20px; width: 32px; height: 32px; }

  .reel { padding-block: 23px 12px; }
  .reel-heading { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .reel-heading .eyebrow { display: none; }
  .reel-media { aspect-ratio: 1.66; border-radius: 12px; }
  .reel-tag { inset-inline-end: 9px; bottom: 9px; font-size: 10px; padding: 5px 9px; }

  .signal-chapter, .expertise-layout, .about-story { grid-template-columns: minmax(0, 1fr); }
  .signal-chapter { padding-block: 65px; gap: 24px; }
  .signal-stage { min-height: 300px; aspect-ratio: 1.25; border-radius: 15px; }
  .signal-top, .signal-status { inset-inline: 13px; }
  .signal-stage-control { inset-inline: 11px; font-size: 10px; gap: 7px; padding-inline: 8px; }
  .signal-editorial h2 { margin-block: 13px; }
  .signal-focus { margin-top: 16px; }

  .home-about h2 { margin-block: 11px 12px; }
  .home-about .btn { margin-top: 15px; }
  .expertise { padding-block: 58px; }
  .expertise-layout { gap: 24px; margin-top: 12px; }
  .expertise-layout .btn { margin-top: 16px; }
  .service summary { min-height: 66px; }
  .service-copy { font-size: 14px; }

  .work-teaser-head, .contact-band-inner { flex-direction: column; align-items: flex-start; gap: 17px; }
  .work-teaser { padding-block: 27px 55px; }
  .intro { padding-block: 130px 66px; }
  .intro h1 { font-size: clamp(46px, 11vw, 66px); }
  .intro .lead { margin-top: 12px; }
  .about-story { gap: 18px; padding-block: 53px; }
  .principles { padding-bottom: 60px; }
  .services-page { padding-block: 46px 70px; }
  .services-page .service summary { min-height: 73px; }
  .portfolio { padding-bottom: 60px; }
  .portfolio-empty { grid-template-columns: 1fr; gap: 16px; padding: 22px 0; }
  .work-orb { min-height: 150px; }
  .work-orb svg { width: 80px; height: 96px; }
  .contact-page { padding-block: 112px 55px; }
  .contact-page h1 { margin-block: 13px 15px; }
  .project-hero { padding-block: 110px 24px; }
  .footer-top { padding-block: 40px 28px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .to-top { bottom: 14px; inset-inline-end: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
