/* NCF premium atmosphere layer — loads after custom.css.
   Palette is the existing brand palette only (night / clay / sand / parchment / gold). */

:root {
  --font-primary: "Almarai", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --gold: #B8892E;
  --gold-light: #E6D19A;
  --clay: #9E4526;
  --night: #1E2A4A;
  --night-deep: #0C121F;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────────── Typography: Almarai everywhere ───────────── */
html, body, button, input, select, textarea { font-family: var(--font-primary); }
h1, h2, h3, h4, .text-display, .text-h1, .text-h2, .text-h3, .hero-title {
  font-family: var(--font-primary);
  letter-spacing: 0;
  text-wrap: balance;
}
.text-display, .text-h1, h1 { font-weight: 800; line-height: 1.32; }
.text-h2, h2 { font-weight: 700; line-height: 1.38; }
.text-h3, h3 { font-weight: 700; line-height: 1.42; }
body { font-weight: 400; line-height: 1.9; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.text-body { font-size: 1.125rem; line-height: 1.9; }
.text-caption { font-size: 0.875rem; line-height: 1.65; }
html[lang="ar"] .hero-title { line-height: 1.5; }

/* ───────────── Atmosphere: paper grain + page entrance ───────────── */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("../img/svg/paper-grain.svg");
  opacity: 0.32; mix-blend-mode: multiply;
}
html.dark body::after { opacity: 0.16; mix-blend-mode: screen; }
@keyframes ncf-page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: ncf-page-in 0.7s var(--ease-out) both; }

#scroll-progress { background: linear-gradient(to left, var(--gold), var(--clay)) !important; box-shadow: 0 0 12px rgba(158, 69, 38, 0.55); }

/* ───────────── Header: institutional bar + centered brand ───────────── */
.site-header {
  background: rgba(247, 241, 230, 0.96) !important;
  -webkit-backdrop-filter: saturate(1.3) blur(20px);
  backdrop-filter: saturate(1.3) blur(20px);
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 rgba(184, 137, 46, 0.38);
  transition: box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
html.dark .site-header {
  background: linear-gradient(180deg, rgba(23, 31, 53, 0.97), rgba(12, 18, 31, 0.95)) !important;
  box-shadow: inset 0 -1px 0 rgba(184, 137, 46, 0.34);
}
.site-header { position: sticky; }
.site-header .header-inner { position: relative; }
.site-header.is-scrolled {
  box-shadow:
    inset 0 -1px 0 rgba(184, 137, 46, 0.5),
    0 14px 38px -24px rgba(12, 18, 31, 0.6);
}
html.dark .site-header.is-scrolled {
  box-shadow:
    inset 0 -1px 0 rgba(184, 137, 46, 0.45),
    0 16px 44px -22px rgba(0, 0, 0, 0.7);
}
.site-utility {
  background: linear-gradient(to left, #12192C, #1A243F 55%, #12192C) !important;
  border-bottom: 1px solid rgba(184, 137, 46, 0.22);
}

/* Desktop: primary | brand | secondary — wider than the page container so
   the two link groups breathe instead of crowding the logo. */
.site-header .header-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.5rem, 1.4vw, 1.75rem);
  row-gap: 0;
  max-width: min(100rem, 100%) !important;
  min-height: 4.75rem;
  padding-block: 0.6rem !important;
  transition: min-height 0.3s var(--ease-out), padding-block 0.3s var(--ease-out);
}
.site-header.is-scrolled .header-inner {
  min-height: 3.9rem;
  padding-block: 0.3rem !important;
}
.header-inner > .nav-primary {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  min-width: 0;
  max-width: 100%;
}
.header-inner > a.brand-mark {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: relative;
  z-index: 1;
  flex: none;
}
.header-inner > a.brand-mark img {
  height: clamp(2.9rem, 0.9vw + 2.1rem, 3.6rem);
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  transition: height 0.3s var(--ease-out);
}
.site-header.is-scrolled .header-inner > a.brand-mark img { height: 2.35rem; }
.header-inner > .header-end {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}
.header-inner .nav-secondary {
  justify-content: flex-start;
  flex-wrap: nowrap !important;
  min-width: 0;
}

/* Desktop (≥1024): always show every primary + secondary link.
   Density only shrinks type/padding — never hides menu items. */
@media (min-width: 1024px) {
  .header-inner > .nav-primary,
  .header-inner .nav-secondary {
    display: flex !important;
  }
  .header-inner .nav-secondary > a {
    display: inline-flex !important;
  }
  .header-inner [data-drawer-open] { display: none !important; }
  .header-inner.is-dense .nav-primary > a,
  .header-inner.is-dense .nav-secondary > a {
    font-size: clamp(0.68rem, 0.72vw, 0.82rem);
    padding-inline: clamp(0.28rem, 0.35vw, 0.5rem);
  }
  .header-inner.is-dense .nav-secondary > a[href*="contact"] {
    padding-inline: 0.7rem;
    min-height: 2.1rem;
  }
  .header-inner.is-dense > a.brand-mark img {
    height: clamp(2.35rem, 2vw, 2.85rem);
  }
}
@media (min-width: 1024px) {
  .drawer,
  .drawer-backdrop { display: none !important; }
}
@media (max-width: 1023px) {
  .site-header .header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding-block: 0.5rem !important;
  }
  .site-header.is-scrolled .header-inner {
    min-height: 3.4rem;
    padding-block: 0.35rem !important;
  }
  .header-inner > .nav-primary,
  .header-inner .nav-secondary { display: none !important; }
  .header-inner > a.brand-mark {
    flex: 1 1 auto !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    max-width: calc(100% - 7.5rem);
    justify-content: flex-start;
    justify-self: auto;
    padding-inline: 0;
    grid-column: auto;
  }
  .header-inner > .header-end {
    grid-column: auto;
    justify-self: auto;
    margin-inline-start: auto;
    flex: 0 0 auto;
  }
  .header-inner [data-drawer-open] { display: inline-flex !important; }
  .brand-mark img {
    height: 2.5rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: inline-start;
  }
  .site-header.is-scrolled .header-inner > a.brand-mark img { height: 2.15rem; }
  .drawer { display: block !important; }
  .drawer-backdrop { display: block !important; }
}

/* Brand mark — clean lockup, soft lift on hover */
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  transition: transform 0.35s var(--ease-out);
}
.brand-mark:hover { transform: translateY(-1px); }
.brand-mark img { position: relative; z-index: 1; }

/* Mobile menu button — squircle with gold hairline */
.header-inner [data-drawer-open] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.95rem;
  background: rgba(30, 42, 74, 0.05) !important;
  color: #1E2A4A !important;
  border: 1px solid rgba(30, 42, 74, 0.14);
  box-shadow: none;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.header-inner [data-drawer-open]:hover {
  background: rgba(184, 137, 46, 0.14) !important;
  border-color: var(--gold);
}
.header-inner [data-drawer-open]:active { transform: scale(0.95); }
.header-inner [data-drawer-open] svg { width: 1.35rem; height: 1.35rem; }
/* Subpages use a ☰ glyph instead of an icon */
.header-inner [data-drawer-open] { font-size: 1.15rem; line-height: 1; }

/* Header search — icon only until opened */
.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  color: #1E2A4A;
  background: rgba(30, 42, 74, 0.05);
  border: 1px solid rgba(30, 42, 74, 0.14);
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.header-search-toggle svg { width: 1.2rem; height: 1.2rem; }
.header-search-toggle:hover {
  background: rgba(184, 137, 46, 0.14);
  border-color: var(--gold);
  color: var(--clay);
}
.header-search-toggle:active { transform: scale(0.95); }
.header-search-toggle[aria-expanded="true"] {
  background: rgba(184, 137, 46, 0.16);
  border-color: var(--gold);
  color: var(--clay);
}
html.dark .header-search-toggle {
  color: #F3E7C3;
  background: rgba(230, 209, 154, 0.06);
  border-color: rgba(230, 209, 154, 0.2);
}
html.dark .header-search-toggle:hover,
html.dark .header-search-toggle[aria-expanded="true"] {
  background: rgba(184, 137, 46, 0.22);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.header-search-panel {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(18.5rem, calc(100vw - 2rem));
  min-height: 2.75rem;
  padding: 0.25rem 0.3rem 0.25rem 0.7rem;
  border-radius: 999px;
  background: #FBF8F2;
  border: 1px solid rgba(184, 137, 46, 0.45);
  box-shadow: 0 14px 36px -18px rgba(12, 18, 31, 0.55);
  transform: translateY(-50%);
}
html[dir="ltr"] .header-search-panel { padding: 0.25rem 0.7rem 0.25rem 0.3rem; }
html.dark .header-search-panel {
  background: #18223C;
  border-color: rgba(230, 209, 154, 0.4);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}
.header-search-panel[hidden] { display: none !important; }
.header-search.is-open .header-search-toggle { opacity: 0; pointer-events: none; }
.header-search-panel input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.25rem;
  border: 0;
  background: transparent;
  color: #1E2A4A;
  font-size: 0.92rem;
  padding: 0;
}
.header-search-panel input[type="search"]:focus { outline: none; box-shadow: none; }
.header-search-panel input[type="search"]::placeholder { color: rgba(30, 42, 74, 0.45); }
.header-search-panel input[type="search"]::-webkit-search-cancel-button { filter: none; }
html.dark .header-search-panel input[type="search"] { color: #F5EFE3; }
html.dark .header-search-panel input[type="search"]::placeholder { color: rgba(245, 239, 227, 0.5); }
html.dark .header-search-panel input[type="search"]::-webkit-search-cancel-button { filter: invert(1); }
.header-search-go,
.header-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.header-search-go {
  background: linear-gradient(135deg, var(--clay), #B5532E 60%, var(--gold));
  color: #FBF8F2;
}
.header-search-go svg { width: 1.05rem; height: 1.05rem; }
.header-search-go:hover { filter: brightness(1.06); }
.header-search-close {
  background: transparent;
  color: rgba(30, 42, 74, 0.65);
  font-size: 0.9rem;
}
.header-search-close:hover { background: rgba(30, 42, 74, 0.08); color: #1E2A4A; }
html.dark .header-search-close { color: rgba(245, 239, 227, 0.7); }
html.dark .header-search-close:hover { background: rgba(230, 209, 154, 0.12); color: #F5EFE3; }
@media (max-width: 639px) {
  .header-search-panel { width: min(16.5rem, calc(100vw - 1.25rem)); }
}
html.dark .header-inner [data-drawer-open] {
  background: rgba(230, 209, 154, 0.06) !important;
  color: #F3E7C3 !important;
  border-color: rgba(230, 209, 154, 0.2);
}
html.dark .header-inner [data-drawer-open]:hover {
  background: rgba(184, 137, 46, 0.24) !important;
  border-color: var(--gold-light);
}

/* ───────────── Mobile drawer ───────────── */
.drawer-backdrop {
  background: rgba(12, 18, 31, 0.55) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.drawer {
  width: min(100%, 21.5rem) !important;
  border-start-start-radius: 1.5rem;
  border-end-start-radius: 1.5rem;
  border-inline-start: 1px solid rgba(184, 137, 46, 0.35);
  box-shadow: -24px 0 60px -30px rgba(12, 18, 31, 0.6);
  padding-bottom: 1.5rem;
}
html[dir="ltr"] .drawer { box-shadow: 24px 0 60px -30px rgba(12, 18, 31, 0.6); }
.drawer > div:first-child {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1.1rem 1.15rem !important;
  background: inherit;
  border-bottom: 1px solid rgba(184, 137, 46, 0.32) !important;
}
.drawer > div:first-child > span {
  font-weight: 800;
  line-height: 1.5;
  color: #1E2A4A;
  padding-inline-end: 0.5rem;
}
html.dark .drawer > div:first-child > span { color: #F3E7C3; }
.drawer [data-drawer-close] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-height: 2.5rem;
  min-width: 2.5rem;
  flex: none;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  color: #1E2A4A;
  border: 1px solid rgba(184, 137, 46, 0.4);
  transition: background 0.2s ease, transform 0.2s ease;
}
.drawer [data-drawer-close]:hover { background: rgba(184, 137, 46, 0.14); }
.drawer [data-drawer-close]:active { transform: scale(0.94); }
html.dark .drawer [data-drawer-close] { color: #F3E7C3; border-color: rgba(230, 209, 154, 0.35); }
.drawer nav { padding: 0.6rem 0.75rem 0 !important; }
.drawer nav > a {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 3.25rem;
  margin-bottom: 0.2rem;
  padding: 0.75rem 0.9rem !important;
  border: 0 !important;
  border-radius: 0.9rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: #22304F;
  transition: background 0.22s var(--ease-out), color 0.22s var(--ease-out), padding-inline-start 0.22s var(--ease-out);
}
html.dark .drawer nav > a { color: rgba(245, 239, 227, 0.92); }
/* Chevron pointing toward the reading direction */
.drawer nav > a::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  width: 0.42rem;
  height: 0.42rem;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.32;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
html[dir="ltr"] .drawer nav > a::after { transform: rotate(-45deg); }
.drawer nav > a:hover,
.drawer nav > a:focus-visible {
  background: rgba(184, 137, 46, 0.12);
  color: var(--clay);
}
html.dark .drawer nav > a:hover,
html.dark .drawer nav > a:focus-visible {
  background: rgba(230, 209, 154, 0.12);
  color: var(--gold-light);
}
.drawer nav > a:hover::after { opacity: 0.7; }
.drawer nav > a[aria-current="page"],
.drawer nav > a.is-active {
  background: rgba(158, 69, 38, 0.1);
  color: var(--clay);
  font-weight: 800;
}
html.dark .drawer nav > a[aria-current="page"],
html.dark .drawer nav > a.is-active {
  background: rgba(184, 137, 46, 0.18);
  color: var(--gold-light);
}
/* Gold marker on the active row */
.drawer nav > a[aria-current="page"]::before,
.drawer nav > a.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 3px;
  height: 1.75rem;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--gold), var(--clay));
  transform: translateY(-50%);
}
/* Contact row reads as the primary action */
.drawer nav > a[href*="contact"] {
  margin-top: 0.6rem;
  justify-content: center;
  color: #FBF8F2;
  font-weight: 700;
  background: linear-gradient(135deg, var(--clay), #B5532E 55%, var(--gold));
  box-shadow: 0 8px 20px -12px rgba(158, 69, 38, 0.85);
}
.drawer nav > a[href*="contact"]::before,
.drawer nav > a[href*="contact"]::after { display: none; }
.drawer nav > a[href*="contact"]:hover { color: #FBF8F2; filter: brightness(1.05); }
html.dark .drawer nav > a[href*="contact"],
html.dark .drawer nav > a[href*="contact"]:hover {
  color: #1A1206;
  background: linear-gradient(135deg, var(--gold), #D9B15C 55%, var(--gold-light));
}
/* Rows slide in when the drawer opens */
@keyframes ncf-drawer-row { from { opacity: 0; transform: translateY(0.5rem); } to { opacity: 1; transform: none; } }
.drawer.is-open nav > a { animation: ncf-drawer-row 0.4s var(--ease-out) both; }
.drawer.is-open nav > a:nth-child(1) { animation-delay: 30ms; }
.drawer.is-open nav > a:nth-child(2) { animation-delay: 55ms; }
.drawer.is-open nav > a:nth-child(3) { animation-delay: 80ms; }
.drawer.is-open nav > a:nth-child(4) { animation-delay: 105ms; }
.drawer.is-open nav > a:nth-child(5) { animation-delay: 130ms; }
.drawer.is-open nav > a:nth-child(6) { animation-delay: 155ms; }
.drawer.is-open nav > a:nth-child(7) { animation-delay: 180ms; }
.drawer.is-open nav > a:nth-child(8) { animation-delay: 205ms; }
.drawer.is-open nav > a:nth-child(9) { animation-delay: 230ms; }
.drawer.is-open nav > a:nth-child(10) { animation-delay: 255ms; }
.drawer.is-open nav > a:nth-child(11) { animation-delay: 280ms; }
.drawer.is-open nav > a:nth-child(n + 12) { animation-delay: 305ms; }
@media (prefers-reduced-motion: reduce) {
  .drawer.is-open nav > a { animation: none; }
}

/* ───────────── Header search: single pill field ───────────── */
.hero-search {
  max-width: 34rem;
  border-bottom: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(230, 209, 154, 0.26);
  padding-block: 0.3rem;
  padding-inline: 1rem 0.3rem;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.hero-search:focus-within {
  border-bottom-color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(184, 137, 46, 0.16);
}
.hero-search input { font-size: 1rem; padding-inline: 0.7rem; min-height: 2.5rem; }
.hero-search button {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), #B5532E 60%, var(--gold));
  color: #FBF8F2;
  transition: filter 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.hero-search button:hover { color: #FBF8F2; filter: brightness(1.08); }
.hero-search button:active { transform: scale(0.95); }
.hero-search button svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 639px) {
  .hero-search { padding-inline: 0.8rem 0.25rem; }
  .hero-search input { font-size: 0.95rem; }
}

/* ───────────── Hero: cinematic ───────────── */
.hero-official { min-height: clamp(38rem, 88vh, 52rem); }
.hero-media { will-change: transform; }
@keyframes ncf-kenburns { from { transform: scale(1.3); } to { transform: scale(1.46) translate3d(-1.5%, -1%, 0); } }
.hero-media img { animation: ncf-kenburns 26s ease-in-out infinite alternate; filter: saturate(0.92) contrast(1.06); }
.hero-scrim::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at var(--mx, 30%) var(--my, 40%), rgba(158, 69, 38, 0.16), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(12, 18, 31, 0.65) 100%);
  transition: background 0.4s ease;
}
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.85; }
.hero-official::after { /* dune silhouette melting into the next section */
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 7rem; z-index: 1; pointer-events: none;
  background: url("../img/svg/dune-wave.svg") center bottom / 100% 100% no-repeat; opacity: 0.0;
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; }
.hero-copy { max-width: 42rem; margin-inline: auto; }
.hero-title {
  background: linear-gradient(180deg, #FBF8F2 30%, #E6D19A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 4px 22px rgba(12, 18, 31, 0.55));
}
.hero-title-pre { -webkit-text-fill-color: #E9DCC4; font-weight: 400; }
.hero-tagline {
  background: linear-gradient(100deg, #C9A04A 20%, #F3E8C9 45%, #C9A04A 70%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: ncf-shimmer 6s linear infinite; font-weight: 700; font-size: 1.1rem;
}
@keyframes ncf-shimmer { to { background-position: -220% 0; } }
.hero-btn { border-radius: 999px; padding-inline: 1.75rem; font-weight: 700; transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.3s, color 0.3s; }
.hero-btn:hover { transform: translateY(-3px); }
.hero-btn--solid { box-shadow: 0 10px 30px -10px rgba(158, 69, 38, 0.7); }
.hero-btn--outline { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(12, 18, 31, 0.25); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* Flat centered logo (replaces 3D) */
.logo-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(7.5rem, 18vw, 11rem);
  aspect-ratio: 1;
  margin-inline: auto;
  flex: 0 0 auto;
}
.logo-center::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: url("../img/svg/pattern-textile.svg") center / 90px repeat;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 78%);
  mask-image: radial-gradient(circle, #000 42%, transparent 78%);
}
.logo-center::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(201, 160, 74, 0.35);
  box-shadow: 0 0 40px rgba(184, 137, 46, 0.18);
  pointer-events: none;
}
.logo-center img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(12, 18, 31, 0.45));
}
.hero-inner .logo-center { margin-bottom: 0.25rem; }
.logo-intro.logo-center {
  width: 4.75rem;
  margin-inline: 0;
  margin-bottom: 1.5rem;
}
.logo-intro.logo-center::after { inset: 0; }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand .logo-center {
  width: 5.5rem;
  margin-inline: 0;
}

/* ───────────── Headings & ornaments ───────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.04em; }
.eyebrow::before {
  content: ""; width: 0.55rem; height: 0.55rem; background: var(--gold); transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(184, 137, 46, 0.22); flex: none;
}
.text-h2 { position: relative; }
section .text-h2.mb-2::after, section .text-h2.mb-4::after { /* dotted zig-zag underline echoing the textile motif */
  content: ""; display: block; width: 5.5rem; height: 6px; margin-top: 0.7rem;
  background: repeating-linear-gradient(135deg, var(--gold) 0 4px, transparent 4px 8px); opacity: 0.85; border-radius: 2px;
}

/* ───────────── Sections & cards ───────────── */
main > section:not(.hero-official) { position: relative; }
section.bg-night-600, .bg-night-600.py-16 {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(158, 69, 38, 0.14), transparent 60%),
    radial-gradient(50% 70% at 90% 100%, rgba(158, 69, 38, 0.16), transparent 60%),
    #1E2A4A !important;
}
section.bg-night-600::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07;
  background: url("../img/svg/pattern-triangles.svg") center / 220px repeat;
}
.hero-card, .stat-card, article.hairline-gold, li.hairline-gold, .arch-frame {
  transition: transform 0.5s var(--ease-out), opacity 0.9s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.hero-card:hover, .stat-card:hover, article.hairline-gold:hover, li.hairline-gold:hover {
  box-shadow: 0 24px 60px -24px rgba(12, 18, 31, 0.55), 0 0 0 1px rgba(158, 69, 38, 0.65) !important;
}
.stat-card [data-count] {
  background: linear-gradient(180deg, #C06A45, #82381F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html.dark .stat-card [data-count] { background: linear-gradient(180deg, #E0AF97, #9E4526); -webkit-background-clip: text; background-clip: text; }
.arch-frame { position: relative; overflow: hidden; }
.arch-frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(224, 175, 151, 0.55); border-radius: inherit; pointer-events: none; }
.arch-frame img { transition: transform 1.2s var(--ease-out); }
.arch-frame:hover img { transform: scale(1.07); }
.hero-card img, .masonry-item img { transition: transform 1.1s var(--ease-out), filter 0.6s; }
.hero-card:hover img, .masonry-item:hover img { transform: scale(1.06); }
main a[class*="bg-clay-500"], main button[class*="bg-clay-500"] { border-radius: 999px; box-shadow: 0 10px 26px -12px rgba(158, 69, 38, 0.8); }

/* Inner-page banners get a soft gold wash + drifting pattern */
main > section.relative.overflow-hidden:first-child:not(.hero-official) {
  background: radial-gradient(70% 120% at 100% 0%, rgba(158, 69, 38, 0.18), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(158, 69, 38, 0.1), transparent 60%);
}
html[lang="en"] main > section.relative.overflow-hidden:first-child:not(.hero-official) { background-position: left; }
main > section.relative.overflow-hidden:first-child .pattern-textile { animation: ncf-drift 40s linear infinite alternate; }
@keyframes ncf-drift { to { transform: translate3d(-3%, 0, 0); } }

/* Reveals: slightly richer motion */
.reveal { transform: translateY(1.6rem) scale(0.985); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { transform: none; }

/* Footer */
footer.bg-night-600 {
  background:
    radial-gradient(50% 90% at 100% 0%, rgba(184, 137, 46, 0.14), transparent 60%),
    #1E2A4A !important;
  border-top: 1px solid rgba(184, 137, 46, 0.45);
}

/* ───────────── Preloader ───────────── */
.ncf-preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 1.25rem;
  background: radial-gradient(60% 60% at 50% 45%, #1E2A4A, #0C121F 75%);
  transition: opacity 0.9s ease, visibility 0.9s; color: #E9DCC4;
}
.ncf-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.ncf-preloader .logo-center { width: clamp(8rem, 20vw, 12rem); }
.ncf-preloader img.wordmark { width: min(70vw, 20rem); height: auto; opacity: 0; animation: ncf-word-in 1.2s 0.9s var(--ease-out) forwards; }
.ncf-preloader .bar { width: min(60vw, 14rem); height: 2px; background: rgba(184, 137, 46, 0.22); overflow: hidden; border-radius: 2px; }
.ncf-preloader .bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(to left, var(--gold), var(--gold-light)); animation: ncf-bar 2.1s var(--ease-out) forwards; }
html[dir="ltr"] .ncf-preloader .bar i { transform-origin: left; }
@keyframes ncf-bar { to { transform: scaleX(1); } }
@keyframes ncf-word-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ncf-preloader .skip { position: absolute; bottom: 1.5rem; font-size: 0.8rem; opacity: 0.6; background: none; border: 0; color: inherit; cursor: pointer; padding: 0.75rem 1rem; }

/* ───────────── Ambient music toggle ───────────── */
.ambient-toggle {
  position: fixed; inset-inline-start: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 52;
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 1rem 0 0.9rem;
  border-radius: 999px; border: 1px solid rgba(158, 69, 38, 0.55); cursor: pointer;
  color: #F5EFE3; font: 700 0.8rem var(--font-primary);
  background: rgba(18, 26, 46, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -12px rgba(12, 18, 31, 0.7);
  transition: transform 0.35s var(--ease-out), background 0.3s, border-color 0.3s;
}
.ambient-toggle:hover { transform: translateY(-2px); border-color: var(--gold); }
.ambient-toggle.is-on { background: rgba(145, 66, 38, 0.82); }
.ambient-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.ambient-bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--gold-light); transition: height 0.3s; }
.ambient-toggle.is-on .ambient-bars i { animation: ncf-eq 1.1s ease-in-out infinite; }
.ambient-toggle.is-on .ambient-bars i:nth-child(2) { animation-delay: -0.4s; }
.ambient-toggle.is-on .ambient-bars i:nth-child(3) { animation-delay: -0.8s; }
.ambient-toggle.is-on .ambient-bars i:nth-child(4) { animation-delay: -0.2s; }
@keyframes ncf-eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.ambient-toggle.is-armed:not(.is-on) { animation: ncf-nudge 2.4s ease-in-out infinite; }
@keyframes ncf-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(158, 69, 38, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(158, 69, 38, 0); } }
@media (max-width: 520px) { .ambient-label { display: none; } .ambient-toggle { padding: 0 0.9rem; } }

/* ───────────── Motion preferences ───────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-tagline, main > section .pattern-textile, .ambient-bars i { animation: none !important; }
  body { animation: none; }
}
html.high-contrast body::after { display: none; }
html.high-contrast .hero-title, html.high-contrast .hero-tagline { -webkit-text-fill-color: #fff; background: none; }

/* ═════════════ Modern UI pass ═════════════ */

/* Ambient colour blobs drifting behind the whole page */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(158, 69, 38, 0.16), transparent 70%),
    radial-gradient(34% 30% at 88% 42%, rgba(158, 69, 38, 0.10), transparent 70%),
    radial-gradient(40% 34% at 30% 92%, rgba(47, 69, 116, 0.10), transparent 70%);
  animation: ncf-blobs 26s ease-in-out infinite alternate;
}
html.dark body::before {
  background:
    radial-gradient(38% 32% at 12% 18%, rgba(158, 69, 38, 0.10), transparent 70%),
    radial-gradient(34% 30% at 88% 42%, rgba(158, 69, 38, 0.12), transparent 70%),
    radial-gradient(40% 34% at 30% 92%, rgba(81, 103, 157, 0.14), transparent 70%);
}
@keyframes ncf-blobs { to { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(3deg); } }

/* Softer, rounder, glassier surfaces */
.rounded-2xl { border-radius: 1.5rem; }
.hairline-gold { border-radius: 1.5rem; }
li.hairline-gold, article.hairline-gold:not(.snap-start), .stat-card, div.hairline-gold {
  background-color: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -26px rgba(30, 42, 74, 0.35);
  border-color: var(--border-gold);
}
html.dark li.hairline-gold, html.dark article.hairline-gold:not(.snap-start), html.dark .stat-card, html.dark div.hairline-gold {
  background-color: rgba(24, 34, 60, 0.68) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px -26px rgba(0, 0, 0, 0.7);
}
/* Cursor-following highlight inside cards */
.hairline-gold:hover, .hero-card:hover {
  background-image: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(184, 137, 46, 0.16), transparent 55%);
}

/* Header nav — fluid type, soft pill hover, gold active underline */
.site-header .nav-primary,
.site-header .nav-secondary {
  gap: 0.15rem;
  flex-wrap: nowrap !important;
  align-items: center;
}
.site-header .nav-primary > a,
.site-header .nav-secondary > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  min-height: 2.5rem;
  padding-block: 0.4rem;
  padding-inline: clamp(0.45rem, 0.55vw, 0.9rem);
  font-weight: 600;
  font-size: clamp(0.8rem, 1vw, 1rem);
  letter-spacing: 0.005em;
  line-height: 1.3;
  white-space: nowrap;
  color: #22304F;
  background: transparent;
  box-shadow: none;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
html.dark .site-header .nav-primary > a,
html.dark .site-header .nav-secondary > a {
  color: rgba(245, 239, 227, 0.9);
}
html[lang="en"] .site-header .nav-primary > a,
html[lang="en"] .site-header .nav-secondary > a {
  font-size: clamp(0.76rem, 0.9vw, 0.94rem);
  letter-spacing: 0.015em;
}
/* Gold underline that grows from the centre */
.site-header .nav-primary > a::after,
.site-header .nav-secondary > a::after {
  content: "";
  position: absolute;
  inset-inline: 22%;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, var(--gold), var(--clay));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out), inset-inline 0.3s var(--ease-out);
}
.site-header .nav-primary > a:hover,
.site-header .nav-secondary > a:hover {
  background: rgba(184, 137, 46, 0.1);
  color: var(--clay);
}
html.dark .site-header .nav-primary > a:hover,
html.dark .site-header .nav-secondary > a:hover {
  background: rgba(230, 209, 154, 0.1);
  color: var(--gold-light);
}
.site-header .nav-primary > a:hover::after,
.site-header .nav-secondary > a:hover::after,
.site-header .nav-primary > a[aria-current="page"]::after,
.site-header .nav-primary > a.is-active::after,
.site-header .nav-secondary > a[aria-current="page"]::after,
.site-header .nav-secondary > a.is-active::after {
  inset-inline: 18%;
  transform: scaleX(1);
}
.site-header .nav-primary > a[aria-current="page"],
.site-header .nav-primary > a.is-active,
.site-header .nav-secondary > a[aria-current="page"],
.site-header .nav-secondary > a.is-active {
  background: rgba(158, 69, 38, 0.08);
  color: var(--clay);
  box-shadow: none;
  font-weight: 800;
}
html.dark .site-header .nav-primary > a[aria-current="page"],
html.dark .site-header .nav-primary > a.is-active,
html.dark .site-header .nav-secondary > a[aria-current="page"],
html.dark .site-header .nav-secondary > a.is-active {
  background: rgba(184, 137, 46, 0.16);
  color: var(--gold-light);
  box-shadow: none;
}
.site-header .nav-primary > a:focus-visible,
.site-header .nav-secondary > a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Contact = the only filled action in the bar */
.site-header .nav-secondary > a[href*="contact"] {
  margin-inline-start: 0.45rem;
  padding-inline: clamp(0.85rem, 0.8vw, 1.2rem);
  min-height: 2.35rem;
  border-radius: 999px;
  color: #FBF8F2;
  font-weight: 700;
  background: linear-gradient(135deg, var(--clay), #B5532E 55%, var(--gold));
  box-shadow: 0 6px 18px -10px rgba(158, 69, 38, 0.85);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}
.site-header .nav-secondary > a[href*="contact"]::after { display: none; }
.site-header .nav-secondary > a[href*="contact"]:hover,
.site-header .nav-secondary > a[href*="contact"][aria-current="page"],
.site-header .nav-secondary > a[href*="contact"].is-active {
  color: #FBF8F2;
  background: linear-gradient(135deg, var(--clay), #B5532E 55%, var(--gold));
  filter: saturate(1.1) brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(158, 69, 38, 0.9);
}
html.dark .site-header .nav-secondary > a[href*="contact"],
html.dark .site-header .nav-secondary > a[href*="contact"]:hover,
html.dark .site-header .nav-secondary > a[href*="contact"][aria-current="page"],
html.dark .site-header .nav-secondary > a[href*="contact"].is-active {
  color: #1A1206;
  background: linear-gradient(135deg, var(--gold), #D9B15C 55%, var(--gold-light));
  box-shadow: 0 8px 22px -12px rgba(230, 209, 154, 0.7);
}

/* Section headings: words rise & de-blur, underline draws in */
.w-split { display: inline-block; opacity: 0; transform: translateY(0.6em); filter: blur(6px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.is-in > .w-split, .w-split.is-in { opacity: 1; transform: none; filter: none; }
section .text-h2.mb-2::after, section .text-h2.mb-4::after { width: 0; transition: width 1s 0.35s var(--ease-out); }
section .text-h2.is-in::after { width: 5.5rem; }

/* Images: soft unveil */
main figure img:not(.hero-media img), .masonry-item img { clip-path: inset(0 0 0 0); }
.img-unveil { clip-path: inset(12% 12% 12% 12% round 1.5rem) !important; transform: scale(1.14); transition: clip-path 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
.img-unveil.is-in { clip-path: inset(0 0 0 0 round 0) !important; transform: none; }

/* Buttons: magnetic + ripple */
.hero-btn, .btn-shine, main a[class*="bg-clay-500"], main button[class*="bg-clay-500"] { position: relative; overflow: hidden; will-change: transform; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ncf-ripple 0.7s ease-out forwards; }
@keyframes ncf-ripple { to { transform: scale(1); opacity: 0; } }

/* Big pull-quote gets an animated ornament */
blockquote { position: relative; }
blockquote::before {
  content: "”"; position: absolute; inset-inline-start: 50%; top: -0.35em; transform: translateX(-50%) scale(0.6); opacity: 0;
  font-size: 9rem; line-height: 1; color: rgba(158, 69, 38, 0.28); font-weight: 800; pointer-events: none;
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
}
blockquote.is-in::before { opacity: 1; transform: translateX(-50%) scale(1); }

/* Marquee edges fade out */
.marquee { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }

/* Floating decorative emblem tiles in sections marked by JS */
.float-glyph { position: absolute; width: 9rem; opacity: 0.06; pointer-events: none; animation: ncf-float 9s ease-in-out infinite; z-index: 0; }
@keyframes ncf-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

/* Page leave */
html.ncf-leaving body { opacity: 0; transition: opacity 0.35s ease; }

/* Back-to-top + inputs polish */
input, textarea, select { border-radius: 1rem !important; transition: box-shadow 0.3s, border-color 0.3s; }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px rgba(158, 69, 38, 0.45) !important; }

@media (prefers-reduced-motion: reduce) {
  body::before, .float-glyph, .marquee-track { animation: none !important; }
  .w-split { opacity: 1; transform: none; filter: none; transition: none; }
  .img-unveil { clip-path: none !important; transform: none; }
}

/* ═════════════ Robustness: no horizontal scroll, ever ═════════════ */
html, body { overflow-x: clip; max-width: 100%; }
.hero-official { overflow: clip; }

/* ═════════════ Breadcrumbs ═════════════ */
.ncf-crumbs { margin: 0 0 1.25rem; max-width: 100%; }
.ncf-crumbs ol {
  list-style: none; margin: 0; padding: 0.3rem; display: inline-flex; align-items: center; flex-wrap: nowrap; max-width: 100%;
  border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(158, 69, 38, 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 28px -18px rgba(30, 42, 74, 0.55), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  animation: ncf-crumb-in 0.7s var(--ease-out) both;
}
html.dark .ncf-crumbs ol { background: rgba(24, 34, 60, 0.6); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
.ncf-crumbs.is-on-dark ol { background: rgba(12, 18, 31, 0.45); border-color: rgba(158, 69, 38, 0.5); box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.8); }
.ncf-crumbs li { display: inline-flex; align-items: center; min-width: 0; font-size: 0.85rem; font-weight: 700; line-height: 1; }
.ncf-crumbs li:not(.is-current) { flex: 0 0 auto; }
.ncf-crumbs li.is-current { min-width: 0; }
.ncf-crumbs a, .ncf-crumbs [aria-current] { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; padding: 0 0.95rem; border-radius: 999px; }
.ncf-crumbs a { color: #1E2A4A; text-decoration: none; transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-out); }
html.dark .ncf-crumbs a { color: #E9DCC4; }
.ncf-crumbs.is-on-dark a { color: #E9DCC4; }
.ncf-crumbs a:hover, .ncf-crumbs a:focus-visible { background: rgba(158, 69, 38, 0.22); color: #82381F; }
html.dark .ncf-crumbs a:hover, html.dark .ncf-crumbs a:focus-visible, .ncf-crumbs.is-on-dark a:hover { color: #E0AF97; }
.ncf-crumbs a:hover svg:first-child { transform: translateY(-1px) scale(1.12); }
.ncf-crumbs a svg { transition: transform 0.35s var(--ease-out); flex: none; }
.ncf-crumbs [aria-current] {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 2.25rem; max-width: min(46ch, 62vw);
  background: linear-gradient(135deg, #9E4526, #82381F); color: #fff; box-shadow: 0 6px 16px -8px rgba(158, 69, 38, 0.9);
}
.ncf-crumbs__sep { flex: none; margin-inline: 0.05rem; color: #9E4526; opacity: 0.9; }
html[dir="rtl"] .ncf-crumbs__sep { transform: scaleX(-1); }
.ncf-crumbs li { animation: ncf-crumb-item 0.6s var(--ease-out) both; }
.ncf-crumbs li:nth-child(2) { animation-delay: 0.18s; }
@keyframes ncf-crumb-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ncf-crumb-item { from { opacity: 0; transform: translateX(calc(var(--dir-x, 1) * 10px)); } to { opacity: 1; transform: none; } }
html[dir="rtl"] .ncf-crumbs li { --dir-x: -1; }
@media (max-width: 520px) {
  .ncf-crumbs { margin-bottom: 1rem; }
  .ncf-crumbs li { font-size: 0.8rem; }
  .ncf-crumbs a, .ncf-crumbs [aria-current] { padding: 0 0.75rem; }
  .ncf-crumbs [aria-current] { max-width: 52vw; }
}
@media (prefers-reduced-motion: reduce) { .ncf-crumbs ol, .ncf-crumbs li { animation: none; } }
html.high-contrast .ncf-crumbs a, html.high-contrast .ncf-crumbs [aria-current] { border: 1px solid currentColor; }

/* ═════════════ Photo-backed page banner (breadcrumb + title) ═════════════ */
.page-banner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(15rem, 32vw, 21rem); background: #0C121F !important; border-bottom: 0 !important;
  box-shadow: inset 0 -4px 0 #9E4526;
}
.page-banner > div:not(.page-banner__bg):not(.pattern-textile) { width: 100%; }
.page-banner__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-banner__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.14); animation: ncf-banner-zoom 22s ease-in-out infinite alternate; filter: saturate(0.95) contrast(1.05);
}
@keyframes ncf-banner-zoom { from { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); } to { transform: translate3d(-1.2%, var(--py, 0px), 0) scale(1.24); } }
.page-banner__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(12, 18, 31, 0.92) 0%, rgba(18, 26, 46, 0.78) 45%, rgba(30, 42, 74, 0.45) 75%, rgba(158, 69, 38, 0.3) 100%),
    linear-gradient(to top, rgba(12, 18, 31, 0.75), transparent 45%);
}
html[dir="ltr"] .page-banner__scrim {
  background:
    linear-gradient(to right, rgba(12, 18, 31, 0.92) 0%, rgba(18, 26, 46, 0.78) 45%, rgba(30, 42, 74, 0.45) 75%, rgba(158, 69, 38, 0.3) 100%),
    linear-gradient(to top, rgba(12, 18, 31, 0.75), transparent 45%);
}
.page-banner .pattern-textile { opacity: 0.18; mix-blend-mode: soft-light; z-index: 0; animation: none; pointer-events: none; }
.page-banner h1 { color: #FBF8F2 !important; text-shadow: 0 3px 24px rgba(0, 0, 0, 0.55); }
.page-banner p:not(.eyebrow) { color: #E9DCC4 !important; }
.page-banner .eyebrow { color: #E0AF97 !important; }
.page-banner .eyebrow::before { background: #9E4526; box-shadow: 0 0 0 3px rgba(158, 69, 38, 0.35); }
.page-banner .text-h2::after { display: none; }
/* breadcrumb → brand orange */
.ncf-crumbs [aria-current] { background: #9E4526; box-shadow: 0 6px 16px -8px rgba(158, 69, 38, 0.95); }
.ncf-crumbs__sep { color: #E0AF97; }
.ncf-crumbs.is-on-dark ol { background: rgba(12, 18, 31, 0.55); border-color: rgba(158, 69, 38, 0.7); }
.ncf-crumbs.is-on-dark a:hover, .ncf-crumbs.is-on-dark a:focus-visible { background: rgba(158, 69, 38, 0.35); color: #fff; }
@media (prefers-reduced-motion: reduce) { .page-banner__bg img { animation: none; } }

/* Music button: waiting-for-first-tap state (autoplay blocked by the browser) */
.ambient-toggle.is-waiting { border-color: #9E4526; background: rgba(145, 66, 38, 0.85); }
.ambient-toggle.is-waiting .ambient-label { display: inline; }
@media (max-width: 520px) { .ambient-toggle.is-waiting .ambient-label { display: inline; font-size: 0.72rem; } }

@media (prefers-reduced-motion: reduce) {
  .ncf-preloader { display: none; }
}

@media (max-width: 720px) {
  .page-banner__scrim, html[dir="ltr"] .page-banner__scrim {
    background:
      linear-gradient(180deg, rgba(12, 18, 31, 0.72) 0%, rgba(12, 18, 31, 0.82) 60%, rgba(12, 18, 31, 0.92) 100%),
      linear-gradient(to left, rgba(158, 69, 38, 0.25), transparent 70%);
  }
  .page-banner { min-height: 0; padding-block: 2rem; }
}

/* Orange text on dark surfaces: lighter tint of the same hue for readable contrast */
html.dark .text-gold-500, html.dark .text-gold-600, html.dark .text-clay-500, html.dark .text-clay-600 { color: #D08763; }
.bg-night-600 .text-gold-500, .bg-night-700 .text-gold-500, .bg-night-800 .text-gold-500, .bg-night-600 .text-clay-500 { color: #D08763; }

/* Solid brand-orange badges/buttons: white text (dark text on #9E4526 fails contrast) */
.bg-gold-500, .bg-gold-600 { color: #fff !important; }

/* Anchors / deep links / scrollIntoView must land below the sticky header, not under it */
html { scroll-padding-top: 6.5rem; }
[data-tabs] { scroll-margin-top: 6.5rem; }
@media (max-width: 720px) { html { scroll-padding-top: 5.5rem; } [data-tabs] { scroll-margin-top: 5.5rem; } }

/* ═════════════ Partner logo cards ═════════════ */
.partner-logo {
  --plate-h: 10.5rem;
  position: relative; display: grid; place-items: center; height: var(--plate-h); margin-bottom: 1.15rem; padding: 1.1rem; overflow: hidden;
  border-radius: 1.25rem; border: 1px solid rgba(158, 69, 38, 0.22);
  background: linear-gradient(180deg, #FFFFFF, #F7F1E6);   /* light plate in BOTH themes: keeps full-colour logos accurate */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.partner-logo--dark { background: radial-gradient(90% 120% at 50% 0%, #2F4574 0%, #1E2A4A 55%, #121A2E 100%); border-color: rgba(158, 69, 38, 0.5); }
.partner-logo--icon { background: radial-gradient(70% 90% at 50% 40%, rgba(158, 69, 38, 0.14), rgba(158, 69, 38, 0.04)); border-style: dashed; }
.partner-logo img { max-width: 100%; max-height: calc(var(--plate-h) - 2.4rem); width: auto; height: auto; object-fit: contain; transition: transform 0.7s var(--ease-out); }
.partner-logo--icon img { width: 4.25rem; height: 4.25rem; max-height: none; opacity: 1; }
.partner-logo--dark img { max-height: calc(var(--plate-h) - 3.2rem); }
article:hover > .partner-logo img { transform: scale(1.07); }
.partner-logo::after { /* soft sheen sweep on hover */
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%); transition: transform 0.9s var(--ease-out);
}
.partner-logo--dark::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%); }
article:hover > .partner-logo::after { transform: translateX(120%); }
@media (max-width: 520px) { .partner-logo { --plate-h: 9.5rem; } }
@media (prefers-reduced-motion: reduce) { .partner-logo img, .partner-logo::after { transition: none; } }

/* ═════════════ Interactive Libya map ═════════════ */
.ncf-map {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ncf-map { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}
.ncf-map__canvas {
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(247, 241, 230, 0.65);
  border: 1px solid rgba(184, 137, 46, 0.35);
  padding: 0.5rem;
}
html.dark .ncf-map__canvas { background: rgba(24, 34, 60, 0.65); }
.ncf-map__svg { width: 100%; height: auto; display: block; }
.ncf-map__svg path,
.ncf-map__svg circle { fill: #1E2A4A; stroke: #E9DCC4; stroke-width: 0.6; transition: fill 0.25s ease, stroke 0.25s ease; cursor: default; }
.ncf-map__svg path.is-hot,
.ncf-map__svg circle.is-hot { fill: #3F6B4F; cursor: pointer; }
.ncf-map__svg path.is-hot:hover,
.ncf-map__svg path.is-hot:focus-visible,
.ncf-map__svg circle.is-hot:hover,
.ncf-map__svg circle.is-hot:focus-visible { fill: #B8892E; outline: none; }
.ncf-map__svg path.is-active,
.ncf-map__svg circle.is-active { fill: #9E4526; stroke: #E6D19A; stroke-width: 1.2; }
.ncf-map__panel {
  border-radius: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(184, 137, 46, 0.42);
}
html.dark .ncf-map__panel {
  background: rgba(24, 34, 60, 0.82) !important;
  border-color: rgba(184, 137, 46, 0.45);
  color: #F5EFE3;
}
html.dark .ncf-map__panel .text-h3,
html.dark .ncf-map__panel [data-map-title] { color: #FBF8F2; }
html.dark .ncf-map__panel .text-body,
html.dark .ncf-map__panel .text-caption,
html.dark .ncf-map__panel [data-map-body],
html.dark .ncf-map__hint { color: #D5DCEB; }
.ncf-map__hint { margin-top: 0.75rem; opacity: 0.85; }

/* ═════════════ Dark/light: forms, success, drawer ═════════════ */
/* Form cards that use hairline without dark: utility */
html.dark form.hairline-gold {
  background-color: rgba(24, 34, 60, 0.82) !important;
  color: #F5EFE3;
}
html.dark form.hairline-gold label { color: #E9DCC4; }

/* Success panels (bg-success-light is near-white) */
.bg-success-light,
[data-form-success].bg-success-light {
  background-color: #E8F5EE;
  color: #1E2A4A;
  border: 1px solid rgba(47, 107, 74, 0.35);
}
html.dark .bg-success-light,
html.dark [data-form-success].bg-success-light,
html.dark [data-form-success] {
  background-color: #1A3328 !important;
  color: #E8F5EE !important;
  border: 1px solid rgba(129, 175, 152, 0.45);
}
html.dark [data-form-success] strong { color: #ABCABA; }

/* Drawer readable in both themes */
html.dark .drawer {
  background-color: #121A2E;
  color: #F5EFE3;
  border-color: rgba(184, 137, 46, 0.3);
}
html.dark .drawer a { color: #F5EFE3; }
html.dark .drawer .border-b { border-color: rgba(169, 181, 209, 0.2); }

/* Newsletter band on dark footer-like cards */
html.dark .rounded-2xl.bg-night-600 input[type="email"] {
  background-color: #0F1728;
  color: #F5EFE3;
  border: 1px solid rgba(169, 181, 209, 0.28);
}

/* ═════════════ Mission pillar cards (home) ═════════════ */
.pillar-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 640px) {
  .pillar-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1rem;
  }
}
@media (min-width: 1024px) {
  .pillar-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}
.pillar-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid rgba(184, 137, 46, 0.22);
  box-shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
}
.dark .pillar-card {
  background: rgba(36, 44, 58, 0.92);
  border-color: rgba(184, 137, 46, 0.28);
}
.pillar-card img {
  display: block;
  width: 100%;
  max-width: 11.5rem;
  height: auto;
  object-fit: contain;
}

/* ═════════════ Archive mosaic (home) ═════════════ */
.archive-mosaic-section {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(184, 137, 46, 0.14), transparent 48%),
    radial-gradient(ellipse at 88% 100%, rgba(140, 74, 48, 0.1), transparent 45%),
    linear-gradient(180deg, rgba(244, 236, 220, 0.92), rgba(232, 220, 198, 0.88));
}
.dark .archive-mosaic-section {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(184, 137, 46, 0.18), transparent 48%),
    radial-gradient(ellipse at 88% 100%, rgba(140, 74, 48, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(28, 36, 48, 0.95), rgba(22, 28, 38, 0.98));
}
.archive-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.archive-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 248, 230, 0.95), transparent 55%),
    linear-gradient(145deg, rgba(184, 137, 46, 0.22), rgba(244, 236, 220, 0.9));
  border: 1px solid rgba(184, 137, 46, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dark .archive-tile__icon {
  background:
    radial-gradient(circle at 30% 25%, rgba(184, 137, 46, 0.28), transparent 55%),
    linear-gradient(145deg, rgba(184, 137, 46, 0.2), rgba(36, 44, 58, 0.95));
  border-color: rgba(184, 137, 46, 0.4);
  box-shadow: none;
}
.archive-tile__icon img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

/* ═════════════ Share-heritage (copy only) ═════════════ */
.share-heritage {
  display: block;
}
.share-heritage__copy { max-width: 32rem; }

/* ═════════════ Homepage interactive Libya map ═════════════ */
.ncf-home-map-section {
  padding-block: 4rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 137, 46, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(247, 241, 230, 0.4), transparent);
}
html.dark .ncf-home-map-section {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 137, 46, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(18, 26, 46, 0.55), transparent);
}
.ncf-home-map {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 960px) {
  .ncf-home-map {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: stretch;
    gap: 1.5rem;
  }
}
.ncf-home-map__stage {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(180deg, #d7ebe8 0%, #eef3ea 55%, #e8dcc4 100%);
  border: 1px solid rgba(184, 137, 46, 0.32);
  box-shadow: 0 18px 48px rgba(30, 42, 74, 0.08);
  touch-action: none;
}
html.dark .ncf-home-map__stage {
  background: linear-gradient(180deg, #1a2a3c 0%, #1e2a4a 55%, #243018 100%);
  border-color: rgba(184, 137, 46, 0.42);
}
.ncf-home-map__stage.is-panning { cursor: grab; }
.ncf-home-map__stage.is-dragging { cursor: grabbing; }
.ncf-home-map__canvas { width: 100%; height: 100%; }
.ncf-home-map__svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
  direction: ltr;
}
.ncf-home-map__zoom {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ncf-home-map__zoom-btn {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  border: 1px solid rgba(184, 137, 46, 0.45);
  background: rgba(255, 253, 248, 0.94);
  color: #1e2a4a;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(30, 42, 74, 0.12);
}
html.dark .ncf-home-map__zoom-btn {
  background: rgba(24, 34, 60, 0.92);
  color: #f5efe3;
  border-color: rgba(184, 137, 46, 0.5);
}
.ncf-home-map__zoom-btn:hover,
.ncf-home-map__zoom-btn:focus-visible {
  border-color: #b8892e;
  outline: none;
}
.ncf-home-map__svg .ncf-home-map__label { opacity: 0; pointer-events: none; }
.ncf-home-map__svg.show-labels .ncf-home-map__label { opacity: 1; }
.ncf-home-map__svg #features path {
  fill: #e4d2ae;
  stroke: #b69364;
  stroke-width: 1.1;
  stroke-linejoin: round;
  transition: fill 0.25s ease;
}
html.dark .ncf-home-map__svg #features path {
  fill: #3d4a38;
  stroke: #c4a574;
}
.ncf-home-map__sea {
  fill: #6e9aa0;
  font-size: 15px;
  letter-spacing: 0.08em;
  pointer-events: none;
}
html.dark .ncf-home-map__sea { fill: #8eb8bc; }
.ncf-home-map__country {
  fill: #b7976a;
  font-size: 42px;
  font-weight: 700;
  opacity: 0.38;
  pointer-events: none;
}
.ncf-home-map__point { cursor: pointer; outline: none; }
.ncf-home-map__halo { fill: #fff; opacity: 0.72; }
.ncf-home-map__dot {
  fill: #176c67;
  stroke: #fff;
  stroke-width: 3.2;
}
.ncf-home-map__point.is-hq .ncf-home-map__dot {
  fill: #b8892e;
  stroke-width: 3.4;
}
.ncf-home-map__label rect {
  fill: #fffdf8;
  stroke: #cfddd4;
  stroke-width: 1.4;
}
.ncf-home-map__label text {
  fill: #183d3d;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
  unicode-bidi: isolate;
  direction: inherit;
}
html[lang="ar"] .ncf-home-map__label text { direction: rtl; }
html.dark .ncf-home-map__halo { fill: #1a2438; opacity: 0.55; }
html.dark .ncf-home-map__dot {
  fill: #8fd4b0;
  stroke: #102018;
}
html.dark .ncf-home-map__point.is-hq .ncf-home-map__dot {
  fill: #e6d19a;
  stroke: #1a2438;
}
html.dark .ncf-home-map__label rect {
  fill: #1e2a4a;
  stroke: #c4a574;
}
html.dark .ncf-home-map__label text { fill: #f5efe3; }
.ncf-home-map__point:hover .ncf-home-map__dot,
.ncf-home-map__point:focus-visible .ncf-home-map__dot,
.ncf-home-map__point.is-active .ncf-home-map__dot {
  fill: #9e4526;
  stroke: #fff;
}
html.dark .ncf-home-map__point:hover .ncf-home-map__dot,
html.dark .ncf-home-map__point:focus-visible .ncf-home-map__dot,
html.dark .ncf-home-map__point.is-active .ncf-home-map__dot {
  fill: #e0af97;
  stroke: #1a2438;
}
.ncf-home-map__point:hover .ncf-home-map__label rect,
.ncf-home-map__point:focus-visible .ncf-home-map__label rect,
.ncf-home-map__point.is-active .ncf-home-map__label rect {
  stroke: #b67b31;
}
.ncf-home-map__point:focus-visible .ncf-home-map__halo {
  stroke: #b67b31;
  stroke-width: 3;
  fill: #fff;
  opacity: 0.9;
}
.ncf-home-map__panel {
  border-radius: 1.25rem;
  padding: 1.35rem 1.3rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(184, 137, 46, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
html.dark .ncf-home-map__panel {
  background: rgba(24, 34, 60, 0.86);
  border-color: rgba(184, 137, 46, 0.45);
  color: #f5efe3;
}
html.dark .ncf-home-map__panel .text-h3 { color: #fbf8f2; }
html.dark .ncf-home-map__panel .text-caption { color: #d5dceb; }
.ncf-home-map__region {
  font-size: 0.82rem;
  color: #b8892e;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.ncf-home-map__subtitle {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5a6a;
}
html.dark .ncf-home-map__subtitle { color: #c8d0df; }
.ncf-home-map__block-title {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e2a4a;
}
html.dark .ncf-home-map__block-title { color: #e6d19a; }
.ncf-home-map__memory {
  margin: 0;
  line-height: 1.7;
}
.ncf-home-map__features {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #3d4a5c;
}
html.dark .ncf-home-map__features { color: #d5dceb; }
.ncf-home-map__contact {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(184, 137, 46, 0.28);
}
.ncf-home-map__phone {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e2a4a;
}
html.dark .ncf-home-map__phone { color: #e9dcc4; }
.ncf-home-map__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  color: #9e4526;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
html.dark .ncf-home-map__link { color: #e0af97; }
.ncf-home-map__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ncf-home-map__chip {
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 137, 46, 0.4);
  background: #fffdf8;
  color: #1e2a4a;
  font-size: 0.85rem;
  font-weight: 600;
}
html.dark .ncf-home-map__chip {
  background: rgba(24, 34, 60, 0.8);
  color: #f5efe3;
  border-color: rgba(184, 137, 46, 0.45);
}
.ncf-home-map__chip:hover,
.ncf-home-map__chip:focus-visible {
  border-color: #b8892e;
  outline: none;
}
.ncf-home-map__chip.is-active,
.ncf-home-map__chip.is-hq.is-active {
  background: #9e4526;
  color: #fff;
  border-color: #9e4526;
}
.ncf-home-map__chip.is-hq:not(.is-active) {
  border-color: #b8892e;
  color: #8a6420;
}
html.dark .ncf-home-map__chip.is-hq:not(.is-active) { color: #e6d19a; }
@media (max-width: 899px) {
  .ncf-home-map__label { display: none; }
  .ncf-home-map__svg { min-height: 340px; }
  .ncf-home-map__stage { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .ncf-home-map__svg #features path { transition: none; }
}
