/* ════════════════════════════════════════════
   Marmore Tech — עיצוב ראשי
   פלטה: שחור / לבן / אדום המותג #C95253
   טיפוגרפיה: Karantina (כותרות) + Heebo (טקסט)
   ════════════════════════════════════════════ */

:root {
  --paper: #FAF9F6;
  --card: #FFFFFF;
  --ink: #0D0D0E;
  --ink-soft: #2A2A2C;
  --red: #C95253;
  --red-deep: #A23E3F;
  --muted: #6E6B66;
  --muted-light: #A7A5AE;
  --line: #E6E4DF;
  --line-dark: #26262A;

  --font-display: 'Karantina', 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;

  --header-h: 76px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* iOS Safari بيتجاهل overflow-x عالـ body لحالو — لازم عالـ html كمان (الـ marquee المايل بيطلع برا العرض) */
html { overflow-x: hidden; overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--red); color: #fff; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.dot-red { color: var(--red); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--red {
  background: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: var(--red-deep);
  box-shadow: 0 12px 30px -8px rgba(201, 82, 83, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--small { padding: 11px 24px; font-size: 0.92rem; }
.btn--full { width: 100%; }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.eyebrow--light { color: var(--muted-light); }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

/* ════════════════════════════════════════════
   Preloader
   ════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  --pl-L: 340px;
}
.preloader__bg {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.preloader__logo {
  position: absolute;
  left: calc(50% - var(--pl-L) / 2);
  top: calc(50% - var(--pl-L) / 2);
  width: var(--pl-L);
  height: var(--pl-L);
  transform-origin: top left;
  will-change: transform;
}
.preloader__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preloader__logo .pl-layer { clip-path: circle(0% at 50% 50%); }
.preloader__logo .pl-final { opacity: 0; }
.preloader__word {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--pl-L) / 2 + 18px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  direction: ltr;
  white-space: nowrap;
  opacity: 0;
}
@media (max-width: 600px) { .preloader { --pl-L: 240px; } }
html:not(.motion-on) .preloader { display: none; }

/* ════════════════════════════════════════════
   Header + سلسلة التقدّم
   ════════════════════════════════════════════ */
/* الهيدر أسود بالبداية، وبالسكرول بقلب أبيض بإيفيكت زجاجي (مراية) */
.header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  transition: transform 0.45s var(--ease-out), background 0.35s, box-shadow 0.35s;
  background: var(--ink);
}
.header.is-scrolled {
  background: rgba(252, 251, 248, 0.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 1px 0 var(--line);
}
/* ألوان عناصر الهيدر بالحالتين */
.header .logo__word { color: #fff; transition: color 0.35s; }
.header .logo__img { filter: invert(1) hue-rotate(180deg); }
.header .nav__link { color: rgba(255, 255, 255, 0.72); }
.header .nav__link:hover,
.header .nav__link.is-active { color: #fff; }
.header .burger span { background: #fff; }

.header.is-scrolled .logo__word { color: var(--ink); }
.header.is-scrolled .logo__img { filter: none; }
.header.is-scrolled .nav__link { color: var(--ink-soft); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active { color: var(--ink); }
.header.is-scrolled .burger span { background: var(--ink); }

.header__inner {
  width: min(1320px, 94vw);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* לוגו */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* اللوجو الأصلي — أسود عالفاتح، وبالهيدر الأسود منقلبو أبيض بفلتر
   (invert بخلي الأسود أبيض، و hue-rotate بترجع الأحمر أحمر) */
.logo__img {
  height: 54px;
  width: auto;
  transition: filter 0.35s, transform 0.35s var(--ease-out);
}
.logo:hover .logo__img { transform: scale(1.06); }

.logo__word {
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  direction: ltr;
  color: var(--ink);
}
.logo__word b { font-weight: 800; }

.nav {
  display: flex;
  gap: 6px;
}
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%) scaleX(0);
  width: calc(100% - 32px);
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: transform 0.35s var(--ease-out);
  transform-origin: center;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: translateX(50%) scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* عند فتح قائمة الموبايل — نخفي محتوى الهيدر الي بيبين فوقها */
body.menu-open .logo,
body.menu-open .header__cta { opacity: 0; pointer-events: none; }
body.menu-open .header {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.logo, .header__cta { transition: opacity 0.3s; }

/* برغر موبايل */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
body.menu-open .header .burger span { background: #fff; }

/* سلسلة التقدم أسفل الهيدر */
.progress-chain {
  position: absolute;
  bottom: -5px;
  right: 0; left: 0;
  height: 10px;
  width: min(1320px, 94vw);
  margin-inline: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.header.is-scrolled .progress-chain {
  opacity: 1;
  pointer-events: auto;
}
.progress-chain__track,
.progress-chain__fill {
  position: absolute;
  top: 50%;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
}
.progress-chain__track { left: 0; background: var(--line); }
.progress-chain__fill { width: 0; background: var(--red); }

.chain-node {
  position: absolute;
  top: 50%;
  transform: translate(50%, -50%);
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.chain-node:hover { transform: translate(50%, -50%) scale(1.6); }
.chain-node.is-passed { background: var(--red); }
.chain-node:nth-of-type(1) { right: 0%; }
.chain-node:nth-of-type(2) { right: 24%; }
.chain-node:nth-of-type(3) { right: 48%; }
.chain-node:nth-of-type(4) { right: 72%; }
.chain-node:nth-of-type(5) { right: calc(100% - 10px); }

.chain-runner {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 82, 83, 0.25);
  pointer-events: none;
}

/* ════════════════════════════════════════════
   قائمة الموبايل
   ════════════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  clip-path: circle(0% at calc(100% - 60px) 38px);
  transition: clip-path 0.65s var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 60px) 38px);
  visibility: visible;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1.15;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--red); }
.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted-light);
  font-size: 0.95rem;
  direction: ltr;
}

/* ════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding-block: 60px;
}
.hero__eyebrow { margin-bottom: 24px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 13vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin-bottom: 30px;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line { display: block; }
.red-word { font-style: normal; color: var(--red); }

.hero__sub {
  max-width: 520px;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 80px);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink);
}
.stat:nth-child(2) .stat__num { color: var(--red); }
.stat__label {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  z-index: 1;
}
.hero__scroll-line {
  width: 2px;
  height: 44px;
  border-radius: 2px;
  background: linear-gradient(var(--red), transparent);
  animation: scroll-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ════════════════════════════════════════════
   Marquee
   ════════════════════════════════════════════ */
.marquee {
  background: var(--ink);
  padding-block: 22px;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.02);
  border-block: 3px solid var(--ink);
  position: relative;
  z-index: 2; /* فوق الهيرو — عالموبايل بيطلع لفوق ويغطي الفراغ تحت الزر */
}
.marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-inline-end: 38px;
  direction: rtl;
}
.marquee__group span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--paper);
  white-space: nowrap;
}
.m-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.m-dot--red { background: var(--red); }

/* ════════════════════════════════════════════
   Sections — بنية عامة
   ════════════════════════════════════════════ */
.section {
  padding-block: clamp(90px, 12vw, 150px);
}
.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section__head { margin-bottom: clamp(44px, 6vw, 70px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
}
.section__lead {
  margin-top: 18px;
  color: var(--muted);
  max-width: 480px;
  font-size: 1.08rem;
}
.section--dark .section__lead { color: var(--muted-light); }

/* عناصر reveal — تبدأ مخفية فقط عندما تكون الأنيميشن مفعّلة */
html.motion-on [data-reveal] {
  opacity: 0;
  transform: translateY(46px);
}

/* ════════════════════════════════════════════
   Services — كروت بتتكوّم فوق بعض بالسكرول
   ════════════════════════════════════════════ */
.services__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.st {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  min-height: 420px;
  border-radius: 28px;
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  transform-origin: top center;
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.st--ink { background: var(--ink); color: var(--paper); }
.st--ink p { color: var(--muted-light); }
.st--red { background: var(--red); color: #fff; }
.st--red p { color: rgba(255, 255, 255, 0.85); }
.st--paper { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.st--paper p { color: var(--muted); }

.st__icon { width: 52px; margin-bottom: 22px; }
.ic-node { fill: var(--ink); }
.ic-node--red { fill: var(--red); }
.ic-link { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.ic-link--red { stroke: var(--red); }
.st--ink .ic-node { fill: #fff; }
.st--ink .ic-link { stroke: #fff; }
.st--ink .ic-node--red { fill: var(--red); }
.st--ink .ic-link--red { stroke: var(--red); }
.st--red .ic-node { fill: #fff; }
.st--red .ic-link { stroke: #fff; }
.st--red .ic-node--red { fill: var(--ink); }
.st--red .ic-link--red { stroke: var(--ink); }

.st h3 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.92;
  font-weight: 700;
  margin-bottom: 16px;
}
.st p {
  font-size: 1.08rem;
  max-width: 40ch;
  margin-bottom: 26px;
}
.st__tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red);
  background: rgba(201, 82, 83, 0.09);
  border-radius: 999px;
  padding: 7px 18px;
}
.st--ink .st__tag { background: rgba(255, 255, 255, 0.1); color: #fff; }
.st--red .st__tag { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* صورتين سكرينشوت — وحدة ورا التانية */
.st__media { position: relative; min-height: 330px; height: 100%; }
.st__media img {
  position: absolute;
  width: 50%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.st__media img:nth-child(1) { inset-inline-start: 6%; top: 0; transform: rotate(-5deg); z-index: 2; }
.st__media img:nth-child(2) { inset-inline-end: 6%; top: 12%; transform: rotate(5deg); }

/* ════════════════════════════════════════════
   Work / تيك عبودوت
   ════════════════════════════════════════════ */
.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: transparent;
  color: var(--muted-light);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
}
.filter-btn:hover { border-color: var(--red); color: #fff; }
.filter-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.work-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: #17171A;
  border: 1px solid var(--line-dark);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.7);
}
.work-card__thumb {
  position: relative;
  aspect-ratio: 2 / 3; /* طولي — الارتفاع مرة ونص العرض */
  overflow: hidden;
}
.work-card__thumb svg,
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* منبلش من أعلى الموقع */
  transition: transform 0.8s var(--ease-out);
}
.work-card:hover .work-card__thumb svg,
.work-card:hover .work-card__thumb img {
  transform: scale(1.06);
}
.work-card__body {
  padding: 22px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.work-card__name {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
}
.work-card__cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(201, 82, 83, 0.14);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   Pricing
   ════════════════════════════════════════════ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1100px) { .pricing__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px)  { .pricing__grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -22px rgba(13, 13, 14, 0.16);
}
.price-card--featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.03);
}
.price-card--featured:hover { transform: scale(1.03) translateY(-8px); }
.price-card__badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 34px;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
}
.price-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.price-card__from {
  font-size: 0.88rem;
  color: var(--muted);
}
.price-card--featured .price-card__from { color: var(--muted-light); }
.price-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 26px;
}
.price-card--featured .price-card__price { color: var(--red); }
.price-card__list {
  list-style: none;
  margin-bottom: 34px;
  flex-grow: 1;
}
.price-card__list li {
  position: relative;
  padding-inline-start: 26px;
  padding-block: 7px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.price-card--featured .price-card__list li { color: #D9D8DD; }
.price-card__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
}

/* ════════════════════════════════════════════
   About
   ════════════════════════════════════════════ */
.about { background: var(--card); overflow: hidden; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.about__text p {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 480px;
}
.about__stmt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6.5vw, 5.6rem);
  line-height: 0.95;
  margin-bottom: 22px;
}
.about__stmt em { font-style: normal; color: var(--red); }
/* كتابة حية — كل حرف بيظهر لحالو لما القسم يوصل للشاشة */
.about__stmt .ch { opacity: 0; }
.about__stmt .ch.on { opacity: 1; }
.about__cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.8em;
  margin-inline-start: 0.06em;
  background: var(--red);
  vertical-align: -0.08em;
  animation: cursor-blink 0.75s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
html:not(.motion-on) .about__stmt .ch { opacity: 1; }

/* جدار الأعمال — 3 أعمدة مايلة بتطفو ببطء */
.about__wall {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
}
.about__wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,14,0.7), transparent 30%, transparent 70%, rgba(13,13,14,0.7));
  pointer-events: none;
}
.about__col {
  position: absolute;
  top: -10%;
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(-8deg);
  animation: about-drift 18s ease-in-out infinite alternate;
}
.about__col img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.8);
}
.about__col:nth-child(1) { right: 4%; }
.about__col:nth-child(2) { right: 36%; top: -30%; animation-duration: 24s; animation-direction: alternate-reverse; }
.about__col:nth-child(3) { right: 68%; top: -5%; animation-duration: 21s; }
@keyframes about-drift {
  from { transform: rotate(-8deg) translateY(0); }
  to   { transform: rotate(-8deg) translateY(-14%); }
}
.about__tag {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ════════════════════════════════════════════
   Contact
   ════════════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 0.3s var(--ease-out);
}
a.contact__row:hover { padding-inline-start: 10px; }
a.contact__row:hover .contact__value { color: var(--red); }
.contact__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}
.contact__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
  text-align: right; /* القيم dir=ltr — نثبت المحاذاة يمين مثل التسميات */
}
.contact__wa { margin-top: 28px; align-self: flex-start; }

.contact__form {
  background: #17171A;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted-light);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: #0D0D0E;
  border: 1.5px solid var(--line-dark);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.3s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #55535C; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.contact__form-note {
  font-size: 0.83rem;
  color: var(--muted-light);
  text-align: center;
}

/* ════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding-block: 30px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.logo--footer .logo__word { color: #fff; }
.logo--footer .logo__img { filter: invert(1) hue-rotate(180deg); }
.footer__copy {
  font-size: 0.88rem;
  color: var(--muted-light);
}

/* ════════════════════════════════════════════
   رسبونسف
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; position: relative; z-index: 95; }
  .header__cta { display: none; }

  .about__inner { grid-template-columns: 1fr; }
  .about__wall { height: 380px; border-radius: 20px; }
  .about__col { width: 34%; }

  .contact__grid { grid-template-columns: 1fr; }

  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-8px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  /* الهيرو عالموبايل — بدون فراغ كبير فوق */
  .hero { min-height: auto; }
  .hero__content { padding-block: 34px 52px; }
  .hero__title { margin-bottom: 22px; }
  .hero__sub { margin-bottom: 28px; }
  .hero__ctas { margin-bottom: 44px; }
  .hero__stats { gap: 24px; }
  .hero__scroll-hint { display: none; }

  .marquee__group span { font-size: 1.7rem; }
  .marquee { margin-top: -34px; } /* بيركب عآخر الهيرو — بيغطي الفراغ الي تحت בואו נדבר */

  /* كروت الخدمات — نسخة مختصرة: النص والصورتين جنب بعض، كرت قصير */
  .services__stack { gap: 12px; }
  .st {
    grid-template-columns: 1fr 44%;
    gap: 14px;
    padding: 20px 18px;
    top: calc(var(--header-h) + 10px);
    min-height: 0;
    border-radius: 20px;
  }
  .st__icon { width: 34px; margin-bottom: 10px; }
  .st h3 { font-size: 2.1rem; margin-bottom: 6px; }
  .st p { font-size: 0.84rem; line-height: 1.5; margin-bottom: 12px; }
  .st__tag { font-size: 0.76rem; padding: 4px 12px; }
  .st__media { min-height: 0; height: auto; aspect-ratio: 1 / 1.25; }
  .st__media img { width: 74%; aspect-ratio: 3 / 4; border-radius: 12px; }
  .st__media img:nth-child(1) { inset-inline-start: 0; top: 0; transform: rotate(-3deg); }
  .st__media img:nth-child(2) { inset-inline-end: 0; top: 17%; transform: rotate(4deg); filter: brightness(0.88); }

  /* بروجكتين عكل صف */
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .work-card { border-radius: 14px; }
  .work-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 14px 16px;
  }
  .work-card__name { font-size: 0.95rem; }
  .work-card__cat { font-size: 0.7rem; padding: 4px 10px; }
}

/* ════════════════════════════════════════════
   تقليل الحركة — يحترم إعدادات المستخدم
   ════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ════════════════════════════════════════════
   نגישות — skip link + روابط الفوتر + الويدجت
   ════════════════════════════════════════════ */
.skip-link {
  position: fixed; top: -80px; inset-inline-start: 16px; z-index: 400;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; outline: 3px solid #fff; }

.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.88rem; }
.footer__links a { color: var(--muted-light); text-decoration: none; transition: color 0.2s; }
.footer__links a:hover, .footer__links a:focus-visible { color: #fff; text-decoration: underline; }

.a11y { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 350; font-family: var(--font-body); direction: rtl; }
.a11y__btn {
  width: 50px; height: 56px; border: 0; cursor: pointer;
  border-radius: 0 16px 16px 0;
  background: #fff; color: var(--red); box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  display: grid; place-items: center; transition: width 0.2s, background 0.2s, color 0.2s;
}
.a11y__btn svg { width: 26px; height: 26px; fill: currentColor; }
.a11y__btn:hover { width: 56px; }
.a11y__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.a11y__btn.has-changes { background: var(--red); color: #fff; }
.a11y__panel {
  position: absolute; left: 62px; top: 50%; transform: translateY(-50%);
  width: min(320px, calc(100vw - 80px)); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; color: var(--ink); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22); padding: 14px;
}
.a11y__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 1.05rem; }
.a11y__close { border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0 6px; }
.a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y__grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s;
}
.a11y__grid button:hover { border-color: var(--ink); }
.a11y__grid button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.a11y__grid button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y__ic { font-size: 1.15rem; font-weight: 800; line-height: 1; }
.a11y__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 0.85rem; }
.a11y__foot a { color: var(--red); }
.a11y__reset { border: 0; background: transparent; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; }

/* أوضاع النجيشوت */
html.a11y-contrast body,
html.a11y-contrast body *:not(img):not(svg):not(iframe):not(video):not(path):not(circle):not(.a11y__ic) {
  background-color: #fff !important; color: #000 !important; border-color: #000 !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-invert body,
html.a11y-invert body *:not(img):not(svg):not(iframe):not(video):not(path):not(circle):not(.a11y__ic) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast a, html.a11y-invert a { text-decoration: underline !important; }
html.a11y-contrast .logo__img, html.a11y-contrast .header .logo__img { filter: none !important; }
html.a11y-invert .logo__img { filter: invert(1) hue-rotate(180deg) !important; }
html.a11y-links a { text-decoration: underline !important; outline: 2px solid var(--red); outline-offset: 2px; }
html.a11y-font, html.a11y-font body, html.a11y-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.01em; }
html.a11y-stop *, html.a11y-stop *::before, html.a11y-stop *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-stop [data-reveal] { opacity: 1 !important; transform: none !important; visibility: visible !important; }
html.a11y-stop .about__stmt .ch { opacity: 1 !important; }
html.a11y-stop .about__cursor { display: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='48' viewBox='0 0 40 48'%3E%3Cpath d='M4 2l30 26H18l-7 16-6-3 7-15H4z' fill='%23000' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 4 2, auto !important; }
@media (max-width: 600px) { .a11y__btn { width: 44px; height: 50px; } .a11y__btn:hover { width: 44px; } .a11y__panel { left: 54px; } }


/* ════════════════════════════════════════════
   لغات — العربي بخط Cairo، الإنجليزي LTR، مبدّل اللغة
   ════════════════════════════════════════════ */
html.lang-ar { --font-display: 'Cairo', 'Heebo', sans-serif; --font-body: 'Cairo', 'Heebo', sans-serif; }
html.lang-ar .opener__title { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.2; font-weight: 900; }
html.lang-ar .section__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.18; font-weight: 900; letter-spacing: 0; }
html.lang-ar .about__stmt { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; font-weight: 900; }
html.lang-ar .marquee__group span { font-size: 1.5rem; font-weight: 700; }
html.lang-ar .st h3 { font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.2; }
html.lang-ar .price-card__price { font-weight: 900; }
html.lang-ar .price-card__name, html.lang-ar .work-card__name { font-weight: 800; }
html.lang-ar .opener__eyebrow, html.lang-ar .eyebrow { letter-spacing: 0; }
html.lang-ar .mobile-menu__link { font-weight: 800; }
@media (max-width: 600px) {
  html.lang-ar .marquee__group span { font-size: 1.2rem; }
  html.lang-ar .opener__title { font-size: clamp(2.2rem, 9vw, 3rem); }
}

.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); direction: ltr; }
.lang button {
  border: 0; background: transparent; color: rgba(255,255,255,0.72); font: inherit; font-size: 0.8rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; line-height: 1; transition: background 0.2s, color 0.2s;
}
.lang button:hover { color: #fff; }
.lang button.is-on { background: #fff; color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.header.is-scrolled .lang { border-color: var(--line); }
.header.is-scrolled .lang button { color: var(--ink-soft); }
.header.is-scrolled .lang button.is-on { background: var(--ink); color: #fff; }
.lang--menu { border-color: var(--line-dark); margin-bottom: 14px; }
.lang--menu button { font-size: 0.95rem; padding: 8px 14px; }
@media (max-width: 900px) { .header .lang:not(.lang--menu) { display: none; } }

/* الإنجليزي — اتجاه من الشمال لليمين */
html[dir="ltr"] .opener__side { text-align: left; }
html[dir="ltr"] .progress-chain__fill, html[dir="ltr"] .chain-runner { right: auto; left: 0; }
html[dir="ltr"] .chain-node:nth-of-type(1) { right: auto; left: 0; }
html[dir="ltr"] .chain-node:nth-of-type(2) { right: auto; left: 24%; }
html[dir="ltr"] .chain-node:nth-of-type(3) { right: auto; left: 48%; }
html[dir="ltr"] .chain-node:nth-of-type(4) { right: auto; left: 72%; }
html[dir="ltr"] .chain-node:nth-of-type(5) { right: auto; left: calc(100% - 10px); }
html[dir="ltr"] .about__col:nth-child(1) { right: auto; left: 4%; }
html[dir="ltr"] .about__col:nth-child(2) { right: auto; left: 36%; }
html[dir="ltr"] .about__col:nth-child(3) { right: auto; left: 68%; }
html[dir="ltr"] .marquee__group span { letter-spacing: 0.01em; }

/* الإنجليزي: الآيفريم بيتصغّر من الزاوية اليسار حتى ما ينزاح برّا الشاشة */
html[dir="ltr"] .opener__screen iframe { transform-origin: top left; }
