/* behroozi.ir — executive design system
   Ink + paper editorial palette, one copper accent, Vazirmatn for both scripts.
   Logical properties throughout so RTL (fa) and LTR (en) share one stylesheet. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/vazirmatn-variable.woff2") format("woff2-variations"), url("fonts/vazirmatn-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Midnight is the default: a deep ink canvas, warm copper light, champagne highlights. */
  --ink: #05070c;
  --ink-2: #0d121c;
  --ink-3: #151c29;
  --paper: #07090f;
  --paper-2: #0a0e16;
  --surface: #0f1520;
  --surface-2: #141b28;
  --text: #f2ede5;
  --muted: #9ba3b1;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #ec9a5f;
  --accent-2: #f5cf98;
  --accent-deep: #c4622a;
  --accent-soft: rgba(236, 154, 95, .12);
  --glow: rgba(236, 154, 95, .35);
  --on-dark: #f2ede5;
  --on-dark-muted: #9ba3b1;
  --dark-line: rgba(255, 255, 255, .09);
  --dark-accent: #ec9a5f;
  --grad-accent: linear-gradient(120deg, var(--accent-2), var(--accent) 45%, var(--accent-deep));
  --grad-border: linear-gradient(140deg, rgba(245, 207, 152, .55), rgba(236, 154, 95, .12) 35%, rgba(255, 255, 255, .05) 60%, rgba(236, 154, 95, .3));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --shell: 1220px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 11vw, 140px);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #f6f3ee;
  --paper-2: #ede8e0;
  --surface: #fffdf9;
  --surface-2: #f7f2ea;
  --text: #141821;
  --muted: #586070;
  --line: rgba(20, 24, 33, .1);
  --line-strong: rgba(20, 24, 33, .2);
  --accent: #b85a22;
  --accent-2: #d98a4e;
  --accent-deep: #8f4214;
  --accent-soft: rgba(184, 90, 34, .1);
  --glow: rgba(184, 90, 34, .22);
  --grad-border: linear-gradient(140deg, rgba(184, 90, 34, .45), rgba(20, 24, 33, .08) 40%, rgba(20, 24, 33, .06) 60%, rgba(184, 90, 34, .25));
  --shadow: 0 1px 2px rgba(11, 15, 23, .05), 0 18px 40px -18px rgba(11, 15, 23, .22);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .25em; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.025em; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; padding: 0; list-style: none; }
blockquote, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #fff; }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 36px; height: 36px; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="fa"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }

/* Latin phrases isolated with dir="ltr" still align with the Persian reading edge */
[dir="rtl"] :is(.model-key, .ladder strong, .signal-grid h3, .card h3, .theme h2, .story-head h3, .case-hero h1, .project-category-heading h2, .system-card strong, .profile-system strong, .profile-system span, .clean-list li, .map-node strong, .featured-thesis h2) { text-align: right; }

/* ---------- buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.button:hover { transform: translateY(-1px); }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.button-ghost { border-color: var(--line-strong); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-shell { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--ink); color: var(--on-dark); font: 800 14px/1 var(--font); letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -3px 0 var(--dark-accent);
}
.brand-text { display: grid; line-height: 1.3; }
.brand-text strong { font-size: 16px; }
.brand-text span { font-size: 12.5px; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-link { padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--paper-2); }
.nav-contact-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch, .theme-toggle, .menu-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text); font: 700 14px/1 var(--font); text-decoration: none; cursor: pointer;
}
.lang-switch:hover, .theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.menu-toggle { display: none; gap: 5px; align-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); --text: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --line-strong: rgba(243, 239, 232, .26); --accent: var(--dark-accent); --surface: var(--ink-2); --paper-2: var(--ink-3); }
.section-heading { display: grid; gap: 16px; max-width: 760px; margin-block-end: clamp(36px, 5vw, 56px); }
.section-heading h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; }
html[lang="en"] .section-heading h2 { line-height: 1.12; }
.section-lede { font-size: 18px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split > .section-heading { margin: 0; }
.split-sticky { align-items: start; }
.split-sticky > .section-heading { position: sticky; top: 112px; }
.split-copy { display: grid; gap: 22px; align-content: start; }
.split-copy .section-heading { margin: 0; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-dark);
  --text: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --line-strong: rgba(243, 239, 232, .26); --accent: var(--dark-accent);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 65% at 80% 40%, rgba(228, 138, 80, .18), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(120, 140, 180, .10), transparent 70%);
}
[dir="rtl"] .hero::before { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: end; padding-block: clamp(56px, 8vw, 104px) 0; }
.hero-copy { display: grid; gap: 26px; padding-block-end: clamp(40px, 6vw, 88px); }
.hero-name { font-size: 18px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.hero-name::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(36px, 5vw, 66px); line-height: 1.22; font-weight: 850; }
html[lang="en"] .hero h1 { line-height: 1.04; }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-list li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-portrait-frame { position: relative; align-self: end; margin-inline: auto; width: min(100%, 470px); }
.hero-portrait-frame::before {
  content: ""; position: absolute; inset: 8% -6% 0 6%; border: 1px solid rgba(228, 138, 80, .5); border-radius: 220px 220px 0 0; border-bottom: 0;
}
[dir="rtl"] .hero-portrait-frame::before { inset: 8% 6% 0 -6%; }
.hero-portrait { position: relative; width: 100%; aspect-ratio: 600 / 730; object-fit: cover; border-radius: 220px 220px 0 0; }
.portrait-card {
  position: absolute; inset-inline-start: -28px; bottom: 36px; display: grid; gap: 2px;
  padding: 16px 20px; border-radius: 14px; background: rgba(18, 24, 38, .82); border: 1px solid var(--dark-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.portrait-card strong { font-size: 16px; }
.portrait-card span { font-size: 13px; color: var(--on-dark-muted); }
.hero-name span { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--on-dark-muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--dark-line); }
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(100deg, #f2b386, #e48a50 45%, #c8652c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[dir="rtl"] .hero h1 em { background-image: linear-gradient(260deg, #f2b386, #e48a50 45%, #c8652c); }

/* credentials: real roles only, no logos */
.credentials { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 26px 30px; border-top: 1px solid var(--dark-line); }
.cred-title { font-size: 13px; font-weight: 800; color: var(--accent); max-width: 11ch; line-height: 1.5; }
html[lang="en"] .cred-title { letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.cred-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cred-list li { display: grid; gap: 2px; padding-inline: 22px; border-inline-start: 1px solid var(--dark-line); }
.cred-list strong { font-size: 15px; line-height: 1.4; color: var(--on-dark); }
.cred-list span[dir="ltr"] { font-size: 14px; color: var(--on-dark-muted); }
[dir="rtl"] .cred-list :is(strong, span[dir="ltr"]) { text-align: right; }
.cred-tag { font-size: 11.5px; font-weight: 700; color: var(--accent); }
html[lang="en"] .cred-tag { letter-spacing: .08em; text-transform: uppercase; }

/* ---------- CEO brief ---------- */
.ceo-brief { position: relative; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.outcome { position: relative; display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto auto 1fr auto; padding: clamp(24px, 3vw, 36px); border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); transition: background-color .25s var(--ease); }
.outcome:nth-child(3n+1) { border-inline-start: 0; }
.outcome:nth-child(-n+3) { border-top: 0; }
.outcome::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease); }
[dir="rtl"] .outcome::before { --origin: right; }
.outcome:hover { background: var(--paper); }
.outcome:hover::before { transform: scaleX(1); }
.outcome-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.outcome-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.outcome h3 { font-size: clamp(20px, 1.9vw, 23px); line-height: 1.45; }
.outcome-concern { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; line-height: 1.7; color: var(--text); }
.outcome-concern span, .outcome-proof span, .phase-out span, .story-business span { font-size: 12px; font-weight: 800; color: var(--accent); }
html[lang="en"] :is(.outcome-concern, .outcome-proof, .phase-out, .story-business) span { letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.outcome-response { color: var(--muted); font-size: 15.5px; }
.outcome-proof { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-strong); text-decoration: none; font-size: 14.5px; }
.outcome-proof strong { font-weight: 700; }
.outcome-proof .icon { margin-inline-start: auto; color: var(--accent); transition: transform .2s var(--ease); }
.outcome-proof:hover strong { color: var(--accent); }
.outcome-proof:hover .icon { transform: translateX(4px); }
[dir="rtl"] .outcome-proof:hover .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- principle statement ---------- */
.statement { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(80px, 11vw, 150px); background: var(--ink); color: var(--on-dark); --accent: var(--dark-accent); }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 50% 120%, rgba(228, 138, 80, .28), transparent 70%); }
.statement-inner { display: grid; gap: 26px; justify-items: center; text-align: center; }
.statement .eyebrow { color: var(--accent); }
.statement blockquote p { font-size: clamp(34px, 6vw, 80px); font-weight: 850; line-height: 1.25; letter-spacing: -.02em; max-width: 18ch; text-wrap: balance; }
html[lang="en"] .statement blockquote p { line-height: 1.05; }
.statement-sub { max-width: 60ch; color: var(--on-dark-muted); font-size: clamp(17px, 1.5vw, 19px); }

/* ---------- engagement phases ---------- */
.phases { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.phases::before { content: ""; position: absolute; top: 11px; inset-inline-start: 12px; inset-inline-end: calc((100% - 72px) / 5 - 12px); height: 2px; background: linear-gradient(90deg, var(--accent), var(--line-strong)); }
[dir="rtl"] .phases::before { background: linear-gradient(270deg, var(--accent), var(--line-strong)); }
.phase { position: relative; display: grid; gap: 10px; align-content: start; justify-items: start; grid-template-rows: auto auto auto 1fr auto; }
.phase-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--paper-2); margin-block-end: 12px; }
.phase:first-child .phase-dot { background: var(--accent); }
.phase-key { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.phase h3 { font-size: 22px; }
.phase p { color: var(--muted); font-size: 15px; }
.phase .phase-out { display: grid; gap: 2px; align-self: end; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14.5px; }

/* ---------- CEO questions ---------- */
.faq-list { display: grid; border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.8vw, 21px); font-weight: 750; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq-icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--accent); transition: transform .25s var(--ease), background-color .25s; }
.faq[open] .faq-icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq p { padding-block-end: 24px; max-width: 64ch; color: var(--muted); }

/* ---------- more systems strip ---------- */
.more-systems { background: var(--ink); color: var(--on-dark); padding-block: 0 clamp(64px, 8vw, 104px); }
.more-systems-inner { display: grid; gap: 20px; padding-top: 36px; border-top: 1px solid var(--dark-line); }
.more-systems-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.system-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.system-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--dark-line); border-radius: 14px; text-decoration: none; background: rgba(255, 255, 255, .02); transition: border-color .2s, background-color .2s; }
.system-chip .icon { flex: none; color: var(--accent); }
.system-chip span { display: grid; min-width: 0; }
.system-chip strong { font-size: 14.5px; line-height: 1.4; }
.system-chip small { font-size: 12px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .system-chip :is(strong, small) { text-align: right; }
.system-chip:hover { border-color: rgba(228, 138, 80, .5); background: rgba(228, 138, 80, .06); }

.story-business { display: grid; gap: 4px; padding: 16px 20px; border-inline-start: 3px solid var(--accent); background: rgba(228, 138, 80, .07); border-radius: 0 12px 12px 0; font-size: clamp(16px, 1.5vw, 18px); font-weight: 650; line-height: 1.7; color: var(--text); }
[dir="rtl"] .story-business { border-radius: 12px 0 0 12px; }

/* ---------- leadership model ---------- */
.model-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.model-step {
  position: relative; display: grid; gap: 12px; align-content: start; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.model-step .icon { color: var(--accent); }
.model-step::after {
  content: ""; position: absolute; top: 50px; inset-inline-end: -13px; z-index: 1; width: 10px; height: 10px;
  border-top: 2px solid var(--accent); border-inline-end: 2px solid var(--accent); transform: rotate(45deg);
}
[dir="rtl"] .model-step::after { transform: rotate(-45deg); }
.model-step:last-child::after { display: none; }
.model-key { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.model-step h3 { font-size: 24px; }
.model-step p { color: var(--muted); font-size: 15.5px; }
.model-step .model-output { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--text); font-weight: 700; font-size: 14.5px; }

/* ---------- transformation stories ---------- */
.stories { display: grid; gap: 24px; }
.story { display: grid; gap: 28px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.story-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.story-head h3 { font-size: clamp(26px, 3vw, 36px); margin-block: 6px 8px; }
.story-head p:last-child { color: var(--muted); max-width: 70ch; }
.story-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(228, 138, 80, .3); }
.story-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.story-flow li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-inline-start: 1px solid var(--line); }
.story-flow li:first-child { border-inline-start: 0; }
.story-flow li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--accent); opacity: calc(.25 + var(--i, 0) * .25); }
.story-flow li:nth-child(2) { --i: 1; } .story-flow li:nth-child(3) { --i: 2; } .story-flow li:nth-child(4) { --i: 3; }
.story-label { font-size: 13px; font-weight: 800; color: var(--accent); }
.story-flow p { font-size: 15px; line-height: 1.75; color: var(--text); }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.story-foot p { color: var(--muted); max-width: 72ch; font-size: 15.5px; }
.story-foot strong { color: var(--text); }

/* ---------- loop diagram ---------- */
.loop { width: min(100%, 460px); margin-inline: auto; }
.loop-svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.loop-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.loop-ring-inner { fill: var(--accent-soft); stroke: none; }
.loop-arrow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loop-node rect { fill: var(--surface); stroke: var(--line-strong); }
.loop-node text { fill: var(--text); font-size: 15px; font-weight: 700; }
.loop-node:first-of-type rect { fill: var(--accent); stroke: var(--accent); }
.loop-node:first-of-type text { fill: #fff; }
.loop-centre { fill: var(--text); font-size: 22px; font-weight: 850; }
.pull-quote { padding-inline-start: 20px; border-inline-start: 3px solid var(--accent); font-size: 20px; font-weight: 700; line-height: 1.7; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s var(--ease); }
.card:hover { border-color: var(--line-strong); }
.card .icon { color: var(--accent); margin-block-end: 6px; }
.card h3 { font-size: 19px; line-height: 1.5; }
.card p { color: var(--muted); font-size: 15.5px; }
.gates .card { border-top: 3px solid var(--accent); }
.criteria .card h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- decisions ---------- */
.decision-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.decision { display: grid; gap: 10px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.decision h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; }
.decision p { color: var(--muted); }
.decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); }

/* ---------- people ladder ---------- */
.people-model { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 20px; }
.ladder { display: grid; gap: 10px; counter-reset: rung; }
.ladder li {
  position: relative; display: grid; gap: 2px; padding: 16px 20px; padding-inline-start: 56px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  margin-inline-start: calc(var(--step, 0) * 14px);
}
.section-dark .ladder li, .section-tint .ladder li { background: var(--surface); }
.ladder li::before {
  counter-increment: rung; content: ""; position: absolute; inset-inline-start: 20px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface);
}
.ladder li::after { content: ""; position: absolute; inset-inline-start: 26px; top: 40px; bottom: -12px; width: 2px; background: var(--accent-soft); }
.ladder li:last-child::after { display: none; }
.ladder strong { font-size: 16px; }
.ladder span { color: var(--muted); font-size: 15px; }
.signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.signal-grid h3 { font-size: 16px; margin-block-end: 4px; }
.signal-grid p { color: var(--muted); font-size: 15px; }

/* ---------- career ---------- */
.career-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.career-copy { display: grid; gap: 24px; position: sticky; top: 112px; }
.career-copy .section-heading { margin: 0; }
.stage-figure { display: grid; gap: 12px; }
.stage-photo, .about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.stage-figure figcaption { font-size: 14.5px; color: var(--muted); }
.career-path { position: relative; display: grid; gap: 4px; }
.career-path::before { content: ""; position: absolute; inset-inline-start: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.career-path li { position: relative; display: grid; gap: 8px; padding: 18px 0 22px; padding-inline-start: 40px; }
.career-path li::before { content: ""; position: absolute; inset-inline-start: 0; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-strong); }
.section-tint .career-path li::before { background: var(--paper-2); }
.career-path li.is-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.path-role { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.path-role strong { font-size: 19px; }
.path-role span { font-size: 14px; font-weight: 700; color: var(--accent); }
.career-path p { color: var(--muted); font-size: 15.5px; }

/* ---------- systems ---------- */
.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-block-end: 32px; }
.system-card {
  display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.system-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.system-card .icon { color: var(--accent); }
.system-card strong { font-size: 21px; }
.system-copy { color: var(--muted); font-size: 15px; }
.system-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 14.5px; color: var(--accent); }

/* ---------- closing ---------- */
.closing { padding-block: 0 var(--section); }
.section + .closing, .next-steps + .closing { padding-top: var(--section); }
.closing-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 6vw, 72px); border-radius: 28px; background: var(--ink); color: var(--on-dark);
  --text: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --accent: var(--dark-accent);
  position: relative; overflow: hidden; isolation: isolate;
}
.closing-card::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(rgba(228, 138, 80, .22), transparent 65%); z-index: -1; }
.closing-copy { display: grid; gap: 18px; justify-items: start; }
.closing-copy h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; }
html[lang="en"] .closing-copy h2 { line-height: 1.12; }
.closing-copy p { color: var(--muted); }
.contact-links { display: grid; gap: 10px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, background .2s; }
.contact-link:hover { border-color: var(--accent); background: rgba(228, 138, 80, .06); }
.contact-link .icon { color: var(--accent); }
.contact-link span { display: grid; line-height: 1.4; min-width: 0; }
.contact-link small { font-size: 12.5px; color: var(--muted); }
.contact-link strong { font-size: 15.5px; overflow-wrap: anywhere; }
[dir="rtl"] .contact-link strong[dir="ltr"] { text-align: end; }

/* ---------- next steps ---------- */
.next-steps { padding-block: var(--section) 0; }
.next-steps .eyebrow { margin-block-end: 20px; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.next-card { position: relative; display: grid; gap: 8px; padding: 28px; padding-inline-end: 64px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.next-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.next-card strong { font-size: 22px; }
.next-card .next-copy { color: var(--muted); font-size: 15px; }
.next-card > .icon { position: absolute; inset-inline-end: 24px; top: 50%; translate: 0 -50%; color: var(--accent); }

/* ---------- page heroes ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.page-hero-copy { display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.28; }
html[lang="en"] .page-hero h1 { line-height: 1.08; }
.page-hero-aside { display: grid; }
.profile-portrait { position: relative; width: min(100%, 380px); margin-inline: auto; }
.profile-portrait img { width: 100%; aspect-ratio: 600 / 730; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
.profile-portrait figcaption { display: grid; gap: 2px; margin-top: 14px; text-align: center; }
.profile-portrait figcaption span { font-size: 13px; color: var(--muted); }
.about-photo { width: 100%; }
.lens-list { display: grid; gap: 8px; }
.lens-list li { padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.lens-list li:nth-child(odd) { margin-inline-start: 24px; }
.not-found { min-height: 60vh; display: grid; align-items: center; }
.not-found .narrow { display: grid; gap: 22px; }
.not-found-en { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.not-found-en h2 { font-size: 22px; }

/* ---------- flows ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.flow li { position: relative; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 15px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -24px; top: 50%; translate: 0 -52%; color: var(--accent); font-weight: 800; }
.flow-accent li:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.flow-wide { justify-content: flex-start; }
.flow-vertical { flex-direction: column; flex-wrap: nowrap; gap: 22px; align-items: stretch; }
.flow-vertical li { border-radius: 14px; padding: 14px 20px; }
.flow-vertical li:not(:last-child)::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -24px; translate: none; }
.stack { display: grid; gap: 10px; }
.stack li { display: grid; gap: 6px; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.stack li:nth-child(2) { margin-inline: 16px; border-color: var(--line-strong); }
.stack li:nth-child(3) { margin-inline: 32px; background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.stack li:nth-child(3) span { color: var(--on-dark-muted); }
.stack strong { font-size: 17px; }
.stack span { font-size: 14.5px; color: var(--muted); }
.horizon { display: grid; gap: 10px; }
.horizon li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.horizon li span { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.horizon li:nth-child(2) { margin-inline-start: 24px; } .horizon li:nth-child(3) { margin-inline-start: 48px; }

/* ---------- projects ---------- */
.project-map { display: grid; gap: 10px; }
.map-node { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.map-node:hover { border-color: var(--accent); }
.map-node .icon { grid-row: span 2; color: var(--accent); }
.map-node strong { font-size: 16px; }
.map-node span { font-size: 13.5px; color: var(--muted); }
.project-categories { display: grid; gap: clamp(48px, 6vw, 80px); }
.project-category-heading { display: flex; align-items: flex-start; gap: 16px; margin-block-end: 24px; }
.project-category-heading .icon { color: var(--accent); margin-top: 6px; }
.project-category-heading h2 { font-size: clamp(24px, 2.6vw, 32px); }
.project-category-heading p { color: var(--muted); }
.project-category .system-grid { margin: 0; }

/* ---------- case study ---------- */
.case-hero { padding-block: clamp(48px, 7vw, 96px); background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.case-hero-copy { display: grid; gap: 18px; justify-items: start; }
.case-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.signal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.glance { padding: 28px; border-radius: 20px; background: var(--ink); color: var(--on-dark); display: grid; gap: 18px; --accent: var(--dark-accent); --muted: var(--on-dark-muted); }
.glance dl { display: grid; gap: 18px; }
.glance dt { font-size: 13px; font-weight: 800; color: var(--accent); }
.glance dd { font-size: 15px; line-height: 1.75; color: var(--on-dark); }
.case-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.case-rail { position: sticky; top: 112px; display: grid; gap: 14px; }
.case-rail ol { display: grid; gap: 2px; border-inline-start: 2px solid var(--line); }
.case-rail a { display: block; padding: 8px 16px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); font-weight: 600; text-decoration: none; }
.case-rail a:hover, .case-rail a.is-active { color: var(--text); border-color: var(--accent); }
.case-body { display: grid; gap: clamp(48px, 6vw, 72px); max-width: 780px; }
.case-chapter { display: grid; gap: 22px; scroll-margin-top: 100px; }
.case-block { display: grid; gap: 10px; }
.case-block h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; }
.case-block p { color: var(--muted); font-size: 17.5px; }
.case-truth { grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: clamp(24px, 4vw, 36px); border-radius: 20px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.case-truth > .icon { color: var(--accent); }
.case-truth > div { display: grid; gap: 12px; }
.case-truth h2 { font-size: 24px; }
.truth-ladder { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.truth-note { font-size: 14.5px; color: var(--muted); }
.case-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding-block: 0 var(--section); }
.case-pager a { display: grid; gap: 4px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.case-pager a:hover { border-color: var(--accent); }
.case-pager a:nth-child(2) { place-items: center; }
.case-pager a:last-child { text-align: end; }
.case-pager span { font-size: 13px; color: var(--muted); }
.case-pager strong { font-size: 17px; }
.case-pager + .closing { padding-top: 0; }

/* ---------- profile, about, writing ---------- */
.profile-systems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profile-system { display: grid; gap: 6px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.profile-system:hover { border-color: var(--accent); }
.profile-system .icon { color: var(--accent); }
.profile-system span { font-size: 13px; color: var(--muted); }
.credentials { display: grid; gap: 14px; }
.credentials h3 { font-size: 16px; color: var(--accent); }
.clean-list { display: grid; gap: 8px; }
.clean-list li { padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cert-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cert-list li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; }
.manifesto { display: grid; gap: 24px; max-width: 960px; }
.manifesto blockquote { font-size: clamp(26px, 3.4vw, 42px); font-weight: 750; line-height: 1.55; }
html[lang="en"] .manifesto blockquote { line-height: 1.3; }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theme { display: grid; gap: 12px; align-content: start; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.theme h2 { font-size: 22px; line-height: 1.3; }
.theme p:last-child { color: var(--muted); font-size: 15.5px; }
.contact-direct { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: var(--ink); color: var(--on-dark); --text: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--dark-line); --accent: var(--dark-accent); }

/* ---------- footer ---------- */
.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer-chain { font-size: 13px; font-weight: 700; color: var(--accent) !important; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; justify-self: start; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-meta a { color: inherit; }

/* ---------- motion (progressive; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* =====================================================================
   Premium layer: ambient light, gradient hairlines, depth.
   Everything below is decoration on top of the layout above; removing it
   leaves a complete, readable page.
   ===================================================================== */
body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(236, 154, 95, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(90, 120, 190, .07), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
:root[data-theme="light"] body { background: var(--paper); }
::selection { background: var(--accent); color: #120a04; }

/* headings get a soft champagne sheen */
.section-heading h2, .page-hero h1, .case-hero h1, .closing-copy h2, .split-copy h2 {
  background: linear-gradient(180deg, #fffaf2 30%, #cbbfae);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] :is(.section-heading h2, .page-hero h1, .case-hero h1, .split-copy h2) { background: none; -webkit-text-fill-color: currentColor; }

/* eyebrow as a quiet pill */
.eyebrow {
  padding: 6px 14px 6px 12px; border-radius: 999px; width: fit-content;
  background: var(--accent-soft); border: 1px solid rgba(236, 154, 95, .22);
  font-size: 12.5px;
}
html[lang="fa"] .eyebrow { font-size: 13.5px; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }

/* buttons */
.button-accent {
  background: var(--grad-accent); color: #170b03; border: 0;
  box-shadow: 0 10px 30px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.button-accent:hover { background: var(--grad-accent); filter: brightness(1.06); box-shadow: 0 14px 38px -8px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.button-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); }
.button-ghost:hover { background: var(--accent-soft); }

/* header */
.site-header { background: color-mix(in srgb, var(--paper) 72%, transparent); border-bottom-color: var(--line); }
.brand-mark { background: var(--grad-accent); color: #170b03; box-shadow: 0 6px 18px -6px var(--glow); }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-2); }
:root[data-theme="light"] .nav-link[aria-current="page"] { color: var(--accent-deep); }

/* gradient hairline cards */
.card, .system-card, .next-card, .model-step, .people-model, .glance, .outcome-grid, .story, .faq-list, .contact-direct, .map-node, .theme, .profile-system, .phase .phase-out {
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-border) border-box;
}
.story { background: linear-gradient(180deg, var(--surface-2), var(--surface)) padding-box, var(--grad-border) border-box; }
.card, .system-card, .next-card, .model-step { box-shadow: var(--shadow); }
.card:hover, .system-card:hover, .next-card:hover, .model-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(236, 154, 95, .25), 0 20px 50px -30px var(--glow);
}
.model-step { transition: transform .3s var(--ease), box-shadow .3s; }
.icon-md, .icon-lg { filter: drop-shadow(0 0 12px rgba(236, 154, 95, .35)); }

/* ---------- hero: stage lighting ---------- */
.hero { background: transparent; }
.hero::before {
  background:
    radial-gradient(42% 60% at 22% 42%, rgba(236, 154, 95, .30), transparent 70%),
    radial-gradient(30% 40% at 90% 10%, rgba(245, 207, 152, .10), transparent 70%),
    linear-gradient(180deg, #04060b, #07090f 85%);
}
[dir="ltr"] .hero::before { transform: scaleX(-1); }
[dir="rtl"] .hero::before { transform: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
}
.hero-grid { min-height: min(86vh, 860px); align-items: center; padding-block-start: clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.2; letter-spacing: 0; }
html[lang="en"] .hero h1 { letter-spacing: -.03em; line-height: 1.02; }
.hero h1 em { filter: drop-shadow(0 6px 30px rgba(236, 154, 95, .35)); }
.hero .lede { color: #b9bfca; }
.role-list li { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.hero-portrait-frame { width: min(100%, 500px); align-self: end; }
.hero-portrait-frame::after {
  content: ""; position: absolute; inset: 14% -8% -4% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 154, 95, .45), rgba(236, 154, 95, .08) 60%, transparent);
  filter: blur(20px);
}
.hero-portrait-frame::before { border-color: rgba(245, 207, 152, .55); border-width: 1.5px; box-shadow: 0 0 40px -6px var(--glow); }
.hero-portrait { -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.portrait-card {
  background: linear-gradient(rgba(13, 18, 28, .78), rgba(13, 18, 28, .78)) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent; bottom: 64px;
}
.credentials { border-top: 0; padding-block: 28px 36px; }
.credentials::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 207, 152, .35), transparent); }
.cred-list strong { font-size: 16px; }

/* ---------- CEO brief: bento ---------- */
.ceo-brief { position: relative; isolation: isolate; }
.ceo-brief::before { content: ""; position: absolute; inset: 10% 0 auto; height: 60%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(236, 154, 95, .08), transparent 70%); }
.outcome-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; border-radius: 0; overflow: visible; box-shadow: none; background: none; border: 0; }
.outcome {
  border: 1px solid transparent !important; border-radius: 22px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface)) padding-box, var(--grad-border) border-box;
  box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.outcome:hover { background: linear-gradient(170deg, var(--surface-2), var(--surface)) padding-box, var(--grad-border) border-box; transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 24px 60px -36px var(--glow); }
.outcome::before { height: 2px; background: var(--grad-accent); }
.outcome::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 154, 95, .12), transparent); pointer-events: none; }
[dir="rtl"] .outcome::after { inset: -40% auto auto -40%; }
.outcome { grid-column: span 2; }
.outcome:nth-child(-n+2) { grid-column: span 3; }
.outcome:nth-child(6) { grid-column: 1 / -1; }
.outcome-top .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(236, 154, 95, .25); }
.outcome h3 { font-size: clamp(22px, 2.1vw, 27px); }
.outcome-concern { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }

/* ---------- transformations ---------- */
.section-dark { background: linear-gradient(180deg, var(--ink), #080b12); position: relative; isolation: isolate; }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 50% 0%, rgba(236, 154, 95, .09), transparent 70%); pointer-events: none; }
.story-flow { border-color: var(--line); background: rgba(255, 255, 255, .015); }
.story-flow li::before { background: var(--grad-accent); }
.story-icon { box-shadow: 0 0 30px -8px var(--glow); }
.story-business { background: linear-gradient(90deg, rgba(236, 154, 95, .12), rgba(236, 154, 95, .02)); }
[dir="rtl"] .story-business { background: linear-gradient(270deg, rgba(236, 154, 95, .12), rgba(236, 154, 95, .02)); }
.more-systems { background: #080b12; }

/* ---------- statement ---------- */
.statement { background: #04060a; }
.statement::before { background: radial-gradient(45% 70% at 50% 115%, rgba(236, 154, 95, .45), transparent 70%), radial-gradient(30% 30% at 50% 0%, rgba(245, 207, 152, .06), transparent 70%); }
.statement blockquote p { background: linear-gradient(180deg, #fffaf2, #e8c9a3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- engagement ---------- */
.section-tint { background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-block: 1px solid var(--line); }
.phases::before { background: var(--grad-accent); opacity: .7; height: 2px; }
.phase-dot { background: var(--paper); box-shadow: 0 0 0 6px var(--paper-2), 0 0 18px var(--glow); }
.phase:first-child .phase-dot { background: var(--grad-accent); }

/* ---------- misc ---------- */
.faq-list { border-radius: 22px; padding: 6px 28px; border-top: 0; }
.faq:last-child { border-bottom: 0; }
.faq[open] summary { color: var(--accent-2); }
.closing-card { background: radial-gradient(80% 120% at 0% 100%, rgba(236, 154, 95, .22), transparent 60%), linear-gradient(160deg, #111827, #07090f); border: 1px solid rgba(245, 207, 152, .18); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 30px 80px -50px var(--glow); }
.page-hero, .case-hero { background: radial-gradient(60% 90% at 85% 0%, rgba(236, 154, 95, .14), transparent 70%), linear-gradient(180deg, #05070c, var(--paper)); }
.stage-photo, .about-photo img, .profile-portrait img { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(245, 207, 152, .14); }
.loop-ring-inner { fill: rgba(236, 154, 95, .08); }
.loop-node:first-of-type text { fill: #170b03; }
.career-path li::before { background: var(--paper); }
.site-footer { background: #04060a; }
.founder-lab .split-copy h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.3; }
html[lang="en"] .founder-lab .split-copy h2 { line-height: 1.1; }


/* ---------- motion (ambient, decorative, all off under reduced motion) ---------- */
.hero-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; inset-inline-end: 52%; top: 4%; background: radial-gradient(closest-side, rgba(236, 154, 95, .55), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(2) { width: 34vw; height: 34vw; inset-inline-start: 58%; top: -10%; background: radial-gradient(closest-side, rgba(245, 207, 152, .22), transparent); animation: drift-b 28s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; inset-inline-start: 40%; bottom: -14%; background: radial-gradient(closest-side, rgba(110, 130, 200, .16), transparent); animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-8%, 10%, 0) scale(.92); } }

.hero-orbit { position: absolute; z-index: -1; width: 128%; aspect-ratio: 1; inset-inline-start: -14%; top: -2%; overflow: visible; pointer-events: none; }
.orbit-ring { fill: none; stroke: rgba(245, 207, 152, .34); stroke-width: 1.2; stroke-dasharray: 3 7; }
.orbit-ring-inner { stroke: rgba(236, 154, 95, .26); stroke-dasharray: 1 5; }
.orbit-spin { transform-origin: 300px 300px; animation: orbit 60s linear infinite; }
.orbit-spin-rev { animation-duration: 90s; animation-direction: reverse; }
.orbit-node { fill: var(--accent-2); filter: drop-shadow(0 0 6px rgba(245, 207, 152, .9)); }
.orbit-node-soft { fill: var(--accent); opacity: .7; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* leadership chain: a signal travels from step to step */
.model-step::after { animation: signal 4s ease-in-out infinite; }
.model-step:nth-child(2)::after { animation-delay: 1s; }
.model-step:nth-child(3)::after { animation-delay: 2s; }
@keyframes signal { 0%, 100% { opacity: .35; } 25% { opacity: 1; filter: drop-shadow(0 0 6px var(--accent)); } 50% { opacity: .35; } }

/* 4SO Lab loop: dashes flow around the ring, the starting node breathes */
.loop-ring { animation: flow 30s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -400; } }
.loop-node:first-of-type rect { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 0 rgba(236, 154, 95, 0)); } 50% { filter: drop-shadow(0 0 12px rgba(236, 154, 95, .8)); } }
.loop-arrow { animation: arrow-fade 7s ease-in-out infinite; }
.loop-arrow:nth-of-type(2n) { animation-delay: 1s; } .loop-arrow:nth-of-type(3n) { animation-delay: 2s; }
@keyframes arrow-fade { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* statement: a slow sheen passes over the line */
.statement blockquote p {
  background: linear-gradient(100deg, #fffaf2 0%, #fffaf2 38%, #f5cf98 48%, #fffaf2 58%, #e8c9a3 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* buttons: light glides across the primary action on hover */
.button-accent { position: relative; overflow: hidden; isolation: isolate; }
.button-accent::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.button-accent:hover::after { transform: translateX(120%); }

/* engagement timeline draws itself as it scrolls into view (where supported) */
@supports (animation-timeline: view()) {
  .phases::before { transform-origin: var(--origin, left); animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  [dir="rtl"] .phases::before { --origin: right; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .story-flow li::before { transform-origin: var(--origin, left); animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  [dir="rtl"] .story-flow li::before { --origin: right; }
}

@media (max-width: 1050px) {
  .site-nav { position: fixed; inset: 72px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 16px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-contact-mobile { display: block; color: var(--accent); }
  .nav-actions { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .nav-cta { display: none; }
  .hero-grid, .page-hero-grid, .case-hero-grid, .split, .career-grid, .closing-card { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .hero-portrait-frame { width: min(100%, 380px); }
  .model-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-step::after { display: none; }
  .story-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-flow li:nth-child(3) { border-inline-start: 0; }
  .story-flow li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card-grid, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cred-title { max-width: none; }
  .cred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .cred-list li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcome:nth-child(n) { grid-column: auto; }
  .hero-grid { min-height: 0; }
  .outcome:nth-child(n) { border-inline-start: 1px solid var(--line); border-top: 1px solid var(--line); }
  .outcome:nth-child(odd) { border-inline-start: 0; }
  .outcome:nth-child(-n+2) { border-top: 0; }
  .phases { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phases::before { top: 12px; bottom: 12px; inset-inline: 11px auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line-strong)); }
  .phase { grid-template-columns: 24px minmax(0, 1fr); column-gap: 22px; grid-template-rows: none; padding-block-end: 30px; }
  .phase > * { grid-column: 2; }
  .phase-dot { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .phase .phase-out { width: auto; justify-self: start; }
  .system-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-sticky > .section-heading, .career-copy, .case-rail { position: static; }
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .case-rail ol { display: flex; flex-wrap: wrap; border: 0; gap: 8px; }
  .case-rail a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 6px 14px; }
  .profile-systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .brand-text span { display: none; }
  .lang-switch, .theme-toggle, .menu-toggle { width: 44px; height: 44px; }
  .hero-copy { padding-block-end: 8px; }
  .portrait-card { inset-inline-start: 0; bottom: 20px; }
  .hero-portrait-frame::before { display: none; }
  .hero-actions .button { flex: 1 1 100%; }
  .model-chain, .card-grid, .card-grid-2, .card-grid-3, .signal-grid, .theme-grid, .decision-grid, .profile-systems { grid-template-columns: minmax(0, 1fr); }
  .story-head { grid-template-columns: minmax(0, 1fr); }
  .story-flow { grid-template-columns: minmax(0, 1fr); }
  .story-flow li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .story-flow li:first-child { border-top: 0; }
  .cred-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cred-list li, .cred-list li:nth-child(odd) { border-inline-start: 0; padding-inline: 0; padding-block: 12px; border-top: 1px solid var(--dark-line); }
  .cred-list li:first-child { border-top: 0; }
  .outcome-grid { grid-template-columns: minmax(0, 1fr); }
  .outcome:nth-child(n) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .outcome:first-child { border-top: 0; }
  .system-chips { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 18px 0; }
  .hero-name { flex-wrap: wrap; }
  .ladder li { margin-inline-start: 0; }
  .horizon li:nth-child(n) { margin-inline-start: 0; }
  .stack li:nth-child(n) { margin-inline: 0; }
  .lens-list li:nth-child(odd) { margin-inline-start: 0; }
  .flow { gap: 8px 26px; }
  .case-pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .case-pager a:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .case-truth { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-meta { flex-direction: column; }
  .closing-card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .phases::before, .story-flow li::before { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .button:hover, .system-card:hover, .next-card:hover, .outcome-proof:hover .icon { transform: none; }
  .outcome::before { transition: none; }
}

@media print {
  .site-header, .site-footer, .closing, .next-steps, .case-rail, .case-pager { display: none; }
  .hero, .section-dark, .statement { background: none; color: #000; }
  .faq p { display: block; }
}
