/* ==========================================================================
   ARC VIA ART — MASTER STYLESHEET  (css/style.css)
   --------------------------------------------------------------------------
   Order of contents:
   01. Design tokens (shared, dark theme, light theme)
   02. Base & reset
   03. Typography
   04. Layout (container, gridlines, section shells)
   05. Buttons & focus states
   06. Navigation (desktop)
   07. Mobile drawer
   08. Utilities (skip link, reveal system, helpers, noscript)
   09. RTL & Arabic rules
   10. Reduced motion
   11. Responsive breakpoints (480 / 768 / 1024 / 1366)
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand palette (fixed by the brief) */
  --gold: #B8956A;        /* hairlines, numerals, buttons, focus, active */
  --gold-deep: #8A6A43;   /* small gold TEXT on light surfaces (contrast) */

  /* Type */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  /* Motion (fixed by the brief) */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --reveal-duration: 800ms;          /* reveals run 700–900ms */
  --reveal-stagger: 90ms;
  --reveal-shift: 24px;

  /* Shape */
  --radius: 2px;                     /* signature square corners: 0–2px */

  /* Layout */
  --nav-h: 76px;
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* Dark theme (DEFAULT) */
:root,
[data-theme="dark"] {
  --bg: #111111;
  --bg-alt: #1A1A1A;
  --surface: #1A1A1A;
  --surface-alt: #111111;
  --text: #F5F5F5;
  --muted: #A8A39B;
  --gold-text: var(--gold);
  --hairline: rgba(184, 149, 106, .38);
  --hairline-soft: rgba(184, 149, 106, .16);
  --gridline: rgba(184, 149, 106, .055);
  --nav-bg: rgba(17, 17, 17, .82);
  --drawer-shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* Light theme */
[data-theme="light"] {
  --bg: #F5F5F5;
  --bg-alt: #ECEAE6;
  --surface: #ECEAE6;
  --surface-alt: #F5F5F5;
  --text: #1A1A1A;
  --muted: #5E5A54;
  --gold-text: var(--gold-deep);
  --hairline: rgba(138, 106, 67, .45);
  --hairline-soft: rgba(138, 106, 67, .2);
  --gridline: rgba(26, 26, 26, .05);
  --nav-bg: rgba(245, 245, 245, .86);
  --drawer-shadow: rgba(26, 26, 26, .25);
  color-scheme: light;
}


/* ==========================================================================
   02. BASE & RESET
   ========================================================================== */

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

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

/* No horizontal scroll, ever. */
html,
body {
  overflow-x: clip;
}

body {
  min-block-size: 100svh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-inline-size: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: #111111;
}


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}

/* Arabic: one typeface everywhere, no letter-spacing, no uppercase,
   comfortable line-height (~1.8). */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: var(--font-ar);
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] body {
  line-height: 1.8;
}


/* ==========================================================================
   04. LAYOUT
   ========================================================================== */

.container {
  inline-size: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Faint vertical architectural gridlines, desktop only. They sit above the
   page background at very low opacity and never intercept clicks. */
body::before {
  content: "";
  position: fixed;
  inset-block: 0;
  inset-inline: 0;
  margin-inline: auto;
  inline-size: min(100% - 2 * var(--gutter), var(--container));
  border-inline: 1px solid var(--gridline);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% / 12 - 1px),
    var(--gridline) calc(100% / 12 - 1px),
    var(--gridline) calc(100% / 12)
  );
  pointer-events: none;
  z-index: 1;
  display: none;
}

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

/* Section shells. The min-height is TEMPORARY Stage 1 scaffolding so the
   nav can be tested before content exists — later stages remove it as each
   section is built. scroll-margin-top keeps headings clear of the fixed
   navigation. */
.section-shell {
  scroll-margin-block-start: calc(var(--nav-h) + 16px);
  min-block-size: 60vh; /* TEMP — Stage 1 only */
  background-color: var(--bg);
}

.section-shell:nth-of-type(even) {
  background-color: var(--bg-alt);
}

/* Intro and hero stay dark in BOTH themes (fixed design decision). */
.theme-dark-always {
  background-color: #111111;
  color: #F5F5F5;
}

#intro.intro {
  /* Stage 2 builds the intro. Empty and inert until JS activates it. */
  display: none;
}

.site-footer {
  scroll-margin-block-start: calc(var(--nav-h) + 16px);
}


/* ==========================================================================
   05. BUTTONS & FOCUS STATES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 14px;
  padding-inline: 30px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  transition: color .35s var(--ease), border-color .35s var(--ease),
              background-color .35s var(--ease);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

html[lang="ar"] .btn {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}

/* One consistent, clearly visible focus style for everything interactive. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}


/* ==========================================================================
   06. NAVIGATION (desktop)
   ========================================================================== */

.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  /* Over the hero (always dark): transparent with light text. */
  color: #F5F5F5;
  border-block-end: 1px solid transparent;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease);
}

.site-nav.is-scrolled {
  background-color: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  border-block-end-color: var(--hairline-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  block-size: var(--nav-h);
}

/* Brand: transparent PNG artwork. The light version is default; the dark
   version appears only when the nav sits on a light surface. */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  block-size: 34px;
  inline-size: auto;
}

.brand-logo--dark {
  display: none;
}

[data-theme="light"] .site-nav.is-scrolled .brand-logo--light {
  display: none;
}

[data-theme="light"] .site-nav.is-scrolled .brand-logo--dark {
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: inherit;
  transition: color .35s var(--ease);
}

/* Gold hairline that draws in on hover / when the section is active. */
.nav-link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
}

.site-nav.is-scrolled .nav-link:hover,
.site-nav.is-scrolled .nav-link.is-active {
  color: var(--gold-text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-social {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline-end: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 34px;
  block-size: 34px;
  color: inherit;
  opacity: .75;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}

.social-link:hover {
  opacity: 1;
  color: var(--gold);
}

.site-nav.is-scrolled .social-link:hover {
  color: var(--gold-text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 8px;
  color: inherit;
  transition: color .3s var(--ease);
}

.icon-btn:hover {
  color: var(--gold);
}

.site-nav.is-scrolled .icon-btn:hover {
  color: var(--gold-text);
}

/* Theme toggle: show the icon of the theme you switch TO. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.lang-toggle span {
  font-family: var(--font-ar);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
}

html[lang="ar"] .lang-toggle span {
  font-family: var(--font-body);
}

/* Hamburger: two hairlines. Mobile/tablet only. */
.hamburger {
  flex-direction: column;
  gap: 7px;
}

.hamburger-line {
  display: block;
  inline-size: 24px;
  block-size: 1.5px;
  background-color: currentColor;
  transition: transform .4s var(--ease);
}


/* ==========================================================================
   07. MOBILE DRAWER
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background-color: rgba(0, 0, 0, .55);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.drawer-backdrop.is-visible {
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 1100;
  /* Never wider than the viewport. */
  inline-size: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 20px 40px;
  padding-inline: 28px;
  background-color: var(--bg);
  color: var(--text);
  border-inline-start: 1px solid var(--hairline-soft);
  box-shadow: -20px 0 60px var(--drawer-shadow);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}

[dir="rtl"] .mobile-drawer {
  transform: translateX(-100%);
  box-shadow: 20px 0 60px var(--drawer-shadow);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .5s var(--ease), visibility 0s;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 44px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--hairline-soft);
}

.drawer-title {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .drawer-title {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: block;
  padding-block: 14px;
  border-block-end: 1px solid var(--hairline-soft);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  transition: color .3s var(--ease), padding-inline-start .3s var(--ease);
}

html[lang="ar"] .drawer-link {
  font-family: var(--font-ar);
  font-size: 1.3rem;
}

.drawer-link:hover,
.drawer-link.is-active {
  color: var(--gold-text);
  padding-inline-start: 8px;
}

.drawer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-block-start: auto;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hairline-soft);
}

.drawer-social .social-link {
  inline-size: 44px;
  block-size: 44px;
}


/* ==========================================================================
   08. UTILITIES
   ========================================================================== */

/* Skip to content: hidden until focused. */
.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1200;
  padding-block: 10px;
  padding-inline: 18px;
  background-color: var(--gold);
  color: #111111;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #F5F5F5;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   REVEAL SYSTEM (utilities; the IntersectionObserver arrives in Stage 2).
   IMPORTANT: .reveal is added by JavaScript ONLY. Without JS nothing ever
   gets this class, so content always stays visible if scripts fail.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--reveal-duration) var(--ease),
              transform var(--reveal-duration) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal--image {
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--image.is-visible {
  clip-path: inset(0 0 0 0);
}

/* No-JS fallback box. */
.noscript-box {
  position: fixed;
  inset-block-end: 16px;
  inset-inline: 16px;
  z-index: 1300;
  padding: 20px 24px;
  background-color: #1A1A1A;
  color: #F5F5F5;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.8;
  text-align: center;
}

.noscript-box a {
  color: var(--gold);
  text-decoration: underline;
}


/* ==========================================================================
   09. RTL & ARABIC RULES
   --------------------------------------------------------------------------
   Logical properties (margin-inline, padding-inline, inset-inline,
   text-align: start) do the heavy lifting; only true exceptions live here.
   ========================================================================== */

html[lang="ar"] .nav-link {
  font-family: var(--font-ar);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}


/* ==========================================================================
   10. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .rl > span {
    transform: none !important;
  }
}


/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS  (480 / 768 / 1024 / 1366)
   ========================================================================== */

@media (max-width: 479px) {
  /* Keep the bar inside 320px: the theme toggle stays available in the
     drawer, and the brand artwork shrinks a step. */
  .nav-actions #theme-toggle {
    display: none;
  }

  .brand-logo {
    block-size: 30px;
  }

  .nav-inner {
    gap: 12px;
  }
}

@media (min-width: 480px) {
  .brand-logo {
    block-size: 38px;
  }
}

@media (min-width: 1024px) {
  /* Architectural gridlines appear on desktop only. */
  body::before {
    display: block;
  }

  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }
}

@media (min-width: 1366px) {
  /* Social icons join the nav only when there is room for them. */
  .nav-social {
    display: flex;
  }
}

/* ==========================================================================
   12. STAGE 2 — INTRO
   The intro is inert (display:none) unless JS adds .intro-on to <html>;
   without JS it can never block the page. Timing budget: 2.2s max.
   ========================================================================== */

#intro.intro {
  display: none;
}

html.intro-on #intro.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111111;
  color: #F5F5F5;
}

.intro-inner {
  text-align: center;
  padding-inline: 24px;
}

.intro-wordmark {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: #F5F5F5;
}

.intro-via {
  font-style: italic;
  font-size: .52em;
  color: var(--gold);
  padding-inline: .12em;
}

/* The gold hairline that draws itself under the wordmark. */
.intro-line {
  display: block;
  inline-size: min(320px, 60vw);
  block-size: 1px;
  margin-block-start: 20px;
  margin-inline: auto;
  background-color: var(--gold);
}

.intro-tagline {
  margin-block-start: 20px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #A8A39B;
}

html[lang="ar"] .intro-tagline {
  letter-spacing: 0;
  font-size: .9rem;
}

html.intro-on .intro-wordmark {
  animation: intro-word 850ms var(--ease) 120ms both;
}

html.intro-on .intro-line {
  animation: intro-line 750ms var(--ease) 550ms both;
}

html.intro-on .intro-tagline {
  animation: intro-word 700ms var(--ease) 950ms both;
}

html.intro-leave #intro.intro {
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease);
}

@keyframes intro-word {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes intro-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.intro-skip {
  position: absolute;
  inset-block-end: 30px;
  inset-inline-end: 30px;
  padding-block: 12px;
  padding-inline: 18px;
  border: 1px solid rgba(184, 149, 106, .35);
  border-radius: var(--radius);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A8A39B;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

html[lang="ar"] .intro-skip {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}

.intro-skip:hover {
  color: var(--gold);
  border-color: var(--gold);
}


/* ==========================================================================
   13. STAGE 2 — HERO (always dark, both themes)
   ========================================================================== */

#hero.section-shell {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-block-size: 100svh;
  overflow: hidden;
  background-color: #111111;
  color: #F5F5F5;
}

.hero-media {
  position: absolute;
  inset: 0;
}

/* Oversized by the parallax budget (40px) so translation never shows a gap. */
.hero-media img {
  position: absolute;
  inset-block-start: -40px;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: calc(100% + 40px);
  object-fit: cover;
  will-change: transform;
}

/* Neutral placeholder (dark surface + hairline grid) shown only when the
   image file is missing — never a broken-image icon. */
.media-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  background-color: #161616;
  background-image:
    repeating-linear-gradient(90deg, rgba(184, 149, 106, .08) 0 1px, transparent 1px calc(100% / 12)),
    repeating-linear-gradient(0deg, rgba(184, 149, 106, .05) 0 1px, transparent 1px 64px);
}

.is-missing img {
  display: none;
}

.is-missing .media-placeholder {
  display: block;
}

/* Restrained overlay: just enough to keep the text readable. */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, .84) 0%, rgba(17, 17, 17, .28) 46%, rgba(17, 17, 17, .18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block-start: calc(var(--nav-h) + 48px);
  padding-block-end: clamp(76px, 13vh, 140px);
}

.hero-eyebrow {
  margin-block-end: 22px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #f0d9a8;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.8);
}

html[lang="ar"] .hero-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}

.hero-headline {
  max-inline-size: 12ch;
  margin-block-end: 26px;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.08;
  color: #F5F5F5;
}

html[lang="ar"] .hero-headline {
  max-inline-size: 16ch;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.45;
}

.hero-text {
  max-inline-size: 560px;
  margin-block-end: 38px;
  font-size: .95rem;
  color: rgba(245, 245, 245, .82);
}

html[lang="ar"] .hero-text {
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* On the always-dark hero the button tokens are pinned to the dark set. */
.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--solid {
  background-color: var(--gold);
  color: #111111;
}

.btn--gold:hover {
  background-color: var(--gold);
  color: #111111;
}

.btn--ghost {
  border-color: rgba(245, 245, 245, .3);
  color: #F5F5F5;
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Small vertical scroll cue, fades out once the visitor scrolls. */
.hero-scroll-cue {
  position: absolute;
  inset-block-end: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: opacity .5s var(--ease);
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
}

.hero-scroll-cue-line {
  position: relative;
  display: block;
  inline-size: 1px;
  block-size: 52px;
  background-color: rgba(184, 149, 106, .28);
  overflow: hidden;
}

.hero-scroll-cue-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: -50%;
  block-size: 50%;
  background-color: var(--gold);
  animation: cue-drop 1.8s var(--ease) infinite;
}

@keyframes cue-drop {
  to { inset-block-start: 110%; }
}


/* ==========================================================================
   14. STAGE 2 — SECTION HEADER SIGNATURE + ABOUT
   ========================================================================== */

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-block-end: clamp(40px, 6vw, 72px);
}

.section-numeral {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold-text);
}

.section-hairline {
  inline-size: 56px;
  block-size: 1px;
  background-color: var(--hairline);
}

.section-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .section-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.15;
}

html[lang="ar"] .section-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.5;
}

#about.section-shell {
  min-block-size: 0; /* replaces the temporary Stage 1 scaffolding height */
  padding-block: clamp(90px, 12vw, 160px);
}

/* Asymmetric 12-column editorial layout. */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.about-text {
  grid-column: 1 / span 7;
}

.about-heading {
  margin-block-end: 30px;
}

.about-paragraphs p {
  max-inline-size: 62ch;
  margin-block-end: 18px;
  color: var(--muted);
}

.about-paragraphs p:first-child {
  color: var(--text);
}

/* Offset media column: starts lower than the text column (asymmetry),
   thin gold hairline frame. */
.about-media {
  position: relative;
  grid-column: 8 / -1;
  margin-block-start: clamp(48px, 8vw, 120px);
  aspect-ratio: 1280 / 649; /* matches the exterior photo so it is not cropped */
  border: 1px solid var(--hairline);
  padding: 10px;
}

.about-media img {
  position: absolute;
  inset: 10px;
  inline-size: calc(100% - 20px);
  block-size: calc(100% - 20px);
  object-fit: cover;
}

.about-media .media-placeholder {
  inset: 10px;
}

/* Vision + Mission: two ruled blocks integrated INTO About. */
.about-vm {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  margin-block-start: clamp(36px, 5vw, 64px);
}

.vm-block {
  border-block-start: 1px solid var(--hairline);
  padding-block-start: 22px;
}

.vm-label {
  margin-block-end: 14px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-text);
}

html[lang="ar"] .vm-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: .98rem;
}

.vm-text {
  font-size: .92rem;
  color: var(--muted);
}

html[lang="ar"] .vm-text {
  font-size: 1rem;
}


/* ==========================================================================
   15. STAGE 2 — REVEAL SYSTEM ADDITIONS
   .reveal / .reveal--image / .is-visible base utilities live in section 08.
   Masked line reveal for headlines (spans are built by JS only).
   ========================================================================== */

.rl {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block-end: .1em;   /* keep descenders inside the mask */
  margin-block-end: -.1em;
}

.rl > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 800ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-lines.is-visible .rl > span {
  transform: none;
}

/* Instant restyle (used when content re-renders on language change). */
.reveal.is-visible.no-anim,
.reveal--image.is-visible.no-anim {
  transition: none;
}


/* ==========================================================================
   16. STAGE 2 — RESPONSIVE (480 / 768 / 1024 / 1366)
   ========================================================================== */

@media (max-width: 1023px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .about-media {
    margin-block-start: 0;
    max-inline-size: 560px;
  }
}

@media (max-width: 767px) {
  .about-vm {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }
}


/* ==========================================================================
   17. STAGE 3 — SERVICES (editorial pillar grid, no rounded cards)
   ========================================================================== */

#services.section-shell {
  min-block-size: 0; /* replaces the temporary Stage 1 scaffolding height */
  padding-block: clamp(90px, 12vw, 160px);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 28px);
}

/* Balanced 2x2 editorial grid on larger screens; equal-height rows. */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: clamp(20px, 2.6vw, 40px);
  }
}

.service-pillar {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline-soft);
  padding: clamp(26px, 3vw, 42px);
  transition: border-color 500ms var(--ease);
}

.service-pillar:hover {
  border-color: var(--hairline);
}

.pillar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: clamp(22px, 3vw, 34px);
}

.pillar-numeral {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  color: var(--gold-text);
}

.pillar-icon {
  inline-size: 32px;
  block-size: 32px;
  color: var(--gold-text);
}

.pillar-icon svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.pillar-title {
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  line-height: 1.2;
  margin-block-end: 14px;
}

html[lang="ar"] .pillar-title {
  line-height: 1.5;
}

.pillar-desc {
  color: var(--muted);
  font-size: .95rem;
  margin-block-end: 24px;
}

.pillar-services {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.pillar-services li {
  position: relative;
  padding-block: 11px;
  padding-inline-start: 20px;
  border-block-start: 1px solid var(--hairline-soft);
  font-size: .92rem;
}

.pillar-services li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  inline-size: 8px;
  block-size: 1px;
  background-color: var(--gold-text);
}

.pillar-cta {
  margin-block-start: auto;
  padding-block-start: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-decoration: none;
}

html[lang="ar"] .pillar-cta {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}

.pillar-cta::after {
  content: "";
  inline-size: 26px;
  block-size: 1px;
  background-color: currentColor;
  transition: inline-size 400ms var(--ease);
}

.pillar-cta:hover::after,
.pillar-cta:focus-visible::after {
  inline-size: 44px;
}


/* ==========================================================================
   18. STAGE 3 — OUR APPROACH (ruled strip + connected timeline)
   ========================================================================== */

#approach.section-shell {
  min-block-size: 0; /* replaces the temporary Stage 1 scaffolding height */
  padding-block: clamp(90px, 12vw, 160px);
}

/* Ruled four-word strip (wording fixed by the master prompt). */
/* ------------------------------------------------------------------
   STATS STRIP (owner's real numbers, 2026-11-23) — directly under the
   hero; three hairline-divided figures, gold Cormorant values. Stacks
   vertically on small screens. Logical properties throughout.
   ------------------------------------------------------------------ */
.stats-strip {
  background-color: var(--bg);
  border-block-end: 1px solid var(--hairline-soft);
}

.stats-strip__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding-block: clamp(28px, 4vw, 44px);
  padding-inline: clamp(12px, 2vw, 28px);
  text-align: center;
}

.stat + .stat {
  border-inline-start: 1px solid var(--hairline-soft);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--gold-text);
  margin-block-end: 10px;
}

.stat-label {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .stat-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: .95rem;
}

@media (max-width: 640px) {
  .stats-strip__row {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-inline-start: 0;
    border-block-start: 1px solid var(--hairline-soft);
  }

  .stat {
    padding-block: 22px;
  }
}

.approach-strip {
  border-block: 1px solid var(--hairline-soft);
  padding-block: 20px;
  margin-block-end: clamp(56px, 7vw, 96px);
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

html[lang="ar"] .approach-strip {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  line-height: 2;
}

.approach-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 56px);
}

/* The gold hairline connecting the stages. Draws in (scale) when the
   timeline gets .is-visible from the reveal IntersectionObserver. */
.approach-line {
  position: absolute;
  background-color: var(--gold);
  transition: transform 1400ms var(--ease) 250ms;
}

/* Mobile / default: vertical line down the inline-start edge. */
.approach-line {
  inset-block: 8px;
  inset-inline-start: 7px;
  inline-size: 1px;
  transform: scaleY(0);
  transform-origin: top;
}

.approach-timeline.is-visible .approach-line {
  transform: scaleY(1);
}

.approach-stage {
  position: relative;
  padding-inline-start: 40px;
}

.approach-stage::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 14px;
  inline-size: 15px;
  block-size: 15px;
  border: 1px solid var(--gold);
  background-color: var(--bg);
}

.stage-numeral {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--gold-text);
  margin-block-end: 16px;
}

.stage-title {
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  line-height: 1.25;
  margin-block-end: 12px;
}

html[lang="ar"] .stage-title {
  line-height: 1.5;
}

.stage-text {
  color: var(--muted);
  font-size: .95rem;
  max-inline-size: 42ch;
}

/* Desktop: horizontal timeline, the line runs across above the stages. */
@media (min-width: 1024px) {
  .approach-timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(28px, 3vw, 48px);
    padding-block-start: 64px;
  }

  .approach-line {
    inset-block: 0;
    inset-block-start: 0;
    inset-inline: 7px;
    inline-size: auto;
    block-size: 1px;
    transform: scaleX(0);
    transform-origin: left;
  }

  html[dir="rtl"] .approach-line {
    transform-origin: right;
  }

  .approach-timeline.is-visible .approach-line {
    transform: scaleX(1);
  }

  .approach-stage {
    padding-inline-start: 0;
  }

  .approach-stage::before {
    inset-block-start: -71px;
  }
}

/* Tablet: two columns keep the vertical connector readable. */
@media (min-width: 768px) and (max-width: 1023px) {
  .approach-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479px) {
  .approach-strip {
    font-size: .68rem;
    letter-spacing: .1em;
  }

  html[lang="ar"] .approach-strip {
    font-size: .9rem;
  }
}


/* ==========================================================================
   19. STAGE 4 — PROJECTS grid + project overlay
   ========================================================================== */

#projects.section-shell {
  min-block-size: 0; /* replaces the temporary Stage 1 scaffolding height */
  padding-block: clamp(90px, 12vw, 160px);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.4vw, 48px);
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Elegant empty state (projects.js ships EMPTY on purpose). */
.projects-empty {
  margin: 0;
  padding-block: clamp(48px, 8vw, 96px);
  border-block: 1px solid var(--hairline-soft);
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--muted);
}

html[lang="ar"] .projects-empty {
  line-height: 1.8;
}

.projects-empty[hidden] {
  display: none;
}

/* Card */
.project-card {
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.project-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline-soft);
  background-color: var(--surface);
}

.project-cover img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.project-card:hover .project-cover img,
.project-card:focus-visible .project-cover img {
  transform: scale(1.04);
}

.project-card-body {
  padding-block-start: 20px;
}

.project-card-title {
  display: inline-block;
  position: relative;
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  padding-block-end: 8px;
  transition: transform 500ms var(--ease);
}

html[lang="ar"] .project-card-title {
  line-height: 1.5;
}

/* Thin gold underline that draws in on hover/focus. */
.project-card-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 100%;
  block-size: 1px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}

html[dir="rtl"] .project-card-title::after {
  transform-origin: right;
}

.project-card:hover .project-card-title,
.project-card:focus-visible .project-card-title {
  transform: translateX(6px);
}

html[dir="rtl"] .project-card:hover .project-card-title,
html[dir="rtl"] .project-card:focus-visible .project-card-title {
  transform: translateX(-6px);
}

.project-card:hover .project-card-title::after,
.project-card:focus-visible .project-card-title::after {
  transform: scaleX(1);
}

.project-card-desc {
  margin-block-start: 8px;
  color: var(--muted);
  font-size: .92rem;
}

.project-card-view {
  display: block;
  inline-size: fit-content;
  margin-block-start: 14px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

html[lang="ar"] .project-card-view {
  letter-spacing: 0;
  text-transform: none;
  font-size: .85rem;
}

/* ---- Overlay ---- */
.project-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}

.project-overlay[hidden] {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 10, .88);
}

.overlay-panel {
  position: relative;
  inline-size: min(1120px, 100%);
  max-block-size: 96dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #111111;
  color: #F5F5F5;
  border: 1px solid rgba(184, 149, 106, .3);
  padding: clamp(18px, 3vw, 40px);
}

/* Always-dark panel: the overlay sits over a dimmed page in both themes. */
.overlay-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, .72);
  color: #F5F5F5;
  border: 1px solid rgba(184, 149, 106, .4);
  cursor: pointer;
  transition: border-color 400ms var(--ease);
}

.overlay-close:hover {
  border-color: var(--gold);
}

.overlay-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #161616;
  border: 1px solid rgba(184, 149, 106, .18);
  block-size: min(62dvh, 640px);
}

.overlay-media img {
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
}

.overlay-nav {
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 2;
  inline-size: 44px;
  block-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, .72);
  color: #F5F5F5;
  border: 1px solid rgba(184, 149, 106, .4);
  cursor: pointer;
  transition: border-color 400ms var(--ease);
}

.overlay-nav:hover {
  border-color: var(--gold);
}

.overlay-prev { inset-inline-start: 10px; }
.overlay-next { inset-inline-end: 10px; }

html[dir="rtl"] .overlay-nav svg {
  transform: scaleX(-1);
}

.overlay-nav[hidden],
.overlay-counter[hidden],
.overlay-thumbs[hidden] {
  display: none;
}

.overlay-counter {
  position: absolute;
  direction: ltr; /* the "1 / N" pattern never mirrors */
  inset-block-end: 10px;
  inset-inline-end: 12px;
  font-size: .78rem;
  letter-spacing: .12em;
  color: rgba(245, 245, 245, .75);
  background: rgba(17, 17, 17, .6);
  padding: 4px 10px;
}

/* Thumbnail strip: scrolls horizontally INSIDE its own container. */
.overlay-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-block-start: 14px;
  scrollbar-width: thin;
}

.overlay-thumb {
  flex: 0 0 auto;
  inline-size: 84px;
  block-size: 60px;
  padding: 0;
  border: 1px solid rgba(184, 149, 106, .25);
  background: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity 400ms var(--ease), border-color 400ms var(--ease);
}

.overlay-thumb img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

.overlay-thumb:hover,
.overlay-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}

.overlay-details {
  padding-block-start: clamp(20px, 3vw, 32px);
}

.overlay-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-block-end: 10px;
}

html[lang="ar"] .overlay-title {
  line-height: 1.5;
}

.overlay-desc {
  color: rgba(245, 245, 245, .75);
  max-inline-size: 68ch;
}

.overlay-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 28px;
  row-gap: 12px;
  margin: 24px 0 0;
  padding-block-start: 20px;
  border-block-start: 1px solid rgba(184, 149, 106, .18);
}

.overlay-meta dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  padding-block-start: 3px;
}

html[lang="ar"] .overlay-meta dt {
  letter-spacing: 0;
  text-transform: none;
  font-size: .85rem;
}

.overlay-meta dd {
  margin: 0;
  color: rgba(245, 245, 245, .85);
}


/* ==========================================================================
   20. STAGE 5 — CONTACT
   ========================================================================== */

#contact.section-shell {
  min-block-size: 0; /* replaces the temporary Stage 1 scaffolding height */
  padding-block: clamp(90px, 12vw, 160px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 90px);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.contact-heading {
  margin-block-end: 18px;
}

.contact-lead {
  color: var(--muted);
  max-inline-size: 46ch;
  margin-block-end: clamp(28px, 4vw, 44px);
}

.contact-direct {
  display: grid;
  gap: 14px;
}

.whatsapp-direct {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--hairline-soft);
  padding: 18px 22px;
  text-decoration: none;
  transition: border-color 400ms var(--ease);
}

.whatsapp-direct:hover {
  border-color: var(--hairline);
}

.whatsapp-direct-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

html[lang="ar"] .whatsapp-direct-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}

.whatsapp-direct-number {
  font-size: 1.05rem;
  color: var(--text);
  unicode-bidi: isolate;
}

/* Form */
.contact-form {
  border: 1px solid var(--hairline-soft);
  padding: clamp(24px, 3.4vw, 46px);
  display: grid;
  gap: 22px;
}

.field label,
.contact-numbers legend {
  display: block;
  margin-block-end: 9px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .field label,
html[lang="ar"] .contact-numbers legend {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}

.field input,
.field select,
.field textarea {
  inline-size: 100%;
  background-color: transparent;
  border: 1px solid var(--hairline-soft);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: 13px 16px;
  transition: border-color 400ms var(--ease);
}

.field textarea {
  resize: vertical;
  min-block-size: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #B4655A;
}

.field-error {
  margin-block-start: 8px;
  font-size: .82rem;
  color: #C98B81;
}

.contact-numbers {
  border: 0;
  margin: 0;
  padding: 0;
}

.contact-number-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hairline-soft);
  padding: 12px 18px;
  cursor: pointer;
  font-size: .95rem;
  transition: border-color 400ms var(--ease);
}

.contact-number:hover {
  border-color: var(--hairline);
}

.contact-number:has(:checked) {
  border-color: var(--gold);
}

.contact-number input {
  accent-color: var(--gold);
}

.contact-number span {
  unicode-bidi: isolate;
}

.contact-submit {
  justify-self: start;
}

.form-status {
  min-block-size: 1px;
}

.form-status-text {
  font-size: .9rem;
  color: var(--muted);
}

.form-status-link {
  display: inline-block;
  margin-block-start: 10px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

html[lang="ar"] .form-status-link {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}


/* ==========================================================================
   21. STAGE 5 — FOOTER
   ========================================================================== */

.site-footer {
  border-block-start: 1px solid var(--hairline-soft);
  padding-block: clamp(48px, 7vw, 80px) 30px;
  background-color: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 48px);
  padding-block-end: clamp(36px, 5vw, 60px);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    align-items: start;
  }

  .footer-contact {
    grid-column: 3;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: auto;
  }
}

.footer-logo {
  block-size: 38px;
  inline-size: auto;
  margin-block-end: 16px;
}

.footer-logo--dark {
  display: none;
}

[data-theme="light"] .footer-logo--light {
  display: none;
}

[data-theme="light"] .footer-logo--dark {
  display: block;
}

.footer-tagline {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--gold-text);
}

html[lang="ar"] .footer-tagline {
  letter-spacing: 0;
  font-size: .95rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color 400ms var(--ease);
}

.footer-link:hover {
  color: var(--text);
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-whatsapp {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
}

.footer-whatsapp-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.footer-whatsapp span:last-child {
  unicode-bidi: isolate;
  font-size: .95rem;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-block-start: 1px solid var(--hairline-soft);
  padding-block-start: 24px;
  font-size: .82rem;
  color: var(--muted);
}

.footer-copy {
  margin: 0;
}

.footer-top {
  color: var(--muted);
  text-decoration: none;
  transition: color 400ms var(--ease);
}

.footer-top:hover {
  color: var(--gold-text);
}

/* ------------------------------------------------------------------
   PROJECT KIND: badge on cards, filter bar, overlay tabs (Design/Execution)
   ------------------------------------------------------------------ */
.project-cover { position: relative; }
.project-badge {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
  padding: 5px 10px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #F5F5F5; background: rgba(17,17,17,.72); border: 1px solid rgba(184,149,106,.55);
}
.project-badge--build { color: #111; background: #B8956A; border-color: #B8956A; }
html[lang="ar"] .project-badge { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.projects-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 28px; }
.projects-filter[hidden], .overlay-tabs[hidden] { display: none; }
.projects-filter__btn, .overlay-tab {
  font: inherit; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  padding: 9px 16px; background: transparent; color: var(--muted, #aaa); border: 1px solid var(--hairline-soft, #444);
}
html[lang="ar"] .projects-filter__btn, html[lang="ar"] .overlay-tab { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.projects-filter__btn[aria-pressed="true"] { color: #111; background: #B8956A; border-color: #B8956A; }
.overlay-tabs { display: flex; gap: 8px; padding: 12px 16px 0; }
.overlay-tab { color: #F5F5F5; border-color: rgba(245,245,245,.25); }
.overlay-tab[aria-pressed="true"] { color: #111; background: #B8956A; border-color: #B8956A; }
.projects-filter__btn:focus-visible, .overlay-tab:focus-visible { outline: 2px solid #B8956A; outline-offset: 2px; }

.overlay-tabs--spaces { flex-wrap: wrap; }

/* Vision tagline: English line shown with the Vision text */
.vm-line { margin-top: 0.9rem; font-style: italic; color: var(--gold-text); }
html[lang="ar"] .vm-line { text-align: right; }


/* Sticky WhatsApp button: phones only. Hidden while the contact section is in view. */
.wa-sticky { display: none; }
@media (max-width: 767px) {
  .wa-sticky {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset-block-end: 16px;
    inset-inline-end: 16px;
    z-index: 100; /* below the project popup (120) and the menu */
    min-block-size: 48px;
    padding: 0 22px;
    background: var(--gold);
    color: #111;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .wa-sticky.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
  /* Bigger tap areas on phones */
  .footer-link { display: inline-block; padding-block: 12px; }
  .footer-links { gap: 0; }
  .social-link { inline-size: 44px; block-size: 44px; }
  .brand-link, #brand-link { display: inline-flex; align-items: center; min-block-size: 44px; }
}
@media (max-width: 767px) {
  .footer-top { display: inline-flex; align-items: center; min-block-size: 44px; }
}

body.overlay-open .wa-sticky { opacity: 0; pointer-events: none; }

.hero-areas {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
  color: #f1dfc0;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
}

.contact-areas {
  margin: 0 0 1.5rem;
  font-size: .95rem;
  line-height: 1.8;
  opacity: .85;
}

.overlay-story {
  margin: 0 0 14px;
  color: rgba(245, 245, 245, .88);
  max-inline-size: 68ch;
  white-space: pre-line;
  line-height: 1.85;
}

.overlay-compare { margin: 6px 0 18px; }
.overlay-compare-title { margin: 0 0 10px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.compare-row { margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.compare-cell { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: rgba(255,255,255,.04); }
.compare-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-tag { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; padding: 2px 8px; font-size: .72rem; background: rgba(0,0,0,.65); color: #fff; }
.compare-tag--built { background: var(--gold); color: #1a1a1a; }
.compare-row figcaption { grid-column: 1 / -1; font-size: .85rem; opacity: .8; }

.about-founder { margin-block-start: 36px; padding-block-start: 28px; border-block-start: 1px solid var(--hairline); max-inline-size: 62ch; }
.about-founder p { margin: 0 0 14px; }
.founder-name { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-block-end: 2px !important; }
.founder-role { font-size: .85rem; color: var(--gold-text); margin-block-end: 20px !important; }
.founder-lead { font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.7; }
.founder-body { color: var(--muted); line-height: 1.9; }
.founder-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.founder-steps li { display: flex; gap: 14px; align-items: baseline; }
.founder-step-num { color: var(--gold-text); font-size: .9rem; letter-spacing: .05em; min-inline-size: 2ch; }
.founder-step-title { display: block; color: var(--text); font-weight: 600; }
.founder-step-text { display: block; color: var(--muted); line-height: 1.8; margin-block-start: 2px; }

.stats-strip__row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

@media (max-width: 1023px) {
  .about-media { align-self: stretch; inline-size: 100%; }
}

.contact-start { margin: 0 0 1.75rem; max-inline-size: 38rem; }
.start-title { margin: 0 0 12px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.start-steps { margin-block-start: 0; gap: 12px; }
.start-steps .founder-step-text { color: var(--text); opacity: .9; margin: 0; }

.contact-reply { margin: 0; font-size: .9rem; opacity: .8; }

.project-card-sub { margin: 0 0 6px; font-size: .95rem; color: var(--muted); }
.overlay-sub { margin: -4px 0 12px; color: var(--gold-text); font-size: .95rem; }
.overlay-sub[hidden] { display: none; }

/* Services intro line (Greater Cairo scope). */
.services-intro {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Project window: contact button (added after review) */
.overlay-cta { margin-top: 24px; display: inline-flex; max-width: 100%; text-align: center; white-space: normal; }
