/* ==========================================================================
   Artal Group — Partner & Supplier Introduction
   Design system
   --------------------------------------------------------------------------
   Brand colours are taken from the official logo artwork
   (artalgroup.net/wp-content/uploads/2024/01/artal-group.png), which contains
   exactly two opaque colours, and from the 2025 company profile deck.

     #c1a47a  logo gold / tan   — PRIMARY
     #4f6576  logo slate        — SECONDARY
     #e2b647  deck gold         — accent, used sparingly for emphasis
     #38384a  deck ink          — dark surfaces

   Do NOT use the Elementor kit colours found in the site CSS
   (--e-global-color-primary:#6EC1E4 etc). Those are unmodified Elementor
   defaults and are not part of the Artal identity.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  /* Brand */
  --gold:          #c1a47a;   /* logo gold — fills, borders, text on DARK only */
  --gold-deep:     #a8875a;   /* borders and non-text accents */
  --gold-press:    #b6976a;   /* primary button hover fill */
  --gold-bright:   #e2b647;
  --gold-wash:     #f6f1e8;
  --gold-line:     #e6dbc7;

  /* Gold for TEXT on light surfaces. Same hue (35.5deg) and saturation as
     --gold, darkened until it clears WCAG AA 4.5:1 on every light surface we
     actually use: white 5.09:1, --paper-alt 4.72:1, --gold-wash 4.53:1.
     The logo gold itself is only 2.37:1 on white — fine as a fill, unreadable
     as small text. Use --gold on dark surfaces (5.96:1 on --ink-deep). */
  --gold-text:     #87693f;

  --slate:         #4f6576;
  --slate-deep:    #3d505e;

  --ink:           #38384a;
  --ink-deep:      #2a2a38;
  --ink-soft:      #4a4a5e;

  /* Neutrals */
  --paper:         #ffffff;
  --paper-alt:     #f7f6f4;
  --paper-sunk:    #efedea;
  --rule:          #e3e0db;
  --rule-soft:     #eceae6;

  --text:          #23232f;
  --text-mid:      #5c5c6b;
  --text-dim:      #6e6e78;   /* 5.04:1 on white (was #85858f @ 3.65:1 — failed AA) */
  --text-on-dark:  #f2f1ef;
  --text-on-dark-dim: #b3b2c0;

  /* Type */
  --font-en: "Poppins", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: var(--font-en);

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.10vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.14vw, 1.03rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.32vw, 1.30rem);
  --step-2:  clamp(1.38rem, 1.24rem + 0.62vw, 1.75rem);
  --step-3:  clamp(1.70rem, 1.44rem + 1.15vw, 2.45rem);
  --step-4:  clamp(2.05rem, 1.58rem + 2.05vw, 3.40rem);

  /* Space */
  --sp-1: 0.4rem;  --sp-2: 0.75rem; --sp-3: 1.15rem; --sp-4: 1.75rem;
  --sp-5: 2.5rem;  --sp-6: 3.5rem;  --sp-7: 5rem;    --sp-8: 7rem;

  --wrap: 1180px;
  --radius: 3px;          /* Artal's deck is hard-edged; keep corners tight */
  --radius-lg: 5px;

  --shadow-sm: 0 1px 2px rgba(35,35,47,.06), 0 2px 8px rgba(35,35,47,.04);
  --shadow-md: 0 2px 4px rgba(35,35,47,.05), 0 12px 32px rgba(35,35,47,.08);
  --shadow-lg: 0 4px 8px rgba(35,35,47,.06), 0 24px 60px rgba(35,35,47,.13);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------------------------------------------------------- 2. Base/reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Parked off the top edge, never off the inline edge. `left:-9999px` looks
   harmless in LTR but becomes 9999px of scrollable width once dir="rtl"
   flips the start edge — it hangs off the *scrollable* side. */
.skip {
  position: fixed; inset-inline-start: var(--sp-3); top: 0; z-index: 200;
  transform: translateY(-150%);
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; font-weight: 600;
  text-decoration: none; border-radius: 0 0 var(--radius) var(--radius);
  transition: transform .18s var(--ease);
}
.skip:focus { transform: translateY(0); }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-4); }

/* --------------------------------------------------- 3. Arabic / RTL mode */

html[dir="rtl"] { --font-body: var(--font-ar); }
html[dir="rtl"] body { line-height: 1.85; letter-spacing: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2,
html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }

/* Latin fragments (emails, phone numbers, codes) stay LTR inside Arabic text */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* The diagonal bar motif is direction-aware */
html[dir="rtl"] .bars { transform: scaleX(-1); }

/* ------------------------------------------------- 4. Signature bar motif */
/* Echoes the parallel gold/ink diagonals used throughout the Artal profile. */

.bars {
  display: inline-flex; gap: 5px; height: 100%;
  align-items: stretch; flex-shrink: 0;
}
.bars i {
  display: block; width: 7px; border-radius: 1px;
  background: var(--gold); transform: skewX(-18deg);
}
.bars i:nth-child(2) { background: var(--gold); opacity: .55; }
.bars--ink i { background: var(--ink); }
.bars--ink i:nth-child(2) { background: var(--ink); opacity: .5; }

/* ------------------------------------------------------------ 5. Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-size: var(--step-0); font-weight: 600;
  padding: .82em 1.6em; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

/* Gold fill, ink label. White on the brand gold is only 2.37:1 — a fail on the
   page's most important control. Ink on the same gold is 5.96:1, and keeps the
   fill exactly on-brand rather than darkening it into a brown. */
.btn--primary {
  background: var(--gold); color: var(--ink-deep); border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--gold-press); border-color: var(--gold-press);   /* 5.13:1 */
  box-shadow: var(--shadow-md);
}

.btn--ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-text); background: var(--gold-wash); }

.btn--on-dark { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.5); }

.btn--sm { font-size: var(--step--1); padding: .62em 1.15em; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------- 6. Header */

.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hdr.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--rule); }

.hdr__in { display: flex; align-items: center; gap: var(--sp-4); min-height: 72px; }
.hdr__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.hdr__logo img { height: 42px; width: auto; }

.hdr__nav { display: flex; gap: var(--sp-4); margin-inline-start: auto; }
.hdr__nav a {
  font-size: var(--step--1); font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding: .4em 0; position: relative;
  transition: color .18s var(--ease);
}
.hdr__nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .22s var(--ease);
}
.hdr__nav a:hover { color: var(--text); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="true"]::after { transform: scaleX(1); }
.hdr__nav a[aria-current="true"] { color: var(--text); }

.hdr__side { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

.lang {
  display: inline-flex; align-items: center; gap: .4em;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--text-mid);
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .5em .85em; cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.lang:hover { border-color: var(--gold); color: var(--gold-text); background: var(--gold-wash); }

.hdr__burger { display: none; }

@media (max-width: 900px) {
  .hdr__nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; gap: 0; padding: var(--sp-2) var(--sp-4) var(--sp-4);
    box-shadow: var(--shadow-md);
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__nav a { padding: .85em 0; border-bottom: 1px solid var(--rule-soft); font-size: var(--step-0); }
  .hdr__nav a::after { display: none; }
  .hdr__side { margin-inline-start: auto; }
  .hdr__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0;
    background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
    cursor: pointer; color: var(--text);
  }
  .hdr__cta { display: none; }
}

/* -------------------------------------------------------------- 7. Hero */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding-block: var(--sp-8) var(--sp-7);
}
.hero::before {
  /* soft gold bloom, top-inline-end */
  content: ""; position: absolute; z-index: 0;
  inset-block-start: -30%; inset-inline-end: -12%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(193,164,122,.20), transparent 68%);
  pointer-events: none;
}
.hero::after {
  /* fine grid, echoes the dotted matrix in the profile deck */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
          mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}
.hero__in { position: relative; z-index: 1; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 960px) { .hero__in { grid-template-columns: 1.08fr .92fr; gap: var(--sp-7); } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 22px;
  margin-bottom: var(--sp-3);
}
.hero__eyebrow span {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
html[dir="rtl"] .hero__eyebrow span { letter-spacing: 0; }

.hero h1 { font-size: var(--step-4); font-weight: 600; margin-bottom: var(--sp-3); }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero__lede {
  font-size: var(--step-1); color: var(--text-on-dark-dim); line-height: 1.6;
  max-width: 44ch; margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Hero credential rail */
.hero__rail {
  display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.13);
}
.hero__rail div { min-width: 84px; }
.hero__rail b {
  display: block; font-size: var(--step-2); font-weight: 600; color: #fff; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero__rail span {
  display: block; font-size: var(--step--1); color: var(--text-on-dark-dim); margin-top: .25em;
}

/* Hero visual */
.hero__visual { position: relative; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 3.25; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--ink); border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,42,56,.72), transparent 55%);
}
.hero__caption {
  position: absolute; z-index: 2; inset-block-end: var(--sp-3); inset-inline: var(--sp-3);
  font-size: var(--step--1); color: rgba(255,255,255,.9);
}
.hero__badge {
  position: absolute; z-index: 3; inset-block-start: var(--sp-3); inset-inline-end: var(--sp-3);
  background: rgba(42,42,56,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: .5em .8em; font-size: var(--step--1); font-weight: 600; color: #fff;
}

/* Placeholder shown until real photography is supplied */
.ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .5rem;
  text-align: center; padding: var(--sp-4);
  background:
    repeating-linear-gradient(45deg, rgba(193,164,122,.07) 0 12px, transparent 12px 24px),
    var(--ink);
  color: var(--text-on-dark-dim); font-size: var(--step--1);
}
.ph svg { width: 30px; height: 30px; margin-inline: auto; opacity: .5; }
.ph b { color: var(--gold); font-weight: 600; }

/* ------------------------------------------------------ 8. Section shell */

.sec { padding-block: var(--sp-7); }
.sec--alt { background: var(--paper-alt); }
.sec--sunk { background: var(--paper-sunk); }
.sec--dark { background: var(--ink); color: var(--text-on-dark); }
.sec--tight { padding-block: var(--sp-6); }

.sec__head { max-width: 62ch; margin-bottom: var(--sp-5); }
.sec__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); height: 20px;
  margin-bottom: var(--sp-2);
}
.eyebrow span {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-text);
}
html[dir="rtl"] .eyebrow span { letter-spacing: 0; }
.sec--dark .eyebrow span { color: var(--gold); }
.sec__head--center .eyebrow { justify-content: center; }

.sec__head h2 { font-size: var(--step-3); margin-bottom: var(--sp-2); }
.sec__head p { font-size: var(--step-1); color: var(--text-mid); line-height: 1.6; }
.sec--dark .sec__head p { color: var(--text-on-dark-dim); }

/* ------------------------------------------------------- 9. Credentials */

.creds { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.cred {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-3);
}
.cred__mark {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--gold-wash); border: 1px solid var(--gold-line); color: var(--gold-text);
}
.cred__mark svg { width: 17px; height: 17px; }
.cred b { display: block; font-size: var(--step-0); font-weight: 600; line-height: 1.35; }
.cred span { display: block; font-size: var(--step--1); color: var(--text-dim); margin-top: .15em; }

/* ------------------------------------------------------------ 10. About */

.about { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
.about p + p { margin-top: var(--sp-3); }
.about p { color: var(--text-mid); }
.about strong { color: var(--text); font-weight: 600; }

.orgs { display: grid; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.org {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding: var(--sp-3); background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
}
.org:last-child { border-bottom: 0; }
.org__i { flex-shrink: 0; width: 3px; align-self: stretch; background: var(--gold); border-radius: 2px; }
.org b { display: block; font-size: var(--step-0); font-weight: 600; }
.org span { display: block; font-size: var(--step--1); color: var(--text-dim); margin-top: .1em; }

/* ----------------------------------------------------- 11. Capabilities */

.caps { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }

.cap {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cap:hover { border-color: var(--gold-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.cap__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.cap__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cap:hover .cap__media img { transform: scale(1.04); }

.cap__body { padding: var(--sp-3); display: flex; flex-direction: column; flex: 1; gap: var(--sp-2); }
.cap h3 { font-size: var(--step-1); }
.cap__by {
  font-size: var(--step--1); color: var(--gold-text); font-weight: 600;
}
.cap__txt { font-size: var(--step--1); color: var(--text-mid); line-height: 1.6; flex: 1; }
.cap__foot { margin-top: var(--sp-1); }

.cap__link {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--step--1); font-weight: 600; color: var(--text);
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit;
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.cap__link svg { width: .95em; height: .95em; transition: transform .18s var(--ease); }
html[dir="rtl"] .cap__link svg { transform: scaleX(-1); }
.cap__link:hover { color: var(--gold-text); gap: .7em; }

/* Sector-prioritised ordering.
   The order value itself is set inline by initSector() in partners.js —
   do not add per-priority rules here. A missing rule silently resolves to
   order:0, which floats an unranked card to the front of the grid. */
.cap.is-muted { display: none; }

/* Capability detail panel */
.cap__detail {
  grid-column: 1 / -1; order: 99;
  background: var(--paper); border: 1px solid var(--gold-line); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow-md);
}
.cap__detail[hidden] { display: none; }
.cap__detail h3 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.cap__detail-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 760px) { .cap__detail-grid { grid-template-columns: 1fr 1fr; } }
.cap__close {
  float: inline-end; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  width: 32px; height: 32px; cursor: pointer; color: var(--text-mid); font-size: 18px; line-height: 1;
}
.cap__close:hover { border-color: var(--gold); color: var(--gold-text); }

.ticks li {
  position: relative; padding-inline-start: 1.6em; margin-bottom: .5em;
  font-size: var(--step--1); color: var(--text-mid);
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .52em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 2px solid var(--gold); box-sizing: border-box;
}

/* -------------------------------------------------------- 12. Sector fit */

.sectors { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sector {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--sp-3);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.sector:hover { border-color: var(--gold-line); background: var(--gold-wash); }
.sector svg { width: 20px; height: 20px; color: var(--gold-text); flex-shrink: 0; }
.sector b { font-size: var(--step--1); font-weight: 600; line-height: 1.4; }
.sector.is-match { border-color: var(--gold); background: var(--gold-wash); }

/* --------------------------------------------------------- 13. Coverage */

.cover { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .cover { grid-template-columns: .95fr 1.05fr; } }
.cover__list { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.cover__list li {
  font-size: var(--step--1); color: var(--text-on-dark-dim);
  border: 1px solid rgba(255,255,255,.16); border-radius: 100px; padding: .3em .85em;
}
.cover__map { position: relative; }
.cover__map svg { width: 100%; height: auto; }
.cover__map .kw-land { fill: rgba(255,255,255,.04); stroke: rgba(193,164,122,.5); stroke-width: 5; }
.cover__map .kw-pin { fill: var(--gold-bright); }

/* ------------------------------------------------------------ 14. Proof */

.proof { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.proof__item {
  padding: var(--sp-4) var(--sp-3); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}
.proof__item b { display: block; font-size: var(--step-1); margin-bottom: var(--sp-1); }
.proof__item p { font-size: var(--step--1); color: var(--text-mid); line-height: 1.6; }

/* --------------------------------------------------------- 14b. Clients */
/* Uniform grayscale logo wall. Heterogeneous source logos (color, mono,
   white-on-transparent, favicons) are normalised to one calm treatment so the
   wall reads as designed, not pasted. White logos were inverted at build time
   (raster) or carry data-invert (svg). */

.clients {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius); overflow: hidden;
}
.client {
  display: grid; place-content: center; place-items: center;
  min-height: 96px; padding: var(--sp-3) var(--sp-2);
  background: var(--paper);
  transition: background .2s var(--ease);
}
.client:hover { background: var(--gold-wash); }

.client img {
  /* DEFINITE height, not max-height. Several supplied SVG logos ship with only
     a viewBox (no width/height), so they have no intrinsic size; under a
     shrink-wrapped centered grid cell that collapses them to 0x0 while
     fixed-size PNGs are unaffected. A definite height gives every logo a size
     to resolve from; object-fit:contain then letterboxes wide logos inside the
     138px cap without distortion. */
  height: 42px; width: auto; max-width: 138px; object-fit: contain;
  filter: grayscale(1); opacity: .68;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.client:hover img { filter: grayscale(0); opacity: 1; }
/* White-source logos: inverted to read on the light tile. Keep them tonal on
   hover rather than snapping to an absent colour. */
.client img[data-invert="true"] { filter: grayscale(1) invert(1); }
.client:hover img[data-invert="true"] { filter: grayscale(1) invert(1); opacity: 1; }

/* Wordmark fallback — for clients whose only supplied logo was a favicon or a
   dark-background raster. Reproducing a company name as styled text is also a
   lighter trademark footprint than reproducing the logo mark. */
.client--word b {
  font-size: var(--step--1); font-weight: 600; color: var(--slate);
  text-align: center; line-height: 1.3; letter-spacing: -.01em;
  opacity: .82; transition: color .2s var(--ease), opacity .2s var(--ease);
}
.client:hover .client--word b { color: var(--ink); opacity: 1; }

.clients__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-4); justify-content: space-between;
}
.clients__note { font-size: var(--step--1); color: var(--text-dim); max-width: 62ch; }

/* -------------------------------------------------------- 15. Downloads */

.docs { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.doc {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--sp-3); text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.doc:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.doc__i {
  flex-shrink: 0; width: 40px; height: 46px; border-radius: 2px;
  background: var(--gold-wash); border: 1px solid var(--gold-line);
  display: grid; place-content: center; color: var(--gold-text);
  position: relative;
}
.doc__i svg { width: 17px; height: 17px; }
.doc__txt { flex: 1; min-width: 0; }
.doc__txt b { display: block; font-size: var(--step-0); font-weight: 600; line-height: 1.35; }
.doc__txt span { display: block; font-size: var(--step--1); color: var(--text-dim); margin-top: .1em; }
.doc__act { flex-shrink: 0; color: var(--text-dim); }
.doc__act svg { width: 17px; height: 17px; }
.doc:hover .doc__act { color: var(--gold-text); }

.doc--gated .doc__i { background: var(--paper-sunk); border-color: var(--rule); color: var(--text-dim); }
.doc--soon { pointer-events: none; opacity: .55; }
.doc__tag {
  font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--rule); border-radius: 100px; padding: .15em .6em;
  margin-inline-start: .5em; vertical-align: middle; white-space: nowrap;
}
html[dir="rtl"] .doc__tag { letter-spacing: 0; }

/* -------------------------------------------------------- 16. Gallery */

.gal { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Real <button>s: each opens the lightbox, so the click target does something,
   it is keyboard-reachable, and the gallery_open event has a place to fire. */
.gal__item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); margin: 0; padding: 0; border: 0; cursor: pointer;
  font: inherit; text-align: start; width: 100%; display: block;
}
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal__item:hover img, .gal__item:focus-visible img { transform: scale(1.05); }
.gal__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Zoom affordance — signals the tile enlarges */
.gal__item::after {
  content: ""; position: absolute; z-index: 3; inset-block-start: var(--sp-2); inset-inline-end: var(--sp-2);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(42,42,56,.65) center / 15px 15px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.8); transition: opacity .2s var(--ease), transform .2s var(--ease);
  backdrop-filter: blur(2px);
}
.gal__item:hover::after, .gal__item:focus-visible::after { opacity: 1; transform: scale(1); }

.gal__cap {
  position: absolute; inset-block-end: 0; inset-inline: 0; z-index: 2;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: linear-gradient(to top, rgba(42,42,56,.9), transparent);
  color: #fff;
}
.gal__cap b { display: block; font-size: var(--step-0); font-weight: 600; }
.gal__cap span { display: block; font-size: var(--step--1); color: rgba(255,255,255,.78); margin-top: .1em; line-height: 1.45; }

/* ---------------------------------------------------- 16b. Lightbox */

.lb {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
}
.lb.is-open { display: flex; }
.lb__backdrop {
  position: absolute; inset: 0; background: rgba(26,26,36,.94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lb__stage {
  position: relative; z-index: 1;
  width: min(1080px, 94vw); max-height: 94vh;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.lb__frame {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-height: 80vh;
}
.lb__img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0,0,0,.5); background: var(--ink);
}
.lb__img.is-swapping { opacity: .35; }
.lb__img { transition: opacity .18s var(--ease); }
.lb__cap { text-align: center; color: #fff; max-width: 60ch; }
.lb__cap b { display: block; font-size: var(--step-1); font-weight: 600; }
.lb__cap span { display: block; font-size: var(--step--1); color: rgba(255,255,255,.72); margin-top: .2em; }
.lb__counter {
  font-size: var(--step--1); color: rgba(255,255,255,.55);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}

.lb__btn {
  position: absolute; z-index: 2;
  display: grid; place-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.lb__btn:hover { background: rgba(193,164,122,.28); border-color: var(--gold); }
.lb__btn:active { transform: scale(.94); }
.lb__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { inset-block-start: -6px; inset-inline-end: -6px; }
@media (max-width: 640px) { .lb__close { inset-block-start: 4px; inset-inline-end: 4px; } }
.lb__prev { inset-inline-start: max(-64px, -6vw); inset-block-start: calc(40vh - 23px); }
.lb__next { inset-inline-end: max(-64px, -6vw); inset-block-start: calc(40vh - 23px); }
/* On narrow screens the arrows sit inside, over the image */
@media (max-width: 820px) {
  .lb__prev { inset-inline-start: 6px; inset-block-start: calc(40vh - 23px); }
  .lb__next { inset-inline-end: 6px; inset-block-start: calc(40vh - 23px); }
}
/* Direction-aware chevrons: flip in RTL */
html[dir="rtl"] .lb__prev svg, html[dir="rtl"] .lb__next svg { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  .lb__img, .lb__btn, .gal__item img, .gal__item::after { transition: none; }
}

/* --------------------------------------------------- 17. Supplier path */

.path { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .path { grid-template-columns: 1.15fr .85fr; gap: var(--sp-7); } }
.path__steps { counter-reset: s; display: grid; gap: var(--sp-3); }
.path__step { display: flex; gap: var(--sp-3); align-items: flex-start; counter-increment: s; }
.path__step::before {
  content: counter(s); flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-content: center;
  background: rgba(193,164,122,.14); border: 1px solid rgba(193,164,122,.4);
  color: var(--gold); font-size: var(--step--1); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.path__step b { display: block; font-size: var(--step-0); font-weight: 600; color: #fff; }
.path__step span { display: block; font-size: var(--step--1); color: var(--text-on-dark-dim); margin-top: .15em; line-height: 1.6; }
.path__cta { display: flex; flex-direction: column; gap: var(--sp-2); }

/* --------------------------------------------------------- 18. Contact */

.contact { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: .85fr 1.15fr; gap: var(--sp-7); } }

.who {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--sp-4); margin-bottom: var(--sp-3);
}
.who b { display: block; font-size: var(--step-1); font-weight: 600; }
.who .who__role { display: block; font-size: var(--step--1); color: var(--gold-text); font-weight: 600; margin-top: .1em; }
.who__rows { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.who__row {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--step--1); color: var(--text-mid); text-decoration: none;
}
.who__row svg { width: 15px; height: 15px; color: var(--gold-text); flex-shrink: 0; }
a.who__row:hover { color: var(--gold-text); }

/* Form */
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--sp-4); }
.form__grid { display: grid; gap: var(--sp-3); }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .full { grid-column: 1 / -1; } }

.field label {
  display: block; font-size: var(--step--1); font-weight: 600; margin-bottom: .35em; color: var(--text);
}
.field label .req { color: var(--gold-text); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0);
  padding: .68em .8em; color: var(--text); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 105px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(193,164,122,.16);
}
.field input:user-invalid, .field select:user-invalid { border-color: #c0563f; }
.field__hint { font-size: var(--step--1); color: var(--text-dim); margin-top: .3em; }

.form__foot { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.form__note { font-size: var(--step--1); color: var(--text-dim); flex: 1; min-width: 190px; }

.form__ok {
  background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: var(--radius);
  padding: var(--sp-4); text-align: center;
}
.form__ok[hidden] { display: none; }
.form__ok svg { width: 34px; height: 34px; color: var(--gold-text); margin: 0 auto var(--sp-2); }
.form__ok b { display: block; font-size: var(--step-1); margin-bottom: var(--sp-1); }
.form__ok p { font-size: var(--step--1); color: var(--text-mid); }

.form__err {
  background: #fbeeea; border: 1px solid #f0cabf; border-radius: var(--radius);
  padding: var(--sp-4); text-align: center; margin-top: var(--sp-3);
}
.form__err[hidden] { display: none; }
.form__err svg { width: 32px; height: 32px; color: #b5451f; margin: 0 auto var(--sp-2); }
.form__err b { display: block; font-size: var(--step-1); margin-bottom: var(--sp-1); color: #8a2f14; }
.form__err p { font-size: var(--step--1); color: var(--text-mid); }
.form__err-contacts { margin-top: var(--sp-2); display: flex; gap: var(--sp-2); justify-content: center; align-items: center; }
.form__err-contacts a { color: var(--gold-text); font-weight: 600; text-decoration: none; }
.form__err-contacts a:hover { text-decoration: underline; }

/* Honeypot — must stay in the DOM and remain fillable (display:none and
   hidden are skipped by the bots worth catching), but must never contribute
   scrollable width. Clip it rather than pushing it off the inline edge. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; pointer-events: none;
}

/* ---------------------------------------------------------- 19. Footer */

.ftr { background: var(--ink-deep); color: var(--text-on-dark-dim); padding-block: var(--sp-6) var(--sp-4); }
.ftr__top { display: grid; gap: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 800px) { .ftr__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.ftr__logo img { height: 46px; width: auto; margin-bottom: var(--sp-3); }
.ftr p { font-size: var(--step--1); line-height: 1.65; max-width: 40ch; }
.ftr h4 { font-size: var(--step-0); color: #fff; margin-bottom: var(--sp-2); }
.ftr__links { display: grid; gap: .5em; }
.ftr__links a { font-size: var(--step--1); text-decoration: none; transition: color .18s var(--ease); }
.ftr__links a:hover { color: var(--gold); }
.ftr__bot {
  padding-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: space-between; align-items: center; font-size: var(--step--1);
}
.ftr__social { display: flex; gap: var(--sp-2); }
.ftr__social a {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center;
  border: 1px solid rgba(255,255,255,.18); color: var(--text-on-dark-dim);
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.ftr__social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(193,164,122,.1); }
.ftr__social svg { width: 15px; height: 15px; }

/* ------------------------------------------------ 20. Reveal on scroll */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ------------------------------------------------------- 21. Print */

@media print {
  .hdr, .ftr__social, .form, .hero__cta, .path__cta { display: none; }
  .hero, .sec--dark { background: #fff !important; color: #000 !important; }
  .sec { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
