/* aslanesamai.com — editorial design system */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/inter-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/inter-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --paper-2: #efebe1;
  --card: #fbf9f4;
  --ink: #17171a;
  --ink-2: #4a4944;
  --muted: #7c7a72;
  --line: #e2ddd1;
  --accent: #1f4d3a;
  --accent-2: #2f6b52;
  --accent-soft: #e3ece5;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --read: 68ch;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 48px);
}
:root[data-theme="dark"] { color-scheme: dark; --paper: #121311; --paper-2: #191a17; --card: #1b1c19; --ink: #efece4; --ink-2: #c3bfb3; --muted: #8f8c82; --line: #2c2d29; --accent: #8fc7a8; --accent-2: #a9d6bd; --accent-soft: #1f2a24; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --paper: #121311; --paper-2: #191a17; --card: #1b1c19; --ink: #efece4; --ink-2: #c3bfb3; --muted: #8f8c82; --line: #2c2d29; --accent: #8fc7a8; --accent-2: #a9d6bd; --accent-soft: #1f2a24; }
}

*, *::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(--ink); font: 400 17px/1.65 var(--sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 450; line-height: 1.12; letter-spacing: -0.015em; margin: 0; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: 8px; transform: translateY(-300%); background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { transform: none; }

/* ---------- 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 transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.nav .btn { padding: 9px 16px; font-size: 14px; color: var(--paper); }
.nav .btn:hover { color: #fff; }
.menu { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
  .menu summary span::before { position: absolute; top: -6px; }
  .menu summary span::after { position: absolute; top: 6px; }
  .menu[open] summary span { background: transparent; }
  .menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
  .menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
  .menu nav { position: absolute; right: 0; top: 52px; width: min(82vw, 300px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
  .menu nav a { padding: 12px 12px; border-radius: 10px; text-decoration: none; font-size: 16px; }
  .menu nav a:hover { background: var(--paper-2); }
  .menu nav .btn { justify-content: center; margin-top: 6px; color: var(--paper); }
}

/* ---------- Typography helpers ---------- */
.eyebrow { font: 500 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.6; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--ink-2); }
.more { font-weight: 500; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; transition: margin .15s; }
.more:hover::after { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 9vw, 120px) clamp(56px, 9vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.02; margin-block: 18px 26px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 350; }
.hero .lead { max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.portrait { position: relative; justify-self: end; width: min(100%, 400px); }
.portrait img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; filter: saturate(.92); }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); border-radius: 22px; z-index: -1; }
.portrait figcaption { position: absolute; left: -18px; bottom: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.4); }
.portrait figcaption i { width: 8px; height: 8px; border-radius: 50%; background: #3fa46a; box-shadow: 0 0 0 4px color-mix(in srgb, #3fa46a 25%, transparent); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: min(72%, 300px); order: -1; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); }
.about h2 { font-size: clamp(32px, 4.6vw, 52px); }
.prose-lg p { font-size: clamp(18px, 1.8vw, 20px); color: var(--ink-2); }
.prose-lg p + p { margin-top: 1.1em; }
.prose-lg strong { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.facts div { background: var(--paper); padding: 22px; }
.facts b { display: block; font: 450 26px/1.1 var(--serif); white-space: nowrap; margin-bottom: 8px; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(0,0,0,.35); }
.card h3 { font-size: 23px; margin: 10px 0 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--accent); }
.card .foot { margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 500; }
.card .foot::after { content: " →"; }
.card-media { padding: 0; overflow: hidden; }
.card-media .thumb { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.card-media .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card-media:hover .thumb img { transform: scale(1.03); }
.card-media .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-media h3 { font-size: 21px; margin-top: 0; }
.card-media .thumb.logo { background: #fff; display: grid; place-items: center; padding: 28px 36px; }
.card-media .thumb.logo img { object-fit: contain; max-height: 100%; }
a.card-media:hover .thumb.logo img { transform: scale(1.04); }
.tag { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Testimonials ---------- */
.featured-quote { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 48px); background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(28px, 5vw, 64px); margin-bottom: 20px; }
.featured-quote .mark { font: 400 120px/0.8 var(--serif); color: color-mix(in srgb, currentColor 35%, transparent); }
.featured-quote blockquote { margin: 0; }
.featured-quote blockquote p { font: 350 clamp(20px, 2.3vw, 27px)/1.45 var(--serif); letter-spacing: -0.005em; }
.featured-quote blockquote p + p { margin-top: .9em; }
.featured-quote .who { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 15px; }
.featured-quote .who b { display: block; font-weight: 600; }
.featured-quote .who span { opacity: .7; }
.featured-quote .who a { color: inherit; }
.initials { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 17px/1 var(--serif); background: color-mix(in srgb, var(--paper) 14%, transparent); }
.letter { margin-top: 26px; border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); padding-top: 18px; }
.letter summary { cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.letter summary::-webkit-details-marker { display: none; }
.letter summary::before { content: "+"; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; }
.letter[open] summary::before { content: "–"; }
.letter-body { margin-top: 20px; font: 400 16px/1.7 var(--sans); max-width: 70ch; }
.letter-body p + p { margin-top: .9em; }
.letter-body .meta { opacity: .7; font-size: 14px; }
:root[data-theme="dark"] .featured-quote { background: #20221e; color: var(--ink); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .featured-quote { background: #20221e; color: var(--ink); border: 1px solid var(--line); } }
@media (max-width: 620px) { .featured-quote { grid-template-columns: 1fr; } .featured-quote .mark { font-size: 80px; } }

.quotes { columns: 3 300px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--paper-2); }
.quote figcaption b { display: block; font-weight: 600; font-size: 15px; }
.quote figcaption span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.quote figcaption a { color: var(--accent); }

/* ---------- Lists ---------- */
.list { border-top: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.list a h3 { font-size: clamp(19px, 2vw, 23px); transition: color .15s; }
.list a:hover h3 { color: var(--accent); }
.list a span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert { border-top: 2px solid var(--ink); padding-top: 18px; }
.cert b { display: block; font: 450 20px/1.25 var(--serif); margin-bottom: 8px; }
.cert span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .certs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 20px; }
.contact ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.contact li a { font-size: 17px; }
.calendly-frame { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-height: 700px; }
.calendly-inline-widget { min-width: 300px; height: 700px; }
.calendly-placeholder { height: 700px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 5vw, 56px); }
.page-head h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 400; letter-spacing: -0.025em; max-width: 20ch; margin-top: 16px; }
.page-head .lead { margin-top: 22px; max-width: 60ch; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(40px, 7vw, 88px) 32px; }
.article-head .inner { max-width: 820px; }
.article-head h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 400; letter-spacing: -0.025em; margin-block: 18px 22px; }
.article-head .lead { max-width: 60ch; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14.5px; color: var(--muted); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline b { color: var(--ink); font-weight: 600; }
.cover { max-width: 1040px; margin: 8px auto 0; padding-inline: var(--gutter); }
.cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; display: block; background: var(--paper-2); }
.prose { max-width: var(--read); margin: clamp(40px, 6vw, 64px) auto 0; padding-inline: var(--gutter); font-size: 18.5px; line-height: 1.75; box-sizing: content-box; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 2em; }
.prose h3 { font-size: clamp(21px, 2.3vw, 25px); margin-top: 1.8em; }
.prose h4 { font-size: 19px; margin-top: 1.6em; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose img { display: block; margin: 1.8em auto; border-radius: 12px; border: 1px solid var(--line); }
.prose li img { margin: 1em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 21px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose code { font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--paper-2); padding: 18px; border-radius: 12px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.author-box { max-width: var(--read); margin: 72px auto 0; padding: 28px; box-sizing: content-box; display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { font-size: 15.5px; color: var(--ink-2); }
.author-box b { color: var(--ink); }
@media (max-width: 620px) { .author-box { flex-direction: column; align-items: flex-start; margin-inline: var(--gutter); box-sizing: border-box; } }
.related { margin-top: clamp(64px, 9vw, 112px); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--accent); color: #f3f1ea; border-radius: 26px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); max-width: 18ch; }
.cta-band p { opacity: .8; margin-top: 12px; max-width: 48ch; }
.cta-band .btn-primary { background: #f3f1ea; color: #173a2c; }
.cta-band .btn-primary:hover { background: #fff; color: #173a2c; }
:root[data-theme="dark"] .cta-band { background: #1f3b2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band { background: #1f3b2e; } }
.site-footer { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .f-about p { color: var(--ink-2); max-width: 36ch; margin-top: 12px; }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } a.card:hover, .btn:active { transform: none; } }
@media print { .site-header, .site-footer, .cta-band, .calendly-frame { display: none; } body { background: #fff; color: #000; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); }
.faq h2 { font-size: clamp(32px, 4.6vw, 52px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(19px, 2vw, 22px); }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item div { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-item a { color: var(--accent); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-item div { padding-right: 0; } }

/* ---------- Language switcher ---------- */
.langs { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: 12.5px; font-weight: 500; }
.langs a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); letter-spacing: .04em; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }
.langs a:not([aria-current]):hover { color: var(--ink); background: var(--paper-2); }
@media (max-width: 860px) { .menu nav .langs { align-self: flex-start; margin: 8px 12px 2px; } .menu nav .langs a { padding: 6px 12px; font-size: 14px; } }
.lang-badge { display: inline-block; margin-inline-start: 8px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: .03em; text-transform: none; color: var(--muted); vertical-align: 1px; }

/* ---------- Experience ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp { display: grid; grid-template-columns: 180px 1fr; gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.xp-when { font: 400 15px/1.5 var(--serif); font-style: italic; color: var(--accent); padding-top: 4px; }
.xp h3 { font-size: 24px; }
.xp h3 a { text-decoration: none; }
.xp h3 a:hover { text-decoration: underline; }
.xp-role { font-weight: 600; font-size: 15px; margin: 6px 0 8px; }
.xp p:last-child { color: var(--ink-2); max-width: 70ch; }
.edu { margin-top: 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.edu h3 { font-size: 22px; margin-bottom: 16px; }
.edu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
.edu li b { font-weight: 600; }
.edu li span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
@media (max-width: 720px) { .xp { grid-template-columns: 1fr; gap: 4px; } .edu ul { grid-template-columns: 1fr; } }

/* ---------- Skills + tools ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.skill-group { border-top: 2px solid var(--ink); padding-top: 18px; }
.skill-group h3 { font-size: 20px; margin-bottom: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.card.tool h3 { font-size: 20px; margin-top: 0; }
.section-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); }

/* ---------- AIO SEO band ---------- */
.aioseo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); background: var(--accent-soft); border-radius: 24px; padding: clamp(28px, 5vw, 56px); }
.aioseo h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 18px; }
.aioseo p { color: var(--ink-2); margin-bottom: 26px; max-width: 52ch; }
.aioseo-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.aioseo-list li { border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.aioseo-list a { display: block; padding: 14px 0; text-decoration: none; font: 450 18px/1.35 var(--serif); }
.aioseo-list a::after { content: " ↗"; color: var(--accent); font-family: var(--sans); font-size: 14px; }
.aioseo-list a:hover { color: var(--accent); }
.aioseo .lang-badge { margin: 14px 0 0; }
@media (max-width: 860px) { .aioseo { grid-template-columns: 1fr; } }

/* ---------- Root language chooser ---------- */
.chooser { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.chooser img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; display: block; }
.chooser h1 { font-size: clamp(40px, 6vw, 64px); }
.chooser .lead { margin: 14px auto 36px; }
.lang-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lang-card { min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; text-decoration: none; transition: border-color .2s, transform .2s; }
.lang-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.lang-card b { display: block; font: 450 24px/1.2 var(--serif); }
.lang-card span { color: var(--muted); font-size: 14px; }

/* ---------- Arabic / right-to-left ---------- */
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Naskh Arabic"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/noto-naskh-arabic-400-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
:lang(ar) { --serif: "Fraunces", "Naskh Arabic", "Geeza Pro", serif; --sans: "Inter", "Plex Arabic", "Geeza Pro", system-ui, sans-serif; }
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.8; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
:lang(ar) .hero h1 { line-height: 1.25; }
:lang(ar) em { font-style: normal; }
:lang(ar) .eyebrow, :lang(ar) .site-footer h4, :lang(ar) .tag { letter-spacing: 0; }
[dir="rtl"] .portrait { justify-self: start; }
[dir="rtl"] .portrait::before { inset: 18px 18px -18px -18px; }
[dir="rtl"] .portrait figcaption { left: auto; right: -18px; }
[dir="rtl"] .more::after, [dir="rtl"] .card .foot::after { content: " ←"; }
[dir="rtl"] .aioseo .btn { direction: rtl; }
[dir="rtl"] .faq-item div { padding: 0 0 24px 48px; }
[dir="rtl"] .featured-quote blockquote, [dir="rtl"] .quote blockquote, [dir="rtl"] .letter-body { text-align: left; }
@media (max-width: 860px) { [dir="rtl"] .portrait { justify-self: end; } [dir="rtl"] .menu nav { right: auto; left: 0; } [dir="rtl"] .faq-item div { padding-left: 0; } }

/* ---------- Theme toggle ---------- */
.theme-toggle { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.theme-toggle:hover { border-color: var(--ink-2); background: var(--paper-2); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
.header-tools { display: flex; align-items: center; gap: 10px; }

/* ---------- Company logos (experience) ---------- */
.xp-body { display: flex; gap: 20px; align-items: flex-start; }
.xp-logo { flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); background: #fff; }
.xp-logo-dark { background: #1c1c1a; border-color: #1c1c1a; padding: 4px; }
.xp-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 720px) { .xp-logo { width: 48px; height: 48px; padding: 8px; border-radius: 12px; } .xp-body { gap: 14px; } }
.xp-logo-fill { padding: 0; overflow: hidden; border: 0; }
.xp-logo-fill img { object-fit: cover; }
.initials-mark { font: 600 14px/1 var(--sans); letter-spacing: .02em; color: #17171a; }
.edu ul li { display: flex; gap: 16px; align-items: center; }
.edu-logo { flex: none; width: 112px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 8px 10px; }
.edu-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 720px) { .edu-logo { width: 88px; height: 44px; } }

/* ---------- Case study: stats, chart, milestones ---------- */
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 28px 0 10px; }
.case-stats div { background: var(--card); padding: 20px; }
.case-stats b { display: block; font: 450 32px/1.1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.case-stats span { font-size: 14.5px; color: var(--muted); line-height: 1.45; display: block; }
.prose .case-source { font-size: 13.5px; color: var(--muted); }
@media (max-width: 620px) { .case-stats { grid-template-columns: 1fr 1fr; } .case-stats b { font-size: 26px; } }
.case-chart { margin: 24px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 14px; }
.case-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-bar { fill: var(--accent); opacity: .85; }
.ch-bar:hover { opacity: 1; }
.ch-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ch-dot { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-x, .ch-y, .ch-y2 { fill: var(--muted); font: 12px var(--sans); }
.case-chart figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lg { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.lg-bar { background: var(--accent); }
.lg-line { height: 2px; background: var(--ink); }
.case-chart details { margin-top: 10px; font-size: 14px; }
.case-chart summary { cursor: pointer; color: var(--accent); }
.case-chart table { margin-top: 10px; font-size: 14px; }
.milestones { list-style: none; padding: 0 !important; border-left: 2px solid var(--accent); }
.milestones li { padding: 4px 0 14px 20px; position: relative; }
.milestones li::before { content: ""; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.milestones li::marker { content: none; }
.milestones b { display: block; color: var(--ink); }
.milestones span { color: var(--ink-2); }
.card-media .thumb img[src^="/assets/case-"] { object-position: left center; }
.ch-bar-ai, .lg-ai { fill: var(--accent-2); background: var(--accent-2); }
.card-media .thumb.logo img[src$=".svg"] { width: 38%; height: 60%; }

/* ---------- Service pages ---------- */
.svc-hero { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 6vw, 72px); }
.svc-hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 400; letter-spacing: -0.025em; max-width: 18ch; margin: 14px 0 22px; }
.svc-hero .lead { max-width: 62ch; }
.svc-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.svc-hero .crumbs { margin-bottom: 26px; }
.svc-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 44px 0 0; }
.svc-facts div { background: var(--card); padding: 18px 22px; }
.svc-facts dt { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.svc-facts dd { margin: 0; font: 450 19px/1.35 var(--serif); color: var(--ink); }
:lang(ar) .svc-facts dt { letter-spacing: 0; }
@media (max-width: 760px) { .svc-facts { grid-template-columns: 1fr; } }
.card.incl h3 { font-size: 20px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 14px; position: relative; }
.steps li::after { content: ""; position: absolute; top: 20px; inset-inline-start: 52px; inset-inline-end: -10px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.step-n { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--paper); font: 500 17px/1 var(--serif); }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { flex-direction: row; padding-bottom: 22px; } .steps li::after { top: 48px; bottom: 0; inset-inline-start: 19px; inset-inline-end: auto; width: 1px; height: auto; } }
.svc-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.svc-cols h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-inline-start: 34px; font-size: 17px; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.checklist li::after { content: ""; position: absolute; inset-inline-start: 8px; top: 8px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .svc-cols { grid-template-columns: 1fr; } }
.svc-quote { margin: 0; background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.svc-quote blockquote { margin: 0; font: 400 clamp(18px, 2vw, 22px)/1.55 var(--serif); color: var(--ink); }
.svc-quote blockquote p + p { margin-top: .8em; }
.svc-quote figcaption { margin-top: 16px; font-size: 14.5px; }
.svc-quote figcaption b { font-weight: 600; }
.svc-quote figcaption span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }
