/* ==========================================================================
   VERTEX — Main styles (base, components, sections)
   القيم كلها من tokens.css — متعدلش ألوان أو خطوط هنا مباشرة.
   كل الاتجاهات بـ logical properties (inline-start = يمين في RTL).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

/* Lenis smooth scroll (الأنيميشن والتنقل بين الأقسام كله عن طريق Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--fw-medium); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 200;
  padding: 0.6em 1em;
  background: var(--color-text);
  color: var(--color-on-dark);
  font-family: var(--font-tech);
  font-size: var(--fs-label);
  transform: translateY(-200%);
  transition: transform var(--dur-fast);
}
.skip-link:focus { transform: none; }

/* Typography helpers */
.t-tech {
  font-family: var(--font-tech);
  font-size: var(--fs-tech);
  line-height: var(--lh-tech);
  font-weight: var(--fw-regular);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  font-weight: var(--fw-medium);
}

.prose > p { margin-block-end: 1.6em; }
.prose > p:last-child { margin-block-end: 0; }

/* --------------------------------------------------------------------------
   2. Layout — section spacing (نفس منطق المرجع)
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}
@media (min-width: 480px) {
  .section { padding-inline: var(--gutter-md); }
}
@media (min-width: 769px) {
  .section {
    padding-block: var(--section-y-lg);
    padding-inline: var(--gutter-lg);
  }
}
@media (min-width: 127.8rem) {
  .section { padding-inline: calc((100% - var(--content-max)) / 2); }
}

/* Media (صور cover) */
.media { position: relative; overflow: hidden; }
.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   3. Components
   -------------------------------------------------------------------------- */

/* Tags (سكني / فلل / ضيافة) */
.tags { display: flex; flex-wrap: wrap; gap: 0.3em; }

.tag {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 0.3em;
  padding: 0.15em 0.55em;
  font-family: var(--font-tech);
  font-size: var(--fs-label);
  line-height: 1.6;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.tag:hover,
.tag:focus-visible,
.tag[aria-pressed="true"] {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-on-dark);
}
.hero .tag:hover,
.hero .tag:focus-visible {
  background: var(--color-on-dark);
  border-color: var(--color-on-dark);
  color: var(--color-text);
}

/* Button with arrow — نص + مربع السهم */
.btn-arrow {
  display: inline-flex;
  align-items: stretch;
  min-height: 2.6em;
  border: 1px solid var(--color-text);
  border-radius: 0.065em;
  background: var(--color-text);
  font-family: var(--font-tech);
  font-size: var(--fs-label);
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.btn-arrow > span,
.btn-arrow > i {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-text);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.btn-arrow > span {
  min-width: 8em;
  padding: 0.55em 0.9em;
}
.btn-arrow > i {
  justify-content: center;
  width: 2.65em;
  margin-inline-start: 1px;
  font-style: normal;
}
.btn-arrow svg { width: 1em; height: 1em; }

.btn-arrow:hover,
.btn-arrow:focus-visible {
  background: var(--color-surface);
  border-color: var(--color-surface);
}
.btn-arrow:hover > span,
.btn-arrow:hover > i,
.btn-arrow:focus-visible > span,
.btn-arrow:focus-visible > i {
  background: var(--color-text);
  color: var(--color-on-dark);
}

/* Ghost: على الصور والأقسام الداكنة */
.btn-arrow--ghost {
  background: transparent;
  border-color: var(--color-on-dark);
}
.btn-arrow--ghost > span,
.btn-arrow--ghost > i {
  background: transparent;
  color: var(--color-on-dark);
}
.btn-arrow--ghost > i { border-inline-start: 1px solid var(--color-on-dark); margin-inline-start: 0; }
.btn-arrow--ghost:hover,
.btn-arrow--ghost:focus-visible { background: transparent; border-color: transparent; }

/* Solid: زر الإرسال */
.btn-arrow--solid > span,
.btn-arrow--solid > i {
  background: var(--color-text);
  color: var(--color-on-dark);
}
.btn-arrow--solid > i { border-inline-start: 1px solid rgba(255, 255, 255, 0.25); margin-inline-start: 0; }
.btn-arrow--solid:hover > span,
.btn-arrow--solid:hover > i,
.btn-arrow--solid:focus-visible > span,
.btn-arrow--solid:focus-visible > i {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Block heading — "لنبدأ مشروعك" */
.block-heading {
  font-size: clamp(2.3rem, 4.2vw, 5rem);
  line-height: 1;
  font-weight: var(--fw-medium);
}
.block-heading__link { display: inline; }
.block-heading span {
  display: inline-flex;
  align-items: center;
  margin-block: 0.04em;
  margin-inline-end: 0.08em;
  padding: 0.12em 0.22em 0.2em;
  border-radius: 0.065em;
  background: var(--color-text);
  color: var(--color-on-dark);
  line-height: 1.15;
  vertical-align: top;
}
.block-heading__arrow {
  justify-content: center;
  min-width: 1.4em;
  align-self: stretch;
}
.block-heading__arrow svg { width: 0.5em; height: 1.15em; }
.block-heading__link:hover .block-heading__arrow svg { animation: nudge 0.5s ease-in-out 2; }

.block-heading--light span {
  background: var(--color-on-dark);
  color: var(--color-text);
}

/* Logo mark — يتلون حسب الخلفية */
.top-nav__logo svg,
.mobile-nav__logo svg,
.mobile-menu__logo svg { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.top-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 15;
  display: none;
  align-items: center;
  padding: 1.25em var(--nav-pad);
  font-size: var(--fs-label);
}
@media (min-width: 769px) {
  .top-nav { display: flex; }
}

.top-nav__logo {
  display: block;
  width: 2.6rem;
  transition: opacity var(--dur-fast);
}

.top-nav__menu {
  display: flex;
  align-items: center;
  gap: 0.15em;
  margin-inline-start: 2rem;
}
.top-nav__menu > li { position: relative; }
.top-nav__menu a {
  display: block;
  padding: 0.45em 1.25em;
  border-radius: 0.2em;
  white-space: nowrap;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

/* Theme: nav pills تتغير حسب القسم اللي تحت الناف */
.top-nav__menu > li > a { background: var(--color-surface); color: var(--color-text); }
html[data-nav-theme="white"] .top-nav__menu > li > a,
html[data-nav-theme="accent"] .top-nav__menu > li > a { background: var(--paper); }

/* html[data-nav-theme] عشان يكسب على ألوان الثيم اللي فوق */
html[data-nav-theme] .top-nav__menu > li > a:hover,
html[data-nav-theme] .top-nav__menu > li > a:focus-visible,
html[data-nav-theme] .top-nav__menu > li > a.is-current,
html[data-nav-theme] .top-nav__menu > li.has-sub:hover > a,
html[data-nav-theme] .top-nav__menu > li.has-sub:focus-within > a {
  background: var(--color-text);
  color: var(--color-on-dark);
}

html[data-nav-theme="dark"] .top-nav,
html[data-nav-theme="dark"] .mobile-nav {
  --mark-ink: var(--white);
  --mark-slate: var(--brand-slate-light);
}

.top-nav__sub {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 14em;
  padding-block-start: 0.15em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5em);
  transition: opacity var(--dur-base), transform var(--dur-base);
}
.top-nav__sub li { margin-block-start: 0.15em; }
.top-nav__sub a { background: var(--color-text); color: var(--color-on-dark); }
.top-nav__sub a:hover,
.top-nav__sub a:focus-visible { background: var(--color-surface); color: var(--color-text); }
.has-sub:hover .top-nav__sub,
.has-sub:focus-within .top-nav__sub {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Mobile bar */
.mobile-top {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
}
@media (min-width: 769px) {
  .mobile-top, .mobile-menu { display: none !important; }
}

.mobile-top__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.1em var(--gutter) 0.6em;
  background: var(--color-dark);
  color: var(--color-on-dark);
  font-size: var(--fs-label);
  transition: padding var(--dur-base) var(--ease-out);
}
.past-top .mobile-top__bar { padding-block-start: 0.6em; }

.marquee {
  position: relative;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 1.5em;
  background: linear-gradient(to left, transparent, var(--color-dark));
}
.marquee ul { display: inline-flex; }
.marquee li { padding-inline-end: 2.5em; }

.mobile-top__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}
.mobile-top__contact svg { width: 0.85em; height: 0.85em; }

.mobile-nav {
  display: flex;
  align-items: center;
  gap: 1.25em;
  padding: 0.8em var(--gutter);
  transition: transform var(--dur-base) var(--ease-out), opacity 0.35s ease-out;
}
.nav-hidden .mobile-nav {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.mobile-nav__logo { width: 2.1rem; flex-shrink: 0; }
.mobile-nav__buttons { display: flex; gap: 0.35em; flex: 1; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  flex: 1;
  min-height: 2.75rem;
  padding: 0.5em 1.25em;
  border-radius: 0.15em;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-tech);
  font-size: var(--fs-label);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.pill-btn:active { transform: scale(0.97); }
html[data-nav-theme="white"] .pill-btn { background: var(--paper); }

.burger { display: inline-flex; flex-direction: column; gap: 3px; width: 12px; }
.burger i { display: block; height: 1px; background: currentColor; }
.burger i:last-child { width: 70%; }

/* Mobile full-screen menu — app style (مستوحى من project-2)
   ستارة من فوق، روابط كبيرة مرقّمة، قطاعات كـ chips، تواصل سريع تحت */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding:
    calc(0.75rem + env(safe-area-inset-top, 0px))
    var(--gutter)
    calc(1.25rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-dark);
  color: var(--color-on-dark);
  --mark-ink: var(--white);
  --mark-slate: var(--brand-slate-light);
}
.mobile-menu[hidden] { display: none; }
@media (min-width: 480px) {
  .mobile-menu { padding-inline: var(--gutter-md); }
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}
.mobile-menu__logo { width: 2.1rem; }

.mobile-menu__close {
  position: relative;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-on-dark);
  color: var(--color-text);
  transition: transform var(--dur-fast) var(--ease-out);
}
.mobile-menu__close:active { transform: scale(0.92); }
.mobile-menu__close span::before,
.mobile-menu__close span::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  left: 50%;
  width: 1.1rem;
  height: 1.5px;
  margin-left: -0.55rem;
  background: currentColor;
}
.mobile-menu__close span::before { transform: rotate(45deg); }
.mobile-menu__close span::after { transform: rotate(-45deg); }

/* Big links */
.mm-links > li { border-block-end: 1px solid rgba(255, 255, 255, 0.12); }
.mm-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 3.75rem;
  padding-block: 0.55rem;
  text-align: start;
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.mm-link:active { transform: scale(0.985); }
.mm-link__num {
  flex-shrink: 0;
  width: 1.6rem;
  font-size: var(--fs-small);
  color: var(--brand-slate-light);
}
.mm-link__text {
  flex: 1;
  display: block;
  overflow: hidden;
  padding-block: 0.1em 0.2em;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.2rem);
  font-weight: var(--fw-regular);
  line-height: 1.25;
}
.mm-link__text > span { display: inline-block; }
.mm-link__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  opacity: 0.45;
  transition: opacity var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.mm-link:active .mm-link__icon,
.mm-link:hover .mm-link__icon { opacity: 1; transform: translateX(-6px); }
.mm-link.is-current,
.mm-link[aria-current="true"] { color: var(--brand-slate-light); }

.mm-link__plus {
  position: relative;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--dur-base) var(--ease-out);
}
.mm-link__plus::before,
.mm-link__plus::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 0;
  height: 1.5px;
  margin-block-start: -0.75px;
  background: currentColor;
}
.mm-link__plus::after { transform: rotate(90deg); }
.mobile-menu__toggle[aria-expanded="true"] .mm-link__plus { transform: rotate(45deg); }

/* Sectors chips — بتفتح بانسيابية */
.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.mobile-menu__toggle[aria-expanded="true"] + .mm-sub { grid-template-rows: 1fr; }
.mm-sub__inner { overflow: hidden; }
.mm-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding-block: 0.25rem 1rem;
}
.mm-chips a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--fs-label);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.mm-chips a:active { transform: scale(0.97); background: var(--color-on-dark); }

/* Bottom: contact + follow + CTA */
.mobile-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block-start: auto;
}
.mm-contact { display: grid; gap: 0.4rem; font-size: var(--fs-label); }
@media (min-width: 420px) {
  .mm-contact { grid-template-columns: 1fr 1fr; }
}
.mm-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.mm-contact a:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.12); }
.mm-contact svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--brand-slate-light); }

.mobile-menu__follow {
  display: flex;
  border-block: 1px solid rgba(255, 255, 255, 0.2);
  border-block-start-color: var(--color-on-dark);
  font-size: var(--fs-label);
}
.mobile-menu__follow p { width: 33.333%; padding-block: 0.6em; }
.mobile-menu__follow ul { display: flex; width: 66.666%; }
.mobile-menu__follow li { width: 50%; }
.mobile-menu__follow a { display: inline-block; padding-block: 0.6em; }

.mm-cta { font-size: clamp(2rem, 1.4rem + 3vw, 2.6rem); }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 12em 1.5em;
  background: var(--color-dark);
  color: var(--color-on-dark);
  overflow: hidden;
}
@media (min-width: 769px) {
  .hero { padding-block-start: 17em; }
}
@media (min-width: 990px) {
  .hero { padding-inline-end: 1.5rem; }
}

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--hero-fade) ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

/* نفس طبقات التدرّج في المرجع، معكوسة للـ RTL */
.hero__slide::before,
.hero__slide::after,
.statement__media::before,
.statement__media::after,
.preloader__slide::before,
.preloader__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__slide::before,
.statement__media::before,
.preloader__slide::before {
  background: linear-gradient(180deg, rgba(17, 26, 38, 0) 30%, rgba(17, 26, 38, 0.6) 100%);
}
.hero__slide::after,
.statement__media::after,
.preloader__slide::after {
  background: linear-gradient(to left, rgba(17, 26, 38, 0) 0%, rgba(17, 26, 38, 0.4) 100%);
}

.hero__content { position: relative; z-index: 3; width: 100%; }

.hero__heading {
  max-width: 11em;
  margin-block-end: 0.35em;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-medium);
  text-wrap: balance;
}

.hero__label {
  margin-block: 0.6em;
  padding-block: 0.4em;
  border-block-end: 1px solid currentColor;
  font-size: var(--fs-label);
}

.hero__latest-scroller {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.hero__latest-scroller::-webkit-scrollbar { display: none; }
.hero__latest-list { display: flex; gap: 0.5rem; }
.hero__latest-list > li { flex: 0 0 80vw; scroll-snap-align: start; }
@media (min-width: 480px) {
  .hero__latest-scroller { margin-inline: calc(var(--gutter-md) * -1); padding-inline: var(--gutter-md); }
  .hero__latest-list > li { flex-basis: 50vw; }
}
@media (min-width: 769px) {
  .hero__latest-scroller { margin-inline: calc(var(--gutter-lg) * -1); padding-inline: var(--gutter-lg); }
}
@media (min-width: 990px) {
  .hero__latest-scroller { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .hero__latest-list { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .hero__work { display: flex; justify-content: space-between; gap: 1em; }
  .hero__links { width: calc(30% - 1em); }
  .hero__latest { width: 70%; }
}
@media (min-width: 1600px) {
  .hero__links, .hero__latest { width: 50%; }
}

.swipe-bar {
  position: relative;
  height: 2px;
  margin-block-start: 0.9rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}
.swipe-bar i {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 30%;
  background: var(--color-on-dark);
  transition: transform 0.15s linear;
}
@media (min-width: 990px) {
  .swipe-bar { display: none; }
}

.latest-card {
  display: flex;
  height: 100%;
  padding: 0.25rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.latest-card:hover,
.latest-card:focus-visible { background: var(--color-text); color: var(--color-on-dark); }
.latest-card__media { flex: 0 0 50%; aspect-ratio: 50 / 44; }
.latest-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.25em 0.75em 0.35em;
}
.latest-card__type { font-size: var(--fs-small); line-height: 1.6; }
.latest-card__name { font-size: 0.95rem; font-weight: var(--fw-medium); line-height: 1.35; }

/* --------------------------------------------------------------------------
   6. Intro (كلمات تظهر مع السكرول + سطر التصميم/التنفيذ)
   -------------------------------------------------------------------------- */
.intro { background: var(--paper); }

.intro__scroll { height: 200vh; }
.intro__sticky {
  position: sticky;
  inset-block-start: 8rem;
  margin-block-start: 8rem;
}
.intro__text {
  max-width: 31em;
  padding-block: 2.75rem;
  font-size: var(--fs-h3);
  line-height: 1.5;
  font-weight: var(--fw-medium);
}

.split-heading {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-block-start: 0.6em;
  font-weight: var(--fw-medium);
}
.split-heading::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 0;
  border-block-start: 1px solid currentColor;
}

.intro__spread { margin-block-start: 2.5em; }
.intro__body .buttons { margin-block-start: 2.5em; }
.intro__media { margin-block-start: 2.5em; aspect-ratio: 16 / 10; }

@media (min-width: 769px) {
  .intro__spread {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2em;
    margin-block-start: 12em;
  }
  .intro__body { width: 34%; min-width: 19rem; }
  .intro__media { width: 50%; margin-block-start: 0; }
}

/* --------------------------------------------------------------------------
   7. Statement (صورة خلفية)
   -------------------------------------------------------------------------- */
.statement {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5em;
  min-height: 90vh;
  min-height: 90svh;
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.statement__media { position: absolute; inset: 0; }
/* الصورة فاتحة: نغمّقها شوية عشان النص الأبيض يتقري */
.statement__media > img { filter: brightness(0.68) saturate(0.9); }
.statement__col { position: relative; z-index: 4; }
.statement__heading {
  max-width: 8.5em;
  font-size: var(--fs-h2);
  line-height: 1.12;
}
@media (min-width: 769px) {
  .statement {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5em 0;
    padding-block-start: 7rem;
  }
  .statement__col { width: calc(50% - 1em); }
  .statement__col--body > * {
    max-width: 30rem;
    margin-inline-start: auto;
    margin-inline-end: 4em;
  }
}

/* --------------------------------------------------------------------------
   8. Approach — "مرة واحدة. وبإتقان."
   -------------------------------------------------------------------------- */
.approach { background: var(--color-surface); }
.approach__heading {
  margin-block-end: 1.25em;
  font-size: var(--fs-h2);
  line-height: 1.12;
}
.approach__text .lead { margin-block-end: 1.75em; }
.approach__media { margin-block-start: 3em; color: var(--color-text); }

@media (min-width: 769px) {
  .approach { padding-block: 7em 6em; }
  .approach__text > * { max-width: 34rem; }
  .approach__media { max-width: 34rem; margin-inline: auto 0; }
}
@media (min-width: 1024px) {
  .approach {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }
  .approach__text { width: calc(42% - 1em); }
  .approach__media { width: calc(45% - 1em); max-width: none; margin: 0; }
}

/* Structural frame drawing */
.frame-drawing { width: 100%; height: auto; overflow: visible; }
.frame-drawing path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.frame-drawing path.f { fill: var(--color-surface); }
.frame-drawing .below path { stroke: var(--brand-slate); }
/* pathLength="1" → قيم الشرطة كنسبة من طول الخط */
.frame-drawing .ground path { stroke: var(--brand-slate); stroke-dasharray: 0.012 0.009; }

/* --------------------------------------------------------------------------
   9. Our work — مكيّف لعدد مشاريع قليل:
   عمود تعريفي ثابت + كروت كبيرة بالتفاصيل بدل سلايدر 500 مشروع
   -------------------------------------------------------------------------- */
.work { background: var(--paper); }

.work__heading { font-size: var(--fs-h2); line-height: 1.05; }
.work__footer { margin-block-start: 1.5em; }
.work__footer .lead { max-width: 25em; }
.work__footer .tags { margin-block: 1.5em 2.25em; }

.work__list { margin-block-start: 2.5em; }

@media (min-width: 1200px) {
  .work { display: flex; justify-content: space-between; }
  .work__intro { width: calc(36% - 1em); }
  .work__intro-inner {
    position: sticky;
    inset-block-start: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    padding-block: 6.5rem 2.5rem;
    margin-block: calc(var(--section-y-lg) * -1);
  }
  .work__list {
    width: calc(64% - 1em);
    margin-block-start: 0;
    padding-inline-start: 0.75em;
    border-inline-start: 1px solid var(--color-border);
  }
}
@media (min-width: 1400px) {
  .work__intro { width: calc(42% - 1em); }
  .work__list { width: calc(58% - 1em); }
}

.project-card {
  padding: 1em;
  border-block-end: 1px solid var(--color-border);
  transition: background-color var(--dur-fast) ease-in, color var(--dur-fast) ease-in, opacity var(--dur-base);
}
.project-card:last-child { border-block-end: 0; }
.latest-card:active { transform: scale(0.98); }
.project-card:hover,
.project-card:focus-within {
  background: var(--color-text);
  color: var(--color-on-dark);
}

.project-card__index { color: var(--color-text-soft); transition: color var(--dur-fast); }
.project-card:hover .project-card__index,
.project-card:focus-within .project-card__index { color: var(--brand-slate-light); }

.project-card__name {
  margin-block: 0.15em 0.9em;
  font-size: var(--fs-h4);
  line-height: 1.35;
}

.project-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6em 1em;
  margin: 0 0 1.25em;
  font-size: var(--fs-label);
  line-height: 1.6;
}
.project-card__meta dt { color: var(--color-text-soft); transition: color var(--dur-fast); }
.project-card__meta dd { margin: 0; }
.project-card:hover .project-card__meta dt,
.project-card:focus-within .project-card__meta dt { color: var(--brand-slate-light); }

.project-card__media-wrap { position: relative; }
.project-card__media { aspect-ratio: 2 / 1; }
.project-card__cta {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 3;
  opacity: 0;
  transform: translate(50%, -50%);   /* RTL: inline-start = right */
  transition: opacity var(--dur-fast);
}
.project-card:hover .project-card__cta,
.project-card:focus-within .project-card__cta { opacity: 1; }

@media (min-width: 1200px) {
  .project-card { display: flex; justify-content: space-between; gap: 1.25em; }
  .project-card__info { width: 16.5rem; flex-shrink: 0; }
  .project-card__meta { grid-template-columns: 1fr; gap: 0.35em; margin: 0; }
  .project-card__meta > div { display: grid; grid-template-columns: 4.75em 1fr; gap: 0.5em; }
  .project-card__media-wrap { flex: 1; }
}

/* فلترة القطاعات */
.work__list.is-filtered .project-card:not(.is-match) { opacity: 0.22; }

/* --------------------------------------------------------------------------
   10. Feature project
   -------------------------------------------------------------------------- */
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 115vh;
  min-height: 115svh;
  background: var(--color-dark);
  color: var(--color-on-dark);
}
.feature__media { position: absolute; inset: 0; opacity: 0.6; }
.feature__content {
  position: sticky;
  inset-block-start: 50vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25em;
}
.feature__label { font-size: var(--fs-h4); }
.feature__name { font-size: var(--fs-label); }

@media (min-width: 1200px) {
  .feature { min-height: 81vh; }
  .feature__media { opacity: 0.45; }
  .feature__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   11. CTA + form
   -------------------------------------------------------------------------- */
.cta { background: var(--color-accent); color: var(--color-on-accent); }

.cta__title {
  max-width: 13em;
  margin-block-end: 0.8em;
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.4rem);
  line-height: 1.35;
}
.cta__form-wrap { margin-block-start: 3em; }
.cta__lead { max-width: 30em; margin-block-end: 3em; }

@media (min-width: 769px) {
  .cta__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-block-end: 6em;
  }
  .cta__intro { width: calc(49% - 1em); margin-block-start: 11em; }
  .cta__form-wrap { width: calc(51% - 1em); margin-block-start: 0; }
  .cta__lead { margin-block-end: 6em; }
}

/* Form */
.contact-form { font-family: var(--font-tech); font-size: var(--fs-label); }
.field-row { display: grid; gap: 0 1em; }
@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; margin-block-end: 1.5em; }
.field label,
.field legend { line-height: 1.6; }

.field input:not([type="checkbox"]),
.field textarea {
  width: 100%;
  padding-block: 0.7em 0.6em;
  border: 0;
  border-block-end: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.5;
  appearance: none;
  transition: background-color var(--dur-base);
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus,
.field textarea:focus { outline: none; background: rgba(255, 255, 255, 0.25); }
.field textarea { min-height: 7em; resize: vertical; }
.field textarea::placeholder { color: var(--color-text-soft); opacity: 1; }

.field.has-error label,
.field.has-error legend { color: #7A1414; }
.field.has-error input,
.field.has-error textarea { border-color: #7A1414; }

.field--choices {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1.4em;
  margin: 0 0 1.75em;
  padding: 0;
  border: 0;
}
.field--choices legend { float: inline-start; margin-inline-end: 0.5em; padding: 0; }

.check { display: inline-flex; align-items: center; gap: 0.5em; cursor: pointer; }
.check input {
  width: 0.95em;
  height: 0.95em;
  margin: 0;
  border: 1px solid currentColor;
  border-radius: 0.1em;
  background: transparent;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast);
}
.check input:checked { background: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-accent); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-block-start: 0.5em;
}

.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  padding: 0.35em 0.6em;
  border: 1px solid currentColor;
  border-radius: 0.15em;
  font-size: var(--fs-label);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.file-btn svg { width: 1em; height: 1em; flex-shrink: 0; }
.file-btn__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn:hover { background: var(--color-text); color: var(--color-on-dark); }
.file-btn:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }

.form-status { min-height: 1.6em; margin-block-start: 1.25em; }
.form-status.is-error { color: #7A1414; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block-start: clamp(4rem, 8vw, 10.5rem);
  padding-inline: var(--gutter);
  background: var(--paper);
}
@media (min-width: 480px) {
  .site-footer { padding-inline: 1.5rem; }
}

.site-footer__top { display: grid; gap: 1em; font-size: var(--fs-label); }
@media (min-width: 990px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; font-size: var(--fs-tech); }
}

.site-footer__links {
  display: grid;
  gap: 2em 1em;
  margin-block: 3em 2em;
}
.site-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 990px) {
  .site-footer__links { grid-template-columns: repeat(4, 1fr); margin-block-start: 5em; }
}

.footer-col__heading {
  padding-block: 0.6em;
  border-block-end: 1px solid currentColor;
  font-size: 1rem;
}
.footer-col li { border-block-end: 1px solid var(--line-soft); }
.footer-col a {
  display: block;
  padding-block: 0.5em;
  transition: background-color 0.05s ease-out;
}
.footer-col a span {
  display: inline-block;
  transition: padding var(--dur-fast) ease-out, color var(--dur-fast) ease-out;
}
.footer-col a:hover,
.footer-col a:focus-visible { background: var(--color-text); }
.footer-col a:hover span,
.footer-col a:focus-visible span { padding-inline-start: 0.6em; color: var(--color-on-dark); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
  padding-block: 2.25em 1.75em;
}
.site-footer__wordmark { display: block; width: min(100%, 62rem); flex: 0 1 62%; color: var(--color-text); }
.site-footer__wordmark svg { width: 100%; height: auto; }
.site-footer__place { font-size: var(--fs-small); }
@media (max-width: 768px) {
  .site-footer__wordmark { flex-basis: 100%; }
}
