/* =====================================================================
   ATLAS TERRITORIES — site.css
   ===================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; max-width: 100vw; overflow-x: hidden; font-feature-settings: "ss01","cv11"; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: #B89B6A; color: #1A1A1A; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F2EBDD; }
::-webkit-scrollbar-thumb { background: #B89B6A; }
::-webkit-scrollbar-thumb:hover { background: #937848; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 56px); }

/* ---------- Typography ---------- */
.display-xxl { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(48px, 9vw, 156px); line-height: 1.02; letter-spacing: -0.02em; }
.display-xl  { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(44px, 7.2vw, 120px); line-height: 1.04; letter-spacing: -0.02em; }
.display-lg  { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1.08; letter-spacing: -0.015em; }
.display-md  { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -0.01em; }
.eyebrow { font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #937848; margin: 0 0 18px; font-weight: 500; }
.eyebrow--light { color: #B89B6A; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: #3A3A3A; max-width: 56ch; }
.body-lg { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; color: #3A3A3A; margin-bottom: 18px; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: #1A1A1A; color: #F2EBDD; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; will-change: transform; }
.loader__mark { display: flex; align-items: center; justify-content: center; }
.loader__logo { width: clamp(96px, 14vw, 160px); height: auto; opacity: 0; transform: translateY(40px) scale(0.94); will-change: opacity, transform; }
.loader__bar { width: min(320px, 60vw); height: 1px; background: rgba(184,155,106,.25); position: relative; overflow: hidden; }
.loader__bar span { position: absolute; inset: 0; background: #B89B6A; transform-origin: left; transform: scaleX(0); }
.loader__caption { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(48px, 8vw, 110px); letter-spacing: 0.04em; line-height: 1; color: #B89B6A; direction: ltr; unicode-bidi: isolate; opacity: 0; margin-top: clamp(8px, 1.4vw, 18px); }
html.is-rtl .loader, html.is-rtl .loader__mark, html.is-rtl .loader__caption { direction: ltr; unicode-bidi: isolate; }
.is-loaded .loader { pointer-events: none; }

/* ---------- Site nav ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px, 4vw, 56px); transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease, color .35s ease; color: #FFFFFF; }
.site-nav.is-scrolled { background: rgba(26,26,26,.92); backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%); box-shadow: 0 1px 0 rgba(0,0,0,.2); color: #FFFFFF; padding-block: 14px; }
.site-nav__links a { color: #FFFFFF !important; }
.site-nav__links a.is-active { color: #D4B98C !important; }
.site-nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.brand-logo--nav { width: 30px; height: 30px; }
.brand-logo--lg { width: 48px; height: 48px; }
.brand-word { font-family: "Inter", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: 0.4em; }
.brand-word--nav { font-size: 13px; letter-spacing: 0.45em; }
.brand-word--lg { font-size: 15px; display: block; margin-top: 4px; }
.site-nav__links { display: flex; gap: clamp(18px, 2vw, 28px); }
.site-nav__links a { font-family: "Inter", sans-serif; font-size: clamp(12px, 0.95vw, 13px); font-weight: 500; letter-spacing: 0.08em; text-decoration: none; color: inherit; position: relative; padding: 4px 0; transition: color .35s ease; }
.site-nav__links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0; background: #B89B6A; transition: width .45s cubic-bezier(.2,.6,.2,1); }
.site-nav__links a:hover::after, .site-nav__links a.is-active::after { width: 100%; }
.site-nav__links a.is-active { color: #B89B6A; }
@media (max-width: 1100px) {
  .site-nav__links { gap: 14px; }
  .site-nav__links a { font-size: 12px; letter-spacing: 0.05em; }
}
.site-nav__toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; gap: 4px; flex-direction: column; }
.site-nav__toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; }

/* Language switcher — hidden (English-only) */
.lang-switch { display: none !important; }
.lang-switch--legacy { display: inline-flex; align-items: center; gap: 6px; font-family: "Inter", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: inherit; direction: ltr; unicode-bidi: isolate; }
.lang-switch__btn { background: transparent; border: 0; padding: 4px 6px; color: inherit; opacity: .55; cursor: pointer; font: inherit; letter-spacing: inherit; transition: color .25s, opacity .25s; }
.lang-switch__btn.is-active { color: #B89B6A; opacity: 1; }
.lang-switch__sep { opacity: .35; }

@media (max-width: 800px) {
  .site-nav__links { position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 360px; background: #1A1A1A; color: #F2EBDD; flex-direction: column; padding: 96px 32px; gap: 22px; transform: translateX(100%); transition: transform .4s ease; z-index: 65; }
  .site-nav__links.is-open { transform: translateX(0); }
  .site-nav__links a { font-size: 16px; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .site-nav__toggle { display: flex; position: relative; z-index: 66; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 58; background: #1A1A1A; animation: navBackdrop .3s ease forwards; }
  @keyframes navBackdrop { from { opacity: 0; } to { opacity: 1; } }
  html.is-rtl .site-nav__links { inset: 0 auto 0 0; transform: translateX(-100%); }
  html.is-rtl .site-nav__links.is-open { transform: translateX(0); }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; min-height: 100vh; overflow: hidden; display: flex; align-items: center; color: #F2EBDD; }
.hero__bg { position: absolute; inset: 0; z-index: 1; }
.hero__bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transform: scale(1.08); will-change: opacity, transform; pointer-events: none; }
.hero__bg-slide.is-active { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.45) 0%, rgba(26,26,26,.20) 35%, rgba(26,26,26,.62) 100%), radial-gradient(80% 60% at 50% 30%, rgba(184,155,106,.08), transparent 70%); }
.hero__content { position: relative; z-index: 2; padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 56px); max-width: 1280px; margin: 0 auto; width: 100%; direction: ltr; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }

/* Centered-stack hero variant: logo · eyebrow · brand stack · tagline */
.hero__content--centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.hero__logo {
  width: clamp(80px, 9vw, 130px); height: auto; display: block;
  margin: 0 0 28px;
}
.hero__eyebrow {
  font-family: "Inter", sans-serif; font-size: clamp(11px, 1vw, 13px);
  font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
  color: #D4B98C; margin: 0 0 22px;
  direction: ltr; unicode-bidi: isolate;
  opacity: .92;
}
html[lang="ar"] .hero__eyebrow {
  font-family: "Almarai", "Inter", sans-serif; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none; font-size: clamp(13px, 1.1vw, 16px);
}
.hero__brand-stack {
  font-family: "Righteous", sans-serif; font-weight: 500;
  font-size: clamp(48px, 9.5vw, 140px); line-height: 0.94;
  letter-spacing: 0.04em; color: #D4B98C;
  margin: 0;
  text-shadow: 0 6px 36px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center;
  direction: ltr; unicode-bidi: isolate;
}
.hero__brand-stack span { display: block; }
.hero__tagline--center {
  text-align: center !important;
  margin-top: 22px !important;
  max-width: 32ch;
}
html.is-rtl .hero__content { direction: ltr; }
html.is-rtl .hero__tagline { direction: rtl; }
.hero__tagline { flex-shrink: 0; max-width: 32ch; }
.hero__brand { font-family: "Righteous", sans-serif; font-weight: 500; font-size: clamp(56px, 11vw, 168px); line-height: 0.98; letter-spacing: 0.04em; color: #D4B98C; margin: 0; text-shadow: 0 6px 36px rgba(0,0,0,.4); }
.hero__tagline { font-family: "Inter", sans-serif; font-weight: 500; font-size: clamp(14px, 1.6vw, 28px); line-height: 1.45; letter-spacing: 0.12em; text-transform: uppercase; color: #F2EBDD; margin: 0; opacity: .95; text-align: right; max-width: none; will-change: transform, opacity; }
@media (min-width: 1100px) { .hero__tagline { white-space: nowrap; } }
html[lang="ar"] .hero__brand { letter-spacing: 0.06em; }
html[lang="ar"] .hero__tagline { font-family: "Almarai", "Inter", sans-serif; font-weight: 700; letter-spacing: 0.04em; text-transform: none; font-size: clamp(15px, 1.5vw, 20px); color: #F2EBDD; }
@media (max-width: 600px) {
  .hero__brand { font-size: clamp(48px, 14vw, 80px); margin: 0 0 16px 0; letter-spacing: 0.06em; }
  .hero__tagline { font-size: 11px; letter-spacing: 0.22em; }
  html[lang="ar"] .hero__tagline { font-size: 14px; letter-spacing: 0.04em; }
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__tagline { text-align: left; align-self: flex-start; }
  html[lang="ar"] .hero__tagline { text-align: left; }
}
@media (min-width: 1440px) { .hero__content { max-width: 1600px; padding-inline: clamp(40px, 3.4vw, 80px); } }
@media (min-width: 1920px) { .hero__content { max-width: 1760px; } }

.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(242,235,221,.9); text-decoration: none; opacity: 0; z-index: 3; }
.hero__scroll-line { width: 1px; height: 64px; background: rgba(242,235,221,.6); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: #B89B6A; transform: translateY(-100%); animation: scrollLine 2.4s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60% { transform: translateY(100%); } 100% { transform: translateY(100%); } }

/* ---------- Story hero ---------- */
.story-hero { position: relative; min-height: 88svh; min-height: 88vh; overflow: hidden; display: flex; align-items: center; color: #F2EBDD; }
.story-hero__bg { position: absolute; inset: 0; z-index: 1; }
.story-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.06); will-change: transform; }
.story-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.55) 0%, rgba(26,26,26,.30) 40%, rgba(26,26,26,.70) 100%); }
.story-hero__content { position: relative; z-index: 2; padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px); max-width: 1280px; margin: 0 auto; width: 100%; }
.story-hero__title { margin: 0; max-width: none; }
.story-hero__title .line { display: block; overflow: hidden; }
.story-hero__title .line .word { white-space: nowrap; }
.story-hero__title .word { display: inline-block; will-change: transform; }
html:not(.is-loaded) .story-hero__title .word { transform: translateY(110%); }
html[lang="ar"] .story-hero__title { line-height: 1.5; }
html[lang="ar"] .story-hero__title .line { line-height: 1.5; padding-block: 0.08em; }
html[lang="ar"] .story-hero__title .word { line-height: 1.5; padding-block: 0.04em; }

/* ---------- Brand family (Atlas Territories overview) ---------- */
.brand-family { padding: clamp(80px, 12vw, 160px) 0; background: #F8F2E5; position: relative; overflow: hidden; }
.brand-family--header-only { padding-top: clamp(140px, 16vw, 240px); padding-bottom: clamp(80px, 10vw, 140px); }
/* Decorative outlined "ATLAS" tattoo behind the foreground content */
/* Compass tattoo — sized as a halo behind the logo, nested in .brand-family__logo-stage */
.brand-family__compass-wrap {
  position: absolute; top: 50%; left: 50%;
  width: clamp(280px, 28vw, 440px); height: auto; aspect-ratio: 1;
  /* gsap.set() in site.js applies xPercent/yPercent: -50 for centering;
     CSS fallback for no-JS users only — overridden by GSAP at boot */
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  will-change: transform;
}
.brand-family__compass {
  width: 100%; height: 100%; display: block;
  opacity: .9;
  will-change: transform;
  animation: compassSpin 90s linear infinite;
}
@media (max-width: 600px) {
  .brand-family__compass-wrap { width: clamp(220px, 60vw, 320px); }
}
.brand-family__compass-letters {
  font-family: "Righteous", sans-serif;
  font-size: 28px; letter-spacing: 0.06em;
}
@keyframes compassSpin { to { transform: rotate(360deg); } }
.brand-family:hover .brand-family__compass { animation-duration: 50s; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .brand-family__compass { animation: none; }
}
.brand-family__head { position: relative; z-index: 1; text-align: center; max-width: 1280px; margin: 0 auto 28px; padding: 0 clamp(20px, 4vw, 56px); }
.brand-family--header-only .brand-family__head { margin-bottom: 0; }
.brand-family__logo-stage {
  position: relative; display: inline-block;
  margin: 0 auto 32px; isolation: isolate;
}
.brand-family__logo { width: clamp(120px, 12vw, 200px); height: auto; display: block; position: relative; z-index: 1; }
@media (max-width: 600px) { .brand-family__logo { width: 100px; } .brand-family__logo-stage { margin-bottom: 24px; } }
.brand-family__title { margin: 14px 0 0; line-height: 1.04; letter-spacing: -0.015em; color: #937848; }
.brand-family__title--stack {
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: clamp(48px, 9vw, 140px);
  color: #937848;
}
.brand-family__title--stack span { display: block; }
.brand-family__sub {
  margin: 18px auto 0; max-width: none;
  color: #937848;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: clamp(13px, 1.5vw, 22px);
  letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.5;
}
html[lang="ar"] .brand-family__title--stack { letter-spacing: 0.04em; text-transform: none; }
html[lang="ar"] .brand-family__sub { font-family: "Almarai", "Inter", sans-serif; font-weight: 700; letter-spacing: 0.02em; text-transform: none; }
.brand-family__connector {
  display: block; margin: 56px auto; width: 1px; height: 64px;
  background: linear-gradient(180deg, transparent, #B89B6A 35%, #B89B6A 65%, transparent);
  position: relative;
}
.brand-family__connector::after {
  content: ""; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 7px; height: 7px; background: #B89B6A; border-radius: 50%;
}
.brand-family__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 56px);
  align-items: stretch;
}
/* Stay 5 columns down to mobile so the row is always 5 equal cards */
@media (max-width: 540px) { .brand-family__grid { grid-template-columns: 1fr; } }
.brand-card {
  position: relative; background: #FFFFFF;
  padding: clamp(20px, 2.6vw, 38px) clamp(8px, 1.4vw, 20px) clamp(18px, 2vw, 30px);
  border: 1px solid rgba(184,155,106,.18); text-align: center;
  transition: transform .45s cubic-bezier(.2,.6,.2,1), box-shadow .45s ease, border-color .45s ease;
  text-decoration: none; color: inherit;
  display: block;
}
a.brand-card { cursor: pointer; }
@media (max-width: 880px) {
  .brand-card__name { font-size: clamp(13px, 1.6vw, 18px); letter-spacing: 0; }
  .brand-card__sub,
  .brand-card__person { font-size: 9px; letter-spacing: 0.22em; padding: 3px 7px; margin-top: 12px; }
  .brand-card__num  { font-size: 10px; margin-bottom: 12px; letter-spacing: 0.24em; }
}
.brand-card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #B89B6A; transition: width .55s cubic-bezier(.2,.6,.2,1); }
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(26,26,26,.20); border-color: #B89B6A; }
.brand-card:hover::before { width: 100%; }
.brand-card__num { font-family: "Righteous", sans-serif; font-size: 12px; color: #B89B6A; letter-spacing: 0.32em; margin: 0 0 18px; text-transform: uppercase; }
.brand-card__name { font-family: "Righteous", sans-serif; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.08; letter-spacing: 0.01em; margin: 0; color: #1A1A1A; transition: transform .45s cubic-bezier(.2,.6,.2,1); }
.brand-card:hover .brand-card__name { transform: translateY(-2px); }
.brand-card__sub {
  display: inline-block; margin: 16px 0 0; padding: 4px 10px; color: #937848;
  font-family: "Inter", sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  border: 1px solid rgba(184,155,106,.35);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.brand-card:hover .brand-card__sub { background: #B89B6A; color: #FFFFFF; border-color: #B89B6A; }
.brand-card__person {
  display: inline-block; margin: 16px 0 0; padding: 4px 10px; color: #937848;
  font-family: "Inter", sans-serif; font-size: 10px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  border: 1px solid rgba(184,155,106,.35);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  font-style: normal;
}
.brand-card:hover .brand-card__person { background: #B89B6A; color: #FFFFFF; border-color: #B89B6A; }
html[lang="ar"] .brand-card__person {
  font-family: "Almarai","Inter",sans-serif; font-weight: 700;
  letter-spacing: 0.04em; text-transform: none;
}

/* ---------- Brands grid section (above footer) ---------- */
.brands-grid-section { padding: clamp(72px, 10vw, 140px) 0; background: #F2EBDD; }
.brands-grid-section__head {
  text-align: center; max-width: 1280px; margin: 0 auto 64px;
  padding: 0 clamp(20px, 4vw, 56px);
}
.brands-grid-section__logo {
  width: clamp(120px, 12vw, 200px); height: auto;
  margin: 0 auto 28px; display: block;
}
.brands-grid-section__eyebrow {
  margin: 0 0 28px;
  font-size: clamp(12px, 1.05vw, 14px); letter-spacing: 0.34em;
  color: #B89B6A;
}
.brands-grid-section__title {
  font-family: "Righteous", sans-serif; font-weight: 500;
  font-size: clamp(28px, 3.8vw, 56px); line-height: 0.94;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: #B89B6A; margin: 0;
}
.brands-grid-section__scroll-line {
  display: block; width: 1px; height: 64px;
  background: rgba(184,155,106,.30);
  position: relative; overflow: hidden;
  margin: clamp(24px, 3vw, 36px) auto 0;
}
.brands-grid-section__scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: #B89B6A;
  transform: translateY(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
.brands-grid-section__title-sub {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: clamp(10px, 0.85vw, 13px); line-height: 1.55;
  color: #A0A0A0;
  max-width: none;
  margin: 16px auto 0;
  white-space: nowrap;
}
html[lang="ar"] .brands-grid-section__title-sub {
  font-family: "Almarai","Inter",sans-serif; font-weight: 400;
  font-size: clamp(13px, 1.1vw, 17px);
}
.brands-grid-section__at {
  font-family: "Righteous", sans-serif; font-weight: 500;
  font-size: clamp(28px, 3.8vw, 56px); line-height: 1;
  letter-spacing: 0.04em; color: #B89B6A;
  margin: clamp(20px, 2.6vw, 32px) 0 0;
  direction: ltr; unicode-bidi: isolate;
}
/* Trademark superscript next to AT / ATLAS marks */
.tm {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 0.36em; line-height: 1;
  letter-spacing: 0;
  vertical-align: super;
  margin-inline-start: 0.18em;
  opacity: 0.85;
  color: inherit;
}
.brands-grid-section__at-sub {
  font-family: "Inter", sans-serif; font-weight: 400;
  font-size: clamp(10px, 0.85vw, 13px); line-height: 1.55;
  color: #A0A0A0;
  max-width: none;
  margin: 14px auto 0;
  white-space: nowrap;
}
html[lang="ar"] .brands-grid-section__at-sub {
  font-family: "Almarai","Inter",sans-serif; font-weight: 400;
  font-size: clamp(13px, 1.1vw, 17px);
}
.brands-grid-section__scroll-line--second {
  margin-top: clamp(18px, 2vw, 28px);
}
.brands-grid-section__scroll-line--second::after {
  animation-delay: 1.2s; /* offset so the two lines feel staggered */
}
html[lang="ar"] .brands-grid-section__title {
  font-family: "Almarai","Righteous",sans-serif;
  letter-spacing: 0.02em; text-transform: none;
}
html[lang="ar"] .brands-grid-section__eyebrow {
  font-family: "Almarai","Inter",sans-serif; font-weight: 500;
  letter-spacing: 0.04em; text-transform: none; font-size: clamp(15px, 1.4vw, 20px);
}
@media (max-width: 900px) {
  .brands-grid-section__title-sub,
  .brands-grid-section__at-sub {
    white-space: normal;
    max-width: 60ch;
    padding: 0 16px;
  }
}
@media (max-width: 540px) {
  .brands-grid-section__head { margin-bottom: 36px; }
  .brands-grid-section__logo { width: 100px; margin-bottom: 20px; }
}

/* ---------- Brand intro ---------- */
.brand-intro { padding: clamp(80px, 12vw, 160px) 0; background: #F2EBDD; }
.brand-intro__grid { display: grid; grid-template-columns: clamp(220px, 24vw, 340px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.brand-intro__monogram { display: flex; align-items: center; justify-content: center; }
.brand-intro__logo { width: 100%; height: auto; max-width: 320px; }
.brand-intro__copy .lede { font-family: "Righteous", sans-serif; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.45; color: #6B6B6B; font-weight: 400; max-width: 50ch; }
.brand-intro__copy .eyebrow { color: #6B6B6B; margin: 0 0 14px; }
.lede__lead {
  font-family: "Righteous", sans-serif; font-weight: 500;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #D4B98C 0%, #B89B6A 55%, #937848 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; unicode-bidi: isolate;
  margin-inline-end: 0.18em;
}
html[lang="ar"] .lede__lead {
  font-family: "Almarai","Righteous",sans-serif; font-weight: 700;
  direction: rtl;
}
@media (max-width: 760px) {
  .brand-intro__grid { grid-template-columns: 1fr; }
  .brand-intro__copy { order: 1; }
  .brand-intro__monogram { order: 2; max-width: 260px; margin: 24px auto 0; }
  .brand-intro__logo { max-width: 240px; }
}

/* ---------- Split sections (Goal etc.) ---------- */
.split-section { padding: clamp(80px, 12vw, 160px) 0; background: #F8F2E5; position: relative; }
.split-section--reverse { background: #F2EBDD; }
.split-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-section--reverse .split-section__inner { direction: rtl; }
.split-section--reverse .split-section__inner > * { direction: ltr; }
html.is-rtl .split-section--reverse .split-section__inner > * { direction: rtl; }
.split-section__media { position: relative; }
.split-section__media img { width: 100%; height: auto; display: block; }
.split-section__media-frame { position: absolute; inset: 0; border: 1px solid rgba(184,155,106,.4); transform: translate(16px, 16px); pointer-events: none; }
@media (max-width: 800px) { .split-section__inner, .split-section--reverse .split-section__inner { grid-template-columns: 1fr; direction: ltr; } .split-section__media-frame { transform: translate(8px, 8px); } }

/* ---------- Our Field section ---------- */
.field {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    linear-gradient(180deg, #F2EBDD 0%, #F8F2E5 45%, #EFE5CE 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Layer 1 — soft gold radial glows in opposite corners */
.field::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 88% 12%, rgba(184,155,106,.22), transparent 70%),
    radial-gradient(36% 30% at 10% 95%, rgba(184,155,106,.14), transparent 70%);
}
/* Layer 2 — faint blueprint grid, masked so it fades at the edges */
.field::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184,155,106,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,155,106,.07) 1px, transparent 1px);
  background-size: clamp(48px, 5vw, 72px) clamp(48px, 5vw, 72px);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 50%, black 30%, transparent 85%);
          mask-image: radial-gradient(75% 65% at 50% 50%, black 30%, transparent 85%);
}
/* Architectural sketch as a far-back accent on the inline-end side */
.field__sketch {
  position: absolute; right: -8%; bottom: -10%; z-index: 0;
  width: clamp(420px, 56vw, 880px); height: auto;
  opacity: 0.13; pointer-events: none;
  filter: contrast(1.05) saturate(0.6);
  mix-blend-mode: multiply;
}
html.is-rtl .field__sketch { right: auto; left: -8%; transform: scaleX(-1); }
.field__inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 1100px; margin: 0 auto;
}
.field__head { margin: 0 0 clamp(36px, 5vw, 64px); }
.field__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 26px;
  font-family: "Inter", sans-serif; font-size: clamp(11px, 1vw, 14px); font-weight: 500;
  letter-spacing: 0.36em; text-transform: uppercase;
  color: #937848;
}
.field__eyebrow-num { color: #B89B6A; letter-spacing: 0.18em; }
html[lang="ar"] .field__eyebrow {
  font-family: "Almarai","Inter",sans-serif; letter-spacing: 0.06em; text-transform: none;
  font-size: clamp(13px, 1.1vw, 16px);
}
.field__title {
  font-family: "Righteous", sans-serif; font-weight: 500;
  font-size: clamp(40px, 6.8vw, 112px); line-height: 1.0;
  letter-spacing: -0.018em;
  background: linear-gradient(180deg, #1A1A1A 0%, #3A3A3A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 auto; max-width: 18ch;
  /* per-word masking happens in JS — words wrap in inline-block + overflow:hidden */
}
.field__title .field__word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.field__title .field__word > span { display: inline-block; will-change: transform; }
html:not(.is-loaded) .field__title .field__word > span { transform: translateY(110%); }
html[lang="ar"] .field__title {
  font-family: "Almarai","Righteous",sans-serif; line-height: 1.25;
}
.field__divider {
  display: flex; align-items: center; justify-content: center;
  width: clamp(120px, 14vw, 200px); height: 1px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  background: linear-gradient(90deg, transparent, rgba(184,155,106,.55) 30%, rgba(184,155,106,.55) 70%, transparent);
  position: relative;
}
.field__divider-dot {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg);
  background: #B89B6A;
}
.field__body {
  max-width: 64ch; margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 36px);
}
.field__lede {
  font-family: "Righteous", sans-serif; font-weight: 400;
  font-size: clamp(20px, 2.1vw, 32px); line-height: 1.5;
  color: #1A1A1A; margin: 0;
  letter-spacing: -0.005em;
}
.field__lede--quiet {
  color: #6B6B6B;
  font-size: clamp(17px, 1.7vw, 25px);
  font-style: italic;
}
html[lang="ar"] .field__lede {
  font-family: "Almarai","Righteous",sans-serif; font-weight: 400;
  font-style: normal; line-height: 1.75;
}

/* Field cards — 6 numbered areas of operation */
.field__cards {
  list-style: none; padding: 0;
  margin: clamp(56px, 8vw, 112px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 24px);
  max-width: 1100px;
}
.field__card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 18px;
  padding: clamp(26px, 3.2vw, 44px) clamp(20px, 2.4vw, 36px);
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(184,155,106,.22);
  position: relative; overflow: hidden;
  transition: background .45s ease, border-color .45s ease, transform .45s cubic-bezier(.2,.6,.2,1), box-shadow .45s ease;
  text-align: left;
}
.field__card::before {
  content: ""; position: absolute; left: 0; top: 0;
  height: 2px; width: 0; background: #B89B6A;
  transition: width .55s cubic-bezier(.2,.6,.2,1);
}
.field__card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(184,155,106,.10), transparent 60%);
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.field__card:hover {
  background: #FFFFFF; border-color: #B89B6A;
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -22px rgba(184,155,106,.5);
}
.field__card:hover::before { width: 100%; }
.field__card:hover::after { opacity: 1; }
.field__card-num {
  font-family: "Righteous", sans-serif;
  font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  letter-spacing: 0;
  background: linear-gradient(180deg, #D4B98C 0%, #B89B6A 60%, #937848 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  direction: ltr; unicode-bidi: isolate;
  line-height: 0.9;
}
.field__card-label {
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: clamp(12px, 1.1vw, 15px); line-height: 1.35;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #1A1A1A;
  transition: color .45s ease;
  position: relative; z-index: 1;
}
.field__card:hover .field__card-label { color: #937848; }
html[lang="ar"] .field__card-label {
  font-family: "Almarai","Inter",sans-serif; font-weight: 700;
  letter-spacing: 0.02em; text-transform: none; font-size: clamp(14px, 1.4vw, 19px);
}
@media (max-width: 900px) {
  .field__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .field__cards { grid-template-columns: 1fr; gap: 10px; }
  .field__card { padding: 18px 16px; }
}

/* ---------- Trio ---------- */
.trio { padding: clamp(80px, 12vw, 160px) 0; background: #F8F2E5; }
.trio__head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.trio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio-card { position: relative; background: #FFFFFF; padding: 40px 32px; border: 1px solid rgba(184,155,106,.18); transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease; }
.trio-card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #B89B6A; transition: width .5s ease; }
.trio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(26,26,26,.18); border-color: #B89B6A; }
.trio-card:hover::before { width: 100%; }
.trio-card__num { font-family: "Righteous", sans-serif; font-size: 14px; color: #B89B6A; letter-spacing: 0.3em; margin: 0 0 18px; }
.trio-card__title { margin: 0 0 28px; }
.trio-card__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; color: #3A3A3A; }
.trio-card__list li { padding-left: 16px; position: relative; line-height: 1.5; }
.trio-card__list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: #B89B6A; }
@media (max-width: 800px) { .trio__grid { grid-template-columns: 1fr; } }

/* ---------- Tagline ---------- */
.tagline { position: relative; min-height: 70vh; display: flex; align-items: center; overflow: hidden; color: #F2EBDD; }
.tagline__bg { position: absolute; inset: 0; z-index: 1; }
.tagline__bg img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.tagline__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.7)); }
.tagline__content { position: relative; z-index: 2; padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 56px); max-width: 1280px; margin: 0 auto; width: 100%; text-align: center; }
.tagline__big { margin: 0; }
.tagline__big .line { display: block; overflow: hidden; }
.tagline__big .word { display: inline-block; will-change: transform; }
html:not(.is-loaded) .tagline__big .word { transform: translateY(110%); }
.tagline__big--accent { color: #D4B98C; font-style: italic; }
.tagline__sub { font-family: "Righteous", sans-serif; font-style: italic; font-size: clamp(18px, 1.8vw, 26px); margin: 32px 0 0; opacity: .85; }
html[lang="ar"] .tagline__big { line-height: 1.4; }
html[lang="ar"] .tagline__big .line { line-height: 1.4; padding-block: 0.06em; }
html[lang="ar"] .tagline__big .word { line-height: 1.4; padding-block: 0.04em; }

/* ---------- Subpage hero ---------- */
.subpage-hero { padding: 130px clamp(20px,4vw,56px) 60px; background: #F2EBDD; text-align: center; }
.subpage-hero__logo { width: 100px; height: auto; margin: 0 auto 32px; display: block; }
.subpage-hero__title { font-family: "Righteous", sans-serif; font-size: clamp(40px, 7vw, 96px); line-height: 1.0; letter-spacing: -0.02em; color: #B89B6A; margin: 0 auto; max-width: 1280px; }
html.is-rtl .subpage-hero__title { font-family: "Almarai", "Righteous", sans-serif; letter-spacing: 0; }
.subpage-hero__sub { font-family: "Inter", sans-serif; color: #3A3A3A; margin: 12px auto 0; max-width: 1280px; }
html.is-rtl .subpage-hero__sub { font-family: "Almarai", "Inter", sans-serif; }
@media (max-width: 480px) { .subpage-hero { padding: 110px 16px 40px; } .subpage-hero__logo { width: 76px; } }

/* ---------- Numbered list (services / projects style) ---------- */
.num-list { padding: clamp(40px, 6vw, 100px) 0; background: #F8F2E5; }
.num-row { display: grid; grid-template-columns: minmax(120px, 360px) 1fr; gap: clamp(20px, 4vw, 60px); padding: clamp(40px, 6vw, 80px) 0; align-items: start; }
.num-row__num { font-family: "Righteous", sans-serif; font-size: clamp(96px, 22vw, 320px); line-height: 0.85; color: rgba(184,155,106,.18); letter-spacing: -0.05em; user-select: none; }
.num-row__title { font-family: "Righteous", sans-serif; font-size: clamp(20px, 2.6vw, 34px); margin: 0 0 24px; color: #1A1A1A; }
html.is-rtl .num-row__title { font-family: "Almarai", "Righteous", sans-serif; }
.num-row__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; color: #3A3A3A; }
.num-row__list li { padding-left: 22px; position: relative; line-height: 1.5; }
.num-row__list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; background: #B89B6A; }
@media (max-width: 700px) { .num-row { grid-template-columns: 1fr; gap: 6px; } .num-row__num { font-size: clamp(96px, 36vw, 180px); } }

/* ---------- Contact block ---------- */
.contact-block { padding: clamp(60px, 12vw, 160px) 0; background: #F8F2E5; }
.contact-block__inner { max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px,4vw,56px); display: flex; justify-content: center; }
.contact-block__card { text-align: center; padding: 32px 0; }
.contact-block__title { font-family: "Righteous", sans-serif; font-size: clamp(36px, 5.5vw, 72px); line-height: 1.0; margin: 0 0 32px; color: #1A1A1A; }
html.is-rtl .contact-block__title { font-family: "Almarai", "Righteous", sans-serif; }
.contact-line { color: #3A3A3A; text-decoration: none; display: block; padding: 6px 0; font-size: 17px; }
.contact-line:hover { color: #B89B6A; }

/* ---------- Footer ---------- */
.footer { background: #1A1A1A; color: #F2EBDD; padding: 64px 0 0; }
.footer__grid { padding: 0 clamp(20px, 4vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__tagline { font-family: "Righteous", sans-serif; font-style: italic; font-size: 18px; margin: 16px 0 0; color: rgba(242,235,221,.7); max-width: 26ch; }
.footer__col .eyebrow { color: #B89B6A; }
.footer__link { display: block; color: rgba(242,235,221,.78); text-decoration: none; padding: 6px 0; transition: color .3s ease; }
.footer__link:hover { color: #D4B98C; }
.footer__base { padding: 24px clamp(20px, 4vw, 56px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1280px; margin: 0 auto; font-size: 13px; color: rgba(242,235,221,.5); }
.footer__base p { margin: 0; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- AR/RTL font + BIDI isolation ---------- */
html[lang="ar"] body { font-family: "Almarai", "Inter", sans-serif; }
/* Arabic doesn't tolerate the huge Latin letter-spacing — relax it for the brand wordmark */
html[lang="ar"] .brand-word--nav,
html[lang="ar"] .brand-word--lg {
  letter-spacing: 0.04em; text-transform: none; font-weight: 700;
}
/* Numerals like "01 — Mission" stay LTR even in RTL paragraphs */
html.is-rtl .eyebrow { direction: ltr; unicode-bidi: isolate; }
/* Lock Latin/brand text from being reordered by BIDI when AR is active */
html.is-rtl .word, html.is-rtl .brand-word, html.is-rtl .brand-card__name, html.is-rtl .hero__brand,
html.is-rtl .lang-switch, html.is-rtl .lang-switch__btn, html.is-rtl .loader, html.is-rtl .loader__mark,
html.is-rtl .loader__caption {
  direction: ltr; unicode-bidi: isolate;
}
html.is-rtl [data-i18n="brand.lede"], html.is-rtl [data-i18n="goal.p1"], html.is-rtl [data-i18n="goal.p2"],
html.is-rtl [data-i18n="footer.copyright"], html.is-rtl [data-i18n^="title."] {
  unicode-bidi: plaintext;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__bg img, .hero__bg-slide, .story-hero__bg img, .tagline__bg img, .split-section__media img { transform: none !important; }
}
