/* =========================================================
   Development Experts — theexperts.com.sa
   ========================================================= */
:root {
  --brand: #e07b39;
  --brand-2: #f2a65a;
  --brand-ink: #b95a1c;
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --text: #1d2026;
  --muted: #5d6470;
  --line: #e7e2db;
  --check: #6b7078;
  --shadow: 0 10px 30px -12px rgba(40, 30, 20, .18);
  --shadow-lg: 0 30px 60px -20px rgba(40, 30, 20, .25);
  --header-bg: rgba(255, 255, 255, .78);
  --pattern-op: .55;
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #f08a46;
  --brand-2: #ffb36b;
  --brand-ink: #ffb27a;
  --bg: #0f1115;
  --bg-soft: #151820;
  --surface: #1a1e27;
  --surface-2: #202531;
  --text: #eceef2;
  --muted: #a3aab6;
  --line: #2b313d;
  --check: #c9ced6;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  --header-bg: rgba(15, 17, 21, .72);
  --pattern-op: .18;
  color-scheme: dark;
}
html[lang="en"] { --font: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.75; font-size: 16px; overflow-x: hidden;
  transition: background-color 1.2s var(--ease), color 1.2s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--brand); }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .scroll-progress { transform-origin: right; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .5s;
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; }
.brand-dot { fill: var(--brand); }
.brand-check { stroke: var(--check); transition: stroke .5s; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; color: var(--brand); }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); transition: color .25s; }
.nav a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--brand); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang-btn, .theme-toggle, .menu-btn {
  display: inline-grid; place-items: center; height: 42px; min-width: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text);
  transition: transform .2s var(--ease), border-color .25s, background-color .5s;
}
.icon-btn:hover, .lang-btn:hover, .theme-toggle:hover, .menu-btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn { display: inline-flex; gap: 6px; padding: 0 12px; font-weight: 600; font-size: .9rem; }
.lang-btn svg { width: 18px; height: 18px; }
#langLabel { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }

/* ===== Animated sun / moon toggle ===== */
.theme-toggle { overflow: hidden; }
.sun-moon { width: 24px; height: 24px; overflow: visible; }
.sun-core { fill: #f5a524; transition: r 1.4s var(--ease), fill 1.4s var(--ease); transform-origin: center; }
.sun-rays { stroke: #f5a524; transform-origin: 12px 12px; transition: transform 1.5s var(--ease), opacity 1s; }
.moon-cut { transition: cx 1.4s var(--ease), cy 1.4s var(--ease); }
.stars { fill: #ffd27a; opacity: 0; transform: scale(.2); transform-origin: 19px 5px; transition: opacity .8s .6s, transform 1s .6s var(--ease); }
.sun-moon { transition: transform 1.5s var(--ease); }
/* The button shows the mode it switches TO: a moon in day mode, a sun in night mode */
[data-theme="light"] .sun-moon { transform: rotate(-40deg); }
[data-theme="light"] .sun-core { r: 9px; fill: #4a5568; }
[data-theme="light"] .moon-cut { cx: 17px; cy: 7px; }
[data-theme="light"] .sun-rays { transform: rotate(90deg) scale(0); opacity: 0; }
[data-theme="light"] .stars { opacity: 1; transform: scale(1) rotate(40deg); fill: #e07b39; }
.theme-toggle:hover .sun-rays { transform: rotate(45deg); }
[data-theme="light"] .theme-toggle:hover .sun-rays { transform: rotate(90deg) scale(0); }
[data-theme="light"] .theme-toggle:hover .sun-moon { transform: rotate(-60deg); }
.theme-toggle.spin .sun-moon { animation: pop .6s var(--ease); }
@keyframes pop { 40% { scale: .7; } 100% { scale: 1; } }

/* Circular reveal when switching theme */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(theme-orb) { animation-duration: 0s; }
::view-transition-new(theme-orb) { animation: none; }

/* Big spinning sun / moon in the centre during the theme change */
.theme-orb {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  display: grid; place-items: center; view-transition-name: theme-orb;
}
.theme-orb > * { grid-area: 1 / 1; }
.theme-orb svg { width: min(190px, 46vw); height: auto; overflow: visible; animation: orbLife 2.5s cubic-bezier(.45,.05,.25,1) forwards; }
.orb-glow { width: min(420px, 90vw); aspect-ratio: 1; border-radius: 50%; animation: glowLife 2.5s ease forwards; }
.orb-ring { width: min(280px, 68vw); aspect-ratio: 1; border-radius: 50%; border: 2px dashed; opacity: 0; animation: ringLife 2.5s ease forwards, spin 3s linear infinite; }
.orb-ring.r2 { width: min(340px, 80vw); border-style: dotted; border-width: 3px; animation: ringLife 2.5s .1s ease forwards, spin 4s linear infinite reverse; }
.theme-orb.light .orb-glow { background: radial-gradient(circle, rgba(255, 196, 90, .55), rgba(255, 170, 60, .15) 45%, transparent 70%); }
.theme-orb.light .orb-ring { border-color: rgba(245, 165, 36, .7); }
.orb-sun { fill: #f5a524; filter: drop-shadow(0 0 24px rgba(245, 165, 36, .8)); }
.orb-rays { fill: #f5a524; transform-origin: 100px 100px; animation: spin 2.5s cubic-bezier(.45,.05,.25,1) forwards; }
.theme-orb.dark .orb-glow { background: radial-gradient(circle, rgba(170, 190, 255, .45), rgba(120, 140, 220, .12) 45%, transparent 70%); }
.theme-orb.dark .orb-ring { border-color: rgba(200, 212, 240, .6); }
.orb-moon { fill: #e4e9f5; filter: drop-shadow(0 0 26px rgba(190, 205, 255, .7)); }
.orb-stars { fill: #ffd27a; }
.orb-stars > * { transform-box: fill-box; transform-origin: center; animation: twinkle 1.2s ease-in-out infinite alternate; }
.orb-stars > *:nth-child(2) { animation-delay: .4s; } .orb-stars > *:nth-child(3) { animation-delay: .8s; }
@keyframes orbLife {
  0% { opacity: 0; transform: scale(.2) rotate(-200deg); }
  35% { opacity: 1; transform: scale(1.08) rotate(0deg); }
  50% { transform: scale(1) rotate(20deg); }
  78% { opacity: 1; transform: scale(1) rotate(60deg); }
  100% { opacity: 0; transform: scale(1.5) rotate(120deg); }
}
@keyframes glowLife { 0% { opacity: 0; transform: scale(.3); } 35%, 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes ringLife { 0% { opacity: 0; scale: .4; } 35%, 72% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.6; } }
@keyframes twinkle { from { opacity: .3; transform: scale(.6); } to { opacity: 1; transform: scale(1.15); } }

/* Mobile menu */
.menu-btn { display: none; gap: 4px; padding: 12px 11px; align-content: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s; position: relative; overflow: hidden; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--brand); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-small { padding: 9px 16px; font-size: .9rem; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.link-btn:hover { color: var(--brand); }

/* ===== Hero ===== */
.hero { position: relative; min-height: calc(100svh - 72px); display: grid; align-items: center; padding: 56px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.pattern {
  position: absolute; inset: 0; opacity: var(--pattern-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9c2b8' stroke-width='1.2'%3E%3Cpath d='M60 6l15 21 25-4-4 25 21 15-21 15 4 25-25-4-15 21-15-21-25 4 4-25L3 63l21-15-4-25 25 4z'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3Cpath d='M0 0l30 30M120 0L90 30M0 120l30-30M120 120L90 90'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px; animation: drift 60s linear infinite;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
@keyframes drift { to { background-position: 240px 120px; } }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 18s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: var(--brand); top: -120px; inset-inline-end: -80px; }
.b2 { width: 360px; height: 360px; background: #f6c89a; bottom: -120px; inset-inline-start: -100px; animation-delay: -6s; }
.b3 { width: 260px; height: 260px; background: #9aa3b2; top: 40%; inset-inline-start: 40%; opacity: .25; animation-delay: -12s; }
[data-theme="dark"] .blob { opacity: .22; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,25px) scale(.95); } }

.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); font-weight: 600; font-size: .9rem; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 700; margin: 18px 0 18px; letter-spacing: -.01em; }
html[lang="en"] .hero-title { letter-spacing: -.03em; }
.hero-title .accent { background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(380px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark { width: 44%; filter: drop-shadow(0 18px 30px rgba(224, 123, 57, .35)); animation: bob 6s ease-in-out infinite; }
.hero-mark .draw { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1.6s .4s var(--ease) forwards; }
.hero-mark .brand-dot { transform-origin: 22px 14px; animation: dot .7s .2s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { from { transform: scale(0); } }
@keyframes bob { 50% { transform: translateY(-12px); } }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); animation: spin 40s linear infinite; }
.r2 { inset: 13%; border-style: solid; border-color: var(--line); animation-duration: 28s; animation-direction: reverse; }
.r3 { inset: 26%; border-color: color-mix(in srgb, var(--check) 35%, transparent); animation-duration: 18s; }
.r1::before { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; animation: bob 5s ease-in-out infinite; }
.c1 { top: 8%; inset-inline-start: -4%; }
.c2 { bottom: 14%; inset-inline-end: -6%; animation-delay: -2s; }
.c3 { bottom: -2%; inset-inline-start: 18%; animation-delay: -3.5s; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 14px; opacity: .7; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Sections ===== */
section { position: relative; }
.stats, .about, .services, .clients, .experts, .contact { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.kicker { color: var(--brand); font-weight: 600; letter-spacing: .08em; font-size: .85rem; margin-bottom: 6px; }
html[lang="en"] .kicker { text-transform: uppercase; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 700; }
.sub-title { font-size: 1.35rem; margin: 48px 0 20px; display: flex; align-items: center; gap: 12px; }
.sub-title::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--brand); }

/* Stats */
.stats { background: var(--bg-soft); }
.stats .section-title { text-align: center; margin-bottom: 44px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.stat::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 10%, transparent); transition: transform .6s var(--ease); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat:hover::after { transform: scale(1.6); }
.stat-num { font-family: 'Inter', sans-serif; font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat-num.plus::before { content: '+'; font-size: .55em; vertical-align: top; margin-inline-end: 2px; opacity: .7; }
.stat p { color: var(--muted); font-size: .95rem; margin: 0; position: relative; z-index: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .4s var(--ease), border-color .3s; }
.about-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.about-card h3 { color: var(--brand); font-size: 1.2rem; }
.about-card p { color: var(--muted); margin: 0; }
.about-card.vision { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; }
.about-card.vision h3, .about-card.vision p { color: #fff; }
.about-card.vision p { font-size: 1.1rem; font-weight: 500; }
.values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.values li { padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.values li:hover { background: var(--brand); color: #fff; transform: translateY(-3px) rotate(-1deg); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.goals { counter-reset: g; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.goals li { counter-increment: g; display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.goals li::before { content: counter(g, decimal-leading-zero); font-family: 'Inter', sans-serif; font-weight: 700; color: var(--brand); min-width: 26px; }
.guarantee { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guarantee li { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.guarantee li::before { content: ''; flex: 0 0 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 15%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23e07b39' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* Services */
.services { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; transform-style: preserve-3d;
  display: flex; flex-direction: column;
}
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.service:hover::before { opacity: 1; }
.service:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.service-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand); margin-bottom: 18px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.service:hover .service-icon { transform: rotate(-8deg) scale(1.08); background: var(--brand); color: #fff; }
.service-icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.12rem; }
.service p { color: var(--muted); font-size: .94rem; flex: 1; }
.service .more { color: var(--brand); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.service .more::after { content: '←'; transition: transform .3s var(--ease); }
[dir="ltr"] .service .more::after { content: '→'; }
.service:hover .more::after { transform: translateX(-5px); }
[dir="ltr"] .service:hover .more::after { transform: translateX(5px); }

/* Clients */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.tab { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; transition: all .3s var(--ease); }
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.tab .count { font-family: 'Inter', sans-serif; font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.08); margin-inline-start: 6px; }
.tab[aria-selected="true"] .count { background: rgba(255,255,255,.25); }
.tab-desc { text-align: center; color: var(--muted); max-width: 70ch; margin: 0 auto 28px; min-height: 1.75em; }
.client-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.client { padding: 10px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; animation: chipIn .5s var(--ease) both; transition: transform .25s var(--ease), border-color .25s, color .25s; }
.client:hover { transform: translateY(-3px); border-color: var(--brand); color: var(--brand); }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.marquee { margin-top: 56px; overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); direction: ltr; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-weight: 600; color: var(--muted); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: '◆'; color: var(--brand); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Experts */
.lead-expert { display: flex; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin-bottom: 28px; box-shadow: var(--shadow); }
.lead-expert h3 { font-size: 1.4rem; margin-bottom: 2px; }
.lead-expert .role { color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.lead-expert p:last-child { color: var(--muted); margin: 0; }
.avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); font-size: 1.2rem; }
.avatar.xl { width: 110px; height: 110px; font-size: 2.6rem; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.member { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; transition: transform .3s var(--ease), border-color .3s; }
.member:hover { transform: translateY(-3px); border-color: var(--brand); }
.member:nth-child(3n+2) .avatar { background: linear-gradient(135deg, #6b7078, #9aa1ab); }
.member:nth-child(3n) .avatar { background: linear-gradient(135deg, #b95a1c, #e07b39); }
.member strong { display: block; font-size: .96rem; line-height: 1.4; }
.member small { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact .section-title { text-align: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list a:hover { color: var(--brand); }
.ci { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-size: 1.1rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--brand); transition: transform .3s var(--ease), background-color .3s, color .3s; }
.socials a:hover { background: var(--brand); color: #fff; transform: translateY(-3px) rotate(-6deg); }
.socials svg { width: 20px; height: 20px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--surface); padding: 28px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .25s, box-shadow .25s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.contact-form textarea { resize: vertical; }
.form-note { margin: 0; font-size: .9rem; color: var(--brand-ink); min-height: 1.4em; }

/* Home: lead expert card with photo + link to profile */
.lead-photo { flex-shrink: 0; width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); transition: transform .4s var(--ease); }
.lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lead-expert:hover .lead-photo { transform: scale(1.05) rotate(-2deg); }
.lead-expert h3 a:hover { color: var(--brand); }
.lead-more { margin-top: 16px; }
.lead-more .arrow { display: inline-block; transition: transform .3s var(--ease); }
[dir="ltr"] .lead-more .arrow { transform: scaleX(-1); }
.lead-more:hover .arrow { transform: translateX(-4px); }
[dir="ltr"] .lead-more:hover .arrow { transform: scaleX(-1) translateX(-4px); }

/* ===== Dr. Essam profile page ===== */
.profile-hero { position: relative; overflow: hidden; isolation: isolate; padding: 40px 0 80px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin-bottom: 28px; }
.back-link::before { content: '→'; transition: transform .3s var(--ease); }
[dir="ltr"] .back-link::before { content: '←'; }
.back-link:hover { color: var(--brand); }
.back-link:hover::before { transform: translateX(4px); }
[dir="ltr"] .back-link:hover::before { transform: translateX(-4px); }
.profile-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.portrait { position: relative; width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 3 / 4; }
.portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); }
.portrait-ring { position: absolute; inset: -10px; border-radius: 40px; background: conic-gradient(from var(--a, 0deg), var(--brand), transparent 30%, var(--brand-2) 50%, transparent 80%, var(--brand)); animation: ringSpin 6s linear infinite; filter: blur(2px); opacity: .9; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ringSpin { to { --a: 360deg; } }
.portrait-badge { position: absolute; z-index: 2; bottom: 24px; inset-inline-start: -28px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.portrait-badge strong { font-family: 'Inter', sans-serif; font-size: 2rem; line-height: 1; color: var(--brand); font-weight: 800; }
.portrait-badge span { font-size: .85rem; font-weight: 600; max-width: 8em; line-height: 1.3; }
.profile-name { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; margin: 16px 0 6px; }
.profile-role { color: var(--brand-ink); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.quals { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quals li { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.quals li:hover { transform: translateY(-3px); border-color: var(--brand); }
.q-icon { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.q-icon svg { width: 22px; height: 22px; }
.quals strong { display: block; font-size: .95rem; line-height: 1.3; }
.quals small { color: var(--muted); font-size: .82rem; line-height: 1.35; display: block; }

.stats-grid.six { grid-template-columns: repeat(3, 1fr); }
.services-grid.three { grid-template-columns: repeat(3, 1fr); }
.p-section { padding: clamp(64px, 9vw, 110px) 0; }
.p-section.alt { background: var(--bg-soft); }

/* Timeline */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 2px; background: linear-gradient(var(--brand), var(--line)); }
.tl-item { position: relative; padding-inline-start: 48px; margin-bottom: 22px; }
.tl-dot { position: absolute; inset-inline-start: 2px; top: 26px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 4px solid var(--brand); }
.tl-item.now .tl-dot { background: var(--brand); animation: pulse 2s infinite; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.tl-card:hover { transform: translateX(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
[dir="ltr"] .tl-card:hover { transform: translateX(6px); }
.tl-card h3 { font-size: 1.15rem; margin: 10px 0 2px; }
.tl-org { color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.tl-card p:last-child { color: var(--muted); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.badge.live { background: color-mix(in srgb, #22a06b 14%, transparent); border-color: color-mix(in srgb, #22a06b 40%, transparent); color: #1f8a5c; }
[data-theme="dark"] .badge.live { color: #5fd39f; }
.badge.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.countries { margin-top: 40px; }
.countries .client-cloud { justify-content: flex-start; }

/* Boards */
.boards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; animation: chipIn .5s var(--ease) both; transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; }
.board:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.board.now { border-color: color-mix(in srgb, #22a06b 35%, var(--line)); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.years { font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; font-weight: 700; font-size: .85rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 8px; }
.board h3 { font-size: 1.08rem; margin-bottom: 2px; }
.board-role { color: var(--brand-ink); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.board p:last-child { color: var(--muted); font-size: .92rem; margin: 0; }

/* Honors */
.honors { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.honors li { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 14px 30px -16px var(--brand); transition: transform .35s var(--ease); }
.honors li:nth-child(2) { background: linear-gradient(135deg, #4a5160, #6b7078); box-shadow: 0 14px 30px -16px #4a5160; }
.honors li:nth-child(3) { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.honors li:hover { transform: translateY(-4px) rotate(-.5deg); }
.h-num { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.6rem; opacity: .55; }
#academic .section-title { text-align: start; }
#academic .two-col { align-items: start; }

/* CTA band */
.p-cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.p-section.alt + .p-cta { padding-top: clamp(64px, 9vw, 110px); }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; position: relative; overflow: hidden; }
.cta-card::after { content: ''; position: absolute; inset-inline-end: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.12); animation: float 14s ease-in-out infinite; }
.cta-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-card p { margin: 0; opacity: .92; max-width: 60ch; }
.btn-light { background: #fff; color: var(--brand-ink); flex-shrink: 0; position: relative; z-index: 1; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.35); }

@media (max-width: 1080px) {
  .boards-grid, .services-grid.three { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 300px 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .portrait-badge { inset-inline-start: -12px; }
  .stats-grid.six { grid-template-columns: repeat(2, 1fr); }
  .cta-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .boards-grid, .services-grid.three, .quals { grid-template-columns: 1fr; }
  .stats-grid.six { grid-template-columns: 1fr; }
  .lead-photo { width: 110px; }
  .lead-more { width: 100%; }
  .tl-item { padding-inline-start: 36px; }
  .tl-card { padding: 18px; }
  .profile-name, .profile-role, .profile-copy .eyebrow { text-align: center; }
  .profile-copy { text-align: center; }
  .profile-copy .quals { text-align: start; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.footer-inner p { margin: 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 4px; }

/* ===== Share dialog ===== */
/* The dialog itself never scrolls; the open animation runs on the dialog so its content can't overflow it */
.share-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: none; overflow: visible; color: var(--text); }
.share-dialog::backdrop { background: rgba(10, 10, 14, .55); backdrop-filter: blur(6px); }
.share-dialog[open] { animation: dialogIn .45s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.share-card { position: relative; width: 380px; max-width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; text-align: center; box-shadow: var(--shadow-lg); }
.share-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.share-card .close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.qr-wrap { margin: 16px auto; width: 240px; max-width: 100%; padding: 14px; border-radius: 20px; background: #fff; position: relative; box-shadow: 0 0 0 1px var(--line); }
.qr-wrap canvas { width: 100%; height: auto; }
.qr-wrap::after { content: ''; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand) 30%, transparent), transparent); height: 30%; animation: scan 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0%, 100% { top: 0; } 50% { top: 70%; } }
.share-url { display: flex; gap: 8px; margin-bottom: 12px; }
.share-url input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: .85rem; }
.share-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.share-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.share-links a { font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.share-links a:hover { border-color: var(--brand); color: var(--brand); }

/* Toast */
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 20px; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease); z-index: 90; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .services-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 8px; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  /* Nav is a drop-down here, so push the buttons to the side opposite the logo */
  .header-actions { margin-inline-start: auto; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; margin-top: env(safe-area-inset-top); flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .hero-inner, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; min-height: auto; }
  .hero-visual { order: -1; }
  .orbit { width: min(280px, 70vw); }
  .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .brand-text small, .lang-btn svg { display: none; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .icon-btn, .lang-btn, .theme-toggle, .menu-btn { height: 40px; min-width: 40px; }
  .lang-btn { padding: 0 10px; }
  .services-grid, .team-grid, .about-grid, .stats-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .lead-expert { flex-direction: column; text-align: center; padding: 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .c1 { inset-inline-start: 0; } .c2 { inset-inline-end: 0; }
  .footer-inner { justify-content: center; text-align: center; }
  .share-card { padding: 24px 18px; }
}
@media (max-width: 600px) {
  .brand { min-width: 0; flex-shrink: 1; }
  /* Long English name wraps onto two lines instead of pushing the buttons off-screen */
  html[lang="en"] .brand-text strong { font-size: .92rem; line-height: 1.15; }
  html[lang="en"] .brand-text { max-width: 6.5em; }
}
@media (max-width: 380px) { .brand-text strong { font-size: .95rem; } .brand-mark { width: 36px; height: 36px; } }
@media (max-width: 359px) { .brand-text { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .hero-bg, .marquee, .contact-form, .scroll-progress { display: none; } }

/* ---------- Team cards that open a profile page; five-stat grid (Mohammed Al-Rahbi) ---------- */
.stat-num.pct::after { content: '%'; font-size: .55em; vertical-align: top; margin-inline-start: 2px; opacity: .7; }
a.member { color: inherit; text-decoration: none; }
.member.has-profile { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.member.has-profile:hover { box-shadow: var(--shadow-lg); }
.avatar.photo { padding: 0; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 60%, transparent); }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.member.has-profile { position: relative; }
.member-go { position: absolute; inset-inline-start: 54px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); border: 2px solid var(--surface); box-shadow: 0 4px 10px -4px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.member-go svg { width: 13px; height: 13px; }
[dir="ltr"] .member-go svg { transform: scaleX(-1); }
.member.has-profile:hover .member-go { transform: scale(1.15); }
.stats .section-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: -28px auto 40px; }
.stats-grid.five { grid-template-columns: repeat(6, 1fr); }
.stats-grid.five .stat { grid-column: span 2; }
.stats-grid.five .stat:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 900px) {
  .stats-grid.five { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.five .stat, .stats-grid.five .stat:nth-child(4) { grid-column: auto; }
  .stats-grid.five .stat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stats-grid.five { grid-template-columns: 1fr; }
}
