/* Abdullah Abbas, portfolio. Editorial and quiet: warm paper, ink, one green
   accent, a serif for the voice and a mono for the machine. Dark follows the device. */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #fffdf8;
  --ink: #0e1116;
  --ink-2: #3a3f4a;
  --muted: #6b7080;
  --line: rgba(14, 17, 22, .1);
  --line-2: rgba(14, 17, 22, .18);
  --accent: #0f7b5f;
  --accent-2: #16a37f;
  --accent-weak: rgba(15, 123, 95, .1);
  --term: #0f1318;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1013; --paper-2: #12161a; --card: #151a1f;
    --ink: #eceee9; --ink-2: #c4c8cf; --muted: #8d93a1;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .16);
    --accent: #3ccf9f; --accent-2: #6fe0b9; --accent-weak: rgba(60, 207, 159, .12);
    --term: #090c0f;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 80px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
@media (max-width: 480px) { .wrap { width: calc(100% - 32px); } }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.stats dd, .facts b { font-variant-numeric: lining-nums tabular-nums; }
p { text-wrap: pretty; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px/1 var(--sans); white-space: nowrap;
  transition: transform .16s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-line { border: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--accent); color: #fff; }
  .btn-accent:hover { background: var(--ink); color: var(--paper); }
  .btn-line:hover { border-color: var(--ink); }
}
@media (prefers-color-scheme: dark) { .btn-accent { color: #06140f; } }

/* ------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.top.edge { border-bottom-color: var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 68px; }
/* the AA mark: the folded A from the founder's logo sheet, ink + the site's green */
.mark, .foot-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.aa { height: 30px; width: auto; flex: none; }
.wordmark { font: 600 13px/1 var(--sans); letter-spacing: .24em; white-space: nowrap; }
[lang="ar"] .wordmark { letter-spacing: 0; font-size: 16px; }
@media (max-width: 1000px) and (min-width: 861px) { .top .wordmark { display: none; } }
@media (max-width: 420px) { .top .wordmark { display: none; } }
.foot-mark { color: #eceee9; width: 100%; padding-bottom: 6px; }
.foot-mark .aa { height: 24px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s ease, background-color .2s ease; }
.nav a.on { color: var(--ink); background: var(--line); }
.lang { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .lang:hover { border-color: var(--ink); color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
@media (max-width: 860px) { .nav { display: none; } .top .lang { margin-inline-start: auto; } }
@media (max-width: 400px) { .top .btn { padding: 0 14px; } }

/* -------------------------------------------------------------- intro */
.intro { padding: clamp(48px, 8vw, 104px) 0 0; position: relative; overflow: hidden; }
.intro::before { content: ""; position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%); opacity: .7; }
.intro-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(22, 163, 127, .5); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(22, 163, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 127, 0); } }
h1 { font-size: clamp(56px, 9vw, 128px); line-height: .95; letter-spacing: -.035em; margin-top: 24px; font-weight: 400; }
.role { margin-top: 22px; font: 400 clamp(22px, 2.4vw, 30px)/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink-2); max-width: 26ch; }
.role em { font-style: italic; color: var(--accent); }
.lede { margin-top: 20px; color: var(--muted); max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 920px) { .intro-grid { grid-template-columns: minmax(0, 1fr); } }

/* the terminal */
.term { border-radius: 18px; background: var(--term); color: #d7dde6; box-shadow: 0 40px 80px -40px rgba(14, 17, 22, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f48; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-inline-start: auto; font: 12px var(--mono); color: #7d8592; }
.term-body { padding: 20px 22px 24px; font: 14.5px/1.85 var(--mono); white-space: pre-wrap; min-height: 290px; }
.term-body .p { color: #3ccf9f; }
.c-aloke { color: #b48cff; } .c-outoms { color: #49cfd3; } .c-madar { color: #5fd3a8; } .c-aio { color: #6aa8ff; } .c-lwa { color: #ff7ac8; }
.cursor { display: inline-block; width: 9px; height: 18px; vertical-align: -3px; background: #d7dde6; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line-2); }
.stats div { padding: 26px 0 30px; }
.stats div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 26px; }
.stats dt { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stats dd { font: 400 clamp(44px, 6vw, 72px)/1 var(--serif); letter-spacing: -.03em; margin-top: 10px; }
.stats sup { font-size: .45em; color: var(--accent); vertical-align: .9em; margin-inline-start: 2px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); } }

/* ----------------------------------------------------------- sections */
.section { padding: clamp(88px, 11vw, 140px) 0; }
.section.alt { background: var(--paper-2); }
.head { max-width: 760px; display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 64px); }
.kicker { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; }
.head h2, .contact h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; }
.sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 60ch; }

/* -------------------------------------------------------- case studies */
.case { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border-radius: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.case + .case { margin-top: 20px; }
.case-side { padding: clamp(28px, 4vw, 48px); color: #fff; display: grid; gap: 12px; align-content: start; position: relative; isolation: isolate; }
.case-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 260px at 85% 0%, rgba(255, 255, 255, .18), transparent 70%); }
/* each panel: a night base in the product's own hue, its brand colors as light from two corners */
.case-aloke .case-side { background: radial-gradient(90% 70% at 100% 100%, rgba(143, 92, 255, .45), transparent 62%), radial-gradient(70% 55% at 0% 0%, rgba(201, 167, 255, .22), transparent 65%), linear-gradient(160deg, #0f0822, #1a0f3d 55%, #2a1563); }
/* Outoms: the night navy of outoms.com with its teal and violet as light, not as wash */
.case-outoms .case-side { background: radial-gradient(90% 70% at 100% 100%, rgba(73, 207, 211, .38), transparent 62%), radial-gradient(70% 55% at 0% 0%, rgba(139, 124, 255, .28), transparent 65%), linear-gradient(160deg, #0d0e1c, #161833 55%, #1c2347); }
.case-madar .case-side { background: radial-gradient(90% 70% at 100% 100%, rgba(92, 201, 160, .40), transparent 62%), radial-gradient(70% 55% at 0% 0%, rgba(127, 216, 181, .18), transparent 65%), linear-gradient(160deg, #04110d, #0a221c 55%, #0d2b25); }
.case-aio .case-side { background: radial-gradient(90% 70% at 100% 100%, rgba(44, 184, 255, .42), transparent 62%), radial-gradient(70% 55% at 0% 0%, rgba(31, 95, 232, .30), transparent 65%), linear-gradient(160deg, #050a24, #0a1240 55%, #0f1a5c); }
/* WAIA: deep violet lit from the corners by the mark's own pink and orange */
.case-lwa .case-side { background: radial-gradient(100% 75% at 100% 100%, rgba(247, 42, 151, .55), transparent 62%), radial-gradient(65% 55% at 100% 0%, rgba(253, 154, 69, .32), transparent 65%), linear-gradient(160deg, #110838, #24116a 55%, #3b1a92); }
.case-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.case-logo-plate { background: #fff; padding: 10px; }
.case-logo-soft { background: #f3f4fb; padding: 9px; }
.case-madar .case-logo-soft { background: #eef7f3; }
.case-tag { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: 18px; }
.case h3 { font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; }
.case-lede { font-size: 17px; line-height: 1.6; opacity: .88; max-width: 44ch; }
.case-link { justify-self: start; margin-top: 14px; font: 500 14px/1 var(--mono); padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); transition: background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .case-link:hover { background: rgba(255, 255, 255, .24); } }
.case-main { padding: clamp(28px, 4vw, 48px); display: grid; gap: 22px; align-content: start; }
/* one number column per card, as wide as its widest number (7,000+ included) */
.facts { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); column-gap: 22px; }
.facts li { grid-column: 1 / -1; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-columns: subgrid; gap: 18px; column-gap: 22px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts b { font: 400 44px/1 var(--serif); letter-spacing: -.03em; }
.facts span { color: var(--ink-2); font-size: 15px; }
.built { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 880px) { .case { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------- experience */
.exp-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.head-sticky { position: sticky; top: 110px; margin-bottom: 0; }
.head-sticky .btn { justify-self: start; margin-top: 8px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; inset-inline-start: 5px; width: 1px; background: var(--line-2); }
.timeline > li { position: relative; padding-block-end: 48px; padding-inline-start: 36px; }
.timeline > li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--accent); }
.timeline > li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-weak); }
.when { font: 500 13px/1 var(--mono); color: var(--muted); }
.when span { color: var(--accent); }
.timeline h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin-top: 10px; }
.org { font-weight: 600; margin-top: 4px; }
.timeline ul { margin-top: 14px; display: grid; gap: 8px; }
.timeline ul li { position: relative; padding-inline-start: 18px; color: var(--ink-2); font-size: 15.5px; }
.timeline ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 7px; height: 1px; background: var(--muted); }
@media (max-width: 900px) { .exp-grid { grid-template-columns: minmax(0, 1fr); } .head-sticky { position: static; } }

/* ----------------------------------------------------------- expertise */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease), border-color .25s ease; }
@media (hover: hover) and (pointer: fine) { .pillar:hover { transform: translateY(-4px); border-color: var(--line-2); } }
.pillar-n { font: 400 15px/1 var(--serif); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent); font-style: italic; }
.pillar h3 { font-size: 24px; line-height: 1.15; margin-top: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }
.skills { margin-top: 40px; border-top: 1px solid var(--line-2); }
.skills dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.skills dl div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skills dt { font: 500 13px/1.5 var(--mono); color: var(--muted); }
.skills dd { color: var(--ink); font-size: 15.5px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .skills dl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } .skills dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* --------------------------------------------------------- credentials */
.certs { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 16px; align-items: start; }
.cert-group { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.vendor { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vendor:not(:first-child) { margin-top: 10px; }
.cert-group ul { display: grid; gap: 0; }
.cert-group li { font: 400 20px/1.3 var(--serif); padding: 10px 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.cert-group li:last-child { border-bottom: 0; }
.soft { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.soft li { font: 400 14px/1 var(--sans) !important; padding: 8px 12px !important; border: 1px solid var(--line-2) !important; border-radius: 999px; }
@media (max-width: 960px) { .certs { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- contact */
.contact { background: var(--term); color: #eceee9; padding: clamp(88px, 11vw, 140px) 0; }
.contact .sub { color: #9aa1ae; margin-top: 16px; }
.kicker-on { color: #3ccf9f; }
.contact h2 { margin-top: 14px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.ways { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.way { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 2px; border-bottom: 1px solid rgba(255, 255, 255, .14); transition: padding .25s var(--ease), color .2s ease; }
.way span { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #8a92a0; }
.way b { font: 400 clamp(20px, 2vw, 26px)/1.2 var(--serif); }
@media (hover: hover) and (pointer: fine) { .way:hover { padding-inline: 12px; color: #3ccf9f; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.foot { background: var(--term); color: #8a92a0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 24px 0; }
.foot a { color: #eceee9; }

/* -------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Arabic
   Amiri carries the editorial voice the serif carries in English; Plex Sans
   Arabic does the reading and the small labels (the mono face has no Arabic).
   No letter-spacing anywhere: it breaks the joins between Arabic letters. */
[lang="ar"] { --serif: "Amiri", "Fraunces", Georgia, serif; --sans: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { letter-spacing: 0; font-weight: 700; }
[lang="ar"] h1 { font-size: clamp(56px, 8.4vw, 116px); line-height: 1.2; }
[lang="ar"] .role { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6; max-width: 24ch; }
[lang="ar"] .role em { font-style: normal; }
[lang="ar"] .head h2, [lang="ar"] .contact h2 { line-height: 1.35; }
[lang="ar"] .case h3 { line-height: 1.25; }
[lang="ar"] .timeline h3 { line-height: 1.5; }
[lang="ar"] .label, [lang="ar"] .kicker, [lang="ar"] .stats dt, [lang="ar"] .built, [lang="ar"] .case-tag,
[lang="ar"] .vendor, [lang="ar"] .when, [lang="ar"] .skills dt, [lang="ar"] .way span {
  font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 14px; }
[lang="ar"] .pillar-n { font-style: normal; font-size: 17px; }
[lang="ar"] .cert-group li { font-family: "Fraunces", Georgia, serif; }
[lang="ar"] .term { direction: ltr; }

/* ------------------------------------------------- positioning blocks */
/* who already trusted him: centred under the intro, each name on its own plate so the eye lands on it */
.trusted { border-bottom: 1px solid var(--line); }
.trusted-row { display: grid; justify-items: center; text-align: center; gap: 26px; padding: clamp(52px, 7vw, 84px) 0; }
.trusted p { display: flex; align-items: center; gap: 16px; font: 500 13px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.trusted p::before, .trusted p::after { content: ""; flex: none; width: clamp(24px, 6vw, 72px); height: 1px; background: currentColor; opacity: .45; }
.trusted ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1020px; }
.trusted li { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font: 500 clamp(17px, 1.7vw, 22px)/1.25 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.trusted li.more { border-style: dashed; background: none; color: var(--muted); font-style: italic; }
@media (max-width: 560px) { .trusted li { padding: 9px 16px; } .trusted p::before, .trusted p::after { display: none; } }

/* three hires in one */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.three article { padding: 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; position: relative; overflow: hidden; }
.three article::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 160px; height: 160px; border-radius: 50%; background: var(--accent-weak); }
.three-n { font: 500 13px/1 var(--mono); color: var(--accent); }
.three h3 { font-size: 26px; line-height: 1.15; }
.three p:last-child { color: var(--muted); font-size: 15.5px; position: relative; z-index: 1; }
@media (max-width: 900px) { .three { grid-template-columns: minmax(0, 1fr); } }

/* what changes */
.outcomes { margin-top: 20px; padding: clamp(26px, 4vw, 44px); border-radius: 26px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 28px; }
.outcomes h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.outcomes ul { display: grid; gap: 16px; }
.outcomes li { padding-inline-start: 30px; position: relative; color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 16px; }
.outcomes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 9px; border-inline-start: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }
[dir="rtl"] .outcomes li::before { transform: rotate(45deg); }
.outcomes b { color: var(--paper); font-weight: 600; }
@media (max-width: 860px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

/* how we start */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { padding: 28px; border-radius: 22px; border: 1px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.steps span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 500 16px/1 var(--serif); }
.steps h3 { font-size: 24px; line-height: 1.2; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.way-main b { color: #3ccf9f; }
[lang="ar"] .trusted p, [lang="ar"] .three-n { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 14px; }
[lang="ar"] .trusted p { font-size: 17px; font-weight: 600; }
[lang="ar"] .trusted li { font-weight: 700; padding-block: 10px 12px; }
[lang="ar"] .trusted li.more { font-style: normal; font-weight: 500; }

/* independent problem solving: a dark band between the track record and the depth */
.solver { background: var(--term); color: #eceee9; border-block: 1px solid var(--line); }
.solver .kicker { color: #3ccf9f; }
.solver .sub { color: #9aa1ae; }
.clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; overflow: hidden; }
.clients li { background: var(--term); padding: clamp(22px, 3vw, 32px); display: grid; gap: 10px; align-content: start; }
.clients span { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #3ccf9f; }
.clients b { font: 500 clamp(21px, 2.1vw, 27px)/1.2 var(--serif); letter-spacing: -.01em; }
.fixes { margin-top: clamp(36px, 5vw, 56px); display: grid; }
.fixes li { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(12px, 4vw, 48px); padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .12); align-items: baseline; }
.fixes li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fixes h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.fixes p { color: #b4bac4; font-size: 16.5px; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fixes li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
[lang="ar"] .clients span { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 14px; }
[lang="ar"] .clients b { font-weight: 700; line-height: 1.4; }
[lang="ar"] .fixes h3 { line-height: 1.5; }

/* giving back: the free guides on waia.to */
.guides-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.guides-head .head { margin-bottom: 0; }
.guides-facts { display: flex; gap: clamp(28px, 4vw, 56px); }
.guides-facts dt { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.guides-facts dd { font: 400 clamp(44px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; margin-top: 10px; font-variant-numeric: lining-nums tabular-nums; }
.guides-facts sup { font-size: .45em; color: var(--accent); vertical-align: .9em; margin-inline-start: 2px; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guides a { display: grid; gap: 10px; align-content: start; height: 100%; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line);
  transition: transform .2s var(--ease), border-color .2s ease; }
.guides a:active { transform: scale(.98); }
.guides span { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.guides b { font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; }
.guides p { color: var(--muted); font-size: 15.5px; }
@media (hover: hover) and (pointer: fine) { .guides a:hover { transform: translateY(-3px); border-color: var(--accent); } }
.guides-all { margin-top: 28px; }
@media (max-width: 960px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .guides { grid-template-columns: minmax(0, 1fr); } .guides-head { grid-template-columns: minmax(0, 1fr); } }
[lang="ar"] .guides span, [lang="ar"] .guides-facts dt { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 14px; }
[lang="ar"] .guides b { font-weight: 700; line-height: 1.45; }
@media (max-width: 480px) { .facts { column-gap: 16px; } .facts li { column-gap: 16px; } .facts b { font-size: 34px; } }

/* the HWE platforms row in the footer */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-links span { color: #8a92a0; font-weight: 500; }
