/* ============================================================
   NISBAHHOME — luxury in proportion
   Brand stylesheet
   ============================================================ */

:root {
  /* Brand — primary */
  --maroon: #430103;
  --maroon-deep: #2e0102;
  --green: #243127;
  --green-deep: #18211b;

  /* Brand — secondary */
  --black: #000000;
  --terracotta: #a65a38;
  --taupe: #baa38c;

  /* Neutrals (warm) */
  --ivory: #f6f1e8;
  --ivory-2: #efe7da;
  --cream: #faf7f1;
  --ink: #1c1714;
  --ink-soft: #4a423b;
  --line: #e2d9cb;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Tenor Sans", "Times New Roman", serif;
  --font-body: "Jost", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--terracotta); color: #fff; }

/* ---------- Layout helpers ---------- */
.nh-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nh-section { padding-block: clamp(64px, 9vw, 130px); }
.nh-section--tight { padding-block: clamp(48px, 6vw, 86px); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
}
.eyebrow--muted { color: var(--ink-soft); }
.eyebrow--light { color: var(--taupe); }

.section-head { max-width: 640px; }
.section-head .display-title { margin-top: 18px; }

.display-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  letter-spacing: 0.005em;
}
.display-xl {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: 0.01em;
  line-height: 0.98;
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 52ch;
}

/* Wordmark */
.wordmark {
  font-family: var(--font-display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}
.wordmark .home { opacity: 0.62; }

/* ---------- Buttons ---------- */
.btn-nh {
  --bg: var(--ink);
  --fg: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn-nh:hover { background: transparent; color: var(--bg); }
.btn-nh--maroon { --bg: var(--maroon); }
.btn-nh--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-nh--ghost:hover { background: var(--ink); color: #fff; }
.btn-nh--light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-nh--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-nh .arr { transition: transform 0.4s var(--ease); }
.btn-nh:hover .arr { transform: translateX(5px); }

/* Text link with underline reveal */
.link-underline {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 4px;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); transform-origin: left; }

/* ---------- Real images over/inside placeholders ---------- */
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media img.cover-img { z-index: 0; }
.collection-card img.cover-img { transition: transform 1.1s var(--ease); }
.collection-card:hover img.cover-img { transform: scale(1.06); }
.story__media img.cover-img,
.craft-item__media img.cover-img { transition: transform 1.2s var(--ease); }
.craft-item:hover .craft-item__media img.cover-img { transform: scale(1.05); }
.lookbook__media img.cover-img { z-index: 0; }
.insta-grid img.cover-img { transition: transform 0.9s var(--ease); }
.insta-grid a:hover img.cover-img { transform: scale(1.08); }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background-color: var(--taupe);
  background-image:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 13px);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28,23,20,0.5);
  line-height: 1.7;
}
.ph--dark {
  background-color: #1d1815;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 13px),
    radial-gradient(120% 120% at 70% 30%, rgba(166,90,56,0.28), transparent 60%);
}
.ph--dark::after { color: rgba(255,255,255,0.4); }
.ph--maroon { background-color: var(--maroon); }
.ph--maroon::after { color: rgba(255,255,255,0.42); }
.ph--green { background-color: var(--green); }
.ph--green::after { color: rgba(255,255,255,0.42); }
.ph--terracotta { background-color: var(--terracotta); }
.ph--terracotta::after { color: rgba(255,255,255,0.5); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--maroon-deep);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; padding: 20px; }
.preloader__mark {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.3em;
  opacity: 0;
  animation: pl-fade 1s var(--ease) 0.1s forwards;
}
.preloader__mark .home { opacity: 0.55; }
.preloader__tag {
  margin-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: 0;
  animation: pl-fade 1s var(--ease) 0.35s forwards;
}
.preloader__bar {
  width: min(220px, 60vw);
  height: 1px;
  margin: 34px auto 0;
  background: rgba(246, 241, 232, 0.18);
  overflow: hidden;
  opacity: 0;
  animation: pl-fade 1s var(--ease) 0.5s forwards;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--taupe);
  transition: width 0.4s var(--ease);
}
@keyframes pl-fade { to { opacity: 1; } }
/* prevent body scroll while loading */
body.is-loading { overflow: hidden; }

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.search-panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
.search-panel.show { transform: none; box-shadow: 0 30px 60px rgba(20,14,11,0.18); }
.search-panel .nh-container { padding-block: 30px 44px; }
.search-panel__top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 22px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 18px;
}
.search-field__icon { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.2; flex: none; }
.search-field input {
  flex: 1;
  border: none; background: none; outline: none;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.search-field input::placeholder { color: var(--ink-soft); opacity: 0.45; }
.search-clear {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); padding: 8px 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.search-clear.show { opacity: 1; pointer-events: auto; }
.search-clear:hover { color: var(--maroon); }

.search-suggest {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 22px;
}
.search-suggest__label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
.search-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.search-chips a,
.search-chips button {
  display: inline-block;
  text-decoration: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.search-chips a:hover,
.search-chips button:hover { border-color: var(--ink); color: var(--ink); }

.search-results { margin-top: 30px; }
.search-results__head {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 6px;
}
.search-row {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  cursor: pointer; text-align: left; width: 100%;
  background: none; border-left: none; border-right: none; border-top: none;
  transition: padding-left 0.3s var(--ease);
}
.search-row:hover { padding-left: 8px; }
.search-row__media { width: 56px; height: 70px; flex: none; background: var(--ivory-2); overflow: hidden; }
.search-row__media img { width: 100%; height: 100%; object-fit: cover; }
.search-row__main { flex: 1; }
.search-row__name { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.search-row__cat { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 3px; }
.search-row__price { font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.search-row mark { background: rgba(166,90,56,0.18); color: inherit; padding: 0 1px; }
.search-empty { padding: 40px 0; color: var(--ink-soft); font-size: 0.95rem; }
.search-empty span { font-family: var(--font-display); color: var(--ink); }
.search-viewall {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 4px 0;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s var(--ease), opacity 0.3s;
}
.search-viewall:hover { gap: 15px; opacity: 0.7; }

/* ============================================================
   SEARCH RESULTS PAGE  (search.html)
   ============================================================ */
.search-results-page { padding-top: 130px; }
.search-hero { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.search-hero .eyebrow { justify-content: center; }
.search-hero .display-title { margin-top: 12px; }
.search-hero .display-title em { font-style: normal; color: var(--maroon); }
.search-hero__field {
  position: relative; margin: 30px auto 0; max-width: 480px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--ink);
  padding: 12px 4px;
}
.search-hero__field svg { width: 19px; height: 19px; stroke: var(--ink-soft); fill: none; stroke-width: 1.5; flex: none; }
.search-hero__field input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
}
.search-count {
  margin-top: 26px;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft);
}
/* price filter on the search results page */
.search-filters {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center; margin: 0 auto 40px; max-width: 760px;
}
.search-filters__label {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.search-filters__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.search-filters__chips a,
.search-filters__chips button {
  display: inline-block; text-decoration: none;
  background: none; border: 1px solid var(--line); color: var(--ink-soft);
  font: inherit; font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; transition: all 0.25s;
}
.search-filters__chips a:hover,
.search-filters__chips button:hover { border-color: var(--ink); color: var(--ink); }
.search-filters__chips a.is-active,
.search-filters__chips button.is-active {
  background: var(--ink); border-color: var(--ink); color: var(--ivory, #fff);
}

.search-empty-state { text-align: center; padding: 40px 0 20px; }
.search-empty-state p {
  font-family: var(--font-display); font-size: 1.35rem; color: var(--ink-soft);
  margin-bottom: 26px;
}
.load-more-wrap { display: flex; justify-content: center; margin-top: 58px; }
.load-more { min-width: 220px; justify-content: center; }

/* lazy-loaded product images appear as soon as they load (no opacity gate —
   a from:0 fade can stick at 0 when the tab/iframe is backgrounded) */

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 61;
  background: var(--maroon);
  color: #f3e6dd;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.announce .nh-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 42px;
}
.announce__ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.announce__ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 26s linear infinite;
}
@keyframes ticker { to { transform: translateX(-100%); } }
.announce__ticker em { font-style: normal; opacity: 0.55; padding: 0 18px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.lang-toggle button,
.lang-toggle a {
  background: none; border: none; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; opacity: 0.5; padding: 0;
  transition: opacity 0.3s;
  text-decoration: none;
}
.lang-toggle button.is-active,
.lang-toggle a.is-active { opacity: 1; }
.lang-toggle a:hover { opacity: 0.85; }
.lang-toggle .sep { opacity: 0.4; }

/* currency switcher (injected next to the language toggle) */
.cur-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.14em;
  margin-inline-end: 14px; padding-inline-end: 14px;
  border-inline-end: 1px solid currentColor;
}
.cur-toggle button {
  background: none; border: none; color: inherit; cursor: pointer;
  font: inherit; letter-spacing: inherit; opacity: 0.5; padding: 0;
  transition: opacity 0.3s;
}
.cur-toggle button.is-active { opacity: 1; }
.cur-toggle button:hover { opacity: 0.85; }
.cur-toggle .sep { opacity: 0.4; }

/* Mobile: move currency + language into the menu drawer */
.mobile-controls { display: none; padding: 18px 0 6px; border-top: 1px solid var(--line); margin-top: 8px; }
.mobile-controls__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.mobile-controls__lab {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.mobile-controls .cur-toggle,
.mobile-controls .lang-toggle {
  margin: 0; padding: 0; border: none; font-size: 0.95rem;
}
.mobile-controls .cur-toggle button,
.mobile-controls .lang-toggle a { font-size: 0.95rem; }
@media (max-width: 900px) {
  .announce .cur-toggle, .announce .lang-toggle { display: none !important; }
  .mobile-controls { display: block; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 30px;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
}
.site-header.is-transparent {
  position: fixed;
  top: 42px;
  left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}
.site-header.is-transparent.is-scrolled {
  background: var(--cream);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding-block: 6px;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* category dropdown (injected by main.js) */
.nav__has-dropdown { position: relative; }
.nav__has-dropdown > .nav__drop-toggle { display: inline-flex; align-items: center; }
.nav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 200px; background: var(--ivory, #fff); border: 1px solid var(--line);
  list-style: none; margin: 0; padding: 8px 0; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,0.35);
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__dropdown li { display: block; }
.nav__dropdown a {
  color: var(--ink); display: block; padding: 9px 22px; font-size: 0.82rem; letter-spacing: 0.08em;
  white-space: nowrap;
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover { background: rgba(0,0,0,0.035); }
html[dir="rtl"] .nav__dropdown a { text-align: right; }

/* mobile drawer category group */
.mobile-nav__group > .mobile-nav__grouplab {
  display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.5; margin: 6px 0 4px;
}
.mobile-nav__group ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; }
html[dir="rtl"] .mobile-nav__group ul { padding: 0 14px 0 0; }
.mobile-nav__group ul li a { font-size: 0.95rem; }

.nav__brand {
  padding-top: 12px;
  text-align: center;
  font-size: 1.5rem;
}
.nav__brand a { display: inline-block; }

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.icon-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: inherit; display: inline-flex; line-height: 0;
  position: relative;
  transition: opacity 0.3s;
}
.icon-btn:hover { opacity: 0.6; }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.cart-count {
  position: absolute;
  top: -7px; right: -9px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transform: scale(0);
  transition: transform 0.3s var(--ease);
}
.cart-count.show { transform: scale(1); }

.nav__burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media .ph { position: absolute; inset: 0; }
.hero__media::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,0.45) 0%, rgba(20,15,12,0.1) 35%, rgba(20,15,12,0.78) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(56px, 8vw, 110px);
  padding-top: 140px;
}
.hero__eyebrow { color: var(--taupe); margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  max-width: 14ch;
  letter-spacing: 0.01em;
}
.hero__sub {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  font-weight: 300;
}
.hero__cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 8vw, 110px);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 54px;
  background: linear-gradient(rgba(255,255,255,0.7), transparent);
}

/* Hero layout variants (toggled via JS) */
.hero[data-variant="centered"] { align-items: center; text-align: center; }
.hero[data-variant="centered"] .hero__inner { padding-top: 140px; padding-bottom: 0; }
.hero[data-variant="centered"] h1 { margin-inline: auto; }
.hero[data-variant="centered"] .hero__sub { margin-inline: auto; }
.hero[data-variant="centered"] .hero__cta { justify-content: center; }
.hero[data-variant="centered"] .hero__scroll { display: none; }

.hero[data-variant="split"] { align-items: stretch; }
.hero[data-variant="split"] .hero__media { left: 42%; }
.hero[data-variant="split"] .hero__media::before {
  background: linear-gradient(90deg, var(--maroon-deep) 0%, rgba(46,1,2,0.2) 30%, transparent 55%);
}
.hero[data-variant="split"] .hero__inner {
  display: flex; align-items: center;
}
.hero[data-variant="split"] .hero__scroll { display: none; }

/* value marquee strip */
.value-strip {
  background: var(--ink);
  color: var(--ivory);
  border-block: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.value-strip__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.value-strip__track span {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1vw, 1rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 16px 0;
  display: inline-flex;
  align-items: center;
}
.value-strip__track .dot { padding-inline: 26px; color: var(--terracotta); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURED COLLECTIONS
   ============================================================ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.collection-card {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
  min-height: 440px;
}
.collection-card .ph { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.collection-card:hover .ph { transform: scale(1.06); }
.collection-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20,12,9,0.72) 100%);
  z-index: 1;
}
.collection-card__body {
  position: absolute;
  z-index: 2;
  left: 0; bottom: 0;
  padding: 34px;
  width: 100%;
}
.collection-card__count {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--taupe);
}
.collection-card h3 {
  font-size: 1.9rem;
  margin-top: 8px;
}
.collection-card .link-underline {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.collection-card:hover .link-underline { opacity: 1; transform: none; }

.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }
.collection-card.is-tall { min-height: 902px; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 26px;
  align-items: flex-end;
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar button {
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0 16px;
  position: relative;
  transition: color 0.3s, border-color 0.3s;
}
.filter-bar button:hover { color: var(--ink); }
.filter-bar button.is-active { color: var(--ink); border-bottom-color: var(--maroon); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
  margin-top: 44px;
}
.product-card { position: relative; }
.pc-media-link { position: absolute; inset: 0; z-index: 1; display: block; }
.pc-name-link { display: block; color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
.pc-name-link:hover { color: var(--maroon); }
.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory-2);
}
.product-card__media .ph { position: absolute; inset: 0; transition: transform 1s var(--ease), opacity 0.5s; }
.product-card__media .prod-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.product-card:hover .prod-img { transform: scale(1.06); }
.product-card__tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--ink); color: #fff;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 11px;
}
.product-card__tag.is-sale { background: var(--terracotta); }
.product-card__tag.is-soldout { background: var(--ink-soft); }
.wish-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(250,247,241,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
}
.product-card:hover .wish-btn { opacity: 1; transform: none; }
.wish-btn svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.wish-btn.is-active svg { fill: var(--maroon); stroke: var(--maroon); }

.add-bar {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 3;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.product-card:hover .add-bar { opacity: 1; transform: none; }
.add-bar button {
  width: 100%;
  background: rgba(28,23,20,0.94);
  color: #fff; border: none; cursor: pointer;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px; backdrop-filter: blur(4px);
  transition: background 0.3s;
}
.add-bar button:hover { background: var(--maroon); }

.product-card__info { padding-top: 16px; }
.product-card__cat {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.7;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-top: 5px;
}
.product-card__price {
  margin-top: 7px;
  font-size: 0.95rem;
  display: flex; align-items: baseline; gap: 9px;
}
.product-card__price .was { color: var(--ink-soft); text-decoration: line-through; opacity: 0.6; font-size: 0.85rem; }
.product-card__price .sar { font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.7; }
.is-hidden { display: none !important; }

/* ============================================================
   BRAND STORY
   ============================================================ */
.story {
  background: var(--green);
  color: var(--ivory);
}
.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
}
.story__media { aspect-ratio: 4 / 5; }
.story h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 20px; }
.story p { color: rgba(246,241,232,0.78); margin-top: 24px; font-weight: 300; }
.story__sign {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.18em;
  margin-top: 36px;
  color: var(--taupe);
}

/* ============================================================
   MATERIALS / CRAFT
   ============================================================ */
.craft { background: var(--ivory-2); }
.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
}
.craft-item__media { aspect-ratio: 1 / 1; margin-bottom: 24px; }
.craft-item h3 { font-size: 1.5rem; }
.craft-item .num {
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--terracotta);
  display: block; margin-bottom: 14px;
}
.craft-item p { color: var(--ink-soft); margin-top: 12px; font-size: 0.95rem; }

/* ============================================================
   SHOP THE LOOK (editorial)
   ============================================================ */
.lookbook { position: relative; }
.lookbook__media {
  position: relative;
  min-height: 78vh;
  color: #fff;
}
.lookbook__media .ph { position: absolute; inset: 0; }
.lookbook__panel {
  position: absolute;
  z-index: 3;
  bottom: clamp(40px, 6vw, 80px);
  left: var(--gutter);
  max-width: 460px;
  background: rgba(28,23,20,0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 40px;
  color: #fff;
}
.lookbook__panel h3 { font-size: 1.9rem; margin-top: 14px; }
.lookbook__panel p { color: rgba(255,255,255,0.78); margin-top: 14px; font-size: 0.95rem; }
/* hotspots */
.hotspot {
  position: absolute; z-index: 4;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(250,247,241,0.9);
  display: flex; align-items: center; justify-content: center;
}
.hotspot::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.6);
  animation: pulse 2.4s ease-out infinite;
}
.hotspot span { width: 11px; height: 1px; background: var(--ink); position: relative; }
.hotspot span::after { content: ""; position: absolute; inset: 0; width: 1px; height: 11px; background: var(--ink); left: 5px; top: -5px; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.hotspot__tip {
  position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--cream); color: var(--ink);
  padding: 10px 14px; width: 168px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  text-align: left;
}
.hotspot:hover .hotspot__tip { opacity: 1; transform: translateX(-50%); }
.hotspot__tip strong { font-family: var(--font-display); font-weight: 400; font-size: 0.95rem; display: block; }
.hotspot__tip em { font-style: normal; font-size: 0.75rem; color: var(--ink-soft); letter-spacing: 0.06em; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: var(--maroon); color: #f3e6dd; text-align: center; }
.newsletter h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.newsletter p { color: rgba(243,230,221,0.78); margin: 18px auto 0; max-width: 48ch; }
.news-form {
  display: flex;
  max-width: 480px;
  margin: 38px auto 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.news-form input {
  flex: 1; background: none; border: none; color: #fff;
  font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.04em;
  padding: 14px 4px; outline: none;
}
.news-form input::placeholder { color: rgba(243,230,221,0.55); }
.news-form button {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 8px; display: flex; align-items: center; gap: 8px;
  transition: gap 0.3s var(--ease);
}
.news-form button:hover { gap: 14px; }
.news-msg { margin-top: 16px; font-size: 0.8rem; letter-spacing: 0.12em; min-height: 20px; color: var(--taupe); }

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 44px;
}
.insta-grid a { position: relative; aspect-ratio: 1; overflow: hidden; }
.insta-grid .ph { position: absolute; inset: 0; transition: transform 0.9s var(--ease); }
.insta-grid a:hover .ph { transform: scale(1.08); }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(46,1,2,0); transition: background 0.4s;
}
.insta-grid a:hover::after { background: rgba(46,1,2,0.35); }

/* Proportion, in the wild — horizontal scroller (admin-managed) */
.insta-grid--scroll {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 14px;
}
.insta-grid--scroll::-webkit-scrollbar { height: 6px; }
.insta-grid--scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.insta-grid--scroll .insta-grid__item {
  flex: 0 0 auto;
  width: clamp(240px, 30vw, 360px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.insta-grid--scroll .insta-grid__item img.cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.9s var(--ease);
}
.insta-grid--scroll .insta-grid__item:hover img.cover-img { transform: scale(1.06); }
[dir="rtl"] .insta-grid--scroll { direction: rtl; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .wordmark { font-size: 1.7rem; }
.footer-brand p { color: rgba(246,241,232,0.6); margin-top: 22px; max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--taupe); margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 0.92rem; color: rgba(246,241,232,0.7); transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-block: 28px;
  font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(246,241,232,0.5);
}
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: rgba(246,241,232,0.7); }
.footer-social a:hover { color: #fff; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.pay-row { display: flex; gap: 8px; align-items: center; }
.pay-row span {
  font-size: 0.6rem; letter-spacing: 0.08em;
  border: 1px solid var(--line-dark); padding: 4px 8px; color: rgba(246,241,232,0.6);
}

/* ============================================================
   CART DRAWER + MOBILE NAV (offcanvas)
   ============================================================ */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,14,11,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.scrim.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 100;
  width: min(420px, 92vw);
  background: var(--cream);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.drawer--left.show { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 10px var(--gutter); }
.drawer__foot { border-top: 1px solid var(--line); padding: 24px var(--gutter); }

.cart-line { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 76px; height: 96px; flex: none; background: var(--ivory-2); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__main { flex: 1; }
.cart-line__name { font-family: var(--font-display); font-size: 1.02rem; }
.cart-line__meta { font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 12px; }
.qty button { background: none; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty span { width: 30px; text-align: center; font-size: 0.85rem; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.cart-line__price { font-size: 0.95rem; }
.cart-line__remove { background: none; border: none; cursor: pointer; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 80px 20px; }
.cart-empty .ph { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px; }

.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.cart-subtotal .amt { font-family: var(--font-display); font-size: 1.5rem; }
.cart-note { font-size: 0.74rem; color: var(--ink-soft); text-align: center; margin-top: 14px; letter-spacing: 0.06em; }

/* mobile nav */
.mobile-nav__links { list-style: none; margin: 0; padding: 16px 0; }
.mobile-nav__links li { border-bottom: 1px solid var(--line); }
.mobile-nav__links li:last-child { border-bottom: none; }
.mobile-nav__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-display); font-size: 1.4rem;
}
.mobile-nav__foot { padding: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.mobile-nav__foot a { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.mobile-nav__switches { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.mobile-nav__switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-nav__switchlab { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.mobile-nav__switch .cur-toggle, .mobile-nav__switch .lang-toggle { border: none; padding: 0; margin: 0; font-size: 0.95rem; color: var(--ink); }
.mobile-nav__switch .cur-toggle button, .mobile-nav__switch .lang-toggle a { font-size: 0.95rem; }


/* ============================================================
   TOAST
   ============================================================ */
.toast-wrap {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 15px 24px;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem; letter-spacing: 0.1em;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.toast.show { transform: none; opacity: 1; }
.toast .tick {
  width: 22px; height: 22px; border-radius: 50%; background: var(--terracotta);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.toast .tick svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.4; fill: none; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ============================================================
   RTL
   ============================================================ */
[dir="rtl"] body, [dir="rtl"] { letter-spacing: 0; }
[dir="rtl"] .nav__actions { justify-content: flex-end; }
[dir="rtl"] .announce__ticker span { animation-direction: reverse; }
[dir="rtl"] .hero__scroll { left: var(--gutter); right: auto; }
[dir="rtl"] .lookbook__panel { right: var(--gutter); left: auto; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.show { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { display: none; }
  .nav__brand { text-align: left; }
  .nav__burger { display: inline-flex; }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 16 / 10; }
  .collections-grid > * { grid-column: 1 / -1 !important; }
  .collection-card, .collection-card.is-tall { min-height: 420px; }
  .craft__grid { grid-template-columns: 1fr; gap: 44px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .hero[data-variant="split"] .hero__media { left: 0; }
  .hero[data-variant="split"] .hero__media::before {
    background: linear-gradient(180deg, rgba(20,15,12,0.4) 0%, rgba(20,15,12,0.8) 100%);
  }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .add-bar { display: none; }
  .news-form { flex-wrap: nowrap; }
  .hero__inner { padding-top: 120px; }
}


/* ============================================================
   BRAND LOGO  (image swaps with the background:
   dark logo on light surfaces, white logo on dark surfaces)
   ============================================================ */
.wordmark { display: inline-flex; align-items: center; line-height: 0; }
.wordmark .logo-img { height: auto; width: 250px; display: block; }
.wordmark .logo-white { display: none; }
.wordmark .logo-dark  { display: block; }

/* Dark backgrounds -> show the white logo */
.site-footer .wordmark .logo-dark,
.preloader .wordmark .logo-dark,
.err-top .wordmark .logo-dark,
.site-header.is-transparent:not(.is-scrolled) .wordmark .logo-dark { display: none; }
.site-footer .wordmark .logo-white,
.preloader .wordmark .logo-white,
.err-top .wordmark .logo-white,
.site-header.is-transparent:not(.is-scrolled) .wordmark .logo-white { display: block; }

/* Context sizes */
.drawer__head .wordmark .logo-img { width: 140px; }
.site-footer .wordmark .logo-img  { width: 190px; }
.preloader__mark .logo-img        { width: 230px; margin: 0 auto; }
.err-top .wordmark .logo-img      { width: 210px; margin: 0 auto; }
.co-brand .logo-img               { width: 250px; }

/* ambient audio toggle */
#nhAudioBtn { position: fixed; left: 22px; bottom: 22px; z-index: 1200; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line, #e5e0d8); background: #fff; color: var(--ink, #2b2b28); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.12); transition: transform .25s, color .25s, background .25s; }
#nhAudioBtn svg { width: 20px; height: 20px; }
#nhAudioBtn:hover { transform: translateY(-2px); }
#nhAudioBtn.is-muted { color: #9a9690; }
[dir="rtl"] #nhAudioBtn { left: auto; right: 22px; }
@media print { #nhAudioBtn, #nhAmbient { display: none !important; } }

/* fullscreen image lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(20,18,16,.94); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 88vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 20px; right: 26px; background: none; border: none; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: .85rem; letter-spacing: .08em; opacity: .75; }
.js-lightbox { cursor: zoom-in; }
@media (max-width: 640px) { .lightbox__nav { width: 44px; height: 44px; } .lightbox__prev { left: 10px; } .lightbox__next { right: 10px; } }

[dir="rtl"] .lightbox__prev { left: auto; right: 24px; }
[dir="rtl"] .lightbox__next { right: auto; left: 24px; }
@media (max-width: 640px) { [dir="rtl"] .lightbox__prev { right: 10px; } [dir="rtl"] .lightbox__next { left: 10px; } }


/* client / partner logos strip (above footer) */
.clients { padding-top: 0; }
.clients__head { text-align: center; margin-inline: auto; margin-bottom: 48px; }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: center;
  gap: 28px 40px;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  padding: 8px 12px;
}
.client-logo img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .4s ease, opacity .4s ease;
}
.client-logo:hover img,
a.client-logo:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
  .client-logo img { max-height: 52px; }
}
