/* Base (replaces the preview frame's reset) */
html { scroll-padding-top: 80px; }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
/* Ordinary WordPress pages (privacy policy etc.) */
.wp-page { background: var(--paper); }
.wp-page .wrap { max-width: 820px; }
.wp-page h1 { margin-bottom: 28px; }
.wp-page .entry { font-size: 17px; color: var(--ink-2); }
.wp-page .entry > * + * { margin-top: 1em; }
.wp-page .entry a { color: var(--indigo); }
.wp-page .entry h2, .wp-page .entry h3 { margin-top: 1.6em; }
.ventana-plain #langBtn { display: none; }

/* Layout: every page opens through a "window" (Ventana = window). Pearl reading surfaces, deep indigo statement bands, dawn amber reserved for actions and light. */
:root {
  --pearl: #F2F3F7;
  --paper: #FFFFFF;
  --ink: #141A2E;
  --ink-2: #364061;
  --muted: #5A6383;
  --line: #DADEEA;
  --indigo: #34427A;
  --indigo-soft: #E5E8F3;
  --terra: #D2876E;
  --dawn: #D2876E;
  --dawn-ink: #9C4C33;
  --on-dawn: #1D1209;
  --band: #161D38;
  --band-2: #222B52;
  --band-fg: #EEF0F8;
  --band-muted: #AEB5D0;
  --ok: #2E7C6E;
  --err: #B3261E;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ar-display: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", serif;
  --ar-body: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pearl: #0E1220; --paper: #161B2E; --ink: #ECEEF6; --ink-2: #C6CBDD; --muted: #99A1BC; --line: #2A3152;
    --indigo: #AAB6EC; --indigo-soft: #232B4C; --terra: #D2876E; --dawn: #DE9A82; --dawn-ink: #EDB4A0; --on-dawn: #1D1209;
    --band: #0A0D1A; --band-2: #161C36; --band-fg: #EEF0F8; --band-muted: #A6AECB; --ok: #6CC3B1; --err: #F2948C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --pearl: #0E1220; --paper: #161B2E; --ink: #ECEEF6; --ink-2: #C6CBDD; --muted: #99A1BC; --line: #2A3152;
  --indigo: #AAB6EC; --indigo-soft: #232B4C; --terra: #D2876E; --dawn: #DE9A82; --dawn-ink: #EDB4A0; --on-dawn: #1D1209;
  --band: #0A0D1A; --band-2: #161C36; --band-fg: #EEF0F8; --band-muted: #A6AECB; --ok: #6CC3B1; --err: #F2948C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--pearl); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
html[lang="ar"] body { font-family: var(--ar-body); }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 560; margin: 0; letter-spacing: -0.012em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; font-weight: 520; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 520; }
h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.2; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: var(--ar-display); letter-spacing: 0; line-height: 1.45; font-weight: 600; }
html[lang="ar"] h1 { font-size: clamp(36px, 5.2vw, 68px); }
p { margin: 0; max-width: 66ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dawn-ink); margin: 0 0 16px; }
html[lang="ar"] .eyebrow { font-family: var(--ar-body); letter-spacing: 0; font-size: 14.5px; font-weight: 600; }
.on-band .eyebrow { color: var(--dawn); }
em.hl { font-style: italic; color: var(--indigo); }
html[lang="ar"] em.hl { font-style: normal; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s; white-space: nowrap; background: none; }
.btn:hover { transform: translateY(-1px); }
.btn-dawn { background: var(--dawn); color: var(--on-dawn); }
.btn-dawn:hover { filter: brightness(1.05); }
.btn-line { border-color: currentColor; color: var(--ink); }
.on-band .btn-line { color: var(--band-fg); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
html[dir="rtl"] .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.textlink { font-weight: 600; color: var(--indigo); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; }

/* header */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--band); color: var(--band-fg); }
.head { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: #FFFFFF; cursor: pointer; --mk1: #FFFFFF; --mk2: var(--terra); }
.brand svg.logo { height: 36px; width: auto; display: block; }
footer .brand svg.logo { height: 66px; }
.brand .wm { font-family: var(--display); font-size: 29px; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.brand .stand { font-family: var(--body); font-size: 10px; border: 1px dashed var(--band-muted); color: var(--band-muted); border-radius: 4px; padding: 1px 6px; align-self: center; }
nav.main { display: flex; gap: 4px; margin-inline-start: auto; }
nav.main a { color: var(--band-muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; }
nav.main a:hover { color: var(--band-fg); background: var(--band-2); }
nav.main a.active { color: var(--band-fg); background: var(--band-2); box-shadow: inset 0 -2px 0 var(--dawn); }
.head-tools { display: flex; align-items: center; gap: 10px; }
.chip-btn { background: transparent; border: 1px solid #ffffff40; color: var(--band-fg); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 14px; }
.chip-btn .ar { font-family: var(--ar-body); }
.head-tools .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #ffffff40; background: transparent; color: var(--band-fg); cursor: pointer; align-items: center; justify-content: center; }
.mnav { display: none; background: var(--band); border-top: 1px solid #ffffff1f; }
.mnav.open { display: block; }
.mnav nav { display: grid; padding-block: 8px 20px; }
.mnav a { color: var(--band-fg); text-decoration: none; font-family: var(--display); font-size: 26px; padding: 10px 0; border-bottom: 1px solid #ffffff14; }
html[lang="ar"] .mnav a { font-family: var(--ar-display); }
.mnav a.active { color: var(--dawn); }

/* bands */
.page[hidden] { display: none !important; }
.band { padding-block: clamp(64px, 9vw, 116px); }
.band-paper { background: var(--paper); }
.band-dark { background: var(--band); color: var(--band-fg); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--band-fg); }
.band-dark p, .band-dark .lede { color: var(--band-muted); }
.lattice { background-image: radial-gradient(circle at 1px 1px, #ffffff14 1px, transparent 1.4px); background-size: 22px 22px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px 60px; margin-bottom: clamp(32px, 4vw, 54px); }
.sec-head > p { max-width: 46ch; color: var(--muted); font-size: 18px; }
.band-dark .sec-head > p { color: var(--band-muted); }

/* hero */
.hero { background: var(--band); color: var(--band-fg); overflow: hidden; padding-block: clamp(40px, 6vw, 84px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero h1 { color: var(--band-fg); }
.hero h1 em { font-style: italic; color: var(--dawn); }
html[lang="ar"] .hero h1 em { font-style: normal; }
.hero .lede { color: var(--band-muted); margin-top: 24px; max-width: 40ch; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-bottom: clamp(40px, 6vw, 84px); }
.window-art { position: relative; align-self: end; }
.window-art svg { display: block; width: 100%; max-width: 460px; margin-inline-start: auto; height: auto; }
.sun { animation: rise 2.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { transform: translateY(70px); } to { transform: translateY(0); } }
.creds { background: var(--band-2); color: var(--band-fg); }
.creds .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred { padding: 22px 22px 24px 0; display: grid; gap: 4px; min-width: 0; }
.cred + .cred { padding-inline-start: 22px; border-inline-start: 1px solid #ffffff1a; }
.cred b { font-family: var(--display); font-size: 30px; font-weight: 520; line-height: 1.1; color: var(--band-fg); }
html[lang="ar"] .cred b { font-family: var(--ar-display); font-size: 26px; }
.cred span { font-size: 14.5px; color: var(--band-muted); }

/* moments grid */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.moment { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 30px 26px 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; cursor: pointer; transition: background .2s; }
.moment:nth-child(3n+2), .moment:nth-child(3n+3) { padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
.moment:hover { background: var(--indigo-soft); }
.moment svg { width: 44px; height: 52px; color: var(--indigo); }
.moment h3 { font-size: 22px; }
.moment p { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.moment .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--dawn-ink); }

/* process */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 28px; position: relative; min-width: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--dawn-ink); letter-spacing: .1em; }
.step h3 { margin-top: 10px; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }

/* AI teaser */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.brief { background: var(--band-2); border: 1px solid #ffffff1a; border-radius: 22px; padding: 24px; color: var(--band-fg); }
.brief-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #ffffff1a; }
.brief-top b { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dawn); }
html[lang="ar"] .brief-top b { font-family: var(--ar-body); letter-spacing: 0; font-size: 14px; }
.brief-top span { font-size: 13px; color: var(--band-muted); }
.brief ul { list-style: none; padding: 0; margin: 0; display: grid; }
.brief li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #ffffff12; font-size: 15px; }
.brief li:last-child { border-bottom: 0; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; text-align: center; align-self: start; }
.tag.red { background: #F2948C33; color: #FFB4AC; }
.tag.amb { background: #EE9B5E33; color: #F6C29B; }
.tag.grn { background: #6CC3B133; color: #A5E3D5; }
.brief .note { margin-top: 14px; font-size: 12.5px; color: var(--band-muted); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; color: var(--band-muted); }
.ticks li svg { color: var(--dawn); margin-top: 3px; }
.band-paper .ticks li, .ticks.dark li { color: var(--ink-2); }

/* work cards */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.case .art { aspect-ratio: 16 / 9; max-width: 100%; display: block; }
.case .art svg { width: 100%; height: 100%; display: block; }
.case .body { padding: 22px 22px 24px; display: grid; gap: 8px; }
.case .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dawn-ink); }
html[lang="ar"] .case .kind { font-family: var(--ar-body); letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.case p { color: var(--muted); font-size: 15.5px; }

/* founder teaser */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.quote { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); line-height: 1.22; font-style: italic; font-weight: 450; color: var(--ink); margin: 0; }
html[lang="ar"] .quote { font-family: var(--ar-display); font-style: normal; line-height: 1.6; }
.who { margin-top: 22px; display: grid; gap: 2px; }
.who b { font-size: 17px; }
.who span { color: var(--muted); font-size: 15px; }

/* portrait */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; width: 100%; border-radius: 170px 170px 18px 18px; overflow: hidden; background: var(--indigo-soft); border: 1px solid var(--line); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .ini { position: relative; font-family: var(--display); font-size: clamp(54px, 6vw, 80px); color: var(--indigo); margin-top: -10%; }
.portrait.has .ph { display: none; }
.portrait .add { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--band); color: var(--band-fg); border-radius: 999px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; transition: opacity .2s; }
.portrait .add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portrait .add:focus-within { outline: 3px solid var(--dawn); outline-offset: 2px; }
.portrait.has .add { opacity: 0; }
.portrait.has:hover .add, .portrait.has .add:focus-within { opacity: 1; }

/* insights */
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ins { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.ins.feature { background: var(--band); color: var(--band-fg); border-color: var(--band); }
.ins.feature h3 { color: var(--band-fg); font-size: clamp(26px, 2.6vw, 34px); }
.ins.feature p { color: var(--band-muted); }
.ins .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--indigo-soft); color: var(--indigo); }
.ins.feature .pill { background: #ffffff1a; color: var(--band-fg); }
.pill.soon { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.ins p { color: var(--muted); font-size: 15.5px; }
.ins .foot { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--dawn-ink); }
.ins.feature .foot { color: var(--dawn); }

/* sub-page hero */
.phero { background: var(--band); color: var(--band-fg); padding-block: clamp(48px, 7vw, 92px); overflow: hidden; position: relative; }
.phero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.phero h1 { color: var(--band-fg); font-size: clamp(40px, 5.4vw, 70px); max-width: 17ch; }
.phero .lede { color: var(--band-muted); margin-top: 20px; max-width: 54ch; }
.phero .mini-window { width: 150px; height: 190px; }
.crumb { font-size: 14.5px; color: var(--band-muted); margin-bottom: 16px; }
.crumb a { text-decoration: none; cursor: pointer; }
.crumb a:hover { color: var(--band-fg); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { text-decoration: none; border: 1px solid #ffffff38; border-radius: 999px; padding: 8px 14px; font-size: 14.5px; color: var(--band-fg); cursor: pointer; }
.jump a:hover { background: var(--band-2); }

/* expertise detail */
.exp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.exp:first-child { border-top: 0; padding-top: 0; }
.exp .idx { font-family: var(--mono); font-size: 13px; color: var(--dawn-ink); letter-spacing: .1em; }
.exp h2 { font-size: clamp(30px, 3.2vw, 42px); margin-top: 8px; }
.exp .sit { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.exp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.exp-cols h4 { margin: 0 0 10px; font-size: 14px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
html[lang="ar"] .exp-cols h4 { font-family: var(--ar-body); letter-spacing: 0; font-size: 15px; font-weight: 600; }
.exp-cols ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; color: var(--ink-2); font-size: 16px; }
.exp-cols li::marker { color: var(--dawn); }
.exp .time { margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--indigo); font-weight: 600; background: var(--indigo-soft); border-radius: 999px; padding: 6px 14px; }
.craft { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.craft div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.craft b { display: block; font-size: 16.5px; }
.craft span { color: var(--muted); font-size: 15px; }

/* work page */
.cases { display: grid; gap: 22px; }
.case-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.case-row .art { min-height: 260px; }
.case-row .art svg { width: 100%; height: 100%; display: block; }
.case-row .body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.case-row dl { margin: 6px 0 0; display: grid; gap: 12px; }
.case-row dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dawn-ink); }
html[lang="ar"] .case-row dt { font-family: var(--ar-body); letter-spacing: 0; font-size: 13.5px; font-weight: 600; }
.case-row dd { margin: 3px 0 0; color: var(--ink-2); font-size: 16px; }
.flag { display: inline-block; font-size: 12.5px; border: 1px dashed var(--muted); color: var(--muted); border-radius: 999px; padding: 3px 10px; justify-self: start; }
.names { columns: 3; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.names li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-family: var(--display); font-size: 19px; }
html[lang="ar"] .names li { font-family: var(--ar-body); font-size: 17px; }
.names small { font-family: var(--body); color: var(--muted); font-size: 13px; }

/* AI page */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agent { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.agent .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); }
.agent p { color: var(--muted); font-size: 15.5px; }
.agent .cad { font-size: 13.5px; font-weight: 600; color: var(--dawn-ink); }
.outcomes { width: 100%; border-collapse: collapse; font-size: 16px; }
.outcomes th, .outcomes td { text-align: start; padding: 14px 12px 14px 0; border-bottom: 1px solid #ffffff1a; vertical-align: top; }
.outcomes th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); font-weight: 500; }
html[lang="ar"] .outcomes th { font-family: var(--ar-body); letter-spacing: 0; font-size: 14px; }
.outcomes td:first-child { color: var(--band-fg); font-weight: 600; }
.outcomes td { color: var(--band-muted); }
.table-wrap { overflow-x: auto; }
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.safe div { border-top: 3px solid var(--dawn); padding-top: 14px; }
.safe b { display: block; font-size: 17px; }
.safe span { color: var(--muted); font-size: 15px; }

/* about */
.bio-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.bio-grid .portrait { position: sticky; top: 100px; }
.bio p { font-size: 18px; margin-top: 16px; color: var(--ink-2); }
.bio p:first-of-type { font-size: 21px; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .facts dt { font-family: var(--ar-body); letter-spacing: 0; font-size: 13.5px; }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.principle { border-top: 2px solid var(--band-fg); padding-top: 16px; }
.principle p { color: var(--band-muted); font-size: 15.5px; margin-top: 8px; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.member { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; align-items: start; }
.member .mono { width: 64px; height: 76px; border-radius: 32px 32px 8px 8px; background: var(--indigo-soft); display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: var(--indigo); }
.member b { display: block; font-size: 17px; }
.member .role { color: var(--dawn-ink); font-size: 14px; font-weight: 600; }
.member p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.info { display: grid; gap: 18px; margin-top: 28px; }
.info .k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .info .k { font-family: var(--ar-body); letter-spacing: 0; font-size: 13.5px; }
.info .v { font-size: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.copy { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 11px; font-size: 13px; cursor: pointer; color: var(--ink); }
form.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: var(--pearl); color: var(--ink); padding: 12px 14px; min-height: 50px; font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: none; color: var(--err); font-size: 13.5px; margin-top: 5px; }
.field.bad input, .field.bad textarea { border-color: var(--err); }
.field.bad .err { display: block; }
.consent { font-size: 13.5px; color: var(--muted); }
.sent { display: grid; gap: 12px; justify-items: start; }
.sent .ok { display: inline-flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 600; }

/* CTA band + footer */
.cta-band { background: var(--dawn); color: var(--on-dawn); padding-block: clamp(48px, 7vw, 84px); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { color: var(--on-dawn); max-width: 20ch; }
.cta-band .btn { background: var(--on-dawn); color: #FFF4EA; }
footer { background: var(--band); color: var(--band-muted); padding-block: 56px 32px; font-size: 15px; }
.fcols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
footer h4 { margin: 0 0 12px; color: var(--band-fg); font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; cursor: pointer; }
footer a:hover { color: var(--band-fg); text-decoration: underline; }
.tagline { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--band-fg); margin-top: 14px; }
html[lang="ar"] .tagline { font-family: var(--ar-display); font-style: normal; }
.fbase { margin-top: 44px; padding-top: 20px; border-top: 1px solid #ffffff1a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.proto { border: 1px dashed var(--band-muted); border-radius: 999px; padding: 2px 10px; }

/* responsive */
@media (max-width: 1100px) {
  nav.main { display: none; }
  .burger { display: inline-flex; }
  .head-tools .btn { display: none; }
  .head-tools { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .moments, .cards3, .agents, .team { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .moment:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
  .moment:nth-child(2n) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
  .process, .principles, .safe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ins-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .craft { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .names { columns: 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .head { height: 64px; }
  .brand .sub { display: none; }
  .hero-grid, .split, .founder, .exp, .case-row, .bio-grid, .contact-grid, .phero .wrap { grid-template-columns: minmax(0, 1fr); }
  .window-art svg { max-width: 300px; margin-inline: auto; }
  .hero .ctas { padding-bottom: 8px; }
  .creds .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cred, .cred + .cred { padding: 16px 12px 18px 0; border-inline-start: 0; }
  .cred:nth-child(even) { padding-inline-start: 14px; border-inline-start: 1px solid #ffffff1a; }
  .cred b { font-size: 24px; }
  .moments, .cards3, .agents, .team, .process, .principles, .safe, .ins-grid, .craft, .exp-cols, .row2, .facts { grid-template-columns: minmax(0, 1fr); }
  .moment:nth-child(n) { padding-inline: 0; border-inline-start: 0; }
  .ins.feature { grid-column: auto; }
  .names { columns: 1; }
  .phero .mini-window { display: none; }
  .bio-grid .portrait { position: relative; top: 0; max-width: 360px; }
  .founder .portrait { max-width: 300px; }
  .case-row .art { min-height: 200px; }
  .fcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fcols > div:first-child, .fcols > div:last-child { grid-column: 1 / -1; }
}
footer li { overflow-wrap: anywhere; }
.skip { position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(env(safe-area-inset-top, 0px) - 80px); z-index: 70; background: var(--dawn); color: var(--on-dawn); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }
h1:focus, main:focus, .sent:focus { outline: none; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.act { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--indigo); color: var(--indigo); font-weight: 600; font-size: 15px; text-decoration: none; }
.act:hover { background: var(--indigo-soft); }
.hand-h { font-size: 17px; color: var(--ink); }
.draft { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--body); font-size: 14.5px; color: var(--ink-2); background: var(--pearl); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; width: 100%; max-height: 220px; overflow: auto; }
footer a[href^="tel"], footer a[href^="mailto"], footer a[href*="wa.me"] { color: var(--band-muted); }
