/* ==========================================================================
   Q8 — shared design system for Q8 Capital and Q8 Securities
   Brand: deep navy, cool silver, warm paper. Editorial serif + neutral sans.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #0b1a22;
  --ink-2: #10232e;
  --navy: #17323f;
  --navy-700: #1f4050;
  --navy-600: #305060;
  --navy-500: #415b69;
  --slate: #5c7583;
  --slate-2: #7d919c;
  --mist: #a9bac3;
  --line: #dfe4e6;
  --line-2: #eceff0;
  --paper: #f6f4f0;
  --paper-2: #efece6;
  --white: #fff;
  --body: #3a4a53;
  --live: #5f8f7d;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1280px;
  --gut: 32px;
  --hdr: 84px;
  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.wrap--narrow { max-width: 940px; }

.sec { padding: clamp(68px, 8.4vw, 128px) 0; position: relative; }
.sec--tight { padding: clamp(52px, 6vw, 84px) 0; }
.sec--paper { background: var(--paper); }
.sec--paper-2 { background: var(--paper-2); }
.sec--navy { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.sec--navy h1, .sec--navy h2, .sec--navy h3, .sec--navy h4 { color: #fff; }
.sec--line { border-top: 1px solid var(--line); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 2px;
  font-size: 13px; transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.55; flex: none;
}
.sec--navy .eyebrow { color: var(--mist); }

.display,
.h1, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.5rem, 5.4vw, 4.35rem); line-height: 1.02; }
.h2 { font-size: clamp(1.85rem, 3.3vw, 2.95rem); line-height: 1.1; }
.h3 { font-size: clamp(1.28rem, 1.9vw, 1.6rem); line-height: 1.22; letter-spacing: -0.012em; }
.h4 {
  font-family: var(--f-sans); font-weight: 500; font-size: 1.02rem;
  line-height: 1.4; letter-spacing: -0.005em; color: var(--ink);
}
.lead {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.68;
  color: var(--slate);
  max-width: 56ch;
}
.sec--navy .lead { color: rgba(255, 255, 255, 0.68); }
.muted { color: var(--slate); }
.small { font-size: 0.875rem; line-height: 1.62; }
.mono {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.serif-i { font-family: var(--f-display); font-style: italic; font-weight: 300; }

.link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.25s, gap 0.25s;
}
.link svg { transition: transform 0.3s var(--ease); }
.link:hover { border-color: currentColor; }
.link:hover svg { transform: translateX(4px); }
.sec--navy .link { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 1px;
  transition: background 0.28s, color 0.28s, border-color 0.28s, transform 0.28s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.38); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.55); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper); }
.btn--sm { padding: 12px 20px; font-size: 11px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; top: 0; inset-inline: 0; z-index: 120;
  transition: background 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.hdr__in {
  display: flex; align-items: center; gap: 40px;
  height: var(--hdr);
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__mark { width: 26px; height: 47px; color: var(--navy-500); transition: color 0.35s; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand__name {
  font-family: var(--f-sans);
  font-size: 15px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink); transition: color 0.35s;
}
.brand__sub {
  font-size: 9px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate-2); transition: color 0.35s;
}

.nav { display: flex; align-items: center; gap: 34px; margin-inline-start: auto; }
.nav__link {
  position: relative; font-size: 13.5px; font-weight: 450;
  color: var(--ink); padding: 6px 0; letter-spacing: 0.005em;
  transition: color 0.25s;
}
.nav__link::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 500; }

.hdr__cta { margin-inline-start: 6px; }
.hdr__tools { display: flex; align-items: center; gap: 14px; }

/* language switcher — a two-segment pill, always visible */
.lang {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 2px; border: 1px solid var(--line); border-radius: 40px;
}
.lang__btn {
  padding: 7px 11px; border-radius: 40px; border: 0;
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
  color: var(--slate); cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang__btn[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", var(--f-sans);
  font-size: 12px; letter-spacing: 0;
}
.hdr--over .lang { border-color: rgba(255, 255, 255, 0.26); }
.hdr--over .lang__btn { color: rgba(255, 255, 255, 0.72); }
.hdr--over .lang__btn:hover { color: #fff; }
.hdr--over .lang__btn[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* transparent over hero */
.hdr--over { border-bottom-color: transparent; }
.hdr--over .brand__mark { color: rgba(255, 255, 255, 0.9); }
.hdr--over .brand__name { color: #fff; }
.hdr--over .brand__sub { color: rgba(255, 255, 255, 0.5); }
.hdr--over .nav__link { color: rgba(255, 255, 255, 0.78); }
.hdr--over .nav__link:hover { color: #fff; }
.hdr--over .btn--solid { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.hdr--over .btn--solid:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hdr--over .burger span { background: #fff; }

.hdr--solid {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-2);
}
.hdr--solid .brand__mark { color: var(--navy-500); }

/* burger */
.burger {
  display: none; width: 44px; height: 44px; margin-inline-end: -10px;
  position: relative; align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 22px; height: 1.4px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
  position: absolute;
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
body.nav-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: rotate(-45deg); }
body.nav-open .burger span { background: #fff !important; }

/* drawer */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink);
  padding: calc(var(--hdr) + 24px) var(--gut) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.4s var(--ease);
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  font-family: var(--f-display); font-size: 1.9rem; font-weight: 300;
  color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 14px; }
.drawer__foot .btn { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  color: #fff;
  padding: calc(var(--hdr) + clamp(56px, 8vw, 104px)) 0 0;
  min-height: min(94vh, 940px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.03);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 23, 0.66) 0%, rgba(6, 17, 23, 0) 30%),
    linear-gradient(96deg, rgba(6, 17, 23, 0.93) 0%, rgba(9, 23, 30, 0.82) 32%, rgba(12, 30, 39, 0.34) 62%, rgba(12, 30, 39, 0.44) 100%),
    linear-gradient(0deg, rgba(6, 17, 23, 0.8) 0%, rgba(6, 17, 23, 0) 46%);
}
.hero__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.hero .eyebrow { color: rgba(255, 255, 255, 0.62); }
.hero .eyebrow::before { background: rgba(255, 255, 255, 0.5); }
.hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 0.99; letter-spacing: -0.03em;
  color: #fff; margin-top: 26px;
  max-width: 17ch; text-wrap: balance;
}
.hero__title em { font-style: italic; color: rgba(255, 255, 255, 0.82); }
.hero__lead {
  margin-top: 26px; max-width: 50ch;
  font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.66;
  color: rgba(255, 255, 255, 0.72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* hero stat bar */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: clamp(46px, 6vw, 76px);
}
.stat { padding-block: 26px 30px; padding-inline: 26px 0; border-inline-end: 1px solid rgba(255, 255, 255, 0.1); }
.stat:last-child { border-inline-end: 0; }
.stat__k {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.1; color: #fff;
  letter-spacing: -0.015em;
}
.stat__l {
  margin-top: 8px; font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.76);
  line-height: 1.5; max-width: 22ch;
}

/* page hero (interior pages) */
.phero {
  position: relative; isolation: isolate; color: #fff;
  padding: calc(var(--hdr) + clamp(58px, 8vw, 96px)) 0 clamp(46px, 6vw, 76px);
  overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 23, 0.66) 0%, rgba(6, 17, 23, 0) 34%),
    linear-gradient(96deg, rgba(6, 17, 23, 0.95) 0%, rgba(9, 23, 30, 0.88) 46%, rgba(12, 30, 39, 0.62) 100%);
}
.phero .h1 { color: #fff; max-width: 20ch; margin-top: 22px; }
.phero__lead { margin-top: 22px; max-width: 54ch; color: rgba(255, 255, 255, 0.7); font-size: 1.04rem; }
.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: 0.5; }

/* ---------- section heads ---------- */
.shead { display: grid; gap: 20px; max-width: 760px; align-content: start; }
.shead--center { margin: 0 auto; text-align: center; justify-items: center; }
.shead--center .eyebrow::before { display: none; }
.shead--center .eyebrow { justify-content: center; }
.shead__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.shead__row .lead { max-width: 44ch; margin-bottom: 4px; }

.split {
  display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
  gap: clamp(32px, 6vw, 92px); align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--rev > *:first-child { order: 2; }

.prose p + p { margin-top: 18px; }
.prose p { color: var(--body); max-width: 62ch; }
.prose--lg p { font-size: 1.05rem; line-height: 1.72; }
.sec--navy .prose p { color: rgba(255, 255, 255, 0.7); }

/* ---------- hairline card grid ---------- */
.grid-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gcard {
  background: var(--white);
  padding: clamp(26px, 2.6vw, 36px) clamp(22px, 2.4vw, 34px) clamp(30px, 3vw, 42px);
  position: relative;
}
.grid-cards--4 .gcard { padding: 30px 26px 36px; }
.gcard__ico { width: 28px; height: 28px; color: var(--navy-500); margin-bottom: 22px; }
.gcard__ico svg { width: 100%; height: 100%; }
.gcard .h4 { margin-bottom: 10px; }
.gcard p { font-size: 0.935rem; line-height: 1.64; color: var(--slate); max-width: 34ch; }
.sec--paper .gcard, .sec--paper-2 .gcard { background: var(--white); }
.sec--navy .grid-cards { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.13); }
.sec--navy .gcard { background: var(--ink); }
.sec--navy .gcard p { color: rgba(255, 255, 255, 0.6); }
.sec--navy .gcard__ico { color: var(--mist); }

/* numbered list rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.row__n {
  font-family: var(--f-mono); font-size: 12px; color: var(--slate-2);
  padding-top: 6px; letter-spacing: 0.08em;
}
.row__t { font-family: var(--f-display); font-size: 1.42rem; font-weight: 300; color: var(--ink); line-height: 1.2; }
.row p { font-size: 0.95rem; color: var(--slate); max-width: 52ch; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.step { padding-block: 30px 0; padding-inline: 28px 0; border-inline-end: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
.step:last-child { border-inline-end: 0; }
.step__n {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.42); display: block; margin-bottom: 40px;
}
.step .h4 { color: #fff; margin-bottom: 10px; }
.step p { font-size: 0.9rem; line-height: 1.62; color: rgba(255, 255, 255, 0.58); }

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink-2); color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden; position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--ink-2), transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; flex: none; }
.tick {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 0; margin-inline-end: 40px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
}
.tick__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.tick__live { width: 5px; height: 5px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(95, 143, 125, 0.18); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl caption {
  text-align: start; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate); padding-bottom: 16px;
}
.tbl th, .tbl td { text-align: start; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tbl thead th {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-2); padding-bottom: 12px;
}
.tbl td:last-child, .tbl th:last-child { text-align: end; }
.tbl td:last-child { font-family: var(--f-mono); font-size: 0.86rem; color: var(--ink); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { padding-inline-end: 24px; color: var(--ink); }
.tbl td small { display: block; color: var(--slate); font-size: 0.8rem; margin-top: 3px; }
.tbl--kv td:first-child { width: 34%; color: var(--slate); font-size: 0.86rem; letter-spacing: 0.01em; }
.tbl--kv td:last-child, .tbl--kv th:last-child {
  text-align: start; font-family: var(--f-sans); font-size: 0.95rem;
  white-space: normal; color: var(--body); line-height: 1.55;
}
.tbl--cmp { table-layout: fixed; }
.tbl--cmp th:first-child, .tbl--cmp td:first-child { width: 38%; }
.tbl--cmp th:nth-child(2), .tbl--cmp th:nth-child(3) { width: 31%; }
.tbl--cmp td:last-child, .tbl--cmp th:last-child {
  text-align: start; font-family: var(--f-sans); font-size: 0.93rem;
  white-space: normal; color: var(--body);
}
.tbl--navy th, .tbl--navy td { border-color: rgba(255, 255, 255, 0.13); }
.tbl--navy td:first-child, .tbl--navy td:last-child { color: #fff; }

/* ---------- media blocks ---------- */
.figure { position: relative; overflow: hidden; background: var(--paper-2); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.03); }
.figure--43 { aspect-ratio: 4 / 3; }
.figure--169 { aspect-ratio: 16 / 9; }
.figure--11 { aspect-ratio: 1 / 1; }
.figure--tall { aspect-ratio: 3 / 4; }
.figure__cap {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 16px 20px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(0deg, rgba(6, 17, 23, 0.8), transparent);
}

/* pull quote */
.quote {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.5rem, 2.9vw, 2.35rem); line-height: 1.28;
  letter-spacing: -0.02em; color: var(--ink); max-width: 26ch;
}
.quote em { font-style: italic; }
.quote__by {
  margin-top: 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--slate);
}

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  background: var(--white); padding: 34px 30px 38px;
  display: flex; flex-direction: column; gap: 14px;
  grid-column: span 2; position: relative; overflow: hidden;
  transition: background 0.4s var(--ease), color 0.4s;
}
.svc:nth-child(1), .svc:nth-child(2) { grid-column: span 3; }
.svc:hover { background: var(--paper); }
.svc__n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--slate-2); }
.svc__t { font-family: var(--f-display); font-weight: 300; font-size: 1.5rem; line-height: 1.16; color: var(--ink); letter-spacing: -0.015em; }
.svc__d { font-size: 0.92rem; line-height: 1.62; color: var(--slate); }
.svc__go { margin-top: auto; padding-top: 18px; }
.svc__go .link { font-size: 0.82rem; letter-spacing: 0.02em; }

/* service detail */
.svc-detail { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); }
.svc-detail__n { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--slate-2); margin-bottom: 18px; display: block; }
.svc-detail .h3 { max-width: 16ch; }
.svc-detail__body p { color: var(--body); max-width: 60ch; }
.svc-detail__body p + p { margin-top: 16px; }
.ticks { margin-top: 26px; display: grid; gap: 0; }
.ticks li {
  display: flex; gap: 14px; padding: 11px 0;
  border-top: 1px solid var(--line-2); font-size: 0.925rem; color: var(--body);
}
.ticks li::before {
  content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px;
  background: var(--navy-500); transform: rotate(45deg);
}
.ticks--navy li { border-top-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.72); }
.ticks--navy li::before { background: var(--mist); }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px;
  padding: 26px 0; text-align: start;
}
.acc__q {
  font-family: var(--f-display); font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 300; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em;
}
.acc__ico { flex: none; width: 15px; height: 15px; margin-top: 7px; position: relative; }
.acc__ico::before, .acc__ico::after {
  content: ""; position: absolute; background: var(--slate); transition: transform 0.4s var(--ease), background 0.3s;
}
.acc__ico::before { left: 0; top: 50%; width: 100%; height: 1px; margin-top: -0.5px; }
.acc__ico::after { top: 0; left: 50%; height: 100%; width: 1px; margin-left: -0.5px; }
.acc__item.is-open .acc__ico::after { transform: scaleY(0); }
.acc__item.is-open .acc__ico::before { background: var(--ink); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__body { padding-block: 0 30px; padding-inline: 0 56px; color: var(--body); font-size: 0.96rem; }
.acc__body p + p { margin-top: 14px; }
.acc__body ul { margin-top: 12px; display: grid; gap: 8px; }
.acc__body ul li { position: relative; padding-inline-start: 18px; }
.acc__body ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 5px; height: 5px;
  background: var(--navy-500); transform: rotate(45deg);
}

/* ---------- legal tabs ---------- */
.legal { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal__nav { position: sticky; top: calc(var(--hdr) + 32px); border-top: 1px solid var(--line); }
.legal__nav button {
  display: block; width: 100%; text-align: start; padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.875rem; color: var(--slate); transition: color 0.25s, padding 0.3s var(--ease);
  line-height: 1.45;
}
.legal__nav button:hover { color: var(--ink); }
.legal__nav button[aria-selected="true"] { color: var(--ink); font-weight: 500; padding-inline-start: 12px; border-inline-start: 1px solid var(--ink); }
.legal__panel[hidden] { display: none; }
.legal__panel { animation: fade 0.45s var(--ease); }
.legal__panel h2, .legal__panel h3 { margin-bottom: 18px; }
.legal__panel p { color: var(--body); max-width: 68ch; }
.legal__panel p + p { margin-top: 16px; }
.legal__panel ul { margin-top: 14px; display: grid; gap: 8px; }
.legal__panel li { position: relative; padding-inline-start: 18px; color: var(--body); }
.legal__panel li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 5px; height: 5px; background: var(--navy-500); transform: rotate(45deg); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font-family: inherit; font-size: 0.98rem; color: var(--ink);
  border-radius: 0; transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 13px) 21px, calc(100% - 8px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 26px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--mist); }
.form__note { font-size: 0.8rem; color: var(--slate-2); line-height: 1.6; }
.form__ok {
  display: none; padding: 16px 18px; background: rgba(95, 143, 125, 0.09);
  border-inline-start: 2px solid var(--live); font-size: 0.9rem; color: var(--body);
}
.form.is-sent .form__ok { display: block; }

/* ---------- CTA band ---------- */
.cta { position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 17, 23, 0.94) 0%, rgba(6, 17, 23, 0.8) 52%, rgba(6, 17, 23, 0.45) 100%); }
.cta__in { padding: clamp(56px, 7vw, 92px) 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.cta .h2 { color: #fff; max-width: 20ch; }
.cta p { color: rgba(255, 255, 255, 0.66); margin-top: 16px; max-width: 46ch; }

/* ---------- contact blocks ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-cell { background: #fff; padding: 30px 28px 34px; }
.contact-cell__k { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 14px; }
.contact-cell p { font-size: 0.95rem; color: var(--ink); line-height: 1.6; }
.contact-cell a:hover { color: var(--navy-500); }
/* secondary address under a primary one: label and address need real space, not
   inline adjacency — without this the cell renders "CEOm.alnassar@q8.capital" */
.email-sub { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: rgba(255, 255, 255, 0.55); padding-top: clamp(56px, 6vw, 84px); }
.ftr__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 56px; }
.ftr .brand__name { color: #fff; }
.ftr .brand__sub { color: rgba(255, 255, 255, 0.42); }
.ftr .brand__mark { color: rgba(255, 255, 255, 0.85); }
.ftr__blurb { margin-top: 22px; font-size: 0.9rem; line-height: 1.68; max-width: 34ch; }
.ftr__h { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); margin-bottom: 18px; }
.ftr__links { display: grid; gap: 11px; font-size: 0.9rem; }
.ftr__links a { transition: color 0.25s; }
.ftr__links a:hover { color: #fff; }
.ftr__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0 26px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11.5px; color: rgba(255, 255, 255, 0.4);
}
.ftr__bar a:hover { color: #fff; }
.ftr__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.ftr__note { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; line-height: 1.7; color: rgba(255, 255, 255, 0.32); max-width: 100%; }

/* ---------- misc ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate);
}
.sec--navy .badge, .hero .badge, .phero .badge { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.62); }
.badge__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--live); }

.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  border: 1px solid var(--line); background: #fff;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.doc:hover { border-color: var(--navy-500); transform: translateY(-2px); }
.doc__ico { width: 26px; height: 32px; flex: none; color: var(--navy-500); }
.doc__t { display: block; font-size: 0.92rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.doc__m { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate-2); margin-top: 6px; }

.note {
  border-inline-start: 2px solid var(--navy-500); padding-block: 4px; padding-inline: 20px 0;
  font-size: 0.9rem; color: var(--slate); max-width: 60ch;
}

.person { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.person__card { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 40px 34px 34px; }
.person__mono {
  font-family: var(--f-display); font-weight: 300; font-size: 3.4rem;
  letter-spacing: -0.02em; color: var(--navy-500); line-height: 1;
}
.person__name { font-family: var(--f-display); font-size: 1.55rem; font-weight: 300; color: var(--ink); margin-top: 24px; }
.person__role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin-top: 10px; }
.person__meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.85rem; color: var(--slate); }
.person__meta a { color: var(--ink); margin-top: 6px; }
.person__bio p { color: var(--body); max-width: 62ch; font-size: 1.02rem; line-height: 1.72; }
.person__bio p + p { margin-top: 18px; }
.person__bio .h3 { margin-bottom: 22px; }

/* reveal */
/* reveal — only hidden when JS is available, so content never disappears */
.js .rv { opacity: 0; transform: perspective(1100px) translate3d(0, 26px, -40px) rotateX(4deg); transform-origin: 50% 100%; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
/* if the script never boots, never leave content invisible */
.no-reveal .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
.rv[data-d="1"] { transition-delay: 0.08s; }
.rv[data-d="2"] { transition-delay: 0.16s; }
.rv[data-d="3"] { transition-delay: 0.24s; }
.rv[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker__track { animation: none; }
  .figure img, .btn svg, .link svg { transition: none; }
}

/* ---------- site personality ---------- */
/* Securities leans technical: mono labels, tighter tracking, more data. */
[data-site="securities"] .hero__title { letter-spacing: -0.035em; }
[data-site="securities"] .eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; }
[data-site="securities"] .stat__k { font-family: var(--f-mono); font-weight: 400; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
[data-site="securities"] .svc__n,
[data-site="securities"] .step__n { color: var(--slate); }

/* Capital leans editorial: larger serif, softer rules. */
[data-site="capital"] .hero__title { max-width: 15ch; }
[data-site="capital"] .h2 { letter-spacing: -0.025em; }

/* ---------- process flow ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.flow__i { position: relative; padding-block: 30px 0; padding-inline: 28px 0; border-inline-end: 1px solid var(--line); }
.flow__i + .flow__i { padding-inline-start: 28px; }
.flow__i:last-child { border-inline-end: 0; padding-inline-end: 0; }
.flow__i::before {
  content: ""; position: absolute; top: -4px; inset-inline-start: 0; width: 7px; height: 7px;
  background: var(--navy-500); transform: rotate(45deg);
}
.flow__i + .flow__i::before { inset-inline-start: 27px; }
.flow__i p { margin-top: 8px; max-width: 30ch; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; padding: 9px 16px;
  border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.03em;
  color: var(--slate); transition: border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: var(--navy-500); color: var(--ink); }
.sec--navy .chip { border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.72); }
.sec--navy .chip:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

/* ---------- statement ---------- */
.statement { border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 46px); }
.statement .quote { max-width: 24ch; font-size: clamp(1.55rem, 3.2vw, 2.6rem); }
.sec--navy .statement { border-top-color: rgba(255, 255, 255, 0.14); }
.sec--navy .quote, .sec--navy .quote__by { color: #fff; }
.sec--navy .quote__by { color: rgba(255, 255, 255, 0.45); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  :root { --gut: 26px; }
  .nav { gap: 24px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--rev > *:first-child { order: 0; }
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .legal__nav button {
    border: 1px solid var(--line); padding: 11px 16px; border-radius: 40px;
    font-size: 0.82rem; width: auto; min-height: 42px; display: flex; align-items: center;
  }
  .legal__nav button[aria-selected="true"] { padding-inline-start: 14px; border-inline-start: 1px solid var(--ink); background: var(--ink); color: #fff; border-color: var(--ink); }
  .person { grid-template-columns: 1fr; }
  .person__card { max-width: 420px; }
  .svc-detail { grid-template-columns: 1fr; gap: 24px; }
  .svc-detail .h3 { max-width: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  :root { --hdr: 72px; }
  .nav, .hdr__cta { display: none; }
  .burger { display: flex; margin-inline-start: auto; }
  .hero { min-height: 0; padding-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-inline-end: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-block: 22px; padding-inline: 20px 0; }
  .stat:nth-child(2n) { padding-inline-start: 20px; border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
  .stat:nth-child(n + 3) { border-bottom: 0; }
  .grid-cards, .grid-cards--2, .grid-cards--4 { grid-template-columns: 1fr; }
  .gcard, .grid-cards--4 .gcard { padding: 26px 22px 30px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__i, .flow__i + .flow__i { padding-block: 26px; padding-inline: 22px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .flow__i:nth-child(2n) {
    padding-inline-start: 22px; padding-inline-end: 0;
    border-inline-start: 1px solid var(--line); border-inline-end: 0;
  }
  .flow__i:nth-last-child(-n + 2) { border-bottom: 0; }
  .flow__i::before, .flow__i + .flow__i::before { inset-inline-start: 0; }
  .flow__i + .flow__i::before { inset-inline-start: 21px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-inline-end: 0; padding-block: 26px; padding-inline: 20px 0; }
  .step:nth-child(2n) { padding-inline-start: 20px; border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
  .step__n { margin-bottom: 24px; }
  .row { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .row p { grid-column: 2; margin-top: 8px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(1), .svc:nth-child(2) { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .form__row { grid-template-columns: 1fr; }
  .tbl td:first-child { padding-inline-end: 12px; }
}

@media (max-width: 560px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .step:nth-child(2n) { padding-inline-start: 0; border-inline-start: 0; }
  .ftr__top { grid-template-columns: 1fr; }
  .brand__mark { width: 22px; height: 40px; }
  .brand__name { font-size: 13px; }
  .acc__body { padding-inline-end: 24px; }
}

/* ---------- small-screen refinements ---------- */

/* the comparison table cannot hold three columns on a phone — stack it */
@media (max-width: 700px) {
  .tbl--cmp { table-layout: auto; }
  .tbl--cmp thead { display: none; }
  .tbl--cmp, .tbl--cmp tbody, .tbl--cmp tr, .tbl--cmp td { display: block; width: 100%; }
  .tbl--cmp tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .tbl--cmp tr:first-child { padding-top: 4px; }
  .tbl--cmp tr:last-child { border-bottom: 0; }
  .tbl--cmp td { border: 0; padding: 0; }
  .tbl--cmp td:first-child { font-weight: 500; color: var(--ink); margin-bottom: 8px; }
  .tbl--cmp td:nth-child(2), .tbl--cmp td:nth-child(3) {
    display: flex; gap: 12px; font-size: 0.92rem; padding: 3px 0;
  }
  .tbl--cmp td:nth-child(2)::before, .tbl--cmp td:nth-child(3)::before {
    flex: none; width: 92px; padding-top: 2px;
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2);
  }
  .tbl--cmp td:nth-child(2)::before { content: "Direct"; }
  .tbl--cmp td:nth-child(3)::before { content: "Sub-broker"; }
}

@media (max-width: 900px) {
  /* keep the photograph but guarantee the text stays readable */
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(6, 17, 23, 0.78) 0%, rgba(8, 22, 29, 0.58) 38%, rgba(6, 17, 23, 0.92) 100%);
  }
  .svc-detail .gcard__ico { margin-top: 16px; margin-bottom: 2px; }
}

@media (max-width: 640px) {
  /* forms: an underline reads as empty space on a phone, so box the fields */
  .form { gap: 16px; }
  .form__row { gap: 16px; }
  .field { gap: 6px; }
  .field label { font-size: 10.5px; }
  .field input, .field textarea, .field select {
    padding: 13px 14px; border: 1px solid var(--line); border-radius: 2px;
    background: var(--white); font-size: 16px;
  }
  .field textarea { min-height: 132px; }
  .field select {
    background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  }
  .field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--navy-500);
  }

  /* full-width call-to-action buttons instead of a ragged wrap */
  .cta__in > div:last-child { width: 100%; flex-direction: column; }
  .cta__in .btn { width: 100%; }

  .svc-detail { padding: 32px 0; }
  .person__card { padding: 30px 24px 26px; }
}

@media (max-width: 560px) {
  /* long button labels must wrap rather than push the layout wider */
  .btn { white-space: normal; max-width: 100%; text-align: center; }

  /* long button labels must wrap rather than push the layout wider */
  .btn { white-space: normal; max-width: 100%; text-align: center; }

  .hero__title { font-size: clamp(1.95rem, 8.4vw, 2.45rem); }
  .hero__lead { font-size: 0.95rem; line-height: 1.62; margin-top: 20px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { padding: 14px 20px; }
  .stats { margin-top: 32px; }
  .stat { padding-block: 18px; padding-inline: 16px 0; }
  .stat:nth-child(2n) { padding-inline-start: 16px; }
  .stat__k { font-size: 1.3rem; }
  .stat__l { font-size: 10px; letter-spacing: 0.11em; }

  /* four steps stack cleanly instead of squeezing into two columns */
  .flow { grid-template-columns: 1fr; }
  .flow__i, .flow__i + .flow__i {
    padding: 22px 0; border-inline: 0;
    border-bottom: 1px solid var(--line);
  }
  .flow__i:last-child { border-bottom: 0; }
  .flow__i::before, .flow__i + .flow__i::before { left: 0; }

  .h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
  .lead { font-size: 0.98rem; }
  .sec { padding: 56px 0; }
  .phero { padding-bottom: 40px; }
  .phero__lead { font-size: 0.95rem; }
}
/* ==========================================================================
   POLISH & MOTION
   A layered pass over the base system: entrance choreography, scroll depth,
   tactile hover states and a few quiet details. Nothing here changes layout.
   ========================================================================== */

/* ---------- scrollbar + reading progress ---------- */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: #bfcacf transparent; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5d9; border: 3px solid #fff; border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #a9bac3; }

.progress {
  position: fixed; top: 0; inset-inline: 0; height: 2px;
  z-index: 220; pointer-events: none; opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.progress > span {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #7d919c 0%, #2c4d5c 45%, #d6e0e4 100%);
}

/* ---------- header: auto-hide, depth, sharper state ---------- */
.hdr { will-change: transform; transition: background 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.hdr--hide { transform: translateY(-102%); }
.hdr--solid { box-shadow: 0 1px 0 rgba(11, 26, 34, 0.05), 0 18px 40px -34px rgba(11, 26, 34, 0.5); }
.nav__link::after { transition: transform 0.45s var(--ease); }

/* ---------- hero: slow drift, spotlight, choreographed entrance ---------- */
.hero__bg, .phero__bg { inset: -80px 0; }

.hero__bg img { animation: heroDrift 24s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.phero__bg img { animation: pheroDrift 28s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes heroDrift {
  from { transform: scale(1.11) translate3d(0, 16px, 0); }
  to { transform: scale(1.02) translate3d(0, 0, 0); }
}
@keyframes pheroDrift {
  from { transform: scale(1.08); }
  to { transform: scale(1.01); }
}

.hero { --mx: 74%; --my: 24%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(44rem 44rem at var(--mx) var(--my), rgba(255, 255, 255, 0.09), transparent 62%);
  opacity: 0; transition: opacity 0.9s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero:hover::after { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes titleIn {
  0% { opacity: 0; transform: translate3d(0, 26px, 0); clip-path: inset(0 -12% 100% -12%); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; clip-path: inset(-15% -12% -18% -12%); }
}

.js .hero .eyebrow { animation: riseIn 0.9s var(--ease) 0.08s both; }
.js .hero__title { animation: titleIn 1.2s var(--ease) 0.16s both; }
.js .hero__lead { animation: riseIn 0.95s var(--ease) 0.32s both; }
.js .hero__actions { animation: riseIn 0.95s var(--ease) 0.44s both; }
.js .hero .stats { animation: riseIn 1s var(--ease) 0.56s both; }
.js .phero .crumbs { animation: riseIn 0.8s var(--ease) 0.04s both; }
.js .phero .h1 { animation: titleIn 1.08s var(--ease) 0.12s both; }
.js .phero__lead { animation: riseIn 0.92s var(--ease) 0.26s both; }
.js .phero .badge { animation: riseIn 0.9s var(--ease) 0.34s both; }

/* ---------- stats ---------- */
.stat { transition: border-color 0.4s var(--ease); }
.stat__k { font-variant-numeric: lining-nums tabular-nums; }
.stat__l { transition: color 0.4s var(--ease); }
.stat:hover .stat__l { color: #fff; }

/* ---------- cards: hairline accent, quiet lift ---------- */
.gcard { transition: background 0.5s var(--ease); }
.gcard::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--navy-500), rgba(65, 91, 105, 0));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.65s var(--ease);
}
.gcard:hover { background: #fcfbf8; }
.gcard:hover::before { transform: scaleX(1); }
.sec--paper .gcard:hover, .sec--paper-2 .gcard:hover { background: #fdfcf9; }
.sec--navy .gcard:hover { background: #0e2029; }
.gcard__ico { transition: transform 0.5s var(--ease); }
.gcard:hover .gcard__ico { transform: translateY(-3px); }

/* ---------- service tiles ---------- */
.svc::before {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--navy-500), rgba(65, 91, 105, 0));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.65s var(--ease);
}
.svc:hover::before { transform: scaleX(1); }
.svc__t { transition: transform 0.5s var(--ease); }
.svc:hover .svc__t { transform: translateY(-2px); }

/* ---------- documents ---------- */
.doc__ico { transition: transform 0.45s var(--ease), color 0.3s; }
.doc:hover .doc__ico { transform: translateY(-2px); color: var(--ink); }

/* ---------- numbered rows + tables ---------- */
.row__n { transition: color 0.3s; }
.row:hover { background: rgba(23, 50, 63, 0.028); }
.row:hover .row__n { color: var(--navy-500); }
.tbl tbody tr { transition: background 0.3s; }
.tbl tbody tr:hover { background: rgba(23, 50, 63, 0.025); }
.tbl--navy tbody tr:hover { background: rgba(255, 255, 255, 0.045); }
.tbl--navy tbody tr:hover td { border-color: rgba(255, 255, 255, 0.2); }

/* ---------- chips ---------- */
.chip { transition: border-color 0.25s, color 0.25s, transform 0.35s var(--ease), background 0.35s; }
.chip:hover { transform: translateY(-2px); }

/* ---------- buttons: sheen ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; z-index: -1; top: -70%; bottom: -70%; left: -35%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-280%) skewX(-18deg);
  transition: transform 0.85s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(620%) skewX(-18deg); }
.btn--light::after, .btn--outline::after {
  background: linear-gradient(100deg, transparent, rgba(23, 50, 63, 0.11), transparent);
}

/* ---------- figures: curtain reveal + caption drift ---------- */
.js .figure.rv {
  clip-path: inset(0 0 14% 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 1.1s var(--ease);
}
.js .figure.rv.is-in { clip-path: inset(0 0 -0.5% 0); }
.figure__cap { transition: transform 0.6s var(--ease); }
.figure:hover .figure__cap { transform: translateY(-2px); }

/* ---------- accordion ---------- */
.acc__ico { transition: transform 0.5s var(--ease); }
.acc__item.is-open .acc__ico { transform: rotate(180deg); }
.acc__q { transition: color 0.3s; }
.acc__item.is-open .acc__q { color: var(--navy); }
.acc__item.is-open .acc__body { animation: panelIn 0.5s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- revealed content, softened ---------- */
.js .rv {
  opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(5px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease), filter 0.95s var(--ease);
  will-change: opacity, transform;
}
.js .rv.is-in { opacity: 1; transform: none; filter: none; }
.js .rv .eyebrow::before {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.85s var(--ease) 0.12s;
}
.js .rv.is-in .eyebrow::before { transform: scaleX(1); }

/* ---------- dark surfaces: depth instead of flat ink ---------- */
.sec--navy {
  background:
    radial-gradient(130% 150% at 88% -25%, #17343f 0%, rgba(23, 52, 63, 0) 62%),
    var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}
.ftr {
  background: radial-gradient(135% 130% at 82% -35%, #132c37 0%, rgba(19, 44, 55, 0) 58%), #0a1820;
}
.cta__bg img { transform: scale(1.04); }

/* ---------- live indicators ---------- */
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(95, 143, 125, 0.45); }
  55% { box-shadow: 0 0 0 6px rgba(95, 143, 125, 0); }
}
.tick__live, .badge__dot { animation: pulseRing 2.8s ease-in-out infinite; }

/* ---------- footer links ---------- */
.ftr__links a { position: relative; width: fit-content; }
.ftr__links a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease);
}
.ftr__links a:hover::after { transform: scaleX(1); }

/* ---------- copy setting ---------- */
.prose p, .lead, .gcard p, .row p, .svc__d, .acc__body { text-wrap: pretty; }
.small, .note { text-wrap: pretty; }

/* ---------- small screens: keep the motion cheap ---------- */
@media (max-width: 900px) {
  .hero__bg, .phero__bg { inset: -44px 0; }
  .js .rv { filter: none; }
  .js .figure.rv, .js .figure.rv.is-in { clip-path: none; }
}
@media (max-width: 700px) {
  .hero__bg img, .phero__bg img { animation: none; transform: scale(1.02); }
}

/* ---------- reduced motion: keep the site alive, without travel ---------- */
@media (prefers-reduced-motion: reduce) {
  .hdr { transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
  .hdr--hide { transform: none; }
  .hero::after { display: none; }
  .hero__bg img, .phero__bg img, .cta__bg img { animation: none !important; transform: none !important; }
  /* the entrance choreography degrades to a plain fade — still visible, but with no movement */
  .js .hero .eyebrow, .js .hero__lead, .js .hero__actions, .js .hero .stats,
  .js .phero .crumbs, .js .phero__lead, .js .phero .badge { animation: fadeOnly 0.55s ease both; }
  .js .hero__title, .js .phero .h1 { animation: fadeOnly 0.65s ease both; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
  /* revealed blocks still fade in — the base sheet switched transitions off entirely */
  .js .rv {
    opacity: 0 !important; transform: none !important; filter: none !important;
    transition: opacity 0.7s var(--ease) !important;
  }
  .js .rv.is-in { opacity: 1 !important; }
  .js .figure.rv, .js .figure.rv.is-in { clip-path: none !important; }
  .acc__item.is-open .acc__body { animation: none; }
  .tick__live, .badge__dot { animation: none; }
  .btn::after { display: none; }
}


/* ---------- 3D depth (progressive enhancement) ----------
   Pointer tilt is written inline by site.js. While a tilt is running we must
   not let the reveal/hover transitions interpolate the transform as well. */
.is-tilting { transition: none !important; }

.figure { transition: box-shadow 0.45s var(--ease); }
.person__card { transition: box-shadow 0.45s var(--ease); }
.doc { transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.45s var(--ease); }

.figure.is-tilting,
.person__card.is-tilting,
.doc.is-tilting { box-shadow: 0 26px 48px -24px rgba(11, 26, 34, 0.38); }
.sec--navy .figure.is-tilting { box-shadow: 0 26px 48px -20px rgba(0, 0, 0, 0.55); }

/* lifted tiles float above the hairline grid */
.svc.is-tilting,
.gcard.is-tilting,
.contact-cell.is-tilting {
  position: relative; z-index: 3;
  box-shadow: 0 28px 52px -26px rgba(11, 26, 34, 0.42);
}
.sec--navy .svc.is-tilting,
.sec--navy .gcard.is-tilting { box-shadow: 0 28px 52px -22px rgba(0, 0, 0, 0.58); }

/* the whole hero is a shallow 3D stage */
@media (hover: hover) and (pointer: fine) {
  .hero { perspective: 1500px; }
  .hero__bg, .hero__in { transform-style: preserve-3d; }
}

@media (prefers-reduced-motion: reduce) {
  .is-tilting { transform: none !important; box-shadow: none !important; }
}

/* ==========================================================================
   LANGUAGE — ARABIC (RTL)
   The sheet is written in logical properties, so the mirroring is mostly free.
   What is left below is the work direction cannot do on its own: the script
   itself, tracking, gradient lighting, arrow glyphs and animation origins.
   ========================================================================== */

/* the dictionary has not been applied yet — hold the English paint back */
html[data-i18n-pending] body { opacity: 0; }
body { transition: opacity 0.18s ease; }

/* ---------- Arabic type ---------- */
html[dir="rtl"] {
  --f-display: "Noto Naskh Arabic", "Newsreader", Georgia, serif;
  --f-sans: "IBM Plex Sans Arabic", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Sans Arabic", "IBM Plex Mono", ui-monospace, monospace;
}

/* Arabic is a joined script: tracking pulls the letters apart and caps do
   nothing at all, so both are switched off wherever copy is set. */
html[dir="rtl"] :is(
  .eyebrow, .h1, .h2, .h3, .h4, .lead, .prose p, .note, .small, .quote, .quote__by,
  .brand__sub, .nav__link, .btn, .link, .chip, .badge, .crumbs,
  .stat__l, .step__n, .row__n, .svc__n, .doc__m, .ftr__h, .ftr__note, .ftr__rights,
  .contact-cell__k, .field label, .form__note, .person__role, .person__cred,
  .tbl caption, .tbl th, .acc__q, .legal__nav button, .lang__btn,
  .intro__beat .k, .intro__title, .intro__lede, .intro__eyebrow,
  .intro__btn, .intro__skip
) { letter-spacing: normal; text-transform: none; }

html[dir="rtl"] .brand__name { letter-spacing: 0.05em; }

/* the Arabic cuts sit taller and longer than the Latin ones */
html[dir="rtl"] .hero__title,
html[dir="rtl"] .h1 { line-height: 1.24; max-width: 22ch; }
html[dir="rtl"] .h2 { line-height: 1.32; }
html[dir="rtl"] .h3 { line-height: 1.45; }
html[dir="rtl"] .phero .h1 { max-width: 24ch; }
html[dir="rtl"] .hero__lead,
html[dir="rtl"] .phero__lead { line-height: 1.8; }
html[dir="rtl"] .stat__k { letter-spacing: normal; }

/* the monogram slot holds an Arabic job title in translation, not initials */
html[dir="rtl"] .person__mono {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.35; letter-spacing: normal;
}

/* Arabic sets wider than Latin at the same size: give the measured widths room */
html[dir="rtl"] .stat__l { max-width: 26ch; }
html[dir="rtl"] .quote { max-width: 30ch; }
html[dir="rtl"] .svc-detail .h3 { max-width: 22ch; }
html[dir="rtl"] .gcard p,
html[dir="rtl"] .svc__d { max-width: 38ch; }
html[dir="rtl"] .ftr__blurb { max-width: 38ch; }

/* ---------- arrows point the way the reader is going ---------- */
html[dir="rtl"] .link svg,
html[dir="rtl"] .btn svg,
html[dir="rtl"] .card__go svg { transform: scaleX(-1); }
html[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- light comes from the other side ---------- */
html[dir="rtl"] .hero__bg::after {
  background:
    linear-gradient(180deg, rgba(6, 17, 23, 0.66) 0%, rgba(6, 17, 23, 0) 30%),
    linear-gradient(264deg, rgba(6, 17, 23, 0.93) 0%, rgba(9, 23, 30, 0.82) 32%, rgba(12, 30, 39, 0.34) 62%, rgba(12, 30, 39, 0.44) 100%),
    linear-gradient(0deg, rgba(6, 17, 23, 0.8) 0%, rgba(6, 17, 23, 0) 46%);
}
html[dir="rtl"] .phero__bg::after {
  background:
    linear-gradient(180deg, rgba(6, 17, 23, 0.66) 0%, rgba(6, 17, 23, 0) 34%),
    linear-gradient(264deg, rgba(6, 17, 23, 0.95) 0%, rgba(9, 23, 30, 0.88) 46%, rgba(12, 30, 39, 0.62) 100%);
}
html[dir="rtl"] .cta__bg::after {
  background: linear-gradient(270deg, rgba(6, 17, 23, 0.94) 0%, rgba(6, 17, 23, 0.8) 52%, rgba(6, 17, 23, 0.45) 100%);
}
html[dir="rtl"] .sec--navy {
  background:
    radial-gradient(130% 150% at 12% -25%, #17343f 0%, rgba(23, 52, 63, 0) 62%),
    var(--ink);
}
html[dir="rtl"] .ftr {
  background: radial-gradient(135% 130% at 18% -35%, #132c37 0%, rgba(19, 44, 55, 0) 58%), #0a1820;
}

/* ---------- hairlines grow from the reading start ---------- */
html[dir="rtl"] .gcard::before,
html[dir="rtl"] .svc::before {
  background: linear-gradient(270deg, var(--navy-500), rgba(65, 91, 105, 0));
}
html[dir="rtl"] .gcard::before,
html[dir="rtl"] .svc::before,
html[dir="rtl"] .nav__link::after,
html[dir="rtl"] .ftr__links a::after,
html[dir="rtl"] .js .rv .eyebrow::before { transform-origin: right center; }
html[dir="rtl"] .progress > span {
  transform-origin: 100% 50%;
  background: linear-gradient(270deg, #7d919c 0%, #2c4d5c 45%, #d6e0e4 100%);
}

/* the select chevron belongs on the reading-start edge too */
html[dir="rtl"] .field select { background-position: 13px 21px, 8px 21px; }
@media (max-width: 640px) {
  html[dir="rtl"] .field select { background-position: 16px 21px, 11px 21px; }
}

/* ---------- numbers and addresses keep their own direction ----------
   Phone numbers and email addresses are data, not prose: the bidi
   algorithm would otherwise reorder the groups. They are laid out
   left-to-right but still sit against the reading-start edge. */
html[dir="rtl"] :is([href^="tel:"], [href^="mailto:"]) {
  direction: ltr; unicode-bidi: isolate; text-align: right;
}
html[dir="rtl"] .intro__time { direction: ltr; text-align: left; }
html[dir="rtl"] .tbl:not(.tbl--kv):not(.tbl--cmp) td:last-child {
  direction: ltr; text-align: left;
}
