/* =========================================================
   TRUEVEST — inner pages & shared site chrome
   Builds on style.css tokens and components
   ========================================================= */

/* ---------- Loader: quick mode + curtain between pages ---------- */
body.is-quick .loader-inner { display: none; }
body.is-quick .loader-curtain { transition-duration: 0.8s; }
body.is-leaving .loader { visibility: visible; transition: none; }
body.is-leaving .loader-curtain {
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease-io);
}
body.is-leaving .loader-inner { display: none; }

/* ---------- Nav dropdown (business areas) ---------- */
.nav { align-items: center; }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 8px; }
.nav-drop > a::before {
  content: "";
  order: 2;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}
.drop {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(23, 21, 14, 0.94);
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0s 0.35s;
}
.drop::before { content: ""; position: absolute; inset: -20px 0 auto; height: 20px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--ease), visibility 0s;
}
.nav .drop-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  color: var(--cream);
  transition: background-color 0.3s;
}
.nav .drop-item::after { display: none; }
.nav .drop-item:hover, .nav .drop-item.is-active { background: rgba(226, 201, 143, 0.08); }
.drop-img {
  width: 54px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--olive-2);
}
.drop-img img { width: 100%; height: 100%; object-fit: cover; }
.drop-item strong { display: block; font-weight: 400; font-size: 0.88rem; line-height: 1.4; }
.drop-item small { display: block; font-size: 0.72rem; color: var(--gold); }

/* mobile menu sub-links */
.mobile-sub { display: grid; gap: 4px; padding: 4px 0 10px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line-dark); margin-inline-start: 4px; }
.mobile-nav .mobile-sub a { font-size: clamp(1rem, 4.2vw, 1.2rem); color: var(--cream-soft); }
.mobile-nav a.is-active { color: var(--gold-hi); }
.mobile-menu { overflow-y: auto; justify-content: flex-start; padding-top: calc(var(--header-h) + 30px); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 110px;
  overflow: hidden;
  isolation: isolate;
  background: var(--olive);
}
.page-hero .hero-veil {
  background:
    radial-gradient(46% 52% at 50% 52%, rgba(42, 39, 28, 0.97) 0%, rgba(42, 39, 28, 0.9) 55%, rgba(42, 39, 28, 0.55) 100%),
    linear-gradient(180deg, rgba(42, 39, 28, 0.95) 0%, rgba(42, 39, 28, 0.3) 28%, transparent 70%, var(--olive) 100%);
}
.page-hero-copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  max-width: 980px;
  text-align: center;
}
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--cream-soft);
}
.crumbs a { color: var(--gold-hi); transition: color 0.3s; }
.crumbs a:hover { color: var(--cream); }
.crumbs i { width: 4px; height: 4px; border: 1px solid var(--gold); transform: rotate(45deg); }
.page-title {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.3;
  white-space: nowrap;
  margin-bottom: 18px;
}
html[lang="en"] .page-title { font-weight: 400; }
.page-title .line { display: inline-block; overflow: hidden; padding-block: 0.04em; vertical-align: top; }
.page-title .line > span { display: inline-block; }
.page-title .hero-in { transform: translateY(110%); }
body.is-loaded .page-title .hero-in { transform: none; }
.page-lead { max-width: 40rem; font-size: clamp(0.95rem, 1.1vw, 1.05rem); color: var(--cream-soft); }
.page-hero .hero-arc { height: 55%; }

/* ---------- Section head variants ---------- */
.section-head.is-center { justify-content: center; text-align: center; }
.section-head.is-center > div { display: grid; justify-items: center; }
.section-lead { max-width: 34rem; color: var(--ink-soft); font-size: 0.95rem; }
.on-dark .section-lead { color: var(--cream-soft); }
.section-more { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }
.btn-ink { border: 1px solid var(--line-light); color: var(--ink); }
.btn-ink::before { background: var(--navy); }
.btn-ink:hover { color: var(--paper); border-color: var(--navy); }
.works-intro .link-arrow { margin-top: 26px; }
.portal-copy .link-arrow { margin-top: 28px; pointer-events: auto; }

/* ---------- Manifesto (about) ---------- */
.manifesto { background: var(--paper); color: var(--ink); }
.manifesto .section-head { margin-bottom: 30px; }
.manifesto-text {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
  line-height: 1.7;
  color: var(--ink);
}
html[lang="en"] .manifesto-text { line-height: 1.45; }
.arch-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 2.4vw, 32px);
  margin-top: clamp(56px, 8vw, 100px);
}
.arch-row figure {
  position: relative;
  width: clamp(110px, 17vw, 250px);
  aspect-ratio: 3 / 4.4;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background: var(--stone);
}
.arch-row figure:nth-child(2) { width: clamp(130px, 21vw, 300px); aspect-ratio: 3 / 4.8; }
.arch-row figure:nth-child(odd) { margin-bottom: 40px; }
.arch-row img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pillars: vision & mission ---------- */
.pillars-sec { background: var(--night); overflow: hidden; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pillar {
  position: relative;
  padding: clamp(110px, 12vw, 160px) clamp(28px, 4vw, 56px) clamp(36px, 4vw, 52px);
  border-radius: 12px;
  border: 1px solid rgba(226, 201, 143, 0.28);
  text-align: center;
  background: radial-gradient(60% 45% at 50% 0%, rgba(184, 151, 90, 0.16), transparent 70%);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  border: 1px solid rgba(226, 201, 143, 0.1);
  pointer-events: none;
}
.pillar .line-ico { margin-inline: auto; }
.pillar h3 { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--gold-hi); margin-bottom: 14px; }
.pillar p { color: var(--cream-soft); max-width: 30rem; margin-inline: auto; }

/* line icons that draw themselves */
.line-ico {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 0.3s; }
.is-in .line-ico path, .line-ico.is-in path { stroke-dashoffset: 0; }
.on-dark .line-ico { stroke: var(--gold-hi); }

/* ---------- Feature cards (arch outline) ---------- */
.feats-sec { background: var(--paper); color: var(--ink); }
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feat {
  position: relative;
  padding: 64px 26px 32px;
  border-radius: 12px;
  border: 1px solid var(--line-light);
  background: #fbfaf6;
  text-align: center;
  transition: border-color 0.5s, box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
}
.feat:hover { border-color: rgba(184, 151, 90, 0.55); box-shadow: 0 30px 60px -36px rgba(31, 42, 60, 0.4); transform: translateY(-6px); }
.feat .line-ico { margin-inline: auto; stroke: var(--gold-lo); }
.feat h3 { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; line-height: 1.5; margin-bottom: 10px; }
html[lang="en"] .feat h3 { font-weight: 400; font-size: 1.2rem; }
.feat p { font-size: 0.88rem; color: var(--ink-soft); }
.feats.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Steps (a real sequence) ---------- */
.steps-sec { background: var(--olive); }
.steps-sec.is-light { background: var(--paper); color: var(--ink); }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  inset-inline: 12%;
  height: 1px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.6s var(--ease) 0.2s;
}
[dir="ltr"] .steps::before { transform-origin: left; }
.steps.is-in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; }
.step-no {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 70px;
  margin: 0 auto 22px;
  border-radius: 6px;
  border: 1px solid rgba(226, 201, 143, 0.5);
  background: var(--olive);
  font-family: var(--f-wide);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--gold-hi);
}
.steps-sec.is-light .step-no { background: var(--paper); color: var(--gold-lo); border-color: rgba(184, 151, 90, 0.5); }
.step h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--cream-soft); max-width: 18rem; margin-inline: auto; }
.steps-sec.is-light .step p { color: var(--ink-soft); }
.steps .step { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 1s var(--ease); }
.steps.is-in .step { opacity: 1; transform: none; }
.steps.is-in .step:nth-child(2) { transition-delay: 0.15s; }
.steps.is-in .step:nth-child(3) { transition-delay: 0.3s; }
.steps.is-in .step:nth-child(4) { transition-delay: 0.45s; }

/* ---------- Service link arches ---------- */
.svc-links-sec { background: var(--paper); color: var(--ink); }
.svc-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.svc-links.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: var(--navy);
}
.svc-link img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.85); transform: scale(1.06); transition: transform 1.2s var(--ease), filter 0.8s; }
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(23, 21, 14, 0.92) 90%); }
.svc-link:hover img { transform: scale(1); filter: saturate(1) brightness(0.95); }
.svc-link-body { position: absolute; inset-inline: 0; bottom: 0; padding: 24px; }
.svc-link-body small { display: block; font-size: 0.74rem; color: var(--gold-hi); margin-bottom: 6px; }
.svc-link-body strong { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; line-height: 1.4; margin-bottom: 12px; }
.svc-link .link-arrow { font-size: 0.82rem; padding: 0; }
.svc-link:hover .link-arrow i { width: 52px; }

/* ---------- Activities (services page) ---------- */
.acts-sec { background: var(--navy); }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.act {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  align-items: start;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(226, 201, 143, 0.16);
  background: rgba(23, 33, 49, 0.6);
  transition: border-color 0.4s, background-color 0.4s, transform 0.6s var(--ease);
}
.act:hover { border-color: rgba(226, 201, 143, 0.5); background: rgba(23, 33, 49, 0.95); transform: translateY(-4px); }
.act .line-ico { grid-row: span 3; width: 44px; height: 44px; margin: 0; stroke: var(--gold-hi); }
.act h3 { font-family: var(--f-head); font-weight: 400; font-size: 1.08rem; }
.act p { font-size: 0.86rem; color: var(--cream-soft); }
.act .link-arrow { font-size: 0.8rem; padding: 4px 0 0; }

/* ---------- Service intro (detail pages) ---------- */
.svc-intro { background: var(--paper); color: var(--ink); }
.svc-intro .manifesto-text { margin-bottom: 0; }
.svc-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.svc-tags li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(184, 151, 90, 0.45);
  font-size: 0.82rem;
  color: var(--gold-lo);
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--night); overflow: hidden; text-align: center; }
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 80vw;
  height: 80vw;
  max-width: 1100px;
  max-height: 1100px;
  transform: translate(-50%, -38%);
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 60px rgba(184, 151, 90, 0.025);
  pointer-events: none;
}
.cta-inner { position: relative; display: grid; justify-items: center; }
.cta-mark { width: 74px; aspect-ratio: 130 / 84; color: var(--gold); margin-bottom: 26px; }
.cta-inner .h2 { margin-bottom: 16px; }
.cta-inner p { max-width: 34rem; color: var(--cream-soft); margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- FAQ ---------- */
.faq-sec { background: var(--paper); color: var(--ink); }
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(184, 151, 90, 0.5);
  background:
    linear-gradient(var(--gold-lo), var(--gold-lo)) center / 10px 1px no-repeat,
    linear-gradient(var(--gold-lo), var(--gold-lo)) center / 1px 10px no-repeat;
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(184, 151, 90, 0.1); }
.faq summary:hover { color: var(--gold-lo); }
.faq .faq-a { padding: 0 4px 26px; color: var(--ink-soft); max-width: 46rem; }
.faq details[open] .faq-a { animation: faqIn 0.6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Prose (privacy) ---------- */
.prose-sec { background: var(--paper); color: var(--ink); }
.prose { max-width: 820px; margin-inline: auto; }
.prose .updated { font-size: 0.82rem; color: var(--gold-lo); margin-bottom: 36px; }
.prose h2 {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 44px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line-light);
}
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin-top: 12px; }
.prose li { position: relative; padding-inline-start: 18px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

/* ---------- 404 ---------- */
.notfound {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.notfound-num {
  font-family: var(--f-wide);
  font-weight: 200;
  font-size: clamp(7rem, 26vw, 22rem);
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 201, 143, 0.45);
  margin-bottom: 10px;
  direction: ltr;
}
.notfound h1 { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
.notfound p { color: var(--cream-soft); margin-bottom: 34px; }

/* ---------- Contact page: map-less info cards ---------- */
.contact.is-page { padding-top: clamp(72px, 9vw, 120px); }

/* ---------- Footer (multi-column) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-about { margin-top: 18px; max-width: 22rem; font-size: 0.88rem; color: var(--cream-soft); }
.footer-col h4 { font-family: var(--f-head); font-weight: 400; font-size: 0.95rem; color: var(--gold-hi); margin: 0 0 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.88rem; color: var(--cream-soft); transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-hi); }
.footer-bottom .footer-links { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--gold-hi); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-hero { min-height: 64svh; }
  .page-title { font-size: min(8.4vw, 2.6rem); }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { top: 0; bottom: 0; inset-inline: auto; left: 50%; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .steps.is-in::before { transform: scaleY(1); }
  [dir="ltr"] .steps::before { transform-origin: top; }
  .step p { background: transparent; }
  .step h3, .step p { position: relative; background: var(--olive); padding-block: 4px; }
  .steps-sec.is-light .step h3, .steps-sec.is-light .step p { background: var(--paper); }
  .svc-links.is-3 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .acts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .feats, .feats.is-3 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .svc-links { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-grid .brand { justify-content: center; }
  .footer-about { margin-inline: auto; }
  .footer-bottom { justify-content: center; text-align: center; }
  .arch-row figure:nth-child(odd) { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .steps .step { opacity: 1; transform: none; }
  .steps::before { transform: none; }
  .line-ico path { stroke-dashoffset: 0; }
}

/* ---------- Lazy loading ---------- */
/* Off-screen sections skip rendering until the visitor gets close to them.
   The scroll-driven sections (about portal, services track) are left out
   because they measure their own size, and so is the full-screen Crown
   Prince section right under the hero (its placeholder height would jump). */
main > section:not(:first-child):not(.portal):not(.works):not(.quote) {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
/* Lazy images fade in once they have loaded */
img[loading="lazy"]:not(.is-ready) { opacity: 0; }
img[loading="lazy"].is-ready { animation: imgIn 0.9s ease both; }
@keyframes imgIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  img[loading="lazy"]:not(.is-ready) { opacity: 1; }
}
[dir="rtl"] .footer-col li[dir="ltr"] { text-align: right; }
@media (max-width: 600px) { [dir="rtl"] .footer-col li[dir="ltr"] { text-align: center; } }

/* ---------- Hero arrow: the rising gold line ends in an arrowhead (from the logo) ---------- */
.hero-arc-path { transition: none; }
.hero-arrow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 16px;
  height: 14px;
  background: var(--gold-hi);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 50%);
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(226, 201, 143, 0.5));
  transition: opacity 0.4s ease;
}

/* ---------- Header: keep every item on one line ---------- */
.nav a, .brand-text span, .header-actions .btn { white-space: nowrap; }
.nav { gap: clamp(16px, 1.8vw, 32px); }
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Page bar: slim breadcrumb strip on inner pages ---------- */
.page-bar {
  position: relative;
  background: var(--olive);
  padding: calc(var(--header-h) + 22px) 0 24px;
}
.page-bar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 201, 143, 0.5), transparent);
}
.page-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.page-bar-title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--cream);
}
html[lang="en"] .page-bar-title { font-weight: 400; }
.page-bar .crumbs { margin: 0; }
@media (max-width: 600px) {
  .page-bar { padding: calc(var(--header-h) + 14px) 0 18px; }
  .page-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* Dropdown items wrap inside their own cell (the one-line rule is for top-level links only) */
.nav .drop-item { white-space: normal; }
.nav .drop-item > span:last-child { min-width: 0; }
.drop { width: 600px; }
.drop-item strong { overflow-wrap: anywhere; }

/* ---------- Spacing rhythm ---------- */
/* first section under the slim breadcrumb strip starts closer */
.page-bar + .section { padding-top: clamp(56px, 7vw, 96px); }
.contact.is-page { padding-top: clamp(56px, 7vw, 96px); }
/* two sections on the same background read as one: no double gap */
.svc-intro + .feats-sec,
.feats-sec + .svc-links-sec,
.manifesto + .feats-sec { padding-top: 0; }
/* the page bar already names these pages: drop the repeated eyebrow */
.contact.is-page .contact-info > .eyebrow,
.page-bar + .consulting .section-head .eyebrow { display: none; }

/* ---------- Section heads: one stacked pattern everywhere ----------
   eyebrow → title → supporting text, then a clear gap before the content */
.section-head {
  display: grid;
  justify-items: start;
  gap: 18px;
  margin-bottom: clamp(52px, 6vw, 84px);
}
.section-head > div { display: grid; justify-items: start; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .h2 { margin: 0; }
.section-head .advisors-note,
.section-head .consulting-lead,
.section-head .section-lead {
  max-width: 38rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
}
.section-head > div > .section-lead { margin-top: 18px; }
.section-head.is-center { justify-items: center; text-align: center; }
.section-head.is-center > div { justify-items: center; }

/* ---------- Logo on the curtain between pages ---------- */
body.is-quick .loader-inner,
body.is-leaving .loader-inner { display: grid; }
body.is-quick .lm-letter,
body.is-leaving .lm-letter { animation: none; fill: var(--gold); stroke-width: 0; stroke-dashoffset: 0; }
body.is-quick .lm-arrow { animation: none; stroke-dashoffset: 0; }
body.is-quick .lm-head, body.is-quick .loader-word,
body.is-leaving .lm-head, body.is-leaving .loader-word { animation: none; opacity: 1; }
/* leaving: once the curtain covers the page the logo fades in and its arrow draws */
body.is-leaving .loader-inner {
  opacity: 0;
  transform: translateY(14px);
  animation: curtainLogo 0.45s var(--ease) 0.2s forwards;
}
body.is-leaving .lm-arrow { stroke-dashoffset: 1; animation: lmArrow 0.5s var(--ease) 0.3s forwards; }
body.is-leaving .lm-head { opacity: 0; animation: lmFade 0.2s ease 0.7s forwards; }
@keyframes curtainLogo { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  body.is-leaving .loader-inner { opacity: 1; transform: none; animation: none; }
}

/* ---------- Page intro: breadcrumb + title inside a gold arch ---------- */
.page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 34px);
  text-align: center;
  background: var(--olive);
}
.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(42% 90% at 50% 100%, rgba(184, 151, 90, 0.18), transparent 70%);
}
.page-intro::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 201, 143, 0.45), transparent);
}
.page-intro-frame {
  position: relative;
  display: inline-grid;
  justify-items: center;
  gap: 16px;
  min-width: min(440px, 88vw);
  max-width: 92vw;
  padding: clamp(58px, 6vw, 78px) clamp(36px, 5vw, 76px) clamp(34px, 4vw, 48px);
  border: 1px solid rgba(226, 201, 143, 0.4);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  clip-path: inset(100% -12px 0 -12px);
  transition: clip-path 1.3s var(--ease-io) 0.15s;
}
body.is-loaded .page-intro-frame { clip-path: inset(-12px -12px 0 -12px); }
.page-intro-frame::before {
  content: "";
  position: absolute;
  inset: 12px 12px 0;
  border: 1px solid rgba(226, 201, 143, 0.13);
  border-bottom: 0;
  border-radius: inherit;
  pointer-events: none;
}
.page-intro-frame::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.page-intro .crumbs { margin: 0; font-size: 0.78rem; }
.page-intro-title {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.35;
  white-space: nowrap;
  color: var(--cream);
}
html[lang="en"] .page-intro-title { font-weight: 400; }
.page-intro + .section { padding-top: clamp(56px, 7vw, 96px); }
.page-intro + .consulting .section-head .eyebrow { display: none; }
@media (max-width: 600px) {
  .page-intro { padding-top: calc(var(--header-h) + 22px); }
  .page-intro-title { white-space: normal; font-size: min(7vw, 1.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  .page-intro-frame { clip-path: none; }
}
@media (max-width: 600px) {
  .page-intro-frame { padding-inline: 22px; min-width: 0; width: calc(100vw - 32px); }
  .page-intro-title { white-space: nowrap; font-size: min(6.4vw, 1.7rem); }
  .page-intro .crumbs { max-width: 100%; white-space: nowrap; font-size: 0.72rem; }
  .page-intro .crumbs > * { flex-shrink: 0; }
  .page-intro .crumbs [aria-current] { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 600px) {
  .page-intro-frame { grid-template-columns: minmax(0, 1fr); }
  .page-intro-title { max-width: 100%; }
}

/* =========================================================
   Contact section — refined form & contact cards
   ========================================================= */
.contact { overflow: hidden; }
.contact-deco {
  position: absolute;
  inset-inline-start: -3%;
  bottom: -6%;
  width: clamp(260px, 34vw, 520px);
  aspect-ratio: 130 / 84;
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
}
.contact-grid { position: relative; z-index: 1; }
.contact-lead { margin-bottom: 36px; }
.contact-direct { margin: 0 0 14px; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.03em; }
.contact-cards { display: grid; gap: 12px; }
.c-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  padding-inline: 14px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: rgba(23, 21, 14, 0.35);
  transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--ease);
}
a.c-card:hover { border-color: rgba(226, 201, 143, 0.55); background: rgba(23, 21, 14, 0.6); transform: translateY(-2px); }
.c-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 143, 0.4);
  background: radial-gradient(circle at 50% 30%, rgba(184, 151, 90, 0.2), transparent 70%);
}
.c-ico svg, .f-ico, .contact-note svg, .send-ico {
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.c-ico svg { width: 20px; height: 20px; }
.c-text small { display: block; font-size: 0.72rem; color: var(--cream-soft); }
.c-text strong { display: block; font-weight: 400; font-size: 1rem; color: var(--cream); }
[dir="rtl"] .c-text strong[dir="ltr"] { text-align: right; }
.c-arrow {
  position: relative;
  width: 22px;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.c-arrow::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-inline-end: 1px solid var(--gold);
  transform: rotate(45deg);
}
[dir="rtl"] .c-arrow::after { transform: rotate(-135deg); }
a.c-card:hover .c-arrow { width: 34px; }
.contact-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 0.82rem; color: var(--cream-soft); }
.contact-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* form card */
.form {
  gap: 22px;
  padding: clamp(26px, 3.6vw, 46px);
  border-radius: 28px;
  border: 1px solid rgba(226, 201, 143, 0.2);
  background: linear-gradient(160deg, rgba(53, 49, 31, 0.92), rgba(23, 21, 14, 0.94));
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(226, 201, 143, 0.08);
}
.form-head { padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); }
.form-head h3 { margin: 0 0 4px; font-family: var(--f-head); font-weight: 400; font-size: 1.35rem; color: var(--cream); }
.form-head p { font-size: 0.86rem; color: var(--cream-soft); }

/* request type chips */
.type-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-picker legend { padding: 0; margin-bottom: 12px; font-size: 0.8rem; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick span {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(226, 201, 143, 0.25);
  font-size: 0.82rem;
  color: var(--cream-soft);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.pick:hover span { border-color: rgba(226, 201, 143, 0.6); color: var(--cream); }
.pick input:checked + span { background: var(--grad-gold); border-color: transparent; color: var(--night); font-weight: 500; }
.pick input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* boxed fields with icon + floating label */
.form-row { gap: 16px; }
.field input, .field textarea {
  height: 60px;
  padding-top: 24px;
  padding-bottom: 8px;
  border: 1px solid rgba(226, 201, 143, 0.18);
  border-radius: 14px;
  background: rgba(239, 232, 216, 0.03);
  font-size: 0.98rem;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}
[dir="rtl"] .field input, [dir="rtl"] .field textarea { padding-right: 48px; padding-left: 40px; }
[dir="ltr"] .field input, [dir="ltr"] .field textarea { padding-left: 48px; padding-right: 40px; }
.field textarea { height: auto; min-height: 140px; padding-top: 30px; line-height: 1.7; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(226, 201, 143, 0.35); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(239, 232, 216, 0.05);
  box-shadow: 0 0 0 4px rgba(184, 151, 90, 0.14);
}
.f-ico {
  position: absolute;
  inset-inline-start: 16px;
  top: 20px;
  width: 20px;
  height: 20px;
  stroke: rgba(226, 201, 143, 0.55);
  transition: stroke 0.3s;
  pointer-events: none;
}
.field:focus-within .f-ico { stroke: var(--gold-hi); }
.field label { inset-inline-start: 48px; top: 19px; font-size: 0.95rem; }
.field-area label { top: 21px; }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.76); color: var(--gold); }
.field.is-valid::after {
  content: "";
  position: absolute;
  inset-inline-end: 17px;
  top: 24px;
  width: 10px;
  height: 5px;
  border-left: 1.5px solid var(--gold-hi);
  border-bottom: 1.5px solid var(--gold-hi);
  transform: rotate(-45deg);
}
.field-area.is-valid::after { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #e8a07a; box-shadow: 0 0 0 4px rgba(232, 160, 122, 0.12); }
.field.has-error .f-ico { stroke: #e8a07a; }
.field-error { margin-top: 8px; padding-inline-start: 4px; font-size: 0.78rem; }
.f-count {
  position: absolute;
  inset-inline-end: 14px;
  top: 10px;
  font-family: var(--f-wide);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  direction: ltr;
  pointer-events: none;
}
.f-count.is-near { color: var(--gold-hi); }

/* send button */
.btn-send { min-height: 58px; gap: 12px; }
.send-ico { position: relative; z-index: 1; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; transition: transform 0.4s var(--ease); }
[dir="rtl"] .send-ico { transform: scaleX(-1); }
.btn-send:hover .send-ico { transform: translateX(4px); }
[dir="rtl"] .btn-send:hover .send-ico { transform: scaleX(-1) translateX(4px); }
.send-wait { display: none; }
.btn-send.is-loading { cursor: progress; }
.btn-send.is-loading .send-label, .btn-send.is-loading .send-ico { display: none; }
.btn-send.is-loading .send-wait { display: inline; }
.btn-send.is-loading::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(23, 21, 14, 0.25);
  border-top-color: var(--night);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* success */
.form-success { gap: 10px; }
.fs-again { margin-top: 14px; }

@media (max-width: 600px) {
  .form { border-radius: 22px; }
  .c-card { padding-inline: 12px 16px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) auto; }
  .c-ico { width: 44px; height: 44px; }
}

/* counter sits on the side opposite the icon (it is LTR, so place it physically) */
[dir="rtl"] .f-count { left: 14px; right: auto; }
[dir="ltr"] .f-count { right: 14px; left: auto; }

/* =========================================================
   Gallery page — showcase: large photo + thumbnail strip
   ========================================================= */
.showcase { display: grid; gap: 16px; }
.sc-stage {
  position: relative;
  height: clamp(380px, 70vh, 740px);
  border-radius: 26px;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
  box-shadow: 0 50px 90px -60px rgba(23, 21, 14, 0.8);
}
.sc-photo { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; cursor: zoom-in; touch-action: pan-y; }
.sc-photo:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -6px; }
.sc-img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.sc-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(14, 13, 8, 0.82) 0%, rgba(14, 13, 8, 0.25) 32%, transparent 55%),
    linear-gradient(180deg, rgba(14, 13, 8, 0.35) 0%, transparent 18%);
}
.sc-cap {
  position: absolute;
  inset-inline: clamp(22px, 3.4vw, 48px);
  bottom: clamp(22px, 3.4vw, 44px);
  z-index: 2;
  display: grid;
  gap: 6px;
  pointer-events: none;
  color: var(--cream);
}
.sc-cat {
  justify-self: start;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 201, 143, 0.5);
  font-size: 0.75rem;
  color: var(--gold-hi);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.sc-title { font-family: var(--f-head); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1.3; }
html[lang="en"] .sc-title { font-weight: 400; }
.sc-count {
  position: absolute;
  top: 22px;
  inset-inline-start: 26px;
  z-index: 2;
  font-family: var(--f-wide);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--cream);
  direction: ltr;
  pointer-events: none;
}
.sc-zoom {
  position: absolute;
  top: 16px;
  inset-inline-end: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(23, 21, 14, 0.4);
  border: 1px solid rgba(226, 201, 143, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.sc-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; }
.sc-stage:hover .sc-zoom { opacity: 1; }
.sc-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 143, 0.35);
  background: rgba(23, 21, 14, 0.35);
  color: var(--cream);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s, border-color 0.3s, opacity 0.3s, transform 0.4s var(--ease);
}
.sc-prev { inset-inline-start: 20px; }
.sc-next { inset-inline-end: 20px; }
.sc-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.sc-arrow:disabled { opacity: 0; pointer-events: none; }
.sc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .sc-arrow svg { transform: scaleX(-1); }

/* thumbnail strip */
.sc-strip {
  display: flex;
  gap: 10px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 151, 90, 0.5) transparent;
}
.sc-strip .ph {
  flex: 0 0 auto;
  width: clamp(96px, 9vw, 132px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  scroll-snap-align: center;
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.45s var(--ease), outline-color 0.3s;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.sc-strip .ph::after { display: none; }
.sc-strip .ph:hover { opacity: 0.9; }
.sc-strip .ph.is-current { opacity: 1; outline-color: var(--gold); transform: translateY(-3px); }
.sc-strip .ph img { width: 100%; height: 100%; object-fit: cover; }
.sc-strip .ph:hover img { transform: none; }

@media (max-width: 700px) {
  .sc-stage { height: auto; aspect-ratio: 4 / 5; border-radius: 20px; }
  .sc-arrow { width: 42px; height: 42px; margin-top: -21px; }
  .sc-prev { inset-inline-start: 10px; }
  .sc-next { inset-inline-end: 10px; }
  .sc-strip .ph { width: 84px; border-radius: 10px; }
}

/* =========================================================
   Crown Prince quotes — portrait + quote slider
   ========================================================= */
.quote { isolation: isolate; }
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.quote-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.08);
  transition: transform 8s linear;
}
.quote-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0.55) 30%, rgba(23, 21, 14, 0.6) 70%, var(--night) 100%),
    linear-gradient(90deg, rgba(23, 21, 14, 0.92), rgba(23, 21, 14, 0.5) 60%, rgba(23, 21, 14, 0.75));
}
[dir="rtl"] .quote-bg::after {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0.55) 30%, rgba(23, 21, 14, 0.6) 70%, var(--night) 100%),
    linear-gradient(270deg, rgba(23, 21, 14, 0.92), rgba(23, 21, 14, 0.5) 60%, rgba(23, 21, 14, 0.75));
}
.quote.is-tuwaiq .quote-bg { opacity: 1; }
.quote.is-tuwaiq .quote-bg img { transform: scale(1); }

/* official portrait in the arch */
.portrait-arch { background: #0b0a06; }
.portrait-arch img { object-position: 50% 20%; }
.portrait-arch::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(23, 21, 14, 0.55));
  pointer-events: none;
}

/* slides stack in one cell so the block keeps the tallest height */
.q-slides { display: grid; }
.q-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.9s var(--ease), visibility 0s 0.6s;
}
.q-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.8s ease 0.15s, transform 1s var(--ease) 0.15s, visibility 0s;
}
.q-slide blockquote { margin: 0; }
.quote-text { margin-bottom: 22px; font-size: clamp(1.25rem, 2.1vw, 1.95rem); }
.q-src { font-size: 0.82rem; color: var(--gold); margin-bottom: 30px; }
.q-src a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(226, 201, 143, 0.3);
  border-radius: 999px;
  color: var(--gold-hi);
  transition: border-color 0.3s, background-color 0.3s;
}
.q-src a:hover { border-color: var(--gold); background: rgba(184, 151, 90, 0.12); }
.q-src a i { font-style: normal; font-size: 0.8em; }

/* controls */
.q-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.q-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(226, 201, 143, 0.3);
  color: var(--cream);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.q-arrow:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(184, 151, 90, 0.1); }
.q-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .q-arrow svg { transform: scaleX(-1); }
.q-tabs { display: flex; gap: 8px; flex: 1; max-width: 260px; }
.q-tab { flex: 1; height: 20px; display: grid; align-items: center; }
.q-tab span {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(226, 201, 143, 0.2);
  overflow: hidden;
}
.q-tab span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-hi);
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .q-tab span::after { transform-origin: right; }
.q-tab.is-done span::after { transform: scaleX(1); }
.q-tab.is-active span::after { animation: qFill var(--q-dur, 8s) linear forwards; }
.quote.is-paused .q-tab.is-active span::after { animation-play-state: paused; }
@keyframes qFill { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .q-controls { justify-content: center; }
  .portrait { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-tab.is-active span::after { animation: none; transform: scaleX(1); }
}

/* ---------- About page: "invest with vision" poster ---------- */
.vision-sec { background: var(--night); overflow: hidden; }
.vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.vision-copy .h2 { margin-bottom: 22px; }
.vision-copy p { color: var(--cream-soft); max-width: 32rem; margin-bottom: 30px; }
.vision-poster {
  position: relative;
  margin: 0;
  border-radius: 26px;
  padding: 10px;
  border: 1px solid rgba(226, 201, 143, 0.35);
  background: linear-gradient(160deg, rgba(53, 49, 31, 0.6), rgba(23, 21, 14, 0.6));
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.8);
}
.vision-poster::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  border: 1px solid rgba(226, 201, 143, 0.12);
  pointer-events: none;
}
.vision-poster img { width: 100%; height: auto; border-radius: 18px; }
/* official portrait card (transparent image, name in gold): kept near its real size so it stays sharp */
.vision-poster.is-portrait { justify-self: center; width: 100%; max-width: 400px; padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); }
.vision-poster.is-portrait img { max-width: 300px; margin-inline: auto; border-radius: 0; }
@media (max-width: 900px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-poster { max-width: 520px; margin-inline: auto; }
}

/* ---------- Dashboard-driven bits ---------- */
.send-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(232, 160, 122, 0.4);
  background: rgba(232, 160, 122, 0.08);
  color: #f0b79a;
  font-size: 0.85rem;
}
.send-error[hidden] { display: none; }
.adv-card.is-db .adv-body h3 { margin-bottom: 2px; }
.adv-title { font-size: 0.8rem; color: var(--gold-lo); margin-bottom: 10px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-social[hidden] { display: none; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--cream-soft);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(184, 151, 90, 0.1); }
.footer-social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .footer-social { justify-content: center; } }

/* ---------- Inner pages: no intro strip ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* the header sits over the first section, so keep it solid on inner pages */
body:not([data-page="home"]):not([data-page="404"]) .site-header {
  background: rgba(23, 21, 14, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
}
/* first section starts below the fixed header */
main > h1.sr-only + .section { padding-top: calc(var(--header-h) + clamp(56px, 7vw, 96px)); }
main > h1.sr-only + .works { padding-top: 0; }
main > h1.sr-only + .works .works-sticky { padding-top: var(--header-h); }
@media (max-width: 900px) {
  main > h1.sr-only + .works { padding-top: calc(var(--header-h) + 56px); }
  main > h1.sr-only + .works .works-sticky { padding-top: 0; }
}
/* eyebrows were hidden while the strip repeated the page name; show them again */
.contact.is-page .contact-info > .eyebrow { display: inline-flex; }

/* ---------- Quote section: single quote, clearer Tuwaiq, royal name ---------- */
/* no outer frame around the portrait */
.quote .portrait::before { display: none; }
/* Tuwaiq shows through more: lighter veil, darker only behind the text */
.quote-bg img { filter: saturate(1.05) brightness(0.95); }
.quote-bg::after {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0.2) 18%, rgba(23, 21, 14, 0.2) 80%, var(--night) 100%),
    linear-gradient(90deg, rgba(23, 21, 14, 0.3) 0%, rgba(23, 21, 14, 0.15) 40%, rgba(23, 21, 14, 0.72) 100%);
}
[dir="rtl"] .quote-bg::after {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0.2) 18%, rgba(23, 21, 14, 0.2) 80%, var(--night) 100%),
    linear-gradient(270deg, rgba(23, 21, 14, 0.3) 0%, rgba(23, 21, 14, 0.15) 40%, rgba(23, 21, 14, 0.72) 100%);
}
.quote .quote-text { text-shadow: 0 2px 18px rgba(14, 13, 8, 0.6); }
/* Arabic: the name drawn in Diwani Jali (an image, the font can't be served on the web);
   the plain cite stays for screen readers, search engines and the English version */
.cite-royal { display: none; }
html[lang="ar"] .quote-cite cite {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[lang="ar"] .cite-royal {
  display: grid;
  justify-items: start;
  gap: 6px;
  color: var(--gold-hi);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
}
.cite-royal img {
  width: clamp(260px, 30vw, 440px);
  height: auto;
  margin-block: 2px 4px;
  filter: drop-shadow(0 1px 10px rgba(14, 13, 8, 0.85));
}
.cite-royal small { font-size: inherit; opacity: 0.85; }
/* only one quote: the per-slide caption is shown under the name instead */
.q-slide .q-src { display: none; }
.q-src-out {
  margin: 18px 0 0;
  padding-inline-start: 76px;
  font-size: 0.85rem;
  color: var(--gold);
}
.q-src-out[hidden] { display: none; }
.q-src-out a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); border-bottom: 1px solid rgba(226, 201, 143, 0.35); }
.q-src-out a i { font-style: normal; font-size: 0.8em; }
.q-controls[hidden] { display: none; }
.quote .quote-text { margin-bottom: 36px; }
/* the portrait frame needs an explicit width on phones (the photo inside is absolutely placed) */
@media (max-width: 900px) {
  .quote .portrait { width: 100%; max-width: 300px; margin-inline: auto; }
}
.q-src-out { color: var(--gold-hi); }

/* portrait: plain rectangle with soft corners (no arch) */
.quote .portrait-arch { border-radius: 16px; }

/* ---------- Partners in success ---------- */
.partners {
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(184, 151, 90, 0.16), transparent 70%),
    var(--night);
  overflow: hidden;
}
.partners .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
/* one ivory plaque holding the logos, framed in gold */
.plaque {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(226, 201, 143, 0.55), rgba(138, 106, 51, 0.4));
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.plaque-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(34px, 4.6vw, 60px) clamp(26px, 4vw, 60px);
  border-radius: 16px;
  background: radial-gradient(80% 120% at 50% 0%, #fffdf8, #f6f1e6);
}
.plaque-row::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 151, 90, 0.35);
  border-radius: 10px;
  pointer-events: none;
}
.plaque-item { display: grid; place-items: center; min-height: 150px; }
.plaque-item img {
  max-width: min(100%, 360px);
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.7s var(--ease);
}
.plaque-item:hover img { transform: scale(1.04); }
.plaque-sep { position: relative; align-self: stretch; width: 1px; background: linear-gradient(180deg, transparent, rgba(184, 151, 90, 0.7), transparent); }
.plaque-sep i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--gold);
  transform: rotate(45deg);
}
@media (max-width: 700px) {
  .plaque-row { grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
  .plaque-sep { width: 60%; height: 1px; justify-self: center; background: linear-gradient(90deg, transparent, rgba(184, 151, 90, 0.7), transparent); }
  .plaque-item { min-height: 0; }
  .plaque-item img { max-height: 120px; }
}

/* ---------- Viewer: business-area title laid over the photo ---------- */
.v-onphoto {
  position: absolute;
  z-index: 1;
  display: none;
  align-content: end;
  gap: 6px;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 13, 8, 0.85) 0%, rgba(14, 13, 8, 0.35) 30%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.viewer.is-works .v-onphoto { display: grid; }
.viewer.is-works.is-open:not(.is-busy):not(.is-zoomed):not(.is-dragging) .v-onphoto { opacity: 1; }
.v-onphoto span {
  justify-self: start;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 201, 143, 0.5);
  font-size: 0.78rem;
  color: var(--gold-hi);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.v-onphoto strong {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1.3;
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(14, 13, 8, 0.6);
}
html[lang="en"] .v-onphoto strong { font-weight: 400; }
/* the title is on the photo, so the caption under it is not repeated */
.viewer.is-works .v-caption { display: none; }

/* five business areas */
.svc-links.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svc-links.is-5 .svc-link-body { padding: 18px; }
.svc-links.is-5 .svc-link-body strong { font-size: 1rem; }
@media (max-width: 1100px) { .svc-links.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-links.is-5 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
/* the dropdown holds five areas: the last one spans the row */
.drop .drop-item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Tuwaiq: the mountain stands out (desktop + phone) ---------- */
/* ---------- Crown Prince: Saudi flag green and white, merged with Tuwaiq ----------
   The section is flag green instead of black. The mountain is laid over it in
   "luminosity" blend: it keeps its light and shape but takes the green, so the
   sky and lit cliffs turn near-white and the shadows deep green. The mountain is
   always there; it comes forward fully on the Tuwaiq quote. */
.quote {
  --sa-green: #006c35;
  --sa-green-deep: #00361b;
  --sa-shadow: rgba(0, 32, 16, 0.85);
  background:
    radial-gradient(70% 90% at 30% 45%, var(--sa-green) 0%, #005129 55%, var(--sa-green-deep) 100%);
}
[dir="rtl"] .quote { background: radial-gradient(70% 90% at 70% 45%, var(--sa-green) 0%, #005129 55%, var(--sa-green-deep) 100%); }
/* a full screen, content centred; min-height so it still grows if the content is taller
   (svh: steady on phones while the browser bar shows/hides) */
.quote {
  box-sizing: border-box; /* the section padding counts inside the 100vh */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* centring does the spacing now; lighter padding lets short screens fit in one screen too */
  padding-block: clamp(40px, 7vh, 96px);
}
.quote .quote-bg { opacity: 0.45; mix-blend-mode: luminosity; }
.quote.is-tuwaiq .quote-bg { opacity: 1; }
.quote-bg img {
  filter: grayscale(1) contrast(1.15) brightness(1.12);
  object-position: 42% 30%;
}
/* luminance only: darker behind the quote for reading, lighter where the mountain stands */
.quote-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 36%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.82) 100%);
}
[dir="rtl"] .quote-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 36%, rgba(0, 0, 0, 0.72) 58%, rgba(0, 0, 0, 0.82) 100%);
}
/* the flag's white for the circle line; the mask reveal starts from green, not black */
.quote::after { border-color: rgba(255, 255, 255, 0.16); }
.quote .portrait-arch[data-reveal="mask"] { --mask-c: var(--sa-green-deep); }
/* the quote stays readable over the lit parts of the mountain */
.quote .quote-text { text-shadow: 0 2px 20px var(--sa-shadow), 0 0 2px rgba(0, 32, 16, 0.5); }
.quote .quote-cite cite, .quote .q-src-out, .quote .cite-royal { text-shadow: 0 1px 12px var(--sa-shadow); }
.quote .cite-royal img { filter: drop-shadow(0 1px 10px var(--sa-shadow)); }

/* phone only: smaller portrait so the mountain and the quote share the screen */
@media (max-width: 900px) {
  .quote .quote-grid { gap: 28px; }
  .quote .portrait { max-width: 210px; }
  .quote .portrait-arch { aspect-ratio: 4 / 5; }
  .quote-bg img { object-position: 30% 35%; }
  .quote, [dir="rtl"] .quote { background: radial-gradient(120% 60% at 50% 30%, var(--sa-green) 0%, #005129 55%, var(--sa-green-deep) 100%); }
  .quote-bg::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.45) 72%, rgba(0, 0, 0, 0.6) 100%) !important;
  }
  .quote .quote-text { font-size: 1.2rem; text-align: center; }
  .quote .quote-block { text-align: center; }
  .quote .quote-glyph { inset-inline-start: 50%; transform: translateX(50%); }
  [dir="ltr"] .quote .quote-glyph { transform: translateX(-50%); }
  .quote .quote-cite { justify-content: center; }
  .quote .quote-cite .cite-rule { display: none; }
  html[lang="ar"] .cite-royal { justify-items: center; text-align: center; }
  .quote .q-src-out { padding-inline-start: 0; text-align: center; }
}

/* ---------- Home hero: lighter, clearer photos; text kept readable ---------- */
.hero > .hero-veil {
  background:
    radial-gradient(40% 44% at 50% 50%, rgba(42, 39, 28, 0.86) 0%, rgba(42, 39, 28, 0.66) 55%, rgba(42, 39, 28, 0.22) 100%),
    linear-gradient(180deg, rgba(42, 39, 28, 0.8) 0%, transparent 20%, transparent 78%, var(--olive) 100%);
}
.hero .hp img { filter: saturate(1) contrast(1.03) brightness(1.04); }
.hero .hp::after { background: none; }
.hero-copy .hero-title, .hero-copy .hero-lead, .hero-copy .eyebrow { text-shadow: 0 2px 24px rgba(23, 21, 14, 0.8); }
@media (max-width: 900px) {
  .hero > .hero-veil {
    background:
      radial-gradient(80% 50% at 50% 50%, rgba(42, 39, 28, 0.85), rgba(42, 39, 28, 0.45)),
      linear-gradient(180deg, rgba(42, 39, 28, 0.8) 0%, transparent 25%, transparent 75%, var(--olive) 100%);
  }
  body.is-loaded .hero-pins { opacity: 0.42; }
}

/* ---------- Home hero, round 2: clearly lighter, same identity ---------- */
.hero > .hero-veil {
  background:
    radial-gradient(34% 34% at 50% 50%, rgba(42, 39, 28, 0.74) 0%, rgba(42, 39, 28, 0.5) 55%, rgba(42, 39, 28, 0) 100%),
    linear-gradient(180deg, rgba(42, 39, 28, 0.6) 0%, transparent 16%, transparent 82%, rgba(42, 39, 28, 0.85) 100%);
}
.hero .hp img { filter: saturate(1.08) contrast(1.04) brightness(1.12); }
.hero-copy .hero-title { text-shadow: 0 2px 28px rgba(23, 21, 14, 0.9), 0 0 3px rgba(23, 21, 14, 0.55); }
.hero-copy .hero-lead { color: var(--cream); text-shadow: 0 1px 14px rgba(23, 21, 14, 0.95), 0 0 2px rgba(23, 21, 14, 0.7); }
.hero-copy .eyebrow { text-shadow: 0 1px 10px rgba(23, 21, 14, 0.95); }
.hero-actions .btn-gold { box-shadow: 0 12px 30px -10px rgba(23, 21, 14, 0.8); }
.hero-actions .btn-ghost {
  background: rgba(23, 21, 14, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(226, 201, 143, 0.7);
}
@media (max-width: 900px) {
  .hero > .hero-veil {
    background:
      radial-gradient(85% 45% at 50% 50%, rgba(42, 39, 28, 0.72), rgba(42, 39, 28, 0.3)),
      linear-gradient(180deg, rgba(42, 39, 28, 0.6) 0%, transparent 22%, transparent 80%, var(--olive) 100%);
  }
  body.is-loaded .hero-pins { opacity: 0.6; }
}
/* keep the gold headline and the menu legible over the brighter photos */
.hero > .hero-veil {
  background:
    radial-gradient(36% 30% at 50% 47%, rgba(42, 39, 28, 0.88) 0%, rgba(42, 39, 28, 0.68) 50%, rgba(42, 39, 28, 0) 100%),
    linear-gradient(180deg, rgba(42, 39, 28, 0.85) 0%, rgba(42, 39, 28, 0.35) 11%, transparent 20%, transparent 82%, rgba(42, 39, 28, 0.85) 100%);
}
.hero-title .gold-text { filter: drop-shadow(0 2px 10px rgba(23, 21, 14, 0.9)); }
@media (max-width: 900px) {
  .hero > .hero-veil {
    background:
      radial-gradient(90% 42% at 50% 47%, rgba(42, 39, 28, 0.84), rgba(42, 39, 28, 0.38)),
      linear-gradient(180deg, rgba(42, 39, 28, 0.8) 0%, transparent 20%, transparent 80%, var(--olive) 100%);
  }
  body.is-loaded .hero-pins { opacity: 0.55; }
}
/* hero text & nav bar: clearly readable over the brighter photos */
.hero > .hero-veil {
  background:
    radial-gradient(40% 34% at 50% 47%, rgba(30, 28, 20, 0.94) 0%, rgba(30, 28, 20, 0.8) 50%, rgba(30, 28, 20, 0) 100%),
    linear-gradient(180deg, transparent 0%, transparent 82%, rgba(42, 39, 28, 0.85) 100%);
}
.hero-copy .hero-title { color: #fffaf0; }
.hero-copy .hero-lead { color: #f6efdf; font-weight: 400; }
.hero-copy .eyebrow { color: var(--gold-hi); font-weight: 500; }
body[data-page="home"] .site-header {
  background: rgba(23, 21, 14, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
}
body[data-page="home"] .nav a { color: rgba(239, 232, 216, 0.9); }
@media (max-width: 900px) {
  .hero > .hero-veil {
    background:
      radial-gradient(95% 45% at 50% 47%, rgba(30, 28, 20, 0.92), rgba(30, 28, 20, 0.5)),
      linear-gradient(180deg, transparent 0%, transparent 80%, var(--olive) 100%);
  }
}
/* brighter gold for the hero headline (the default gradient dips into dark bronze) */
.hero-title .gold-text {
  background-image: linear-gradient(115deg, #e9cf92 0%, #f6e2b0 40%, #d9b874 70%, #ecd29a 100%);
  filter: drop-shadow(0 2px 12px rgba(23, 21, 14, 0.95));
}
.hero-title .gold-text { filter: none; text-shadow: none; }

/* ---------- New logo (header + footer) ---------- */
.brand-logo { display: block; height: 46px; width: auto; }
.footer .brand-logo { height: 58px; }
@media (max-width: 900px) { .site-header .brand-logo { height: 38px; } }
@media (max-width: 600px) {
  .site-header .brand-logo { height: 34px; }
  .footer .brand-logo { height: 52px; margin-inline: auto; }
}
.site-header .brand-logo { height: 56px; }
@media (max-width: 900px) { .site-header .brand-logo { height: 46px; } }
@media (max-width: 600px) { .site-header .brand-logo { height: 42px; } }


/* ---------- Loader with the new logo ---------- */
.loader-logo {
  position: relative;
  width: min(68vw, 420px);
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: logoReveal 1.4s cubic-bezier(0.76, 0, 0.24, 1) 0.15s forwards;
}
[dir="rtl"] .loader-logo { clip-path: inset(0 0 0 100%); }
.loader-logo img { display: block; width: 100%; height: auto; }
.loader-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 214, 0.75) 50%, transparent 65%);
  transform: translateX(-120%);
  mix-blend-mode: overlay;
  animation: logoShine 1.2s ease 1.4s forwards;
}
.loader-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 22px auto 0;
  background: var(--grad-gold);
  animation: logoLine 1s cubic-bezier(0.16, 0.84, 0.24, 1) 1.1s forwards;
}
@keyframes logoReveal { to { clip-path: inset(0 0 0 0); } }
@keyframes logoShine { to { transform: translateX(120%); } }
@keyframes logoLine { to { width: min(40vw, 180px); } }
/* quick / page-change curtain: logo shown fully, no long reveal */
body.is-quick .loader-logo, body.is-leaving .loader-logo { clip-path: none; animation: none; }
body.is-quick .loader-shine, body.is-leaving .loader-shine { display: none; }
body.is-quick .loader-line, body.is-leaving .loader-line { width: min(40vw, 180px); animation: none; }
@media (prefers-reduced-motion: reduce) {
  .loader-logo { clip-path: none; animation: none; }
  .loader-line { width: min(40vw, 180px); animation: none; }
}


/* ---------- Crown Prince: smaller arch portrait, Naskh quote, Tuwaiq left open (2026-10-25) ----------
   Portrait and words sit together on the reading side; the far side is left to the mountain.
   The quote is set in Amiri (Naskh, as official statements are printed), the name stays Diwani,
   labels stay Alexandria. */
.quote::after { display: none; }
.quote .quote-grid {
  grid-template-columns: clamp(190px, 17vw, 250px) minmax(0, 600px);
  justify-content: start;
  align-items: center;
  gap: clamp(36px, 4.5vw, 72px);
}
/* the site's arch, a hairline of gold on its edge, the black studio backdrop fading into green */
.quote .portrait-arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 20px 20px;
  background: var(--sa-green-deep);
  box-shadow: 0 0 0 1px rgba(226, 201, 143, 0.5), 0 30px 60px -24px rgba(0, 20, 10, 0.75);
}
.quote .portrait-arch img { object-position: 50% 18%; }
.quote .portrait-arch::before {
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 54, 27, 0.85));
}
.quote .quote-glyph { display: none; }
.quote .q-eyebrow { margin-bottom: 22px; color: var(--gold-hi); font-weight: 400; }
html[lang="ar"] .quote .quote-text {
  font-family: "Amiri", "Traditional Arabic", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.35vw, 2.25rem);
  line-height: 1.8;
  letter-spacing: 0;
  margin-bottom: 30px;
}
html[lang="en"] .quote .quote-text { font-size: clamp(1.35rem, 2vw, 1.85rem); margin-bottom: 30px; }
.quote .quote-text { color: #fbf7ee; max-width: 30ch; }
html[lang="en"] .quote .quote-text { max-width: 34ch; }
/* cite: a short gold rule, then the title, the name, the office */
.quote .quote-cite { gap: 18px; align-items: center; }
.quote .cite-rule { width: 40px; }
html[lang="ar"] .quote .cite-royal { gap: 4px; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.01em; }
.quote .cite-royal span { color: var(--gold-hi); }
.quote .cite-royal small { color: rgba(251, 247, 238, 0.82); opacity: 1; }
.quote .cite-royal img { width: clamp(230px, 22vw, 330px); }
.quote .q-src-out { margin-top: 22px; padding-inline-start: 58px; font-size: 0.8rem; font-weight: 400; color: rgba(226, 201, 143, 0.9); }
/* veil: darker behind portrait and words, the mountain clear on the far side */
.quote .quote-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0) 100%);
}
[dir="rtl"] .quote .quote-bg::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.12) 66%, rgba(0, 0, 0, 0) 100%);
}
.quote .quote-bg img { object-position: 85% 30%; }
/* RTL: the words are on the right, so the photo is widened and slid left to bring the cliff clear of them */
@media (min-width: 901px) {
  [dir="rtl"] .quote .quote-bg img { position: absolute; top: 0; left: -24%; width: 124%; max-width: none; object-position: 0% 12%; }
}

@media (max-width: 900px) {
  .quote .quote-grid { grid-template-columns: 1fr; justify-items: center; gap: 30px; }
  .quote .portrait { width: 100%; max-width: 168px; }
  .quote .quote-block { max-width: 520px; }
  .quote .q-eyebrow { justify-content: center; margin-bottom: 16px; }
  html[lang="ar"] .quote .quote-text { font-size: 1.45rem; line-height: 1.75; margin-inline: auto; }
  html[lang="en"] .quote .quote-text { font-size: 1.2rem; margin-inline: auto; }
  .quote .cite-royal img { width: min(260px, 70vw); }
  .quote .q-src-out { padding-inline-start: 0; }
  .quote .quote-bg img, [dir="rtl"] .quote .quote-bg img { object-position: 35% 35%; }
  .quote .quote-bg::after, [dir="rtl"] .quote .quote-bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 18%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.65) 100%) !important;
  }
}

/* ---------- Crown Prince: the site's dark olive and gold, Tuwaiq in its own desert colour (2026-10-25) ----------
   Replaces the flag green. The mountain is shown as photographed (it is already the brand's gold),
   veiled in night/olive only behind the words. The portrait is cut out of its black studio backdrop
   (assets/img/crown-prince-cut.webp) and stands free, fading out at the bottom. */
.quote {
  --sa-green-deep: var(--night);
  --sa-shadow: rgba(14, 13, 8, 0.85);
  background: radial-gradient(70% 90% at 30% 45%, var(--olive-2) 0%, var(--olive) 50%, var(--night) 100%);
}
[dir="rtl"] .quote { background: radial-gradient(70% 90% at 70% 45%, var(--olive-2) 0%, var(--olive) 50%, var(--night) 100%); }
.quote .quote-bg, .quote.is-tuwaiq .quote-bg { opacity: 1; mix-blend-mode: normal; }
.quote .quote-bg img { filter: saturate(0.8) contrast(1.05) brightness(0.88); }
.quote .quote-bg::after {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0) 20%, rgba(23, 21, 14, 0) 78%, rgba(23, 21, 14, 0.9) 100%),
    linear-gradient(90deg, rgba(23, 21, 14, 0.94) 0%, rgba(23, 21, 14, 0.82) 36%, rgba(23, 21, 14, 0.3) 62%, rgba(23, 21, 14, 0.06) 100%);
}
[dir="rtl"] .quote .quote-bg::after {
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0) 20%, rgba(23, 21, 14, 0) 78%, rgba(23, 21, 14, 0.9) 100%),
    linear-gradient(270deg, rgba(23, 21, 14, 0.94) 0%, rgba(23, 21, 14, 0.82) 36%, rgba(23, 21, 14, 0.3) 62%, rgba(23, 21, 14, 0.06) 100%);
}

/* portrait: no box, no frame; a faint gold glow behind the head keeps the dark agal off the dark ground */
.quote .quote-grid { grid-template-columns: clamp(210px, 19vw, 290px) minmax(0, 600px); }
.quote .portrait { isolation: isolate; }
.quote .portrait::after {
  content: "";
  position: absolute;
  inset: -6% -18% 18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(184, 151, 90, 0.26), rgba(184, 151, 90, 0.08) 60%, transparent);
  pointer-events: none;
}
.quote .portrait-arch {
  aspect-ratio: 336 / 480;
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
}
.quote .portrait-arch::before { display: none; }
.quote .portrait-arch img {
  object-fit: contain;
  object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 100%);
  filter: drop-shadow(0 18px 30px rgba(14, 13, 8, 0.55));
}

@media (max-width: 900px) {
  .quote, [dir="rtl"] .quote { background: radial-gradient(120% 60% at 50% 30%, var(--olive-2) 0%, var(--olive) 55%, var(--night) 100%); }
  .quote .quote-grid { grid-template-columns: 1fr; }
  .quote .portrait { max-width: 190px; }
  .quote .quote-bg::after, [dir="rtl"] .quote .quote-bg::after {
    background: linear-gradient(180deg, var(--night) 0%, rgba(23, 21, 14, 0.15) 16%, rgba(23, 21, 14, 0.55) 46%, rgba(23, 21, 14, 0.9) 100%) !important;
  }
}

/* ---------- Business areas: smaller cards, six areas (2026-10-25) ----------
   Six areas now (feasibility studies added before auctions), so the arched cards are
   smaller and the track shorter; the intro keeps its width so the heading stays on one line. */
.works .work-card {
  width: min(72vw, 316px);
  height: min(56vh, 470px);
}
.works .work-card:nth-of-type(odd) { transform: translateY(-18px); }
.works .work-card:nth-of-type(even) { transform: translateY(18px); }
.works .work-card::before { inset: -10px; }
.works .work-card:hover::before { inset: -16px; }
.works .works-track { gap: clamp(34px, 3.4vw, 52px); }
.works .work-body { padding: 22px 24px 24px; }
.works .work-cat { padding: 5px 12px; margin-bottom: 12px; font-size: 0.72rem; }
.works .work-body h3 { font-size: clamp(1.02rem, 1.25vw, 1.2rem); margin-bottom: 8px; }
.works .work-body p { font-size: 0.82rem; line-height: 1.7; margin-bottom: 12px; }
.works .tags { gap: 6px 14px; margin-bottom: 14px; }
.works .tags li { font-size: 0.74rem; }
@media (max-width: 900px) {
  .works .work-card, .works .work-card:nth-of-type(odd), .works .work-card:nth-of-type(even) {
    width: calc(100% - 24px);
    max-width: 360px;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 460px;
    transform: none;
  }
  .works .works-track { gap: 36px; }
}

/* six business areas: three per row */
.svc-links.is-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .svc-links.is-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-links.is-6 { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }

/* ---------- Advisors: five fields of expertise (feasibility studies added, 2026-10-25) ----------
   One row of five on wide screens; 3 + 2 centred on laptops; 2 + 1 centred on tablets. */
.adv-grid.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.adv-grid.is-5 .adv-card { padding: 10px 10px 24px; }
.adv-grid.is-5 .adv-photo { margin-bottom: 18px; }
.adv-grid.is-5 .adv-body { padding-inline: 10px; }
.adv-grid.is-5 .adv-body h3 { font-size: 0.96rem; }
.adv-grid.is-5 .adv-body p { font-size: 0.84rem; }
@media (max-width: 1100px) {
  .adv-grid.is-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .adv-grid.is-5 > .adv-card { grid-column: span 2; }
  .adv-grid.is-5 > .adv-card:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 900px) {
  .adv-grid.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv-grid.is-5 > .adv-card, .adv-grid.is-5 > .adv-card:nth-child(4) { grid-column: auto; }
  .adv-grid.is-5 > .adv-card:nth-child(5) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  .adv-grid.is-5 { grid-template-columns: 1fr; }
  .adv-grid.is-5 > .adv-card:nth-child(5) { width: 100%; }
}

/* ---------- Advisors: text rows line up across the cards (2026-10-25) ----------
   Each card spans six rows of the grid and shares them (subgrid), so field, name(s), title and
   description start at the same height on every card in a row, however many names a card has. */
@supports (grid-template-rows: subgrid) {
  .adv-grid { align-items: stretch; }
  .adv-grid > .adv-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .adv-grid .adv-body { display: contents; }
  .adv-grid .adv-body > * { margin-inline: 14px; align-self: start; }
  .adv-grid.is-5 .adv-body > * { margin-inline: 10px; }
  .adv-grid .adv-photo { grid-row: 1; }
  .adv-grid .adv-field { grid-row: 2; }
  .adv-grid .adv-body > h3 { grid-row: 3; }
  .adv-grid .adv-title { grid-row: 4; }
  .adv-grid .adv-body > p:not([class]) { grid-row: 5; }
  .adv-grid .adv-soon { grid-row: 6; justify-self: start; }
}

/* ---------- Activities: seven cards, the last one centred on its own row ---------- */
.acts > .act:last-child:nth-child(3n + 1) { grid-column: 2; }
@media (max-width: 1100px) {
  .acts > .act:last-child:nth-child(3n + 1) { grid-column: auto; }
  .acts > .act:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
}
@media (max-width: 600px) {
  .acts > .act:last-child:nth-child(odd) { width: 100%; }
}

/* ---------- Steps sections on beige (2026-10-25) ----------
   "How we work", "How a consultation works" and "Your journey with us" all use the light beige
   (is-light). Where the beige meets another beige section, a hairline keeps them apart. */
.feats-sec + .steps-sec.is-light > .container,
.steps-sec.is-light + .svc-links-sec > .container,
.steps-sec.is-light + .faq-sec > .container {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(48px, 6vw, 80px);
}
.feats-sec + .steps-sec.is-light,
.steps-sec.is-light + .svc-links-sec,
.steps-sec.is-light + .faq-sec { padding-top: 0; }
