/* Mizanen — site styles. One palette: ink, ivory, gold. */

@font-face { font-family: "Garamond"; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Garamond"; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(fonts/amiri-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Amiri"; src: url(fonts/amiri-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+2010-2011, U+204F, U+2E41; }

:root {
  --ink: #0d0e10;
  --ink-2: #16181b;
  --ink-3: #22252a;
  --ivory: #f4efe5;
  --ivory-2: #ebe5d8;
  --paper: #fffdf8;
  --gold: #c98a24;
  --gold-hi: #e2b45f;
  --gold-deep: #84560c;
  --text: #15171a;
  --muted: #5a626b;
  --rule: #d8d1c2;
  --on-ink: #f4efe5;
  --on-ink-muted: rgba(244, 239, 229, 0.68);
  --on-ink-rule: rgba(244, 239, 229, 0.14);

  --f-display: "Garamond", "Iowan Old Style", Georgia, serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --sec: clamp(88px, 13vw, 176px);
  --r: 14px;
  color-scheme: light;
}
:root[lang="ar"] {
  --f-display: "Amiri", "Garamond", serif;
  --f-ui: "Plex Arabic", "Geist", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 17px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ink { background: var(--ink); color: var(--on-ink); }
.ivory { background: var(--ivory); color: var(--text); }

/* ---------- type ---------- */
.label { font: 500 14.5px/1.45 var(--f-ui); color: var(--muted); }
.ink .label { color: var(--on-ink-muted); }

.display-2 {
  font: 400 clamp(2.25rem, 4.6vw, 4rem)/1.08 var(--f-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 20ch;
}
:lang(ar) .display-2 { line-height: 1.45; letter-spacing: 0; font-weight: 400; }
.lead-p { margin-top: 26px; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }
.ink .lead-p { color: var(--on-ink-muted); }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head.center { text-align: center; }
.sec-head.center .display-2, .sec-head.center .lead-p { margin-inline: auto; }

/* split words (built by JS) */
.sw { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.sw > span { display: inline-block; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  border: 1px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 15.5px/1 var(--f-ui); text-decoration: none; white-space: nowrap;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, rgba(255, 255, 255, 0.1));
  transform: translateY(101%); transition: transform 0.45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn .ic-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(3px); }
[dir="rtl"] .btn .ic-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ic-arrow { transform: scaleX(-1) translateX(3px); }
.btn-primary { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); --hover: var(--gold-hi); }
.ivory .btn-primary { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --hover: #2a2d32; }
.btn-ghost { --fg: var(--on-ink); --bd: rgba(244, 239, 229, 0.32); --hover: rgba(244, 239, 229, 0.08); }
.ivory .btn-ghost { --fg: var(--text); --bd: rgba(21, 23, 26, 0.28); --hover: rgba(21, 23, 26, 0.05); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 16.5px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-ink);
  transition: background-color 0.4s var(--ease), color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.hdr.is-solid { background: rgba(13, 14, 16, 0.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 var(--on-ink-rule); }
.hdr.is-light { background: rgba(244, 239, 229, 0.88); color: var(--text); box-shadow: 0 1px 0 rgba(21, 23, 26, 0.08); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-hidden:focus-within { transform: none; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 72px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-mark { width: 40px; height: auto; }
.logo-mark .mk-l, .logo-mark .mk-r { fill: currentColor; }
.logo-mark .mk-dot, .hero-mark .mk-dot, .principle-mark .mk-dot, .ftr-mark .mk-dot { fill: var(--gold); }
.logo-t { display: grid; line-height: 1.15; }
.logo-t b { font: 600 17px/1.1 var(--f-ui); letter-spacing: 0.01em; }
.logo-t:lang(ar), :lang(ar) .logo-t { line-height: 1.45; }
.logo-t small { font-size: 12px; opacity: 0.66; letter-spacing: 0.01em; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; text-decoration: none; opacity: 0.78; transition: opacity 0.2s, background-color 0.2s; }
.nav a:hover, .nav a.is-on { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.hdr.is-light .btn-primary { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --hover: #2a2d32; }
.lang { padding: 8px 12px; font-size: 14.5px; text-decoration: none; border-radius: 999px; opacity: 0.85; }
.lang:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.lang:lang(ar) { font-family: "Plex Arabic", sans-serif; font-size: 15px; }
.lang:lang(en) { font-family: "Geist", sans-serif; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.burger i { position: absolute; inset-inline: 11px; height: 1.6px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger i:nth-of-type(1) { top: 17px; }
.burger i:nth-of-type(2) { top: 25px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: 72px 0 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ink); color: var(--on-ink); padding: 8px var(--gutter) 40px; border-top: 1px solid var(--on-ink-rule); }
.mnav ul { display: grid; }
.mnav ul a { display: block; padding: 16px 0; font: 400 28px/1.2 var(--f-display); text-decoration: none; border-bottom: 1px solid var(--on-ink-rule); }
.mnav-act { display: grid; gap: 12px; margin-top: 24px; }
.hdr.is-light .mnav { background: var(--ivory); color: var(--text); border-color: var(--rule); }
.hdr.is-light .mnav ul a { border-color: var(--rule); }
.hdr.is-light .mnav .btn-ghost { --fg: var(--text); --bd: rgba(21, 23, 26, 0.28); }

@media (max-width: 960px) {
  .nav, .hdr-cta { display: none; }
  .burger { display: block; }
  .hdr-act { margin-inline-start: auto; }
}
@media (max-width: 420px) { .logo-t small { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 96px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 45%, rgba(201, 138, 36, 0.13), transparent 70%),
    linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.35));
}
[dir="rtl"] .hero::before { background: radial-gradient(60% 50% at 25% 45%, rgba(201, 138, 36, 0.13), transparent 70%), linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.35)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-t { margin: 26px 0 0; font: 400 clamp(3.4rem, 8.4vw, 7.6rem)/0.98 var(--f-display); letter-spacing: -0.025em; }
.hero-t .ln { display: block; overflow: clip; padding-bottom: 0.06em; }
.hero-t .w { display: inline-block; }
.hero-t .ln:nth-child(3) .w { color: var(--gold-hi); font-style: italic; }
:lang(ar) .hero-t .ln { padding-block: 0.22em; margin-block: -0.22em; }
:lang(ar) .hero-t { line-height: 1.32; letter-spacing: 0; font-size: clamp(3.2rem, 7.6vw, 6.8rem); }
:lang(ar) .hero-t .ln:nth-child(3) .w { font-style: normal; }
.hero-lead { margin-top: 30px; max-width: 44ch; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--on-ink-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-vis { display: grid; place-items: center; }
.scale { position: relative; width: min(100%, 480px); aspect-ratio: 1; display: grid; place-items: center; }
.scale-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 138, 36, 0.22), transparent); filter: blur(10px); }
.hero-mark { position: relative; width: 78%; overflow: visible; color: var(--on-ink); }
.hero-mark .mk-l, .hero-mark .mk-r { fill: currentColor; }
.ruler { position: absolute; inset-inline: 6%; bottom: 6%; height: 34px; }
.ruler-ticks { display: flex; justify-content: space-between; align-items: flex-end; height: 100%; border-bottom: 1px solid var(--on-ink-rule); }
.ruler-ticks i { width: 1px; height: 6px; background: rgba(244, 239, 229, 0.24); }
.ruler-ticks i.m { height: 11px; }
.ruler-ticks i.l { height: 18px; background: rgba(244, 239, 229, 0.5); }
.needle { position: absolute; left: 50%; bottom: -5px; width: 2px; height: 30px; margin-left: -1px; background: var(--gold); border-radius: 2px; box-shadow: 0 0 12px rgba(201, 138, 36, 0.6); }
.needle::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--gold); }


@media (max-width: 900px) {
  .hero { min-height: auto; padding: 128px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-vis { display: none; }
  .scale { width: 150px; }
  .ruler { display: none; }
  .scale-glow { inset: 0; }
  .hero-mark { width: 100%; }
}

/* ---------- problem ---------- */
.problem { padding: var(--sec) 0; }
.problem .display-2 { max-width: 22ch; }

/* ---------- principle ---------- */
.principle { padding: var(--sec) 0; position: relative; overflow: clip; }
.principle-mark { width: 64px; margin-bottom: 40px; color: var(--on-ink); }
.principle-mark .mk-l, .principle-mark .mk-r { fill: currentColor; }
.statement { font: 400 clamp(2.4rem, 5.6vw, 5.2rem)/1.08 var(--f-display); letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
:lang(ar) .statement { line-height: 1.5; letter-spacing: 0; }
.statement .sc { color: rgba(244, 239, 229, 0.2); transition: color 0.25s linear; }
.statement .sc.on { color: var(--on-ink); }
.statement .sc.gold.on { color: var(--gold-hi); }

/* ---------- audit ---------- */
.audit { padding: var(--sec) 0; }
.audit-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); }
.audit-steps { display: grid; }
.astep { min-height: 72vh; padding: 8px 0 64px; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.5s var(--ease); }
.astep.is-on { opacity: 1; }
.astep:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 4vh; }
.astep-day { margin-top: 14px; font: 500 15px/1.3 var(--f-ui); color: var(--gold-deep); }
:lang(ar) .astep-day { margin-top: 18px; }
.astep-t { margin-top: 0; font: 400 clamp(2.6rem, 4.4vw, 3.8rem)/1 var(--f-display); }
:lang(ar) .astep-t { line-height: 1.4; }
.astep-d { margin-top: 18px; max-width: 46ch; color: var(--muted); }
.astep-get { margin-top: 24px; padding: 16px 18px; max-width: 46ch; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); font-size: 15.5px; }
.audit-doc { position: relative; }
.audit-sticky { position: sticky; top: calc(50vh - 260px); }
.doc-tabs { display: none; }

.report { margin: 0; background: var(--paper); border-radius: 18px; border: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 30px 60px -30px rgba(40, 30, 10, 0.28), 0 12px 24px -16px rgba(40, 30, 10, 0.2); overflow: hidden; }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.report-tag { font: 500 13px/1 var(--f-ui);   padding: 6px 9px; border: 1px dashed var(--rule); border-radius: 6px; white-space: nowrap; }
:lang(ar) .report-tag { font-family: var(--f-ui); letter-spacing: 0; font-size: 12.5px; }
.report-stack { position: relative; height: 440px; perspective: 1400px; }
.page { position: absolute; inset: 0; padding: 26px 28px; background: var(--paper); backface-visibility: hidden; transform-origin: center top; }
.js .page:not([data-page="0"]) { visibility: hidden; }
.page-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ivory-2); font: 500 16px/1.3 var(--f-ui); }
.page-n { font: 500 13px/1 var(--f-ui); color: var(--muted); white-space: nowrap; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 34px; counter-reset: f; }
.flow-node { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.flow-node:not(:last-child)::after { content: ""; position: absolute; top: 17px; inset-inline-start: calc(50% + 22px); width: calc(100% - 36px); height: 1px; background: var(--rule); }
.flow-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule); font: 500 13px/1 var(--f-ui); background: var(--paper); position: relative; z-index: 1; }
.flow-l { font-size: 13.5px; line-height: 1.3; }
.flow-node.is-leak .flow-i { border-color: var(--gold); background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px rgba(201, 138, 36, 0.16); }
.flow-tag { position: absolute; top: -26px; font: 600 12.5px/1 var(--f-ui);   color: var(--gold-deep); white-space: nowrap; }
:lang(ar) .flow-tag { font-family: var(--f-ui); letter-spacing: 0; font-size: 12px; }
.page-note { margin-top: 26px; font: italic 400 19px/1.4 var(--f-display); color: var(--text); max-width: 40ch; }
:lang(ar) .page-note { font-style: normal; line-height: 1.7; }

.matrix { position: relative; height: 300px; margin: 52px 4px 0; border-inline-start: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(var(--ivory-2), var(--ivory-2)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--ivory-2), var(--ivory-2)) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgba(201, 138, 36, 0.09), rgba(201, 138, 36, 0.09)) 100% 0 / 50% 50% no-repeat; }
[dir="rtl"] .matrix { background:
    linear-gradient(var(--ivory-2), var(--ivory-2)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--ivory-2), var(--ivory-2)) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgba(201, 138, 36, 0.09), rgba(201, 138, 36, 0.09)) 0 0 / 50% 50% no-repeat; }
.mx-q { position: absolute; bottom: calc(50% + 10px); inset-inline-end: 12px; font: 600 13px/1 var(--f-ui);   color: var(--gold-deep); }
:lang(ar) .mx-q { font-family: var(--f-ui); letter-spacing: 0; font-size: 12.5px; }
.mx-x, .mx-y { position: absolute; font-size: 12px; color: var(--muted); }
.mx-x { bottom: -24px; inset-inline-end: 0; }
.mx-y { top: -28px; inset-inline-start: 0; }
.mx-dot { position: absolute; inset-inline-start: var(--x); bottom: var(--y); display: flex; align-items: center; gap: 8px; transform: translate(-7px, 7px); }
[dir="rtl"] .mx-dot { transform: translate(7px, 7px); }
.mx-dot i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); flex: none; }
.mx-dot.hi i { background: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 0 8px rgba(201, 138, 36, 0.18); }
.mx-dot b { font-weight: 500; font-size: 12.5px; white-space: nowrap; padding: 2px 4px; text-shadow: 0 0 4px var(--paper), 0 0 8px var(--paper); }
.mx-dot.ls { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), 7px); }
[dir="rtl"] .mx-dot.ls { transform: translate(calc(100% - 7px), 7px); }

.memo { display: grid; margin-top: 10px; }
.memo-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--ivory-2); }
.memo-row strong { display: block; font-weight: 500; font-size: 16px; }
.memo-row span:not(.stamp) { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.stamp { flex: none; min-width: 92px; padding: 8px 12px; text-align: center; border: 1.5px solid currentColor; border-radius: 6px; font: 600 14px/1 var(--f-ui);   }
:lang(ar) .stamp { font-family: var(--f-ui); letter-spacing: 0; font-size: 14px; }
.v-go .stamp { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.v-prep .stamp { color: var(--gold-deep); }
.v-stop .stamp { color: var(--ink); border-width: 2px; }
.memo-sign { margin-top: 22px; font: italic 400 17px/1.3 var(--f-display); color: var(--muted); }
:lang(ar) .memo-sign { font-style: normal; }

@media (max-width: 900px) {
  .audit-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .audit-steps { display: none; }
  .audit-sticky { position: static; }
  .doc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding: 5px; background: var(--ivory-2); border-radius: 14px; }
  .doc-tab { display: grid; gap: 2px; padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 500; cursor: pointer; }
  .doc-tab span { font: 500 11px/1.2 var(--f-ui); color: var(--muted);   }
  :lang(ar) .doc-tab span { font-family: var(--f-ui); font-size: 12px; letter-spacing: 0; }
  .doc-tab[aria-selected="true"] { background: var(--paper); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.2); }
  .audit .doc-caption { display: block; }
}
.doc-caption { display: none; margin-top: 18px; }
.doc-caption p { color: var(--muted); font-size: 15.5px; }
.doc-caption strong { display: block; margin-bottom: 6px; font: 400 26px/1.2 var(--f-display); color: var(--text); }
@media (max-width: 560px) {
  .report-stack { height: 470px; }
  .page { padding: 20px 18px; }
  .report-top { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px; }
  .flow { grid-template-columns: 1fr; gap: 0; margin-top: 18px; }
  .flow-node { grid-template-columns: 34px 1fr auto; justify-items: start; align-items: center; text-align: start; gap: 12px; padding: 5px 0; }
  .flow-node:not(:last-child)::after { top: 39px; inset-inline-start: 17px; width: 1px; height: 12px; }
  .flow-tag { position: static; }
  .page-note { font-size: 17px; margin-top: 16px; }
  .mx-dot b { font-size: 11px; }
  .matrix { height: 290px; }
  .memo-row { padding: 15px 0; gap: 12px; }
  .stamp { min-width: 76px; padding: 7px 8px; font-size: 11.5px; }
}

/* ---------- readiness check ---------- */
.check { padding: var(--sec) 0; position: relative; overflow: clip; }
.check::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, rgba(201, 138, 36, 0.1), transparent 70%); pointer-events: none; }
.check-wrap { position: relative; }
.quiz { position: relative; max-width: 820px; margin-inline: auto; min-height: 380px; border: 1px solid var(--on-ink-rule); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); padding: clamp(28px, 5vw, 56px); }
.quiz-intro { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 270px; text-align: center; }
.quiz-time { margin-top: 18px; text-align: center; color: var(--on-ink-muted); font-size: 14.5px; }
.quiz-ns { text-align: center; color: var(--on-ink-muted); }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.q-count { font: 500 14.5px/1 var(--f-ui); color: var(--gold-hi);  }
:lang(ar) .q-count { font-family: var(--f-ui); letter-spacing: 0; font-size: 14px; }
.q-bar { flex: 1; height: 2px; background: var(--on-ink-rule); border-radius: 2px; overflow: hidden; }
.q-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.6s var(--ease); }
.q-title { font: 400 clamp(1.7rem, 3vw, 2.4rem)/1.2 var(--f-display); max-width: 26ch; }
:lang(ar) .q-title { line-height: 1.6; }
.quiz.is-swapping { pointer-events: none; }
.q-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 30px; }
.q-opt { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 18px; border: 1px solid var(--on-ink-rule); border-radius: 14px; background: rgba(255, 255, 255, 0.02); text-align: start; cursor: pointer; font-size: 16px; line-height: 1.35; transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease); }
.q-opt:hover { border-color: rgba(244, 239, 229, 0.4); background: rgba(255, 255, 255, 0.05); }
.q-opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(244, 239, 229, 0.4); transition: border 0.25s, box-shadow 0.25s; }
.q-opt[aria-pressed="true"] { border-color: var(--gold); background: rgba(201, 138, 36, 0.12); }
.q-opt[aria-pressed="true"]::before { border: 5px solid var(--gold); box-shadow: 0 0 0 3px rgba(201, 138, 36, 0.2); }
.q-range { margin-top: 40px; }
.q-range output { display: block; font: 400 clamp(3.4rem, 7vw, 5rem)/1 var(--f-display); color: var(--gold-hi); }
.q-range output small { margin-inline-start: 12px; font: 400 16px/1 var(--f-ui); color: var(--on-ink-muted); }
.q-range input { width: 100%; margin-top: 26px; accent-color: var(--gold); height: 32px; cursor: pointer; }
.q-scale { display: flex; justify-content: space-between; font: 500 13px/1 var(--f-ui); color: var(--on-ink-muted); }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 34px; gap: 12px; }
.q-back { border: 0; background: none; color: var(--on-ink-muted); cursor: pointer; padding: 12px 4px; font-size: 15px; }
.q-back:hover { color: var(--on-ink); }
.q-back[hidden] { display: block; visibility: hidden; }

.res-verdict { margin-top: 0; font: 400 clamp(3rem, 7vw, 5.2rem)/1 var(--f-display); }
:lang(ar) .res-verdict { line-height: 1.4; }
.res-verdict.v-now { color: var(--gold-hi); }
.res-d { margin-top: 16px; max-width: 54ch; color: var(--on-ink-muted); font-size: 17.5px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--on-ink-rule); }
.answers { display: grid; gap: 0; align-content: start; }
.answers div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--on-ink-rule); font-size: 15px; }
.answers dt { color: var(--on-ink-muted); }
.answers dd { margin: 0; text-align: end; }
.answers .weak dd { color: var(--gold-hi); }
.res-side h4, .res-told h4 { margin: 0 0 10px; font: 600 15px/1.3 var(--f-ui);   color: var(--gold-hi); }
:lang(ar) .res-side h4, .res-told h4 { font-family: var(--f-ui); letter-spacing: 0; font-size: 14px; }
.res-side ul { display: grid; gap: 10px; margin-bottom: 26px; }
.res-side li { position: relative; padding-inline-start: 18px; font-size: 15.5px; color: var(--on-ink-muted); }
.res-side li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.72em; width: 7px; height: 1px; background: var(--gold); }
.res-side p { font-size: 15.5px; color: var(--on-ink); }
.res-hours { margin-top: 30px; padding: 18px 20px; border-radius: 14px; background: rgba(201, 138, 36, 0.1); border: 1px solid rgba(201, 138, 36, 0.3); font: 400 21px/1.4 var(--f-display); }
:lang(ar) .res-hours { line-height: 1.8; font-size: 20px; }
.res-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.res-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; font-size: 13.5px; color: var(--on-ink-muted); }
.res-foot button { border: 0; background: none; color: var(--on-ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 14px; padding: 8px 0; }
.toast { margin-top: 14px; font-size: 14px; color: var(--gold-hi); min-height: 1.4em; }
@media (max-width: 680px) {
  .q-opts { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .res-cta .btn { width: 100%; }
}

/* ---------- engagement ---------- */
.engage { padding: var(--sec) 0 calc(var(--sec) * 0.7); }
.ladder { position: relative; }
.ladder ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.ladder-line { position: absolute; top: 9px; inset-inline: 0; height: 1px; background: var(--rule); }
.ladder-line span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .ladder-line span { transform-origin: right; }
.no-js .ladder-line span, .reduced .ladder-line span { transform: none; }
.rung { position: relative; padding-top: 44px; }
.rung-dot { position: absolute; top: 0; inset-inline-start: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--ivory); border: 1.5px solid var(--rule); transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s; }
.rung.is-on .rung-dot { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 6px rgba(201, 138, 36, 0.18); }
.rung h3 { margin-top: 0; font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.15 var(--f-display); text-wrap: balance; }
@media (min-width: 901px) { .rung h3 { min-height: 2.3em; } :lang(ar) .rung h3 { min-height: 3em; } }
:lang(ar) .rung h3 { line-height: 1.5; }
.rung-when { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--gold-deep); }
.rung-d { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.rung-gate { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 14.5px; }
@media (max-width: 900px) {
  .ladder ol { grid-template-columns: 1fr; gap: 0; }
  .ladder-line { top: 0; bottom: 0; inset-inline-start: 9px; inset-inline-end: auto; width: 1px; height: auto; }
  .ladder-line span { transform: scaleY(0); transform-origin: top; }
  [dir="rtl"] .ladder-line span { transform-origin: top; }
  .rung { padding: 0 0 44px; padding-inline-start: 46px; }
  .rung-dot { top: 2px; }
}

/* ---------- faq ---------- */
.faq { padding: calc(var(--sec) * 0.7) 0 var(--sec); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.3 var(--f-display); }
:lang(ar) .qa summary { line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic-plus { flex: none; width: 22px; height: 22px; color: var(--gold-deep); transition: transform 0.4s var(--ease); }
.qa[open] summary .ic-plus { transform: rotate(45deg); }
.qa summary:hover { color: var(--gold-deep); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 0 26px; max-width: 60ch; color: var(--muted); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; margin-bottom: 32px; }
}

/* ---------- contact ---------- */
.contact { padding: var(--sec) 0; position: relative; overflow: clip; }
.contact::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(201, 138, 36, 0.12), transparent); pointer-events: none; }
[dir="rtl"] .contact::before { inset: -30% auto auto -10%; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact .display-2 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.contact-mail { margin-top: 26px; }
.contact-mail a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink-muted); text-decoration: none; font-size: 15.5px; }
.contact-mail a:hover { color: var(--on-ink); }
.contact-mail .ic { width: 18px; }
.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--on-ink-rule); border-radius: 22px; background: rgba(255, 255, 255, 0.03); }
.form-intro { color: var(--on-ink-muted); font-size: 15.5px; margin-bottom: 4px; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 14px; font-weight: 500; }
.fld input, .fld textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--on-ink-rule); border-radius: 11px; background: rgba(0, 0, 0, 0.25); color: var(--on-ink); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.fld textarea { resize: vertical; min-height: 92px; }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(244, 239, 229, 0.4); }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 138, 36, 0.2); }
.fld input[aria-invalid="true"] { border-color: #e08a6f; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; margin-top: 6px; }
.form-msg { min-height: 1.5em; font-size: 15px; color: var(--gold-hi); }
.form-msg.err { color: #f0a58f; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-cta .btn, .form .btn { width: 100%; } }

/* ---------- footer ---------- */
.ftr { padding: 56px 0 40px; border-top: 1px solid var(--on-ink-rule); }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.ftr-brand { display: flex; gap: 14px; align-items: center; }
.ftr-mark { width: 44px; color: var(--on-ink); }
.ftr-mark .mk-l, .ftr-mark .mk-r { fill: currentColor; }
.ftr-brand b { display: block; font-weight: 600; }
.ftr-brand span { font: italic 400 17px/1.3 var(--f-display); color: var(--on-ink-muted); }
:lang(ar) .ftr-brand span { font-style: normal; }
.ftr-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ftr-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--on-ink-rule); color: var(--on-ink-muted); transition: color 0.25s, border-color 0.25s, background-color 0.25s; }
.ftr-social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.ftr-social svg { width: 17px; height: 17px; fill: currentColor; }
.ftr-links { display: grid; gap: 8px; font-size: 15px; }
.ftr-links a, .ftr-meta a { color: var(--on-ink-muted); text-decoration: none; }
.ftr-links a:hover, .ftr-meta a:hover { color: var(--on-ink); }
.ftr-meta { display: grid; gap: 6px; font-size: 14px; color: var(--on-ink-muted); }
@media (max-width: 760px) { .ftr-in { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .astep { opacity: 1; }
  .statement .sc { color: var(--on-ink); }
}

/* ---------- no-JS fallbacks ---------- */
html:not(.js) .report-stack { height: auto; }
html:not(.js) .page { position: relative; border-bottom: 1px solid var(--rule); }
html:not(.js) .doc-tabs, html:not(.js) .doc-caption { display: none; }
html:not(.js) .astep { opacity: 1; }
html:not(.js) .ladder-line span { transform: none; }
@media (max-width: 900px) { html:not(.js) .audit-steps { display: grid; } html:not(.js) .astep { min-height: 0; } }

/* open menu: no backdrop-filter, otherwise the fixed panel is trapped inside the header box */
.hdr.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); transform: none; }
.hdr.menu-open.is-light { background: var(--ivory); }

/* ---------- form privacy note ---------- */
.form-note { font-size: 13.5px; color: var(--on-ink-muted); }
.form-note a { color: var(--on-ink); text-underline-offset: 3px; }

/* ---------- secondary pages (privacy, 404) ---------- */
.doc-page { background: var(--ivory); }
.doc-hdr { border-bottom: 1px solid var(--rule); }
.doc-hdr-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.doc-hdr .logo-mark .mk-l, .doc-hdr .logo-mark .mk-r { fill: var(--text); }
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 128px); }
.doc-body { max-width: calc(760px + var(--gutter) * 2); }
.doc-back { display: inline-block; margin-bottom: 28px; font-size: 15px; color: var(--muted); }
.doc-updated { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.doc-body section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule); }
.doc-body h2 { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.25 var(--f-display); margin-bottom: 14px; }
:lang(ar) .doc-body h2 { line-height: 1.6; }
.doc-body section p { margin-top: 12px; color: var(--muted); max-width: 64ch; }
.doc-body a:not(.btn) { color: var(--text); text-underline-offset: 3px; }
.nf .btn { margin-top: 28px; }
.nf-ar { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--rule); }
.nf-ar .display-2, .nf-ar .lead-p, .nf-ar .btn { font-family: "Plex Arabic", sans-serif; }
.nf-ar .display-2 { font-family: "Amiri", serif; line-height: 1.5; }
.doc-page .btn-primary { --bg: var(--ink); --fg: var(--ivory); --bd: var(--ink); --hover: #2a2d32; }
.doc-body a[href^="mailto:"] { unicode-bidi: isolate; white-space: nowrap; }
.doc-also { margin-top: 48px; font-size: 15px; }
.doc-crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.doc-crumb a { text-decoration: none; color: var(--muted); }
.doc-crumb a:hover { color: var(--text); }
.doc-kicker { font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
:lang(ar) .doc-kicker { letter-spacing: 0; text-transform: none; }
.doc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.doc-page .btn-outline { --bg: transparent; --fg: var(--text); --bd: var(--rule); --hover: rgba(13, 14, 16, 0.06); }
.doc-list { display: grid; gap: 10px; margin-top: 14px; padding-inline-start: 20px; list-style: disc; color: var(--muted); }
.doc-steps { display: grid; gap: 16px; margin-top: 18px; }
.doc-steps li { padding: 22px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); }
.doc-step-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--gold-deep); margin-bottom: 6px; }
.doc-steps h3 { font: 500 1.15rem/1.35 var(--f-ui); color: var(--text); }
.doc-steps p { margin-top: 8px; }
.doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.doc-card { display: grid; gap: 6px; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper); text-decoration: none !important; transition: border-color 0.25s, transform 0.25s var(--ease); }
.doc-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.doc-card strong { font-weight: 600; color: var(--text); }
.doc-card span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 700px) { .doc-cards { grid-template-columns: 1fr; } .doc-cta .btn { width: 100%; } }
