/* Atlas portfolio — shared by /en/ and /ar/. Same dark system as the report.atlas showcase.
   Logical properties (inline-start/end) so the Arabic page mirrors without overrides. */
:root {
  --navy: #182547; --royal: #2a4277; --royal-4: #3b5590; --gold: #938370; --beige: #c6b9a8;
  --ground: #0c1428; --card: #182547; --card-2: #1c2c55; --tile: #111c38; --raised: #223566;
  --line: #263758; --line-2: #34476f;
  --ink: #f1ede6; --muted: #a9a79f; --dim: #7a8399;
  --accent: #c6b9a8; --accent-2: #ece4d6; --glow: rgba(198,185,167,.5); --glow-soft: rgba(198,185,167,.14);
  --ok: #34d399;
  --f-ui: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
html[lang="ar"] { --f-ui: "IBM Plex Sans Arabic", "Sora", "Segoe UI", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--f-ui); -webkit-font-smoothing: antialiased; line-height: 1.55;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(198,185,167,.08), transparent 70%),
    radial-gradient(50% 40% at 90% 20%, rgba(42,66,119,.28), transparent 70%),
    var(--ground);
  background-color: var(--ground);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
::selection { background: rgba(198,185,167,.35); }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--f-mono); }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
html[lang="ar"] .eyebrow { font-family: var(--f-ui); letter-spacing: 0; font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(12,20,40,.8); border-bottom: 1px solid rgba(38,55,88,.7); padding-top: env(safe-area-inset-top, 0px); }
nav.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { height: 26px; width: auto; }
nav.top .links { display: flex; gap: 22px; margin-inline-start: auto; font-size: 13.5px; }
nav.top .links a { color: var(--muted); text-decoration: none; }
nav.top .links a:hover { color: var(--ink); }
nav.top .lang { font-size: 13px; color: var(--accent-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 14px;
  text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: var(--tile); transition: background .2s, box-shadow .3s, border-color .2s; }
.btn:hover { border-color: var(--accent); background: var(--raised); }
.btn-accent { background: var(--beige); color: var(--navy); border-color: var(--beige); }
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 0 30px -6px var(--glow); color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
@media (max-width: 860px) { nav.top .links { display: none; } nav.top .lang { margin-inline-start: auto; } }
@media (max-width: 400px) { nav.top .btn-sm { display: none; } }

/* hero */
.hero { padding: 72px 0 20px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.06; letter-spacing: -.02em; margin: 16px 0 0; font-weight: 700; text-wrap: balance; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 680px; margin: 20px 0 0; }
.hero p.lead b { color: var(--ink); font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; scroll-margin-top: 80px; }
.prod { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 0; overflow: hidden;
  transition: border-color .2s, transform .25s; min-width: 0; }
.prod:hover { border-color: var(--accent); transform: translateY(-2px); }
.prod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prod-head svg { height: 30px; width: auto; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; }
html[lang="ar"] .tag { font-family: var(--f-ui); letter-spacing: 0; font-size: 12px; }
.prod p { margin: 0; color: var(--muted); font-size: 14.5px; }
.prod-shot { border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--line-2); border-bottom: 0; align-self: end; margin-top: 6px; }
.duo.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.duo.trio .prod-head svg { height: 26px; }
@media (max-width: 1000px) { .duo.trio { grid-template-columns: 1fr 1fr; } .duo.trio .prod:last-child { grid-column: 1 / -1; } }
@media (max-width: 820px) { .duo, .duo.trio { grid-template-columns: 1fr; } }

/* family */
section.block { padding: 96px 0 0; scroll-margin-top: 40px; }
.family { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.family > * { min-width: 0; }
.family-mark svg { width: 100%; max-width: 220px; height: auto; filter: drop-shadow(0 0 40px rgba(198,185,167,.15)); }
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { font-size: 13px; color: var(--accent-2); border: 1px solid var(--line-2); background: var(--tile); border-radius: 999px; padding: 7px 13px; }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; gap: 24px; } .family-mark svg { max-width: 120px; } }

h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 12px 0 0; font-weight: 700; text-wrap: balance; }
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; }
h3 { font-size: 18px; margin: 0; font-weight: 600; }
.h3big { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -.01em; margin-top: 10px; text-wrap: balance; font-weight: 700; }
html[lang="ar"] .h3big { letter-spacing: 0; line-height: 1.4; }
.sub { color: var(--muted); max-width: 680px; margin: 14px 0 0; font-size: 16.5px; }

/* product sections */
.product { position: relative; }
.product-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 18px; margin-bottom: 40px;
  background: radial-gradient(70% 120% at 0% 0%, rgba(198,185,167,.12), transparent 60%), linear-gradient(135deg, var(--royal), var(--navy));
  border: 1px solid #3b5896; }
.product-banner svg { height: 46px; width: auto; max-width: 100%; }
.product-banner p { margin: 0; color: var(--accent-2); font-size: 15px; }

.flow7 { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.flow7 li { background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.flow7 .n { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--dim); }
.flow7 b { font-size: 15px; }
.flow7 li > span:last-child { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.flow7 li.on { background: var(--royal); border-color: rgba(198,185,167,.55); box-shadow: 0 0 30px -12px var(--glow); }
.flow7 li.on .n { color: var(--accent); }
.legend { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12.5px; margin: 12px 0 0; }
.lg-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--royal); border: 1px solid rgba(198,185,167,.55); }
@media (max-width: 1000px) { .flow7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* feature rows */
.feat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 88px; }
.feat > * { min-width: 0; }
.feat.rev { grid-template-columns: 1.25fr 1fr; }
.feat.rev .copy { order: 2; }
.feat ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feat li { display: flex; gap: 12px; font-size: 15px; }
.feat li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 9px; box-shadow: 0 0 8px var(--glow); }
.feat li b { color: var(--ink); }
.feat li span { color: var(--muted); }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); cursor: zoom-in; background: var(--tile); }
.shot.phone { border-radius: 24px; border: 5px solid #0a0f1e; box-shadow: 0 30px 60px -25px rgba(0,0,0,.8), 0 0 0 1px var(--line-2); }
.pair-shots { position: relative; padding-block-end: 40px; padding-inline-end: 8%; }
.pair-shots .phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 30%; min-width: 120px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; margin-inline: auto; width: 100%; }
.cap { font-size: 12.5px; color: var(--dim); margin-top: 10px; text-align: center; }
@media (max-width: 900px) { .feat, .feat.rev { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; } .feat.rev .copy { order: 0; } }
@media (max-width: 520px) { .pair-shots { padding: 0; } .pair-shots .phone { position: static; width: 58%; margin: 16px auto 0; } }

/* at.atlas: two stacked desk shots, the tamper-evident callout */
.desk-stack { display: grid; gap: 14px; }
.feat:has(.desk-stack) { align-items: start; }
.feat:has(.desk-stack) .copy { position: sticky; top: 96px; }
@media (max-width: 900px) { .feat:has(.desk-stack) .copy { position: static; } }
.proof { margin-top: 88px; border-radius: 20px; padding: 0 36px 40px; border: 1px solid #3b5896;
  background: radial-gradient(60% 90% at 0% 0%, rgba(198,185,167,.12), transparent 65%), linear-gradient(135deg, var(--royal), var(--navy)); }
.proof .feat { margin-top: 0; padding-top: 40px; }
.proof .shot { background: var(--ground); }
.seal { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 10px 14px; border-radius: 10px;
  border: 1px dashed rgba(198,185,167,.55); background: rgba(12,20,40,.55); font-size: 12.5px; color: var(--muted); }
.seal b { color: var(--accent-2); font-size: 14px; letter-spacing: .06em; direction: ltr; }
@media (max-width: 900px) { .proof .feat { margin-top: 0; } }
@media (max-width: 560px) { .proof { padding: 0 18px 24px; } .proof .feat { padding-top: 26px; } }

/* interview scorecard */
.interview-stage { display: grid; grid-template-columns: 0.8fr 1fr; gap: 20px; align-items: center; }
.interview-stage > * { min-width: 0; }
.scorecard { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; display: grid; gap: 14px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-rec { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--accent); border-radius: 999px; padding: 4px 11px; }
.sc-name { font-weight: 600; }
.sc-cefr { display: flex; align-items: center; gap: 14px; }
.sc-cefr b { font-family: var(--f-mono); font-size: 44px; line-height: 1; color: var(--accent); font-weight: 600; }
.sc-cefr span { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.sc-cefr small { color: var(--dim); font-size: 12px; }
.sc-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; direction: ltr; }
.sc-scale i { font-style: normal; font-family: var(--f-mono); font-size: 11px; text-align: center; padding: 6px 0; border-radius: 6px; background: var(--tile); color: var(--dim); border: 1px solid var(--line); }
.sc-scale i.on { background: var(--royal); color: var(--accent-2); border-color: var(--accent); }
.scorecard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 13.5px; align-items: center; }
.scorecard dt { color: var(--muted); }
.scorecard dd { margin: 0; display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-family: var(--f-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--tile); overflow: hidden; max-width: 140px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.ok { color: var(--ok); }
.sc-foot { font-size: 12px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 560px) { .interview-stage { grid-template-columns: 1fr; } .interview-stage .phone { width: 62%; margin: 0 auto; } }

/* cards */
.cards3, .cards4 { display: grid; gap: 14px; margin-top: 34px; }
.cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.behind { margin-top: 88px; }
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--glow-soft); color: var(--accent); border: 1px solid rgba(198,185,167,.3); }
.card .ico svg { width: 20px; height: 20px; }
@media (max-width: 980px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cards3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.stat { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat b { display: block; font-family: var(--f-mono); font-size: 26px; color: var(--accent); font-weight: 600; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.see-more { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--tile); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 24px; }
.see-more > div:first-child { display: grid; gap: 4px; }
.see-more span { color: var(--muted); font-size: 14px; }
.see-more .ctas { margin-top: 0; }

/* how we start */
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.incl ul, .incl ol { margin: 14px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; display: grid; gap: 9px; }
.incl li::marker { color: var(--accent); }
.incl .steps b { color: var(--ink); }
.fine { margin-top: 16px; font-size: 13px; color: var(--dim); }
@media (max-width: 820px) { .incl { grid-template-columns: 1fr; } }

.cta { margin: 90px 0 0; border-radius: 22px; padding: 44px 24px; text-align: center; display: grid; justify-items: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(198,185,167,.14), transparent 70%), linear-gradient(135deg, var(--royal), var(--navy));
  border: 1px solid #3b5896; scroll-margin-top: 80px; }
.cta > svg { width: 56px; height: 56px; }
.cta h2 { margin-top: 16px; }
.cta .ctas { justify-content: center; }
.contact-box { display: inline-flex; gap: 14px; align-items: center; margin-top: 22px; background: rgba(12,20,40,.55); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 18px; flex-wrap: wrap; justify-content: center; }
.contact-box .mono { color: var(--accent-2); direction: ltr; }
footer { color: var(--dim); font-size: 12.5px; padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.foot svg { height: 20px; width: auto; }
.foot .legal { flex-basis: 100%; font-size: 12px; opacity: .7; line-height: 1.5; }

/* Arabic tweaks */
html[lang="ar"] .stat b { font-family: var(--f-ui); font-size: 22px; }
html[lang="ar"] .feat li::before { margin-top: 11px; }
html[lang="ar"] .sub, html[lang="ar"] .feat li, html[lang="ar"] .card p { line-height: 1.75; }
html[lang="ar"] .legend, html[lang="ar"] .pill { line-height: 1.6; }
html[lang="ar"] .scorecard dd .ok { font-family: var(--f-ui); font-size: 13px; }
nav.top .lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }

/* lightbox */
#lb { position: fixed; inset: 0; background: rgba(5,9,20,.94); display: none; z-index: 50; padding: 20px; overflow: auto; cursor: zoom-out; }
#lb.on { display: block; }
#lb img { margin: 0 auto; max-width: min(1400px, 100%); border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .prod, .prod:hover { transition: none; transform: none; } }
