/* ============================================================
   SOLID BRACE — Premium Architectural Monochrome
   Warm paper white · ink black · graphite · thin metallic hairline
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Warm, editorial neutrals — no colour, just tone */
  --paper:        #F5F3EF;   /* warm off-white base */
  --paper-2:      #EEEBE4;   /* slightly deeper panel */
  --ink:          #14140F;   /* near-black warm ink */
  --ink-soft:     #2A2A24;
  --graphite:     #6B6B63;   /* muted body text */
  --graphite-2:   #9A9A90;   /* captions / dim */
  --line:         #DAD6CC;   /* hairline dividers */
  --line-soft:    #E4E0D7;

  /* Dark contrast section */
  --dark:         #141410;
  --dark-2:       #1C1C17;
  --dark-line:    #33332B;
  --on-dark:      #F0EDE6;
  --on-dark-dim:  #A6A69C;

  /* The single "accent": a restrained metallic champagne.
     Used only for thin lines / small marks — never big fills. */
  --metal:        #A08A5B;
  --metal-soft:   #C4B489;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Jost", system-ui, -apple-system, sans-serif;

  /* Spacing (8pt) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  --container: 1240px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.45s;

  --z-header: 100;
  --z-mobile-nav: 90;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 6vw, 4rem);
}

/* the "accent" is now just an underline/hairline treatment, not a colour block */
.text-accent {
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   LOADER — logo + thin champagne progress line on dark
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.loader__mark { color: var(--on-dark); display: inline-flex; }
.loader__mark svg { animation: loaderPulse 2s var(--ease-in-out) infinite; }
@keyframes loaderPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.04); }
}
.loader__wordmark {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.34em;
  font-size: 0.82rem;
  color: var(--on-dark-dim);
  padding-inline-start: 0.34em;
}
.loader__track {
  width: 140px;
  height: 1px;
  background: rgba(240, 237, 230, 0.15);
  overflow: hidden;
  margin-top: 0.5rem;
}
.loader__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--metal-soft);
  transition: width 0.3s var(--ease-out);
}

.skip-link {
  position: absolute;
  top: 0;
  inset-inline-start: 1rem;
  transform: translateY(-150%);   /* hidden above the viewport — RTL-safe, no overflow */
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateY(1rem); }

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  padding: 1.05rem 2rem;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: color var(--dur) var(--ease-out);
  z-index: 0;
}
/* fill-from-bottom hover — quiet and premium */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease-out);
  z-index: -1;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }

/* primary (solid ink) inverts on hover to outline */
.btn--accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--accent::before { background: var(--paper); }
.btn--accent:hover { color: var(--ink); }

/* ghost on dark backgrounds */
.btn--ghost {
  border-color: var(--on-dark-dim);
  color: var(--on-dark);
}
.btn--ghost::before { background: var(--on-dark); }
.btn--ghost:hover { color: var(--dark); }

.btn--lg { padding: 1.2rem 2.4rem; font-size: 0.78rem; }
.btn__icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(5px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(245, 243, 239, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 104px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  height: 100px;
  overflow: hidden;      /* clipping window — crops the logo's baked-in whitespace */
  position: relative;
}
.brand__mark { color: var(--ink); display: inline-flex; }
.brand__text {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  padding-left: 0.15em;
}
/* The logo artwork (X-brace + wordmark) occupies the centre ~26%–73% band of the
   square PNG. We size the square large so that band renders big and readable, then
   centre it in the .brand window; overflow:hidden trims the surrounding whitespace. */
.brand__logo {
  width: 190px;
  height: 190px;
  margin: -22px -22px;    /* vertical: centre the tall band in the 100px window; horizontal: trim side whitespace */
  object-fit: contain;
  display: block;
  transition: opacity var(--dur) var(--ease-out);
}
/* Over the video (top of page) show the WHITE logo; once the header turns to a
   solid paper bar on scroll, cross-fade to the DARK logo. The dark logo is
   absolutely positioned, so it must repeat the light logo's -22px offset to sit
   in exactly the same spot (otherwise it renders 22px too low). */
.brand__logo--dark { position: absolute; top: -22px; left: 0; opacity: 0; }
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--dark { opacity: 1; }

.nav { display: none; }
.nav__list { display: flex; gap: var(--space-4); }
.nav__link {
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--dur) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Over the video (top): light nav text + underline. Reverts to dark on scroll. */
.site-header:not(.is-scrolled) .nav__link { color: rgba(240, 237, 230, 0.82); }
.site-header:not(.is-scrolled) .nav__link:hover { color: #FDFCFA; }
.site-header:not(.is-scrolled) .nav__link::after { background: #FDFCFA; }
.site-header:not(.is-scrolled) .nav-toggle span { background: #FDFCFA; }

.header__cta { display: none; }
.header__actions { display: none; align-items: center; gap: var(--space-3); }

/* Language toggle */
.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;                 /* room for Arabic ascenders/dots so "العربية" isn't clipped */
  color: var(--graphite);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink); }
/* Light styling for header toggles while over the dark hero video (not scrolled) */
.site-header:not(.is-scrolled) .lang-toggle {
  color: rgba(240, 237, 230, 0.9);
  border-color: rgba(240, 237, 230, 0.45);
}
.site-header:not(.is-scrolled) .lang-toggle:hover {
  color: #FDFCFA;
  border-color: #FDFCFA;
}

/* Arabic label ("العربية") — no Latin letter-spacing (which breaks the connected
   script), an Arabic-friendly font, and a hair more size so it reads cleanly. */
.lang-toggle__text[lang="ar"] {
  letter-spacing: 0;
  font-family: "Tajawal", var(--font-body);
  font-size: 0.92rem;
  text-transform: none;
}

/* Mobile top-bar language toggle — sits beside the burger, always visible */
.header__mobile-actions { display: flex; align-items: center; gap: var(--space-2); }
.lang-toggle--bar {
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  min-height: 42px;
  line-height: 1.4;
}

/* Mobile toggle */
.nav-toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: calc(var(--z-mobile-nav) + 1);  /* stay above the full-screen overlay so the × shows and is tappable */
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out);
}
/* Open state → crisp × (top bar drops to centre + rotates, bottom rises + rotates,
   middle fades out). Gap is 6px + 2px bars → 8px centre-to-centre. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav — full-screen overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  z-index: var(--z-mobile-nav);
  background: var(--paper);
  padding: calc(104px + var(--space-4)) clamp(1.5rem, 8vw, 3rem) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  overflow-y: auto;
  animation: navFade var(--dur) var(--ease-out);
}
/* Respect the hidden attribute — without this, display:flex above keeps the
   panel visible even when JS sets [hidden], so the burger can't close it. */
.mobile-nav[hidden] { display: none; }
@keyframes navFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Explicit close control, top-right of the overlay — always visible while open */
.mobile-nav__close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1.75rem);
  right: clamp(1.5rem, 8vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease-out);
}
.mobile-nav__close:hover { color: var(--metal); }
.mobile-nav__close svg { display: block; }

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.mobile-nav__link {
  padding: 1.15rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: color var(--dur) var(--ease-out), padding-left var(--dur) var(--ease-out);
}
.mobile-nav__link:hover { color: var(--metal); padding-left: 0.75rem; }
.mobile-nav__cta { margin-top: var(--space-4); justify-content: center; align-self: stretch; }

/* Lock page scroll while the full-screen menu is open */
body.nav-open { overflow: hidden; }

/* While the menu is open, hide the burger — the overlay has its own explicit
   "Close" control (top-right), so a single, unmistakable close affordance shows. */
body.nav-open .nav-toggle,
body.nav-open .lang-toggle--bar { opacity: 0; pointer-events: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 104px;
  overflow: hidden;
  background: var(--dark);
  box-sizing: border-box;   /* keep the 104px header padding INSIDE 100svh, not added on top */
}

.hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--dark); }

/* Background video — fills the hero, shown raw. Poster (hero.jpg) shows instantly
   so there's never a blank frame while it loads. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;   /* purely decorative — never intercept taps */
}
/* Hide any native video controls / play overlays (esp. mobile Safari & Chrome) */
.hero__video::-webkit-media-controls,
.hero__video::-webkit-media-controls-start-playback-button,
.hero__video::-webkit-media-controls-play-button,
.hero__video::-webkit-media-controls-panel,
.hero__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0 !important;
}

/* Dark scrim for white text: deepest at the bottom-left where the copy sits,
   fading to clear over the steel on the upper-right so the footage reads raw.
   Just enough veil to guarantee text contrast without hiding the video. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(10, 11, 12, 0.88) 0%,
      rgba(10, 11, 12, 0.80) 28%,
      rgba(10, 11, 12, 0.45) 52%,
      rgba(10, 11, 12, 0.12) 74%,
      rgba(10, 11, 12, 0.02) 100%),
    linear-gradient(0deg,
      rgba(10, 11, 12, 0.65) 0%,
      rgba(10, 11, 12, 0.18) 45%,
      transparent 75%);
}

/* faint architectural grid, very low contrast */
.hero__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 75% 75% at 70% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 70% 40%, #000 20%, transparent 78%);
  opacity: 0.55;
}

/* giant ghost X-brace watermark, right side */
.hero__glow {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  transform: translateY(-50%);
  background:
    conic-gradient(from 0deg, transparent 0 8%, var(--paper-2) 8% 12%, transparent 12% 38%, var(--paper-2) 38% 42%, transparent 42% 58%, var(--paper-2) 58% 62%, transparent 62% 88%, var(--paper-2) 88% 92%, transparent 92%);
  opacity: 0.6;
  filter: none;
}

/* two thin steel hairlines forming a subtle brace */
.hero__beam {
  position: absolute;
  width: 1px; height: 150%;
  top: -25%;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}
.hero__beam--1 { left: 12%; transform: rotate(20deg); }
.hero__beam--2 { right: 30%; transform: rotate(-20deg); }

.hero__inner {
  position: relative;
  z-index: 3;
  /* Vertical padding that shrinks on short desktop windows so the hero content
     always fits within one screen (100svh) instead of overflowing past it. */
  padding-block: clamp(1.5rem, 5vh, 4.5rem);
}
/* Keep the hero copy in a left column, clear of the engraved plate (which the
   video places centre-right). The .container centres itself, so we cap the copy
   width and let it sit at the container's left edge rather than stretching across. */
.hero__inner > * { max-width: 620px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(240, 237, 230, 0.85);
  margin-bottom: var(--space-4);
}
.hero__eyebrow-dot {
  width: 34px; height: 1px;
  background: var(--metal-soft);
  border-radius: 0;
  animation: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: none;
  font-size: clamp(3.25rem, 9vw, 7rem);
  margin-bottom: var(--space-4);
  color: #FDFCFA;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .text-accent {
  font-style: italic;
  font-weight: 500;
  position: relative;
  color: var(--metal-soft);
}

.hero__lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(240, 237, 230, 0.9);
  margin-bottom: var(--space-5);
  line-height: 1.75;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
/* primary button: solid light on the dark video */
.hero__actions .btn--accent {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.hero__actions .btn--accent::before { background: var(--ink); }
.hero__actions .btn--accent:hover { color: var(--paper); }
/* ghost button: white outline on the dark video */
.hero__actions .btn--ghost {
  border-color: rgba(240, 237, 230, 0.6);
  color: #FDFCFA;
}
.hero__actions .btn--ghost::before { background: #FDFCFA; }
.hero__actions .btn--ghost:hover { color: var(--dark); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.75rem, 7vw, 5rem);
  width: fit-content;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(240, 237, 230, 0.22);
}
.hero__stat dt {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(240, 237, 230, 0.6);
  margin-bottom: 0.6rem;
}
.hero__stat dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: #FDFCFA;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px; height: 64px;
  display: flex;
  justify-content: center;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(240, 237, 230, 0.9), transparent);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(48px); opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  padding-block: 1.4rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}
.marquee__dot { color: var(--metal) !important; font-weight: 400; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); }

.section__head { max-width: 760px; margin-bottom: var(--space-6); }
.section__eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--graphite-2);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.section__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--metal);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  color: var(--ink);
}
.section__title .text-accent { font-style: italic; }
.section__intro {
  margin-top: var(--space-3);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--graphite);
  max-width: 62ch;
  line-height: 1.75;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap-card {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) var(--space-2);
  transition: background-color var(--dur) var(--ease-out);
  position: relative;
}
.cap-card:hover { background: var(--paper-2); }
/* indent inner content via transform (no reflow, no layout push) */
.cap-card > * {
  transition: transform var(--dur) var(--ease-out);
}
.cap-card:hover > * { transform: translateX(var(--space-1)); }

.cap-card__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.cap-card__icon svg { width: 30px; height: 30px; }
.cap-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
}
.cap-card__text { color: var(--graphite); margin-bottom: var(--space-3); font-size: 0.96rem; font-weight: 300; }
.cap-card__list { display: flex; flex-direction: column; gap: 0.55rem; }
.cap-card__list li {
  position: relative;
  padding-inline-start: 1.5rem;   /* flips automatically in RTL */
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--graphite-2);
  text-transform: uppercase;
}
.cap-card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;          /* dash sits before the text in both LTR and RTL */
  top: 0.6em;
  width: 12px; height: 1px;
  background: var(--metal);
}

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--dark); color: var(--on-dark); border-block: 1px solid var(--dark); }
.why .section__eyebrow { color: var(--on-dark-dim); }
.why .section__title { color: var(--on-dark); }
.why .section__intro { color: var(--on-dark-dim); }
.why__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.why__left .section__eyebrow,
.why__left .section__title,
.why__left .section__intro { margin-bottom: var(--space-3); }
.why__left .btn {
  margin-top: var(--space-2);
  border-color: var(--on-dark);
  color: var(--on-dark);
}
.why__left .btn::before { background: var(--on-dark); }
.why__left .btn:hover { color: var(--dark); }

.why__right { display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-1);
  border-bottom: 1px solid var(--dark-line);
  transition: transform var(--dur) var(--ease-out);
}
.feature:hover { transform: translateX(var(--space-1)); }
.feature__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--metal-soft);
  width: 40px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}
.feature__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: var(--on-dark);
}
.feature__text { color: var(--on-dark-dim); font-size: 0.94rem; font-weight: 300; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.proj-card {
  overflow: hidden;
  background: transparent;
  transition: transform var(--dur) var(--ease-out);
}

.proj-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.proj-card__ph {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(20,20,15,0.02) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, #E7E3DA, #D9D5CB);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s var(--ease-out);
}
.proj-card__ph::after {
  content: attr(data-label);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: rgba(20,20,15,0.14);
}
.proj-card__media:hover .proj-card__ph { transform: scale(1.04); }

/* Real project photos fill the frame and zoom subtly on hover —
   only when hovering the image itself, not the caption below it. */
.proj-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}
.proj-card__media:hover img { transform: scale(1.05); }

.proj-card__body { padding: var(--space-3) 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.proj-card__tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite-2);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--metal);
}
.proj-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  font-size: 1.55rem;
  color: var(--ink);
}
.proj-card__meta { color: var(--graphite); font-size: 0.9rem; font-weight: 300; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: var(--space-5) var(--space-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color var(--dur) var(--ease-out);
}
.step:hover { background: var(--paper-2); }
/* indent inner content via transform (no reflow, no layout push) */
.step > * {
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.step:hover > * { transform: translateX(var(--space-1)); }
.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 2.75rem;
  color: var(--line);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
  transition: color var(--dur) var(--ease-out);
}
.step:hover .step__num { color: var(--metal); }
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: none;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.step__text { color: var(--graphite); font-size: 0.94rem; font-weight: 300; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark); color: var(--on-dark); }
.contact .section__eyebrow { color: var(--on-dark-dim); }
.contact .section__title { color: var(--on-dark); }
.contact .section__intro { color: var(--on-dark-dim); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.contact__title { font-size: clamp(2.75rem, 8vw, 6rem); }

.contact__cards { display: grid; gap: 0; border-top: 1px solid var(--dark-line); }
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon label arrow"
    "icon value arrow";
  column-gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-1);
  border-bottom: 1px solid var(--dark-line);
  transition: background-color var(--dur) var(--ease-out);
  position: relative;
}
.contact-card__icon,
.contact-card__label,
.contact-card__value { transition: transform var(--dur) var(--ease-out); }
.contact-card:hover .contact-card__icon,
.contact-card:hover .contact-card__label,
.contact-card:hover .contact-card__value { transform: translateX(var(--space-1)); }
.contact-card::after {
  content: "→";
  grid-area: arrow;
  font-size: 1.1rem;
  color: var(--on-dark-dim);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.contact-card:hover { background: var(--dark-2); }
.contact-card:hover::after { opacity: 1; transform: translateX(0); }
.contact-card__icon {
  grid-area: icon;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--metal-soft);
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label {
  grid-area: label;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-dark-dim);
  margin-bottom: 0.15rem;
}
.contact-card__value {
  grid-area: value;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--on-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding-top: var(--space-6);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
/* Same clipping-window technique as the header logo, so the whitespace is trimmed
   and the tagline below it isn't stuck against the artwork. */
.footer__logo-window {
  height: 84px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}
.footer__logo {
  width: 180px;
  height: 180px;
  margin: -22px -22px;
  object-fit: contain;
  display: block;
}
.footer__tag { color: var(--graphite); font-size: 0.9rem; font-weight: 300; margin-top: 0; font-style: italic; font-family: var(--font-display); }

.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-3); align-content: start; }
.footer__nav a {
  color: var(--graphite);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease-out);
}
.footer__nav a:hover { color: var(--ink); }

.footer__contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__contact a {
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 300;
  transition: color var(--dur) var(--ease-out);
}
.footer__contact a:hover { color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  color: var(--graphite-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.footer__note { color: var(--graphite-2); opacity: 0.8; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-word] {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal-word].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  /* 2-col grids with NO gap so hairlines stay connected.
     Inner padding gives breathing room; a right border on the left
     column meets the top/bottom borders to form one continuous grid. */
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card { padding-inline: var(--space-3); }
  .cap-card:nth-child(odd) { border-inline-end: 1px solid var(--line); }

  .proj-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding-inline: var(--space-3); }
  .step:nth-child(odd) { border-inline-end: 1px solid var(--line); }

  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .header__actions { display: flex; }
  .header__mobile-actions { display: none; }   /* bar toggle + burger hidden on desktop */
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }

  .cap-card { padding: var(--space-6) var(--space-3); }

  /* 4 across — reset the 2-col divider, add one after each of the first 3 */
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(odd) { border-inline-end: none; }
  .step:not(:last-child) { border-inline-end: 1px solid var(--line); }

  .why__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: var(--space-8); }
  .why__left { position: sticky; top: 120px; }

  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: var(--space-5); }
  .proj-card--wide { grid-column: span 2; }
  .proj-card--wide .proj-card__media { aspect-ratio: 21 / 9; }

  .contact__inner { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: var(--space-8); }
  .contact__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   SHORT DESKTOP WINDOWS — compress the hero so it fits one screen
   (on tall windows the spacious spacing is kept). Applies above the
   mobile breakpoint, i.e. desktop/tablet windows that aren't very tall.
   ============================================================ */
@media (min-width: 640px) and (max-height: 860px) {
  .hero { padding-top: 84px; }
  .hero__inner { padding-block: clamp(1rem, 3vh, 2rem); }
  .hero__eyebrow { margin-bottom: 1rem; }
  .hero__title { margin-bottom: 1.25rem; }
  .hero__lede { margin-bottom: 1.5rem; }
  .hero__actions { margin-bottom: 1.75rem; }
  .hero__stats { padding-top: 1.25rem; }
}

/* ============================================================
   MOBILE HERO — declutter + zoom the video out a touch
   ============================================================ */
@media (max-width: 639px) {
  /* Hide only the long paragraph; keep the stats */
  .hero__lede { display: none; }

  /* Hide the second button; keep one, styled as the see-through (ghost) button */
  .hero__actions .btn--accent { display: none; }
  .hero__actions .btn--ghost { display: inline-flex; }

  /* Full-height hero so it fills the screen on first load (only the hero is
     visible before the user scrolls). Content spaced to fill the height. */
  .hero { min-height: 100svh; }
  .hero__inner {
    padding-block: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
  }
  .hero__eyebrow { margin-bottom: var(--space-3); }
  .hero__title {
    margin-bottom: var(--space-4);
    font-size: clamp(3rem, 16vw, 4.5rem);   /* smaller so "STAND." fits the width */
  }
  .hero__actions { margin-bottom: var(--space-6); }

  /* Video stays full-bleed cover (no dark bands). object-position keeps the
     zoomed-out framing you liked showing the steel structure. */
  .hero__video { object-position: center 38%; }

  /* Stats: compact so they sit comfortably at the bottom of the hero */
  .hero__stats { gap: clamp(1rem, 5vw, 2rem); padding-top: var(--space-3); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  [data-reveal-word] { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none; }
  .hero__scroll-line { animation: none; }
  .loader__mark svg { animation: none; }
  /* No motion preference: hide the video, show the static poster frame instead */
  .hero__video { display: none; }
  .hero__bg {
    background-image: url("../assets/hero/hero.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* ============================================================
   ARABIC / RTL
   When body.lang-ar is set, <html dir="rtl"> mirrors the layout
   automatically; these rules handle the font and the few things
   that don't mirror on their own.
   ============================================================ */
body.lang-ar,
body.lang-ar .hero__title,
body.lang-ar .section__title,
body.lang-ar .cap-card__title,
body.lang-ar .feature__title,
body.lang-ar .proj-card__title,
body.lang-ar .step__title,
body.lang-ar .contact-card__value,
body.lang-ar .footer__tag,
body.lang-ar .hero__stat dd {
  font-family: "Tajawal", var(--font-body);
}


/* Arabic display text: no italic (Arabic has no italics) and a touch heavier
   so headings keep their presence without the serif. */
body.lang-ar .hero__title,
body.lang-ar .section__title { font-weight: 700; letter-spacing: 0; line-height: 1.15; }
body.lang-ar .text-accent { font-style: normal; font-weight: 700; }
body.lang-ar .hero__title .text-accent { font-weight: 700; }

/* Arabic reads comfortably a hair larger; relax the tight display line-height */
body.lang-ar .cap-card__title,
body.lang-ar .feature__title,
body.lang-ar .proj-card__title,
body.lang-ar .step__title { line-height: 1.4; }

/* Letter-spacing tricks that suit Latin caps hurt Arabic — neutralise them */
body.lang-ar .hero__eyebrow,
body.lang-ar .section__eyebrow,
body.lang-ar .nav__link,
body.lang-ar .btn,
body.lang-ar .proj-card__tag,
body.lang-ar .cap-card__list li,
body.lang-ar .contact-card__label,
body.lang-ar .hero__stat dt,
body.lang-ar .footer__nav a,
body.lang-ar .lang-toggle {
  letter-spacing: 0;
  text-transform: none;
}

/* Arabic script needs a larger minimum size than Latin to stay legible.
   Bump up the smallest text elements so nothing becomes hard to read. */
body.lang-ar .hero__eyebrow,
body.lang-ar .section__eyebrow { font-size: 0.85rem; }
body.lang-ar .cap-card__list li { font-size: 0.95rem; }
body.lang-ar .proj-card__tag { font-size: 0.8rem; }
body.lang-ar .contact-card__label,
body.lang-ar .hero__stat dt { font-size: 0.8rem; }
body.lang-ar .nav__link { font-size: 0.9rem; }
body.lang-ar .footer__nav a { font-size: 0.9rem; }
body.lang-ar .btn { font-size: 0.85rem; }
body.lang-ar .cap-card__text,
body.lang-ar .feature__text,
body.lang-ar .step__text,
body.lang-ar .proj-card__meta { font-size: 1rem; line-height: 1.7; }
body.lang-ar .footer__bottom { font-size: 0.85rem; }
body.lang-ar .footer__contact a { font-size: 1rem; }

/* Grid dividers use logical border-inline-end (see the grid rules above), so they
   flip automatically in RTL — no Arabic-specific border overrides needed. */

/* RTL: hover indents move content toward the start side (right), not left */
body.lang-ar[dir="rtl"] .cap-card:hover > *,
body.lang-ar[dir="rtl"] .feature:hover,
body.lang-ar[dir="rtl"] .step:hover > *,
body.lang-ar[dir="rtl"] .contact-card:hover .contact-card__icon,
body.lang-ar[dir="rtl"] .contact-card:hover .contact-card__label,
body.lang-ar[dir="rtl"] .contact-card:hover .contact-card__value {
  transform: translateX(calc(var(--space-1) * -1));
}

/* The marquee stays LTR (mixed Latin brand terms) — keep its direction fixed */
body.lang-ar .marquee { direction: ltr; }

/* Keep the "See our work" arrow pointing the right way in RTL */
body.lang-ar[dir="rtl"] .btn__icon,
body.lang-ar[dir="rtl"] .contact-card::after { transform: scaleX(-1); }
