/* AB Avantage site styles (2026 redesign).
   Same palette as the former WordPress/Elementor site: blue #2B6894, yellow #F8D032, navy #1C244B.
   Pages are written by tools/redesign.py; edit the HTML in site/ by hand after that. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/wp-content/uploads/elementor/google-fonts/fonts/gabarito-qgytz_0dzagkjj4t3htmw4xung.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: 'Gabarito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/wp-content/uploads/elementor/google-fonts/fonts/gabarito-qgytz_0dzagkjj4t3htow4u.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;
}
/* Gabarito has no Arabic letters: Arabic text uses Cairo */
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --blue: #2B6894;
  --blue-700: #20476A;
  --navy: #1C244B;
  --ink: #0D202E;
  --yellow: #F8D032;
  --yellow-strong: #FFCB03;
  --gray-50: #F9FAFD;
  --gray-100: #F3F5F8;
  --white: #FFFFFF;

  --text: #1C244B;
  --muted: #4A5878;
  --line: #E3E8EF;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 36, 75, .06), 0 8px 24px rgba(28, 36, 75, .08);
  --shadow-lg: 0 20px 50px rgba(13, 32, 46, .18);
  --wrap: 1200px;
  --header-h: 84px;
  --font: 'Gabarito', 'Cairo', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.1; font-family: inherit;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
[dir="rtl"] svg.arrow { transform: scaleX(-1); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-strong); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue-700); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); transition: background-color .25s, box-shadow .25s, padding .25s; }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
/* Home: the header sits on the photo; with JavaScript it stays at the top and turns navy on scroll */
.site-header.over-hero { position: absolute; inset-inline: 0; top: 0; background: transparent; }
.js .site-header.over-hero { position: fixed; }
.js .site-header.over-hero.is-scrolled,
.site-header.over-hero.menu-open { background: var(--navy); box-shadow: 0 8px 30px rgba(13,32,46,.25); }
.logo { flex: none; }
.logo img { height: 36px; width: auto; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.86); font-size: 15px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.main-nav a[aria-current] { background: rgba(255,255,255,.12); color: var(--yellow); }
.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px; }
.lang a { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; line-height: 1.4; }
.lang a:hover { color: var(--white); }
.lang a[aria-current] { background: var(--white); color: var(--navy); }
.header-tools .btn { padding: 11px 20px; font-size: 15px; }

/* Phone/tablet menu: a <details> element, so it works without JavaScript */
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center; color: var(--white); cursor: pointer; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle summary svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[open] .icon-open { display: none; }
.menu-toggle[open] .icon-close { display: block; }
.mobile-menu {
  position: absolute; inset-inline: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 0 24px; box-shadow: 0 24px 40px rgba(13,32,46,.35); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 13px 4px; color: var(--white); font-size: 18px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu li a[aria-current] { color: var(--yellow); }
.mobile-menu .menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; min-height: 760px; color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink) url(/wp-content/uploads/2025/01/008c30224ac983a80a75534000c17552-scaled.webp) center/cover no-repeat;
  isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,32,46,.94) 0%, rgba(13,32,46,.78) 42%, rgba(13,32,46,.25) 100%),
    linear-gradient(0deg, rgba(13,32,46,.85) 0%, rgba(13,32,46,0) 35%);
}
[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(13,32,46,.94) 0%, rgba(13,32,46,.78) 42%, rgba(13,32,46,.25) 100%),
    linear-gradient(0deg, rgba(13,32,46,.85) 0%, rgba(13,32,46,0) 35%);
}
.hero-inner { padding-block: 170px 150px; max-width: 720px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding-block: 7px; padding-inline: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(248, 208, 50, .12); border: 1px solid rgba(248, 208, 50, .35); color: var(--yellow);
}
.eyebrow-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(248,208,50,.25); }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 700; margin-top: 26px; letter-spacing: -0.025em; }
[dir="rtl"] .hero h1 { letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 22px; color: rgba(255,255,255,.88); margin-top: 18px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero .chips li { font-size: 14px; color: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.stats {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(13,32,46,.6);
}
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin-block: 0; padding: 0; }
.stat { padding: 24px 28px; border-inline-start: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font-size: 30px; font-weight: 700; color: var(--yellow); line-height: 1.1; }
.stat span { font-size: 14px; color: rgba(255,255,255,.78); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: 110px; }
.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--blue); }
.sec-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--yellow); margin-top: 18px; }
.sec-head.center h2::after { margin-inline: auto; }
.sec-head p { margin-top: 18px; color: var(--muted); max-width: 720px; font-size: 18px; }
.sec-head.center p { margin-inline: auto; }
.on-dark .sec-head h2 { color: var(--white); }
.on-dark .sec-head p { color: rgba(255,255,255,.75); }

/* ---------- Network ---------- */
.network { padding-block: 90px; background: var(--white); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.logos li {
  height: 128px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; padding: 22px 30px; transition: transform .25s, box-shadow .25s, background-color .25s;
}
.logos li:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-3px); }
.logos img { max-height: 80px; max-width: 100%; width: auto; height: auto; }

/* ---------- About ---------- */
.about { background: var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.about .lead { font-size: 20px; line-height: 1.65; color: var(--navy); }
.about .body { margin-top: 18px; color: var(--muted); }
.about .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.fact { background: var(--white); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.fact .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; }
.fact .ic svg { width: 20px; height: 20px; }
.fact b { display: block; color: var(--blue); font-size: 16px; }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }
.about-media { position: relative; margin: 0; }
.about-media .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-media .badge {
  position: absolute; inset-inline-start: -36px; bottom: 40px; max-width: 270px;
  background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-lg);
  border-inline-start: 5px solid var(--yellow);
}
.about-media .badge b { color: var(--blue); font-size: 22px; display: block; }
.about-media .badge span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; margin-top: 4px; }

/* ---------- Services ---------- */
.services { background: var(--navy); position: relative; overflow: hidden; }
.services::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: url(/wp-content/uploads/2025/01/b2ddca90a040d4a8f6c1e825713897dd-scaled.webp) center/cover;
}
.services .wrap { position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.svc .img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.svc .img img { width: 100%; height: 100%; object-fit: cover; }
.svc .num { position: absolute; top: 16px; inset-inline-start: 16px; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.svc .body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc h3 { font-size: 25px; color: var(--blue); font-weight: 700; }
.svc p { color: var(--muted); font-size: 16px; }
.svc .more { margin-top: auto; padding-top: 8px; color: var(--navy); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.svc .more:hover { color: var(--blue); }
.svc .more svg { width: 16px; height: 16px; color: var(--blue); }

/* ---------- Team ---------- */
.team { background: var(--white); }
.team-block + .team-block { margin-top: 90px; padding-top: 90px; border-top: 1px solid var(--line); }
.team-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.team-intro h3 { font-size: 32px; color: var(--blue); font-weight: 700; }
.team-intro .txt p { color: var(--muted); margin-top: 14px; }
.count { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 22px; padding: 10px 18px; background: var(--gray-100); border-radius: 999px; }
.count b { color: var(--blue); font-size: 22px; }
.count span { color: var(--muted); font-size: 15px; }
.team-intro .head-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.team-intro .head-row .txt { max-width: 760px; }
/* Every team card is the same size: both rows sit on the same 5-column grid,
   so the founders' cards line up with the INGlobe cards under them. */
.team-intro.founders { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.team-intro.founders .txt { grid-column: span 3; padding-inline-end: 48px; }
.team-intro.founders .people { grid-column: span 2; }
.people { display: grid; gap: 22px; list-style: none; margin: 0; padding: 0; }
.people.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.people.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.person { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Photos are pre-framed by tools/team_photos.py to 800x712 */
.person .pic { aspect-ratio: 800 / 712; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, var(--blue) 0%, var(--blue-700) 60%, var(--navy) 100%); }
.person .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .info { padding: 14px 16px 16px; }
.person h4 { font-size: 17px; color: var(--navy); font-weight: 700; }
.person .role { color: var(--blue); font-size: 14px; font-weight: 500; margin-top: 4px; }
.person .zh { color: var(--muted); font-size: 13px; }

/* ---------- Highlights (event photos) ---------- */
.highlights { background: var(--gray-100); }
.bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 18px; list-style: none; margin: 0; padding: 0; }
.bento li { position: relative; border-radius: var(--radius); overflow: hidden; }
.bento li:first-child { grid-row: span 2; }
.bento figure { margin: 0; height: 100%; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bento li:hover img { transform: scale(1.04); }
.bento figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px; color: var(--white); font-size: 14px; line-height: 1.4; font-weight: 500;
  background: linear-gradient(0deg, rgba(13,32,46,.9), rgba(13,32,46,0));
}
.highlights .foot { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Offices ---------- */
.offices { background: var(--white); }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.office { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; color: var(--white); margin: 0; }
.office img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,32,46,.92) 0%, rgba(13,32,46,.15) 55%, rgba(13,32,46,0) 100%); }
.office .txt { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 32px; z-index: 1; }
.office .tag { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.office h3 { font-size: 34px; margin-top: 12px; font-weight: 700; }
.office p { color: rgba(255,255,255,.85); margin-top: 6px; font-size: 16px; }

/* ---------- Contact ---------- */
.contact { padding-block: 0 110px; background: var(--white); }
.contact-card {
  border-radius: var(--radius-lg); background: var(--yellow); padding: 56px 64px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; inset-inline-end: -90px; top: -190px; width: 340px; height: 340px; border-radius: 50%;
  border: 54px solid rgba(255,255,255,.3);
}
.contact-card h2 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); font-weight: 700; }
.contact-card p { margin-top: 10px; color: var(--navy); font-size: 18px; }
.contact-card .btn { position: relative; z-index: 1; padding: 18px 30px; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 72px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.foot-grid .logo img { height: 40px; }
.foot-grid .about-line { margin-top: 18px; font-size: 15px; max-width: 340px; }
.foot-grid h2 { margin: 0 0 16px; color: var(--white); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-grid a:hover { color: var(--yellow); }
.foot-grid .social { display: flex; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--yellow); border: 1px solid rgba(255,255,255,.1); }
.social a:hover { background: rgba(255,255,255,.14); }
.social svg { width: 18px; height: 18px; }
.handle { margin-top: 12px; font-size: 15px; }
.foot-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.foot-bottom .lang { border-color: rgba(255,255,255,.18); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: var(--white); padding-block: 90px 80px; isolation: isolate; overflow: hidden;
  background: var(--ink) url(/wp-content/uploads/2025/01/008c30224ac983a80a75534000c17552-scaled.webp) center 40%/cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,32,46,.95), rgba(28,36,75,.78)); }
[dir="rtl"] .page-hero::before { background: linear-gradient(270deg, rgba(13,32,46,.95), rgba(28,36,75,.78)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255,255,255,.7); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(255,255,255,.4); }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--yellow); display: inline-block; max-width: min(46ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.crumbs li:last-child { min-width: 0; max-width: 100%; }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 14px; font-weight: 700; }
.page-hero.post-hero h1 { font-size: clamp(30px, 4vw, 48px); max-width: 960px; line-height: 1.2; }
.page-hero p { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 19px; max-width: 680px; }
.page-hero .pill-date { margin-top: 22px; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Posts list, topic pages ---------- */
.posts-sec { padding-block: 64px 110px; background: var(--gray-100); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 40px; }
.topics .lbl { font-weight: 600; color: var(--navy); margin-inline-end: 6px; font-size: 15px; }
.topics ul { display: contents; list-style: none; }
.topics a { display: inline-block; font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--blue); font-weight: 500; white-space: nowrap; }
.topics a:hover { border-color: var(--blue); }
.topics a[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.pill-date { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--yellow); padding: 5px 12px; border-radius: 999px; line-height: 1.4; }
.read { color: var(--blue); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; }
.read svg { width: 16px; height: 16px; }
.top-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 26px; margin-bottom: 26px; }
.side-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 26px; list-style: none; margin: 0; padding: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.feature .img { position: relative; min-height: 320px; overflow: hidden; }
.feature .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feature .body { padding: 32px 36px 36px; display: flex; flex-direction: column; gap: 14px; }
.feature .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.feature h2 { font-size: 30px; color: var(--navy); font-weight: 700; line-height: 1.25; }
.feature p { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; }
.card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; height: 100%; }
.card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature { transition: transform .25s, box-shadow .25s; }
.card .img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img .pill-date { position: absolute; top: 14px; inset-inline-start: 14px; }
.card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 19px; color: var(--navy); line-height: 1.3; font-weight: 700; }
[dir="rtl"] .card h3 { line-height: 1.5; }
.card h3, .feature h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card p { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .read { margin-top: auto; }
/* the whole card is clickable through its title link */
.card h3 a::after, .feature h2 a::after { content: ""; position: absolute; inset: 0; }
.feature { position: relative; }
.empty-note { text-align: center; color: var(--muted); }

/* ---------- Single post ---------- */
.article { padding-block: 64px 40px; }
.prose { max-width: 780px; margin-inline: auto; font-size: 18px; line-height: 1.75; color: #2A3354; }
[dir="rtl"] .prose { line-height: 1.95; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--navy); margin-top: 1.6em; line-height: 1.3; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose blockquote { margin-inline: 0; padding: 16px 22px; border-inline-start: 4px solid var(--yellow); background: var(--gray-100); border-radius: 12px; }
.prose figure { margin: 2em 0; }
.prose figure img, .prose > img { margin-inline: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: var(--muted); }
.post-tags { max-width: 780px; margin: 40px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.post-tags .topics { margin-bottom: 0; }
.post-nav { padding-block: 24px 110px; }
.post-nav ul { max-width: 980px; margin-inline: auto; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.post-nav .prev a, .post-nav .next a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 24px; border-radius: var(--radius); background: var(--gray-100); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, background-color .25s; }
.post-nav .prev a:hover, .post-nav .next a:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-nav .dir { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.post-nav .dir svg { width: 16px; height: 16px; }
.post-nav .next { text-align: end; }
.post-nav .next .dir { justify-content: flex-end; }
.post-nav strong { color: var(--navy); font-size: 17px; line-height: 1.35; }
.post-nav .back { grid-column: 1 / -1; text-align: center; }

/* ---------- Page not found ---------- */
.notfound { padding-block: 120px 140px; text-align: center; }
.notfound .page-hero { background: none; }
.notfound .big { font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: 1; color: var(--blue); }
.notfound .big span { color: var(--yellow); }
.notfound h1 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); margin-top: 12px; }
.notfound p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.notfound .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav, .header-tools > .lang, .header-tools > .btn { display: none; }
  .header-tools { margin-inline-start: auto; }
  .menu-toggle { display: block; }
  .team-intro.founders { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .team-intro.founders .txt, .team-intro.founders .people { grid-column: auto; padding-inline-end: 0; }
  .people.two, .people.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-row { grid-template-columns: minmax(0, 1fr); }
  .side-stack { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr; max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .about-media .badge { inset-inline-start: 16px; bottom: -28px; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding-block: 72px; }
  .sec-head { margin-bottom: 36px; }
  .logo img { height: 26px; }
  .hero { min-height: 0; display: block; }
  .hero-inner { padding-block: 120px 40px; }
  .hero h1 { margin-top: 20px; }
  .hero .lead { font-size: 19px; }
  .hero .ctas .btn { flex: 1; }
  .stats { position: relative; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child { padding: 18px 0; padding-inline-start: 16px; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(odd) { padding-inline-start: 0; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .network { padding-block: 64px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logos li { height: 96px; padding: 14px 18px; border-radius: 14px; }
  .logos img { max-height: 58px; }
  .office-grid, .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .about .lead { font-size: 18px; }
  .about .facts { grid-template-columns: 1fr; }
  .about-media .photo { aspect-ratio: 4 / 3.4; }
  .about-media .badge { inset-inline-start: 16px; bottom: -28px; }
  .people.two, .people.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .person .info { padding: 12px 12px 14px; min-height: 104px; }
  .team-block + .team-block { margin-top: 56px; padding-top: 56px; }
  .team-intro h3 { font-size: 26px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; gap: 12px; }
  .bento li:first-child { grid-column: span 2; grid-row: auto; }
  .bento figcaption { font-size: 12px; padding: 30px 12px 10px; }
  .office { aspect-ratio: 4 / 3.3; }
  .office h3 { font-size: 28px; }
  .office .txt { padding: 22px; }
  .contact { padding-bottom: 72px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 26px; }
  .contact-card::after { display: none; }
  .contact-card .btn { font-size: 16px; padding: 16px 20px; white-space: normal; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
  .page-hero { padding-block: 56px 48px; }
  .page-hero p { font-size: 17px; }
  .feature .img { min-height: 220px; }
  .feature .body { padding: 24px 22px 26px; }
  .feature h2 { font-size: 23px; }
  .side-stack, .post-grid { grid-template-columns: minmax(0, 1fr); }
  .topics { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; }
  .article { padding-block: 40px 24px; }
  .post-hero .crumbs li:last-child { display: none; }
  .post-tags .topics { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding: 0; }
  .prose { font-size: 17px; }
  .post-nav ul { grid-template-columns: 1fr; }
  .post-nav .next { text-align: start; }
  .post-nav .next .dir { justify-content: flex-start; }
  .post-nav { padding-bottom: 72px; }
  .notfound { padding-block: 72px 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
