/* SEOS7 agency homepage (layouts/agency-ar.php, views/site/agency-home.php, agency-thanks.php).
   Bold monochrome in thesolosaas.com's palette: electric blue, white, near-black.
   Arabic rules: never letter-space Arabic text; headlines are two .ln lines. */

:root {
  --ink: #0A0A0B;
  --panel: #141416;
  --blue: #0C02F2;
  --blue-img: #0102F1;   /* the generated backgrounds' flat blue, so edges blend */
  --tint: #A29EFF;
  --paper: #F4F4F7;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --muted: rgba(255, 255, 255, .66);
  --ink-muted: #55555C;
  --ink-line: #E3E3EA;
  --gutter: clamp(16px, 4vw, 56px);
  --r-lg: 28px;
  --r: 20px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 78px;
  --fwd: -1;
  --font: 'Alexandria', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
html.ah-locked { overflow: hidden; }
body.ah {
  margin: 0; background: var(--ink); color: #fff; font-family: var(--font);
  font-size: 17px; line-height: 1.75; font-weight: 400; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* zero-specificity resets, so every component class below wins */
:where(.ah) img { max-width: 100%; display: block; }
:where(.ah) button { font: inherit; color: inherit; cursor: pointer; }
:where(.ah) a { color: inherit; text-decoration: none; }
:where(.ah) :is(h1, h2, h3, h4, p) { margin: 0; }
:where(.ah) mark { background: none; color: inherit; }
.ah-wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.ln { display: block; }
bdi { unicode-bidi: isolate; }
.ah-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ah-skip { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.ah-skip:focus { top: 12px; }
.ah :focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }
.ah-i, .ah-arr { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ah-arr { width: 20px; height: 20px; flex: none; transition: translate .35s var(--ease); }
[dir='ltr'] { --fwd: 1; }
[dir='ltr'] .ah-arr { scale: -1 1; }

/* ------------------------------------------------------------------ nav */
.ah-nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter) 0; transition: translate .5s var(--ease); }
.ah-nav.is-hidden { translate: 0 -120%; }
.ah-nav .ah-nav-in {
  display: flex; align-items: center; gap: 24px; height: 64px; max-width: 1272px; margin-inline: auto;
  padding-inline: 22px 8px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s;
}
.ah-nav.is-scrolled .ah-nav-in {
  background: rgba(10, 10, 11, .82); border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .7);
}
.ah-logo img { height: 36px; width: auto; }
.ah-links { display: flex; gap: 4px; margin-inline: auto; }
.ah-links a { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .84); transition: background .25s, color .25s; }
.ah-links a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ah-nav-cta { margin-inline-start: auto; }
.ah-links + .ah-nav-cta, .ah-lang + .ah-nav-cta { margin-inline-start: 0; }
.ah-lang {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9);
  transition: background .25s, color .25s, border-color .25s;
}
.ah-lang:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* -------------------------------------------------------------- buttons */
.ah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.ah-btn:hover { transform: translateY(-2px); }
.ah-btn--white { background: #fff; color: var(--blue); }
.ah-btn--white:hover { background: var(--ink); color: #fff; }
.ah-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.ah-btn--ghost:hover { background: #fff; color: var(--blue); border-color: #fff; }
.ah-btn--blue { background: var(--blue); color: #fff; height: 56px; padding: 0 28px; font-size: 16px; }
.ah-btn--blue:hover { background: var(--ink); }
.ah-btn--blue:hover .ah-arr, .ah-textlink:hover .ah-arr { translate: calc(var(--fwd) * 5px) 0; }

/* The signature CTA: white pill, bold blue text, black arrow circle (blue, white, black). */
.ah-cta {
  position: relative; display: inline-flex; align-items: center; gap: 18px; height: 66px;
  padding-inline: 30px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--blue);
  font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; isolation: isolate;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 20, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
}
.ah-cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(12, 2, 242, .14) 50%, transparent 65%);
  translate: 110% 0; animation: ahShine 4.5s var(--ease) 2s infinite;
}
.ah-cta-ico {
  width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; transition: background .3s, color .3s;
}
.ah-cta-ico .ah-arr { width: 22px; height: 22px; stroke-width: 2.2; }
.ah-cta:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -20px rgba(0, 0, 20, .7); }
.ah-cta:hover .ah-cta-ico { background: var(--blue); }
.ah-cta:hover .ah-arr { translate: calc(var(--fwd) * 4px) 0; }
.ah-cta:active { transform: translateY(0) scale(.98); }
.ah-cta--blue { background: var(--blue); color: #fff; box-shadow: 0 20px 40px -20px rgba(12, 2, 242, .8); }
.ah-cta--blue::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); }
.ah-cta--blue .ah-cta-ico { background: #fff; color: var(--blue); }
.ah-cta--blue:hover .ah-cta-ico { background: var(--ink); color: #fff; }
.ah-cta--full { width: 100%; justify-content: space-between; height: 64px; }
.ah-cta.is-loading { pointer-events: none; opacity: .7; }
.ah-cta.is-loading .ah-cta-ico { animation: ahBreath 1s ease-in-out infinite; }
.ah-btn--lg { height: 66px; padding: 0 30px; font-size: 17px; }

.ah-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 4px; border-bottom: 1.5px solid rgba(255, 255, 255, .45); transition: border-color .3s; }
.ah-textlink:hover { border-color: #fff; }
.ah-center { text-align: center; margin-top: clamp(40px, 5vw, 56px); }

/* ------------------------------------------------------------- sections */
.ah-sec { padding: clamp(90px, 11vw, 150px) 0; position: relative; }
.on-blue { background-color: var(--blue); color: #fff; }
.on-light { background: #fff; color: var(--ink); }
.ah-head { text-align: center; max-width: 860px; margin: 0 auto clamp(48px, 6vw, 76px); container-type: inline-size; }
.ah-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--tint); margin-bottom: 18px; }
.ah-eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.ah-h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.22; font-weight: 900; margin-bottom: 22px; }
.ah-head .ah-h2 { font-size: min(8cqi, 66px); }
.ah-h2--xl { font-size: clamp(34px, 5.8vw, 86px); }
.ah-final .ah-h2--xl, .ah-thanks .ah-h2--xl { font-size: min(7.9cqi, 88px); }
.ah-sub { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.85; color: var(--muted); max-width: 36em; margin: 0 auto; }
.on-light .ah-eyebrow { color: var(--blue); }
.on-light .ah-sub { color: var(--ink-muted); }
.on-blue .ah-eyebrow { color: #fff; }
.on-blue .ah-sub { color: rgba(255, 255, 255, .88); }

/* faint moving grid over the blue sections */
.ah-hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 72px 72px; animation: ahGrid 24s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 0%, transparent 72%);
}

/* ------------------------------------------------------------------ hero */
/* Centred and mirrored. The glass bars are cut from the generated hero image and
   blended with `lighten` over the same flat blue, so only light shows: no seams. */
.ah-hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 0 clamp(56px, 8vh, 96px); background: var(--blue-img); --px: 0; --py: 0;
}
.ah-hero .ah-hero-grid-bg { -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 62% 58% at 50% 42%, #000 0%, transparent 72%); }
.ah-hero-bars {
  position: absolute; bottom: 0; z-index: -1; pointer-events: none; mix-blend-mode: lighten;
  width: clamp(170px, 27vw, 470px); aspect-ratio: 660 / 864;
  background: url('../img/agency/hero-bars.webp') left bottom / 100% 100% no-repeat;
  animation: ahRise 1.6s var(--ease-out) .2s both;
}
.ah-hero-bars--l { left: 0; }
.ah-hero-bars--r { right: 0; scale: -1 1; }
.ah-hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; container-type: inline-size; }
.ah-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ah-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ahPing 2.2s var(--ease) infinite; }
.ah-h1 { font-size: clamp(32px, 6vw, 84px); font-size: min(8.6cqi, 88px); line-height: 1.2; font-weight: 900; margin: 26px 0 24px; }
.ah-h1 .ln { white-space: nowrap; animation: ahLine 1.1s var(--ease-out) both; }
.ah-h1 .ln + .ln { animation-delay: .14s; }
.ah-h1 mark {
  color: inherit; padding: 0 .16em; margin: 0 -.02em; border-radius: .16em;
  background: linear-gradient(#fff, #fff) no-repeat right center / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: ahMark .9s var(--ease) .75s forwards;
}
.ah-lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.85; color: rgba(255, 255, 255, .9); max-width: 38em; margin: 0 auto 38px; }
.ah-cta-row { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; }
.ah-cta-row--center { justify-content: center; }
.ah-rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.ah-rating-stars { letter-spacing: 2px; color: #fff; }

[dir='ltr'] .ah-kpi-num { text-align: left; }

.ah-spark { width: 100%; height: 44px; overflow: visible; display: block; }
.ah-spark path {
  fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1;
}

/* -------------------------------------------------------------- clients */
.ah-clients { background: var(--ink); padding: 46px 0 42px; border-bottom: 1px solid var(--line); }
.ah-clients-t { text-align: center; font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 26px; }
.ah-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ah-marquee-track { display: flex; align-items: center; width: max-content; animation: ahMarquee 40s linear infinite; }
.ah-marquee-track img { height: 34px; width: auto; margin-inline-end: 76px; filter: brightness(0) invert(1); opacity: .72; transition: opacity .3s; }
.ah-marquee:hover .ah-marquee-track { animation-play-state: paused; }
.ah-marquee-track img:hover { opacity: 1; }

/* ------------------------------------------------------------- services */
.ah-services { background: var(--ink); }
.ah-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ah-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; cursor: pointer;
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  transition: transform .55s var(--ease), border-color .4s, box-shadow .55s var(--ease);
}
.ah-card::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(162, 158, 255, .16), transparent 45%);
}
.ah-card:hover { transform: translateY(-10px); border-color: rgba(162, 158, 255, .5); box-shadow: 0 40px 70px -40px rgba(12, 2, 242, .9); }
.ah-card:hover::before { opacity: 1; }
.ah-card-media { position: relative; aspect-ratio: 1 / .84; background: #050507; overflow: hidden; }
.ah-card-media img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: scale 1.2s var(--ease), rotate 1.2s var(--ease); }
.ah-card:hover .ah-card-media img { scale: 1.13; rotate: -1.5deg; }
.ah-card-media::after { content: ''; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, var(--panel), transparent); pointer-events: none; }
.ah-card-media.is-icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 58%, rgba(12, 2, 242, .6), #050507 64%); }
.ah-card-ico .ah-i { width: 96px; height: 96px; color: #fff; stroke-width: 1.2; }
.ah-no {
  position: absolute; top: 16px; inset-inline-start: 16px; z-index: 2; padding: 3px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ah-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 4px 24px 24px; }
.ah-kicker { font-size: 13px; font-weight: 700; color: var(--tint); }
.ah-card h3 { font-size: clamp(20px, 1.55vw, 23px); font-weight: 800; line-height: 1.4; }
.ah-card p {
  margin: 0 0 8px; font-size: 15px; line-height: 1.8; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-card-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-size: 15px;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.ah-card:hover .ah-card-cta, .ah-card-cta:focus-visible { background: #fff; color: var(--blue); border-color: #fff; }
.ah-card:hover .ah-card-cta .ah-arr { translate: calc(var(--fwd) * 5px) 0; }

/* ------------------------------------------------------- kinetic band */
.ah-band { position: relative; display: grid; overflow: hidden; background: var(--ink); padding: clamp(60px, 8vw, 110px) 0; }
.ah-band-row { grid-area: 1 / 1; align-self: center; width: 116%; margin-inline: -8%; padding: 20px 0; overflow: hidden; }
.ah-band-row--a { background: var(--blue); rotate: -3deg; z-index: 2; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ah-band-row--b { background: #fff; color: var(--ink); rotate: 2.4deg; }
.ah-band-track { display: flex; align-items: center; width: max-content; animation: ahMarquee 55s linear infinite; }
.ah-band-row--b .ah-band-track { animation-direction: reverse; animation-duration: 70s; }
[dir='ltr'] .ah-marquee-track, [dir='ltr'] .ah-band-track { animation-name: ahMarqueeLtr; }
.ah-band-track span { font-size: clamp(28px, 4vw, 56px); font-weight: 900; line-height: 1.35; white-space: nowrap; margin-inline-end: clamp(22px, 2.6vw, 40px); }
.ah-band-row--a span:nth-of-type(even) { color: rgba(255, 255, 255, .5); }
.ah-band-row--b span:nth-of-type(even) { color: var(--blue); }
.ah-star { width: clamp(20px, 2.4vw, 34px); height: clamp(20px, 2.4vw, 34px); flex: none; fill: currentColor; margin-inline-end: clamp(22px, 2.6vw, 40px); animation: ahSpin 9s linear infinite; }

/* -------------------------------------------------------------- results */
.ah-results { background: var(--ink); }
.ah-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ah-kpi {
  position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 26px 24px 22px;
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  transition: transform .55s var(--ease), border-color .4s;
}
.ah-kpi::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(162, 158, 255, .14), transparent 45%);
}
.ah-kpi:hover { transform: translateY(-8px); border-color: rgba(162, 158, 255, .5); }
.ah-kpi:hover::before { opacity: 1; }
.ah-kpi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ah-kpi-name { font-weight: 800; font-size: 17px; }
.ah-kpi-dom { font-size: 12.5px; color: var(--muted); }
.ah-kpi-num { font-size: clamp(40px, 3.4vw, 52px); font-weight: 900; line-height: 1.05; text-align: right; font-variant-numeric: tabular-nums; }
.ah-spark--lg { height: 64px; margin: 6px 0; }
.ah-kpi .ah-spark path { stroke: var(--tint); transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.ah-kpi.in .ah-spark path { stroke-dashoffset: 0; }
.ah-kpi p { margin: 0; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .84); min-height: calc(1.7em * 2); }
.ah-kpi-range { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ah-results .ah-textlink { color: #fff; }

/* ---------------------------------------------------------- team/office */
.ah-gallery {
  display: grid; gap: 16px; grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: repeat(2, clamp(200px, 19vw, 290px)); grid-template-areas: "a c b" "d c e";
}
.ah-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.ah-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.ah-photo:hover img { scale: 1.06; }
.ah-team .ah-btn--blue { color: #fff; }

/* -------------------------------------------------------------- process */
.ah-process { background: var(--ink); }
.ah-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ah-step { position: relative; padding: 34px 30px 34px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); transition: background .45s var(--ease), border-color .45s, transform .55s var(--ease); }
.ah-step-no {
  display: block; margin-bottom: 26px; font-size: clamp(60px, 6vw, 92px); font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(162, 158, 255, .75); font-variant-numeric: tabular-nums; transition: color .45s, -webkit-text-stroke-color .45s;
}
.ah-step h3 { font-size: clamp(21px, 1.8vw, 25px); font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.ah-step p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15.5px; }
.ah-step:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-8px); }
.ah-step:hover .ah-step-no { color: #fff; -webkit-text-stroke-color: #fff; }
.ah-step:hover p { color: rgba(255, 255, 255, .88); }

/* ------------------------------------------------------------ final CTA */
.ah-final {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(120px, 14vw, 200px) 0;
  background: var(--blue-img) url('../img/agency/cta-bg.webp') center / cover no-repeat;
}
.ah-final .ah-hero-grid-bg { -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 50% 60% at 50% 50%, #000, transparent 75%); }
.ah-final-in { max-width: 980px; container-type: inline-size; }
.ah-final .ah-sub { margin-bottom: 40px; }
.ah-final .ah-btn--ghost { height: 66px; padding: 0 30px; font-size: 16px; }

/* --------------------------------------------------------------- footer */
.ah-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 76px 0 28px; font-size: 15px; }
.ah-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.25fr; gap: 40px; }
.ah-foot-brand img { width: 132px; height: auto; margin-bottom: 18px; }
.ah-foot-brand p { margin: 0; color: var(--muted); line-height: 1.85; max-width: 24em; }
.ah-footer h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.ah-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ah-footer li, .ah-footer li a, .ah-footer li button { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.ah-footer li button { background: none; border: 0; padding: 0; text-align: start; }
.ah-footer li a:hover, .ah-footer li button:hover { color: #fff; }
.ah-foot-bar { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

.ah-wa-float {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #25D366; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease);
}
.ah-wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.ah-wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #fff; animation: ahRing 2.6s var(--ease) infinite; }

/* ------------------------------------------------------------- the form */
.ah-modal {
  width: min(680px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 30px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 50px 140px -30px rgba(0, 0, 30, .7);
}
.ah-modal::backdrop { background: rgba(4, 2, 40, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ah-modal[open] { animation: ahModal .55s var(--ease-out); }
.ah-modal[open]::backdrop { animation: ahFade .4s ease; }
.ah-form { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 38px 40px 28px; }
.ah-x {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #F1F1F5; transition: background .25s, rotate .35s var(--ease);
}
.ah-x svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.ah-x:hover { background: var(--blue); rotate: 90deg; }
.ah-x:hover svg { stroke: #fff; }
.ah-m-head { text-align: center; margin-bottom: 28px; }
.ah-m-head[hidden] { display: none; }
.ah-m-badge { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: #050507; box-shadow: 0 18px 36px -18px rgba(12, 2, 242, .8); }
.ah-m-badge img { width: 100%; height: 100%; object-fit: cover; scale: 1.3; }
.ah-m-badge.is-icon { background: var(--blue); }
.ah-m-badge .ah-i { width: 42px; height: 42px; color: #fff; }
.ah-m-head .ah-eyebrow { color: var(--blue); margin-bottom: 10px; }
.ah-m-title { font-size: clamp(24px, 3.3vw, 34px); line-height: 1.32; font-weight: 900; margin-bottom: 10px; }
.ah-m-sub { margin: 0 auto; max-width: 31em; font-size: 15.5px; line-height: 1.8; color: var(--ink-muted); }
.ah-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.ah-q[hidden] { display: none; }
.ah-q legend { padding: 0; margin-bottom: 12px; font-size: 15.5px; font-weight: 800; }
.ah-q.is-missing legend { color: #D7263D; }
.ah-q.is-missing .ah-chip span { border-color: #F3B6BF; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chip { position: relative; cursor: pointer; }
.ah-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ah-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink-line); background: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease);
}
.ah-chip:hover span { border-color: var(--blue); }
.ah-chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.03); }
.ah-chip input:focus-visible + span { outline: 3px solid var(--tint); outline-offset: 2px; }
.ah-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 18px; }
.ah-field { display: grid; gap: 7px; align-content: start; }
.ah-field--full { grid-column: 1 / -1; }
.ah-field > span:first-child { font-size: 14px; font-weight: 700; }
.ah-field small { font-weight: 500; color: #8A8A93; }
.ah-field input, .ah-field select {
  width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--ink-line); border-radius: var(--r-md);
  background: #FAFAFC; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.ah-field input::placeholder { color: #A5A5AE; }
.ah-field input:focus, .ah-field select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(12, 2, 242, .12); }
.ah-field input[aria-invalid='true'] { border-color: #D7263D; background: #FFF6F7; }
.ah-phone { display: flex; gap: 8px; direction: ltr; }
.ah-phone select { width: auto; flex: none; padding: 0 10px; }
.ah-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ah-err { margin: 0 0 14px; text-align: center; color: #D7263D; font-weight: 600; font-size: 14.5px; }
.ah-err[hidden] { display: none; }
.ah-m-note { margin: 14px 0 0; text-align: center; font-size: 13px; line-height: 1.7; color: #8A8A93; }

/* -------------------------------------------------------------- thanks */
.ah-thanks {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; text-align: center;
  padding: calc(var(--nav-h) + 64px) 0 96px;
  background: var(--blue-img) url('../img/agency/cta-bg.webp') center / cover no-repeat;
}
.ah-thanks-in { max-width: 820px; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
.ah-thanks .ah-sub { margin-bottom: 36px; }
.ah-check { width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-bottom: 30px; animation: ahPop .8s var(--ease-out) both; box-shadow: 0 0 0 12px rgba(255, 255, 255, .14); }
.ah-check svg { width: 42px; height: 42px; fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: ahDrawCheck .6s var(--ease) .45s forwards; }
.ah-receipt { width: 100%; margin-bottom: 30px; overflow: hidden; border-radius: var(--r-lg); background: #fff; color: var(--ink); text-align: start; box-shadow: 0 40px 80px -36px rgba(0, 0, 25, .7); animation: ahIn .9s var(--ease-out) .3s both; }
.ah-receipt-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px; background: var(--ink); color: #fff; font-weight: 800; }
.ah-receipt-head b { color: var(--tint); font-variant-numeric: tabular-nums; }
.ah-receipt dl { margin: 0; padding: 6px 26px 8px; }
.ah-receipt dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px dashed var(--ink-line); }
.ah-receipt dl > div:last-child { border-bottom: 0; }
.ah-receipt dt { flex: none; color: #6B6B74; font-size: 14.5px; }
.ah-receipt dd { margin: 0; font-weight: 700; font-size: 15px; text-align: end; overflow-wrap: anywhere; }
.ah-wa-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; max-width: 580px; min-height: 72px; padding: 12px 30px; margin-bottom: 24px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 25, .7); transition: transform .35s var(--ease), box-shadow .35s;
}
.ah-wa-btn::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #fff; animation: ahRing 2.4s var(--ease) infinite; pointer-events: none; }
.ah-wa-btn svg { width: 32px; height: 32px; flex: none; color: #25D366; }
.ah-wa-btn:hover { transform: translateY(-3px) scale(1.01); }

/* footer: official profiles + email */
.ah-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ah-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: #fff; transition: background .25s, color .25s, border-color .25s; }
.ah-social a:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ------------------------------------------------- hero results panel */
/* two real results in one centred panel under the CTAs, like a product shot; mirrored columns */
.ah-hpanel { position: relative; width: 100%; max-width: 1000px; margin: clamp(44px, 6vh, 64px) auto 0; border-radius: 28px; background: #fff; color: var(--ink); text-align: start; box-shadow: 0 50px 100px -40px rgba(0, 0, 40, .85), 0 0 0 1px rgba(255, 255, 255, .5); animation: ahRise 1.2s var(--ease-out) .5s both; }
.ah-hpanel-bar { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-bottom: 1px solid var(--ink-line); font-size: 13.5px; font-weight: 700; color: var(--ink-muted); }
.ah-hpanel-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(12, 2, 242, .14); animation: ahPing 2.2s var(--ease) infinite; }
.ah-hpanel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-hres {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "top top" "num vs" "lbl vs" "more more";
  align-items: end; gap: 4px 26px; padding: 24px 30px 22px; color: inherit; transition: background .3s;
}
.ah-hres + .ah-hres { border-inline-start: 1px solid var(--ink-line); }
.ah-hres:hover { background: #F7F7FB; }
.ah-hpanel-grid .ah-hres:first-child { border-end-start-radius: 28px; }
.ah-hpanel-grid .ah-hres:last-child { border-end-end-radius: 28px; }
.ah-hres-top { grid-area: top; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ah-hres-fav { width: 36px; height: 36px; flex: none; display: grid; place-items: center; padding: 5px; border-radius: 11px; border: 1px solid var(--ink-line); background: #fff; }
.ah-hres-fav img { width: 100%; height: 100%; object-fit: contain; }
.ah-hres-who { display: grid; line-height: 1.35; min-width: 0; }
.ah-hres-who b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-hres-who small { font-size: 12px; color: var(--ink-muted); justify-self: start; }
.ah-hres-num { grid-area: num; font-size: clamp(34px, 3.4vw, 46px); font-weight: 900; line-height: 1.05; color: var(--blue); white-space: nowrap; }
.ah-hres-num small { font-size: .38em; font-weight: 800; color: var(--ink); }
.ah-hres-lbl { grid-area: lbl; align-self: start; min-height: 3em; /* two lines, so both "see the details" links line up */ font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--ink-muted); }
/* before → after, to scale, with the exact multiplier */
.ah-vs { grid-area: vs; display: grid; gap: 10px; align-self: center; }
.ah-vs-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.ah-vs-bar { display: grid; height: 10px; }
.ah-vs-bar i { justify-self: start; width: var(--w, 100%); height: 100%; border-start-end-radius: 4px; border-end-end-radius: 4px; background: #C4C7D2; transform-origin: left; animation: ahGrow 1.1s var(--ease) 1.2s both; }
[dir='rtl'] .ah-vs-bar i { transform-origin: right; }
.ah-vs-row.is-after .ah-vs-bar i { background: var(--blue); animation-delay: 1.35s; }
.ah-vs-row b { min-width: 3.2em; font-size: 14px; font-weight: 900; color: var(--ink); text-align: end; }
.ah-hres-more { grid-area: more; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 16px; font-size: 13.5px; font-weight: 800; color: var(--blue); }
.ah-hres-more .ah-arr { width: 16px; height: 16px; }
.ah-hres:hover .ah-hres-more .ah-arr { translate: calc(var(--fwd) * 4px) 0; }
@keyframes ahGrow { from { scale: 0 1; } }

/* ------------------------------------------------------ featured cases */
/* white case cards on blue; numbers from the clients' dashboards (content/agency-cases.php) */
.ah-cases { position: relative; overflow: hidden; }
.ah-cases > .ah-wrap { position: relative; }
.ah-case { position: relative; background: #fff; color: var(--ink); border-radius: 32px; padding: clamp(22px, 4vw, 52px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .5); }
.ah-case + .ah-case { margin-top: 28px; }
.ah-case-head { text-align: center; max-width: 880px; margin: 0 auto 34px; container-type: inline-size; }
.ah-case-brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 18px; border-radius: 999px; background: #F3F4F8; font-size: 15px; }
.ah-case-brand img { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.ah-case-brand b { font-weight: 800; white-space: nowrap; }
.ah-case-brand small { white-space: nowrap; }
.ah-case-brand small { font-size: 13px; color: var(--ink-muted); }
.ah-case-title { margin: 22px 0 14px; font-size: min(5.9cqi, 50px); font-weight: 900; line-height: 1.3; }
.ah-case-title .ln { display: block; white-space: nowrap; }
.ah-case-sub { max-width: 42em; margin: 0 auto; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.85; color: var(--ink-muted); }
.ah-case-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ah-case-tags li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 13px; font-weight: 700; }
.ah-case-tiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 16px; }
.ah-case-tile { display: grid; justify-items: start; align-content: start; gap: 8px; padding: 22px 24px; border-radius: 22px; background: #F3F4F8; }
.ah-case-lbl { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.ah-case-val { font-size: clamp(32px, 3vw, 44px); font-weight: 900; line-height: 1.1; }
.ah-case-val small { font-size: .4em; font-weight: 800; color: var(--ink-muted); }
.ah-delta { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(12, 2, 242, .08); color: var(--blue); font-size: 13px; font-weight: 800; }
.ah-delta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ah-case-period { margin: 14px 0 24px; text-align: center; font-size: 13px; color: var(--ink-muted); }
.ah-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ah-case-shot, .ah-case-chart { margin: 0; border-radius: 22px; overflow: hidden; background: #F3F4F8; }
.ah-case-shot { display: flex; flex-direction: column; border: 1px solid var(--ink-line); }
.ah-case-shot > img { flex: 1 1 auto; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; display: block; }
.ah-browser { display: flex; align-items: center; gap: 12px; height: 42px; padding-inline: 16px; background: #fff; border-bottom: 1px solid var(--ink-line); }
.ah-browser-dots { display: flex; gap: 6px; }
.ah-browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #DADCE3; }
.ah-browser-url { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 26px; margin-inline-end: 46px; border-radius: 999px; background: #F3F4F8; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.ah-browser-url img { width: 14px; height: 14px; }
.ah-case-chart { display: flex; flex-direction: column; padding: 24px 24px 20px; }
.ah-chart-t { margin-bottom: 18px; font-size: 15px; font-weight: 800; }
.ah-chart-note { margin: auto 0 0; padding-top: 16px; font-size: 13px; line-height: 1.7; color: var(--ink-muted); }
/* growth rows: one ranked horizontal bar per metric, the story's row in blue */
.ah-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ah-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.ah-row-name { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.ah-row-val { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ah-row-bar { grid-column: 1 / -1; display: grid; height: 12px; }
.ah-row-bar i { justify-self: start; width: var(--w); height: 100%; border-start-end-radius: 4px; border-end-end-radius: 4px; background: #BFC2CE; transition: width 1.1s var(--ease) .25s; }
.ah-row.is-hl .ah-row-name { color: var(--ink); font-weight: 800; }
.ah-row.is-hl .ah-row-bar i { background: var(--blue); }
.js .ah-case:not(.in) .ah-row-bar i { width: 0; }
/* before / after pair: two big bars, centred in the panel */
.ah-rows--pair { margin-block: auto; gap: 30px; }
.ah-rows--pair .ah-row-name { font-size: 15px; }
.ah-rows--pair .ah-row-val { font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; line-height: 1.1; }
.ah-rows--pair .ah-row.is-hl .ah-row-val { color: var(--blue); }
.ah-rows--pair .ah-row-bar { height: 24px; }
/* proof screenshot shown whole (e.g. a Google profile), not cropped to 16:10 */
.ah-case-shot--whole > img { object-fit: contain; padding: clamp(16px, 3vw, 36px); background: #fff; }
/* rating panel: the number, stars filled to scale, the review count */
.ah-rating { margin-block: auto; display: grid; justify-items: center; gap: 12px; text-align: center; }
.ah-rating-num { font-size: clamp(64px, 7vw, 96px); font-weight: 900; line-height: 1; color: var(--blue); }
.ah-rating-num small { font-size: .2em; font-weight: 800; color: var(--ink-muted); }
.ah-stars { position: relative; display: inline-block; font-size: 34px; line-height: 1; letter-spacing: 4px; color: #C9CCD6; }
.ah-stars i { position: absolute; inset: 0 auto 0 0; width: var(--fill); overflow: hidden; white-space: nowrap; font-style: normal; color: var(--blue); transition: width 1.1s var(--ease) .3s; }
.js .ah-case:not(.in) .ah-stars i { width: 0; }
.ah-rating-cnt { font-size: 16px; font-weight: 800; color: var(--ink); }
/* monthly columns: time runs left to right in both languages, like the sparklines */
.ah-cols { position: relative; height: 250px; margin-top: 4px; }
.ah-cols-grid, .ah-cols-plot { position: absolute; inset: 0 0 26px 52px; }
.ah-cols-grid span { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 100%); border-top: 1px solid #E1E3EA; }
.ah-cols-grid em { position: absolute; right: calc(100% + 8px); top: -.75em; font-style: normal; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-cols-plot { display: flex; }
.ah-col { position: relative; flex: 1; }
.ah-col i { position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: min(24px, 56%); height: var(--h); border-radius: 4px 4px 0 0; background: #BFC2CE; transition: height 1s var(--ease) .25s, background .2s; }
.ah-col.is-hl i { background: var(--blue); }
.js .ah-case:not(.in) .ah-col i { height: 0; }
.ah-col-x { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; font-size: 11px; color: var(--ink-muted); white-space: nowrap; unicode-bidi: plaintext; }
.ah-col.is-hl .ah-col-x { color: var(--blue); font-weight: 800; }
/* Arabic month names are too wide for every column: label every other month (November stays) */
[lang='ar'] .ah-col:nth-child(even) .ah-col-x { visibility: hidden; }
.ah-col-lbl { position: absolute; right: calc(50% - 12px); bottom: calc(var(--h) + 8px); display: grid; justify-items: end; gap: 5px; white-space: nowrap; transition: opacity .5s 1s; }
.ah-col-lbl em { padding: 3px 9px; border-radius: 999px; background: var(--blue); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; unicode-bidi: plaintext; }
.ah-col-lbl b { font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.js .ah-case:not(.in) .ah-col-lbl { opacity: 0; }
.ah-col[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(var(--h) + 8px); translate: -50% 4px; z-index: 2;
  padding: 5px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; unicode-bidi: plaintext; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.ah-col[data-tip]:hover::after { opacity: 1; translate: -50% 0; }
.ah-col[data-tip]:hover i { background: #9EA2B3; }

/* ------------------------------------------------------------ English */
[lang='en'] .ah-h1, [lang='en'] .ah-h2, [lang='en'] .ah-m-title, [lang='en'] .ah-case-title, [lang='en'] .ah-band-track span { letter-spacing: -.03em; }
[lang='en'] .ah-h1 { line-height: 1.06; }
[lang='en'] .ah-h2 { line-height: 1.1; }
[lang='en'] .ah-card h3, [lang='en'] .ah-step h3, [lang='en'] .ah-kpi-num, [lang='en'] .ah-hres-num, [lang='en'] .ah-case-val { letter-spacing: -.02em; }
/* English lines are shorter in em than Arabic ones: own fit factors (widest line 10.1em / 13.8em) */
[lang='en'] .ah-h1 { font-size: min(9.6cqi, 96px); }
[lang='en'] .ah-head .ah-h2 { font-size: min(7.1cqi, 64px); }
/* some English service names take two lines: reserve two everywhere so each row lines up */
@media (min-width: 1201px) { [lang='en'] .ah-card h3 { min-height: 2.8em; } }

/* -------------------------------------------------------- reveal on scroll */
.js .rv { opacity: 0; translate: 0 34px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; translate: 0 0; }
.js .ah-hero .rv { transition-duration: 1.1s; }

/* ------------------------------------------------------------ keyframes */
@keyframes ahLine { from { opacity: 0; translate: 0 .45em; filter: blur(10px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes ahMark { to { background-size: 100% 100%; color: var(--blue); } }
@keyframes ahIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes ahShine { 0% { translate: 110% 0; } 28%, 100% { translate: -110% 0; } }
@keyframes ahBreath { 50% { opacity: .55; } }
@keyframes ahPing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@keyframes ahRing { 0% { opacity: .8; scale: 1; } 80%, 100% { opacity: 0; scale: 1.35; } }
@keyframes ahGrid { to { background-position: 72px 72px; } }
@keyframes ahMarquee { to { translate: 50% 0; } }
@keyframes ahMarqueeLtr { to { translate: -50% 0; } }
@keyframes ahSpin { to { rotate: 360deg; } }
@keyframes ahDraw { to { stroke-dashoffset: 0; } }
@keyframes ahDrawCheck { to { stroke-dashoffset: 0; } }
@keyframes ahPop { 0% { scale: .3; opacity: 0; } 60% { scale: 1.08; opacity: 1; } 100% { scale: 1; } }
@keyframes ahModal { from { opacity: 0; translate: 0 40px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ahSheet { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes ahFade { from { opacity: 0; } }
@keyframes ahRise { from { opacity: 0; translate: 0 18%; } to { opacity: 1; translate: 0 0; } }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .ah-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-card { flex-direction: row; }
  .ah-card-media { width: 44%; flex: none; aspect-ratio: auto; }
  .ah-card-media::after { inset: 0; inset-inline-start: auto; width: 30%; height: auto; background: linear-gradient(to left, var(--panel), transparent); }
  [dir='ltr'] .ah-card-media::after { background: linear-gradient(to right, transparent, var(--panel)); }
  [dir='rtl'] .ah-card-media::after { background: linear-gradient(to left, transparent, var(--panel)); }
  .ah-card-body { padding: 24px 22px 22px; justify-content: center; }
  .ah-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .ah-case-grid { grid-template-columns: 1fr; }
  .ah-links { display: none; }
  .ah-lang { margin-inline-start: auto; }
  /* two columns are too narrow for image-beside-text: stack, so descriptions keep their four lines */
  .ah-card { flex-direction: column; }
  .ah-card-media { width: 100%; aspect-ratio: 16 / 10; }
  .ah-card-media::after, [dir] .ah-card-media::after { inset: auto 0 0; width: auto; height: 34%; background: linear-gradient(to top, var(--panel), transparent); }
  .ah-card-body { padding: 4px 22px 22px; justify-content: flex-start; }
  .ah-hero { min-height: 0; }
  .ah-steps { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .ah-step { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: start; }
  .ah-step-no { grid-row: span 2; margin: 0; font-size: 64px; }
  .ah-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ah-case { border-radius: 24px; }
  .ah-case-brand { max-width: 100%; }
  .ah-case-brand small { display: none; } /* the domain is in the browser frame below */
  .ah-case-brand b { overflow: hidden; text-overflow: ellipsis; }
  .ah-hpanel { margin-top: 36px; border-radius: 22px; }
  .ah-hpanel-grid { grid-template-columns: 1fr; }
  .ah-hres { padding: 18px 18px 16px; gap: 4px 18px; }
  .ah-hres + .ah-hres { border-inline-start: 0; border-top: 1px solid var(--ink-line); }
  .ah-hpanel-grid .ah-hres:first-child { border-end-start-radius: 0; }
  .ah-hpanel-grid .ah-hres:last-child { border-end-start-radius: 22px; border-end-end-radius: 22px; }
  .ah-hres-top { margin-bottom: 10px; }
  .ah-hres-num { font-size: 32px; }
  .ah-hres-more { margin-top: 10px; }
  .ah-case-tiles { grid-template-columns: 1fr; gap: 10px; }
  .ah-case-tile { grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; }
  .ah-case-lbl { grid-column: 1 / -1; }
  .ah-case-val { font-size: 30px; }
  .ah-case-chart { padding: 18px 16px 16px; }
  .ah-cols { height: 210px; }
  .ah-cols-grid, .ah-cols-plot { inset: 0 0 24px 44px; }
  .ah-col:nth-child(even) .ah-col-x { visibility: hidden; }
  .ah-browser-url { margin-inline-end: 0; }
  body.ah { font-size: 16px; }
  .ah-nav { padding-top: 10px; }
  .ah-nav .ah-nav-in { height: 58px; padding-inline: 16px 6px; gap: 12px; }
  .ah-logo img { height: 30px; }
  .ah-nav-cta { height: 44px; padding: 0 18px; font-size: 14px; }
  .ah-hero { padding: calc(var(--nav-h) + 34px) 0 56px; }
  .ah-hero-bars { width: 46vw; }
  .ah-h1 { margin: 20px 0 16px; }
  .ah-lead { margin-bottom: 30px; }
  .ah-hero .ah-cta-row, .ah-final .ah-cta-row { flex-direction: column; width: 100%; max-width: 380px; margin-inline: auto; }
  .ah-hero .ah-cta-row > *, .ah-final .ah-cta-row > * { width: 100%; }
  .ah-cta { height: 60px; font-size: 17px; padding-inline: 24px 6px; justify-content: space-between; }
  .ah-cta-ico { width: 48px; height: 48px; }
  .ah-btn--lg { height: 58px; }
  .ah-cards { grid-template-columns: 1fr; gap: 16px; }
  .ah-card { flex-direction: column; }
  .ah-card-media { width: 100%; aspect-ratio: 16 / 10; }
  .ah-card-media::after, [dir] .ah-card-media::after { inset: auto 0 0; width: auto; height: 34%; background: linear-gradient(to top, var(--panel), transparent); }
  .ah-card-body { padding: 4px 20px 20px; }
  .ah-card:hover { transform: none; }
  .ah-kpis { grid-template-columns: 1fr; }
  .ah-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 42vw; grid-template-areas: "c c" "c c" "a b" "d e"; gap: 10px; }
  .ah-photo { border-radius: 16px; }
  .ah-step { padding: 26px 22px; }
  .ah-step-no { font-size: 52px; }
  .ah-final { background-image: url('../img/agency/cta-bg-sm.webp'); }
  .ah-foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .ah-wa-float { width: 54px; height: 54px; inset-inline-end: 16px; bottom: 16px; }

  .ah-modal { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .ah-modal[open] { animation: ahSheet .5s var(--ease-out); }
  .ah-form { max-height: 94dvh; padding: 30px 20px 22px; }
  .ah-fields { grid-template-columns: 1fr; }
  .ah-m-badge { width: 72px; height: 72px; border-radius: 20px; }
  .ah-chip span { min-height: 42px; padding: 7px 15px; font-size: 14px; }

  .ah-thanks { padding-top: calc(var(--nav-h) + 40px); background-image: url('../img/agency/cta-bg-sm.webp'); }
  .ah-receipt dl { padding-inline: 18px; }
  .ah-receipt-head { padding-inline: 18px; }
  .ah-wa-btn { padding: 12px 20px; }
}
@media (hover: none) {
  .ah-card:hover, .ah-kpi:hover, .ah-step:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ah-marquee-track, .ah-band-track, .ah-star, .ah-hero-grid-bg, .ah-cta::after, .ah-wa-float::before, .ah-wa-btn::before { animation: none !important; }
  .js .rv { opacity: 1; translate: none; }
  .ah-spark path { stroke-dashoffset: 0; }
}
