/* ============================================================
   TOP TECH — Concept 4 · "Orbit"
   One particle universe, five shapes, zero boring pixels.
   ============================================================ */

:root {
  --void: #08040f;
  --void-2: #0e0820;
  --ink: #1c1133;
  --purple: #452c7b;
  --purple-vivid: #6c47c4;
  --bone: #f5f2ec;
  --bone-dim: #b7aed1;
  --accent: #f9b527;
  --line: rgba(245, 242, 236, 0.12);
  --font-display: "Archivo", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; }

/* ---------- WebGL canvas + atmosphere ---------- */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(8, 4, 15, 0.92) 0%,
      rgba(8, 4, 15, 0) 20%,
      rgba(8, 4, 15, 0) 68%,
      rgba(8, 4, 15, 0.9) 100%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(8, 4, 15, 0.85) 100%);
}


.grain { display: none; }

main { position: relative; z-index: 3; }

/* ---------- Preloader (logo reveal + amber curtain wipe) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader__inner { position: relative; z-index: 2; text-align: center; }
.loader__logo { display: flex; justify-content: center; overflow: hidden; padding-top: 1rem; }
.loader__logo img {
  width: clamp(170px, 28vw, 280px);
  display: block;
  transform: translateY(115%); /* slides up into view in the intro */
}
.loader__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.loader__pct {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.loader__bar {
  width: min(280px, 60vw);
  height: 2px;
  margin: 1rem auto 0;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}
.loader__curtain {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  z-index: 1;
}

/* ---------- Progress + cursor ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 800;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--purple-vivid), var(--accent));
  transform-origin: left;
  transform: scaleX(0);
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 850;
  pointer-events: none;
}
.cursor__dot {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--accent);
}
.cursor__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  margin: -18px;
  border-radius: 50%;
  border: 1px solid rgba(249, 181, 39, 0.55);
  display: grid;
  place-items: center;
  transition: width 0.3s var(--ease-expo), height 0.3s var(--ease-expo),
              margin 0.3s var(--ease-expo), background-color 0.3s, border-color 0.3s;
}
.cursor__label {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor.is-active .cursor__ring {
  width: 58px;
  height: 58px;
  margin: -29px;
  background: rgba(249, 181, 39, 0.12); /* see-through so it never hides content */
  border-color: var(--accent);
  border-width: 1.5px;
}
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  isolation: isolate;
}
/* gradient backing so the nav stays legible over the hero type / particles */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 170px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 4, 15, 0.85) 0%, rgba(8, 4, 15, 0) 100%);
}
.header__nav a, .header__back { text-shadow: 0 1px 10px rgba(8, 4, 15, 0.7); }
.header__logo img { height: 38px; width: auto; }
.header__nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.header__nav a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-expo);
}
.header__nav a:hover { color: var(--bone); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  display: inline-block;
}
@media (max-width: 720px) {
  .header__nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.2rem, 4vw, 3rem) clamp(2rem, 5vh, 4rem);
}
.hero__kicker {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 2rem;
}
.hero__kicker em { color: var(--accent); font-style: normal; }
.hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(249, 181, 39, 0.6);
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 181, 39, 0.5); }
  100% { box-shadow: 0 0 0 12px rgba(249, 181, 39, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(3.2rem, 12.5vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; }
.split { display: inline-block; }
.split .char { display: inline-block; will-change: transform; }
.split--outline .char {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.hero__dot { color: var(--accent); }
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.hero__blurb {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 34ch;
}
.reveal-line { overflow: hidden; }
.reveal-line > span { display: inline-block; }
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.hero__scroll-track {
  width: 1px;
  height: 56px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-thumb {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scrollHint 1.8s var(--ease-expo) infinite;
}
@keyframes scrollHint {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: clamp(3rem, 8vh, 5rem) 0;
  /* overflow:clip clips visually without creating a scroll-container — avoids the
     Chrome/WebKit compositor bug where GPU-composited children (will-change:transform)
     become invisible inside an overflow:hidden scroll container */
  overflow: clip;
  direction: ltr; /* keep layout/animation identical in EN and AR (RTL would flip it) */
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--void);
}
.marquee__row {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  will-change: transform;
  /* row holds two identical groups, so -50% == one group == seamless loop */
  animation: mq-left 32s linear infinite;
}
.marquee__row--alt {
  color: var(--bone-dim);
  animation: mq-right 38s linear infinite;
}
.marquee__row span { padding-right: 0.5em; }
@keyframes mq-left {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes mq-right {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ---------- Section heads ---------- */
.section-head__index,
.manifesto__index,
.contact__kicker {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.section-head__title em {
  font-style: italic;
  color: var(--accent);
  -webkit-text-stroke: 0;
}

/* ---------- Story / Evolution ---------- */
.story {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3rem);
}
.story__headline { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.story__phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
@media (max-width: 768px) {
  .story__phases { grid-template-columns: 1fr; }
}
.phase {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(28, 17, 51, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.5s var(--ease-expo), border-color 0.5s, background-color 0.5s;
}
.phase:hover { transform: translateY(-8px); border-color: rgba(249, 181, 39, 0.5); background: rgba(69, 44, 123, 0.28); }
.phase__num {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 2.2rem;
  color: var(--accent);
  -webkit-text-stroke: 0;
  line-height: 1;
}
.phase__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.phase__desc { color: var(--bone-dim); font-size: 0.94rem; line-height: 1.6; flex: 1; }
.phase__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

/* ---------- Services ---------- */
.services {
  position: relative;
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3rem);
}
.services .section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.services__list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  grid-template-areas: "num name arrow" "num desc arrow";
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3.4vh, 2.2rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-expo), background-color 0.45s;
}
.service:hover { padding-left: clamp(1rem, 2.5vw, 2rem); background: rgba(69, 44, 123, 0.14); }
.service__num {
  grid-area: num;
  font-size: 0.78rem;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}
.service__name {
  grid-area: name;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: color 0.35s, letter-spacing 0.45s var(--ease-expo);
}
.service:hover .service__name { color: var(--accent); letter-spacing: 0.01em; }
.service__desc {
  grid-area: desc;
  color: var(--bone-dim);
  font-size: 0.92rem;
  max-width: 52ch;
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-expo);
}
.service:hover .service__desc { opacity: 1; transform: translateY(0); }
.service__arrow {
  grid-area: arrow;
  font-size: 1.6rem;
  color: var(--accent);
  transform: translateX(-12px) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.35s, transform 0.45s var(--ease-back);
}
.service:hover .service__arrow { opacity: 1; transform: translateX(0) rotate(0deg); }

/* ---------- Reviews ---------- */
.reviews {
  padding: clamp(5rem, 14vh, 9rem) 0;
  overflow: clip; /* clip avoids scroll-container compositor bug with will-change:transform children */
}
.section-head--center { text-align: center; padding: 0 clamp(1.2rem, 4vw, 3rem); margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section-head--center .section-head__index { color: var(--accent); }
.reviews__rows { display: grid; gap: 1.2rem; }
.reviews__track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
  direction: ltr; /* lock scroll direction — RTL page layout would reverse the flex and break the GSAP x-translation */
}
.bubble {
  width: clamp(260px, 30vw, 360px);
  flex-shrink: 0;
  background: rgba(28, 17, 51, 0.55);
  border: 1px solid var(--line);
  border-radius: 18px;
  border-top-left-radius: 4px;
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(6px);
}
.bubble--ar { border-top-left-radius: 18px; border-top-right-radius: 4px; }
.bubble header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.bubble__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  background: var(--av, var(--accent));
  flex-shrink: 0;
}
.bubble header h4 { font-size: 0.9rem; font-weight: 700; }
.bubble header small { font-size: 0.7rem; color: var(--bone-dim); }
.bubble p { font-size: 0.94rem; line-height: 1.55; color: var(--bone); }
.bubble--ar p { font-family: var(--font-ar, "IBM Plex Sans Arabic", sans-serif); }
.bubble footer {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: var(--bone-dim);
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
}
.bubble footer i { color: #4fc3f7; font-style: normal; }

/* ---------- Stats ---------- */
.stats {
  padding: clamp(5rem, 14vh, 9rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 2rem;
}
.stats__grid strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stats__grid li > span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.2rem, 4vw, 3rem) 7rem;
  border-top: 1px solid var(--line);
  /* darken toward the footer so the contact details stay readable */
  background: linear-gradient(to bottom, transparent 28%, rgba(8, 4, 15, 0.8) 100%);
}
.contact__meta a, .contact__meta p, .contact__meta span { text-shadow: 0 1px 10px rgba(8, 4, 15, 0.85); }
.contact__title {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.contact__line { display: block; overflow: hidden; }
.contact__line--outline {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.contact__sub {
  color: var(--bone-dim);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  max-width: 40ch;
}
.contact__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  color: var(--ink);
  background: var(--accent);
  padding: 1rem 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.4s var(--ease-back);
}
.contact__cta i { font-style: normal; transition: transform 0.4s var(--ease-expo); }
.contact__cta:hover i { transform: translateX(6px); }
.contact__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2.5rem, 8vw, 7rem);
  margin-top: 3rem;
  font-size: 0.86rem;
  color: var(--bone-dim);
  line-height: 1.6;
}
.contact__meta > div { display: flex; flex-direction: column; gap: 0.35rem; min-width: 130px; text-align: left; }
.contact__meta span {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.contact__meta a { transition: color 0.3s; }
.contact__meta a:hover { color: var(--bone); }

/* ---------- Mobile ---------- */
/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { min-height: 100svh; }
/* keep the particle sphere from washing out the form text */
.contact-page #gl { opacity: 0.55; }
.contact-page .vignette {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(8, 4, 15, 0.72) 0%, rgba(8, 4, 15, 0.35) 45%, transparent 72%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(8, 4, 15, 0.9) 100%);
}
.header__back {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s, gap 0.4s var(--ease-expo);
}
.header__back i { font-style: normal; }
.header__back:hover { color: var(--bone); gap: 0.8rem; }

.cform {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(7rem, 16vh, 11rem) clamp(1.2rem, 4vw, 3rem) 6rem;
}
.cform__intro { position: sticky; top: 8rem; }
.cform__title {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 1.4rem;
}
.cform__line { display: block; overflow: hidden; }
.cform__line--outline { color: var(--accent); -webkit-text-stroke: 0; }
.cform__lead { color: var(--bone-dim); font-size: 1.05rem; line-height: 1.6; max-width: 38ch; }
.cform__lead strong { color: var(--accent); }
.cform__contacts {
  display: grid;
  gap: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  align-self: start;
}
.cform__contacts li { display: flex; flex-direction: column; gap: 0.35rem; }
.cform__contacts span {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.cform__contacts a, .cform__contacts p { font-size: 1.12rem; color: var(--bone); }
.cform__contacts a { transition: color 0.3s; }
.cform__contacts a:hover { color: var(--accent); }

.cform__form { display: grid; gap: 1.8rem; }

/* floating-label fields */
.field { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245, 242, 236, 0.3);
  padding: 1.4rem 0 0.65rem;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  resize: vertical;
  caret-color: var(--accent);
}
.field label {
  position: absolute;
  left: 0;
  top: 1.4rem;
  color: rgba(245, 242, 236, 0.72);
  font-size: 1.05rem;
  pointer-events: none;
  transition: transform 0.35s var(--ease-expo), color 0.35s, font-size 0.35s;
}
.field label em { font-style: normal; opacity: 0.65; font-size: 0.85em; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.55rem);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.field__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-expo);
}
.field input:focus ~ .field__bar,
.field textarea:focus ~ .field__bar { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #ff6b6b; }
.field.is-invalid label { color: #ff6b6b; }

/* chips */
.chips { border: none; }
.chips legend {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 1rem;
}
.chips__grid { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chips__grid--budget .chip span { min-width: 5.5rem; text-align: center; }
.chips__hint { font-size: 0.87rem; color: rgba(245, 242, 236, 0.7); padding: 0.3rem 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(245, 242, 236, 0.28);
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(245, 242, 236, 0.82);
  transition: all 0.3s var(--ease-expo);
}
.chip:hover span { border-color: rgba(249, 181, 39, 0.55); color: var(--bone); }
.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cform__submit {
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--accent);
  border: none;
  cursor: pointer;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-back);
}
.cform__submit i { font-style: normal; display: inline-block; transition: transform 0.4s var(--ease-expo); }
.cform__submit:hover i { transform: translateX(6px); }
.cform__submit:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.cform__submit:disabled { opacity: 0.6; cursor: wait; }
.cform__note { font-size: 0.85rem; color: #ff6b6b; min-height: 1.2em; }

/* success overlay */
.cform__success {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 4, 15, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
}
.cform__success.is-open { opacity: 1; visibility: visible; }
.cform__success-mark { color: var(--accent); }
#checkPath { stroke-dasharray: 48; stroke-dashoffset: 48; }
.cform__success.is-open #checkPath { animation: drawCheck 0.6s 0.2s var(--ease-expo) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.cform__success h2 {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2rem, 6vw, 3.4rem);
  text-transform: uppercase;
}
.cform__success p { color: var(--bone-dim); max-width: 42ch; line-height: 1.6; }
.cform__success span { color: var(--accent); }
.cform__success-back {
  margin-top: 1rem;
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.cform__success-back:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 820px) {
  .cform { grid-template-columns: 1fr; }
  .cform__intro { position: static; }
  .field-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .cform__contacts { margin-top: 1rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .service { grid-template-columns: 2.6rem 1fr auto; }
  .service__desc { display: none; }
  .bubble { width: min(78vw, 360px); }

  /* blurb: was bone-dim (#b7aed1) which blends into particles — lift to bone */
  .hero__blurb { color: var(--bone); }
}

@media (max-width: 560px) {
  /* header: tighten so logo + language toggle + CTA fit comfortably */
  .header { padding: 1rem 1.1rem; }
  .header__actions { gap: 0.5rem; }
  .header__cta { padding: 0.6rem 1rem; font-size: 0.68rem; }
  .langtoggle span { width: 26px; height: 24px; }

  /* give the big display type breathing room from the edges */
  .hero__title { font-size: clamp(2.9rem, 15.5vw, 4.4rem); }
  .section-head__title, .story__headline { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .contact__title { font-size: clamp(3rem, 17vw, 4.6rem); }
  .stats__grid strong { font-size: clamp(2.6rem, 13vw, 3.4rem); }

  /* reviews cards sit a touch tighter and read better */
  .reviews__track { gap: 0.9rem; }
  .bubble { width: 82vw; padding: 1.1rem 1.15rem; }
  .bubble p { font-size: 0.9rem; }

  /* roomier tap targets / spacing in the footer meta */
  .contact__meta { gap: 2rem 3rem; }
}

/* ============================================================
   PAGE TRANSITION (iris wipe through the void)
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--void);
  pointer-events: none;
  clip-path: circle(0% at 50% 50%); /* default: open / hidden */
}
.page-transition.cover {
  clip-path: circle(150% at 50% 50%);
  pointer-events: all;
}
.page-transition.anim {
  transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.header__actions { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.3rem); }
.langtoggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(245, 242, 236, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
}
.langtoggle span {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  transition: background-color 0.3s, color 0.3s;
}
.langtoggle span.is-active { background: var(--accent); color: var(--ink); }
.langtoggle span[data-lang="ar"] { font-family: var(--font-ar); font-size: 0.95rem; }

/* ============================================================
   RTL / ARABIC
   ============================================================ */
.is-ar { font-family: var(--font-ar); }
.is-ar .hero__title,
.is-ar .section-head__title,
.is-ar .story__headline,
.is-ar .contact__title,
.is-ar .cform__title,
.is-ar .phase__title,
.is-ar .phase__num,
.is-ar .stats__grid strong,
.is-ar .marquee__row,
.is-ar .header__cta,
.is-ar .contact__cta,
.is-ar .cform__submit,
.is-ar .footer__logo,
.is-ar .bubble header h4 {
  font-family: var(--font-ar);
  letter-spacing: 0 !important;
}

/* Arabic display weight a touch heavier-looking; give diacritics room */
.is-ar .hero__title { line-height: 1.18; font-weight: 700; }
.is-ar .hero__line,
.is-ar .contact__line,
.is-ar .cform__line { overflow: visible; }
.is-ar .contact__title { line-height: 1.1; font-weight: 700; }
.is-ar .cform__title { line-height: 1.12; font-weight: 700; }
.is-ar .section-head__title,
.is-ar .story__headline { line-height: 1.3; font-weight: 700; }
.is-ar .section-head__index,
.is-ar .manifesto__index,
.is-ar .contact__kicker,
.is-ar .hero__kicker,
.is-ar .phase__label,
.is-ar .stats__grid li > span,
.is-ar .contact__meta span,
.is-ar .header__nav,
.is-ar .cform__contacts span {
  letter-spacing: 0;
  text-transform: none;
}

/* Arabic display type reads badly as a thin outline (connected, curved letters
   break up), so the "outline" accent words become a solid amber fill instead. */
.is-ar .split--outline .char,
.is-ar .section-head__title em,
.is-ar .story__headline em,
.is-ar .contact__line--outline,
.is-ar .cform__line--outline,
.is-ar .phase__num {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.is-ar .marquee__row--alt {
  color: var(--bone-dim);
  -webkit-text-stroke: 0;
}

/* mirror direction-sensitive bits */
[dir="rtl"] .field label { left: auto; right: 0; }
[dir="rtl"] .field__bar { transform-origin: right; }
[dir="rtl"] .service__arrow { scale: -1 1; }
[dir="rtl"] .service:hover { padding-left: 0.5rem; padding-right: clamp(1rem, 2.5vw, 2rem); }
[dir="rtl"] .concepts { left: auto; right: 1.1rem; }
[dir="rtl"] .header__back:hover { gap: 0.8rem; }
[dir="rtl"] .header__back-arrow,
[dir="rtl"] .contact__cta i,
[dir="rtl"] .cform__submit i,
[dir="rtl"] .cform__success-back i { display: inline-block; transform: scaleX(-1); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-thumb, .hero__kicker-dot,
  .marquee__row, .marquee__row--alt { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
