/* ============ TOKENS ============ */
:root {
  /* palette: slate / steel blue / light grey / off-white */
  --blue: #567daa;
  --blue-dark: #45678e;
  --ink: #28323f;
  --navy: #28323f;
  --muted: #7b8593;
  --white: #fbfbfb;
  --tint: #e9e9e9;
  --line: #dcdee1;
  --surface: #fff;
  --radius: 14px;
  --container: 1180px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.page { width: 100%; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--light { background: var(--surface); color: var(--ink); }
.btn--light:hover { background: #eef1f5; }

/* ============ SECTION HEADINGS ============ */
.eyebrow {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 26px;
}
.section-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.section-title--center { text-align: center; margin-bottom: 46px; }
.section-title--light { color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-block: 22px 56px;
  overflow: hidden;
}
.hero__bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, rgba(24,30,39,.90) 0%, rgba(24,30,39,.48) 38%, rgba(24,30,39,.12) 62%, rgba(24,30,39,.38) 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background-color .3s ease, border-color .3s ease;
  position: relative;
  z-index: 30;          /* keeps the dropdown above the hero content */
}
.nav.is-scrolled {
  background: rgba(40, 50, 63, .72);
  border-color: rgba(255, 255, 255, .1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav__links a { opacity: .82; transition: opacity .2s ease; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__cta-mobile { display: none; }

.nav__burger {
  display: none;
  /* flex column is more predictable here than grid + place-items */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.nav__burger span {
  display: block;
  width: 14px; height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s cubic-bezier(.22, .8, .3, 1), opacity .2s ease;
}
/* bar height (1.5) + gap (4) = 5.5px of travel to meet in the middle */
.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.hero__body {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 48px;
  color: #fff;
}
.clients { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.clients__avatars { display: flex; }
.clients__avatars img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.85);
  margin-left: -12px;
}
.clients__avatars img:first-child { margin-left: 0; }
.clients__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.clients__meta strong { font-size: 15px; font-weight: 700; }
.clients__meta span { font-size: 12px; opacity: .8; }

.hero__title {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.03em;
}
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.hero__right { padding-bottom: 6px; }
.hero__desc {
  margin: 0 0 26px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ ABOUT ============ */
.about { background: var(--white); padding: 130px 0 118px; }
.about__inner { text-align: center; }
/* three tracks — the photos own their own columns, so they can never
   sit on top of the statement no matter how the viewport scales */
.about__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 760px) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 54px);
  max-width: 1240px;
  margin: 0 auto 46px;
  padding-block: 30px;
}
.about__text {
  margin: 0;
  font-size: clamp(22px, 2.7vw, 33px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.015em;
}
/* every word starts light and darkens as the section scrolls past */
.about__text .w {
  color: #c4c8cd;
  transition: color .45s ease;
}
.about__text .w.is-lit { color: var(--ink); }

.about__pic {
  margin: 0;
  width: clamp(150px, 17vw, 260px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(40, 50, 63, .18);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}
.about__pic img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about__pic--left  { transform: rotate(-7deg); }
.about__pic--right { transform: rotate(7deg); }

/* the generic reveal resets `transform`, which would drop the tilt —
   these keep the rotation baked into every state */
.about__pic[data-anim] {
  opacity: 0;
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1),
              transform .7s cubic-bezier(.22, .8, .3, 1);
}
.about__pic--left[data-anim]  { transform: translateX(-46px) rotate(-14deg); }
.about__pic--right[data-anim] { transform: translateX(46px)  rotate(14deg); }
.about__pic--left[data-anim].is-in  { opacity: 1; transform: rotate(-7deg); }
.about__pic--right[data-anim].is-in { opacity: 1; transform: rotate(7deg); }
.about__pic--left[data-anim].is-in:hover  { transform: rotate(-4deg) scale(1.05); }
.about__pic--right[data-anim].is-in:hover { transform: rotate(4deg) scale(1.05); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 108px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
}
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ============ SERVICES ============ */
.services { background: var(--tint); }

/* the pin element is made tall by JS; the sticky child holds the viewport
   while the rail is driven sideways by vertical scroll */
.services__sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 0 78px;
  overflow: hidden;
}
/* no pinning until JS confirms the rail actually overflows */
.services__pin:not(.is-pinned) .services__sticky {
  position: static;
  min-height: 0;
}

.rail {
  --gap: 22px;
  --edge: max(24px, calc((100% - var(--container)) / 2));
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* headroom so the focused card can scale up without being clipped */
  padding: 40px var(--edge) 46px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
/* while scroll-linked, position is driven frame-by-frame — snapping, smooth
   scrolling and manual swiping would all fight it */
.rail.is-linked {
  scroll-snap-type: none;
  scroll-behavior: auto;
  overflow-x: hidden;
  touch-action: pan-y;
}

.service {
  /* exactly three across the container */
  flex: 0 0 calc((min(100% - 48px, var(--container)) - var(--gap) * 2) / 3);
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform-origin: center;
}

/* --- focused card --- */
.rail.has-focus .service {
  cursor: pointer;
  transform: scale(.92);
  opacity: .48;
  filter: saturate(.7);
  transition:
    transform .55s cubic-bezier(.22, .8, .3, 1),
    opacity .45s ease,
    filter .45s ease,
    box-shadow .55s ease;
}
.rail.has-focus .service.is-focus {
  transform: scale(1.09);
  opacity: 1;
  filter: none;
  box-shadow: 0 30px 70px rgba(40, 50, 63, .22);
  z-index: 2;
}
.rail.has-focus .service.is-focus .service__icon { color: var(--blue); }
.rail.has-focus .service.is-focus h3 { font-size: 21px; }
.service__icon {
  color: var(--ink);
  margin-bottom: 22px;
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.service p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.service__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  transition: border-color .25s ease, background-color .25s ease;
}
.service__link:hover { border-color: #b9c4d2; background: #f3f5f8; }
.service__link .dot {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: transform .25s ease;
}
.service__link:hover .dot { transform: translateX(2px); }
.service__pic { margin: auto 0 0; border-radius: 12px; overflow: hidden; }
.service__pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ============ TEAM / EXPERTS ============ */
.experts { background: var(--white); padding: 84px 0 90px; }

.experts__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.experts__eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.experts__title {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -.03em;
}
.experts__arrows { display: flex; gap: 10px; }
.sq {
  width: 46px; height: 40px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.sq:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.experts__stage {
  display: grid;
  grid-template-columns: 1.28fr 1fr;
  gap: 26px;
  align-items: stretch;
}

/* --- photo --- */
.experts__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--tint);
  min-height: 460px;
}
/* Height comes from a padding-ratio spacer rather than `aspect-ratio`.
   The photos are absolutely positioned, so on an iOS version without
   aspect-ratio support the box would collapse to zero and they'd vanish
   completely — a percentage padding works everywhere. */
.experts__media::before {
  content: "";
  display: block;
  padding-top: 0;
}
.experts__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;   /* `inset` shorthand is newer than these */
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;   /* keeps faces in frame on tighter crops */
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s ease, transform 3.6s ease-out;
}
.experts__media img.is-active { opacity: 1; transform: scale(1); }

.experts__progress {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.experts__progress b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}
.experts__progress b.is-running {
  animation: expFill 3s linear forwards;
}
@keyframes expFill { from { width: 0; } to { width: 100%; } }

/* --- info panel --- */
.experts__info {
  display: flex;
  flex-direction: column;
  padding: 30px 4px 0 8px;
}
.experts__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: 12px;
  color: var(--muted);
}
.experts__count em { font-style: normal; color: var(--ink); font-weight: 600; }
.experts__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.experts__rating b { font-size: 12px; font-weight: 600; }

.experts__text { transition: opacity .4s ease, transform .5s cubic-bezier(.22, .8, .3, 1); }
.experts__text.is-out { opacity: 0; transform: translateY(10px); }
.experts__text h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.experts__exp { display: block; margin-bottom: 26px; font-size: 12.5px; color: var(--muted); }
.experts__text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}
.experts__text mark { background: none; color: var(--ink); font-weight: 500; }

.experts__cta {
  margin-top: auto;
  width: 100%;
  padding-block: 19px;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1b232d; }

/* ============ TESTIMONIALS ============ */
.stories { background: var(--tint); padding: 72px 0 80px; }
.section-head .btn { flex: 0 0 auto; }
.stories__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}
.stories__pic {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.stories__pic img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.stories__pic figcaption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(40, 50, 63, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
}

.quote { padding-top: 8px; }
.quote__mark {
  display: block;
  font-family: var(--serif);
  font-size: 64px;
  line-height: .6;
  color: var(--ink);
  margin-bottom: 26px;
}
.quote__item { display: none; margin: 0; }
.quote__item.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quote__item p {
  margin: 0 0 26px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.75;
  font-weight: 500;
}
.quote__item footer { display: flex; align-items: center; gap: 12px; }
.quote__item footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__item footer span { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.quote__item footer strong { font-size: 14px; color: var(--ink); }

.dots { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c4c8cd;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.dots button.is-active { width: 26px; background: var(--ink); }

/* ============ FAQ ============ */
.faq { background: var(--white); padding: 92px 0 96px; }

.faq__tag {
  display: block;
  width: max-content;
  margin: 0 auto 34px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.faq__title {
  margin: 0 0 58px;
  text-align: center;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.accordion { max-width: 980px; margin: 0 auto; }

.acc {
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 0;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 0;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { opacity: .55; }

/* diagonal arrow: points down-right when closed, up-right when open */
.acc__arrow {
  flex: 0 0 auto;
  position: relative;
  width: 20px; height: 20px;
  transition: transform .35s cubic-bezier(.22, .8, .3, 1);
}
.acc__arrow::before,
.acc__arrow::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.acc__arrow::before {          /* shaft */
  top: 2px; left: 2px;
  width: 1.3px; height: 22px;
  transform-origin: top left;
  transform: rotate(-45deg);
}
.acc__arrow::after {           /* head */
  top: 11px; right: 1px;
  width: 8px; height: 8px;
  background: none;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
}
.acc.is-open .acc__arrow { transform: rotate(-90deg); }

/* collapsible panel — 0fr → 1fr animates to the content's natural height */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.22, .8, .3, 1);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .34s ease .06s,
    transform .44s cubic-bezier(.22, .8, .3, 1) .06s;
}
.acc.is-open .acc__inner { opacity: 1; transform: none; }

.acc p {
  margin: 0;
  padding: 0 0 26px;
  max-width: 74ch;
  font-size: 11px;
  line-height: 2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ FOOTER ============ */
.footer { background: var(--navy); color: #fff; padding: 66px 0 26px; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;          /* both columns share one optical centre line */
  gap: clamp(40px, 7vw, 96px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__intro p {
  margin: 18px 0 24px;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.62);
}

.footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}
.footer__contact svg { flex: 0 0 auto; opacity: .55; }
.footer__contact a { transition: color .2s ease; }
.footer__contact li:hover { color: #fff; }

.footer__form p {
  margin: 16px 0 28px;
  max-width: 440px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.62);
}
.footer__cta { padding-inline: 34px; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.footer__cols h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.footer__cols a {
  display: block;
  margin-bottom: 11px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  transition: color .2s ease;
}
.footer__cols a:hover { color: var(--blue); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.footer__bottom div { display: flex; gap: 22px; }
.footer__bottom a:hover { color: #fff; }

/* ============ MOTION ============ */
[data-anim] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22, .8, .3, 1),
    transform .7s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translateX(-34px); }
[data-anim="right"] { transform: translateX(34px); }
[data-anim="zoom"] { transform: scale(.94); }
[data-anim].is-in { opacity: 1; transform: none; }

/* hero entrance (plays on load, not scroll) */
.hero__bg img {
  animation: heroZoom 1.6s cubic-bezier(.22, .8, .3, 1) both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.clients,
.hero__title,
.hero__desc,
.hero__actions {
  animation: rise .9s cubic-bezier(.22, .8, .3, 1) both;
}
.clients  { animation-delay: .30s; }
.hero__title { animation-delay: .42s; }
.hero__desc  { animation-delay: .54s; }
.hero__actions { animation-delay: .64s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* navbar: starts as a compressed pill, springs open horizontally.
   `backwards` (not `both`) is deliberate — with `both` the final keyframe's
   clip-path sticks around forever and clips the mobile dropdown out of view. */
.nav {
  animation: navExpand 1.05s cubic-bezier(.16, 1, .3, 1) .15s backwards;
}
@keyframes navExpand {
  from {
    clip-path: inset(0 calc(50% - 30px) 0 calc(50% - 30px) round 999px);
    opacity: 0;
  }
  35% { opacity: 1; }
  to {
    clip-path: inset(0 0 0 0 round 999px);
    opacity: 1;
  }
}

/* its contents fade up once the bar has opened */
.brand,
.nav__links a,
.nav > .btn {
  /* `backwards` so the base opacity/hover rules take over once it finishes */
  animation: navContent .5s ease backwards;
}
.brand         { animation-delay: .78s; }
.nav__links a  { animation-delay: .84s; }
.nav__links a:nth-child(2) { animation-delay: .89s; }
.nav__links a:nth-child(3) { animation-delay: .94s; }
.nav__links a:nth-child(4) { animation-delay: .99s; }
.nav__links a:nth-child(5) { animation-delay: 1.04s; }
.nav > .btn    { animation-delay: 1.10s; }
@keyframes navContent {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* hover polish — the lift only applies when focus mode isn't driving scale */
.rail:not(.has-focus) .service {
  transition: transform .35s cubic-bezier(.22, .8, .3, 1), box-shadow .35s ease;
}
.rail:not(.has-focus) .service:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(40, 50, 63, .13);
}
.stories__pic img,
.service__pic img {
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
}
.stories__pic:hover img,
.service:hover .service__pic img { transform: scale(1.05); }
.service__pic, .stories__pic { overflow: hidden; }

.footer__cols a { transition: color .2s ease, transform .2s ease; }
.footer__cols a:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-anim] { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */

/* laptops — pull the floating about photos in tighter */
@media (max-width: 1240px) {
  .about { padding: 100px 0 92px; }
  .about__stage { grid-template-columns: auto minmax(0, 560px) auto; }
}

/* small laptops / large tablets */
@media (max-width: 1080px) {
  .about { padding: 76px 0 70px; }
  .about__stage {
    max-width: 700px;
    padding-block: 0;
    margin-bottom: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .about__text { flex: 1 0 100%; order: 1; }
  .stats { margin-top: 70px; }
  /* photos drop below the statement instead of flanking it */
  .about__pic {
    order: 2;
    width: min(46%, 300px);
    margin-top: 26px;
  }
  .about__pic--left[data-anim].is-in  { transform: rotate(-5deg); }
  .about__pic--right[data-anim].is-in { transform: rotate(5deg); }
  .about__pic--left[data-anim]  { transform: translateX(-30px) rotate(-10deg); }
  .about__pic--right[data-anim] { transform: translateX(30px) rotate(10deg); }
  .about__pic--left[data-anim].is-in:hover  { transform: rotate(-3deg) scale(1.04); }
  .about__pic--right[data-anim].is-in:hover { transform: rotate(3deg) scale(1.04); }
  .stories__grid { grid-template-columns: 1fr; gap: 30px; }
  .stories__pic img { aspect-ratio: 16/10; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
}

/* tablets — nav collapses into a drawer */
@media (max-width: 940px) {
  .nav { position: relative; padding: 10px 10px 10px 20px; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(40, 50, 63, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.22, .8, .3, 1), visibility .28s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  /* :not(.btn) so the CTA inside the drawer keeps its pill shape */
  .nav__links a:not(.btn) { padding: 12px 10px; border-radius: 10px; }
  .nav__links a:not(.btn):hover { background: rgba(255, 255, 255, .08); }
  .nav__cta-mobile { display: flex; margin-top: 8px; }
  /* the staggered load-in doesn't apply to drawer items */
  .nav__links a { animation: none; }

  .services__sticky { padding: 62px 0 68px; }
  .service { flex: 0 0 calc((min(100% - 48px, var(--container)) - var(--gap)) / 2); }

  .hero { min-height: 640px; }
  .hero__body { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .hero__desc { max-width: 520px; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .experts { padding: 60px 0 66px; }
  .experts__stage { grid-template-columns: 1fr; gap: 18px; }
  .experts__media { min-height: 0; }
  .experts__media::before { padding-top: 75%; }   /* 4:3 */
  .experts__info { padding: 4px 0 0; }
  .experts__cta { margin-top: 28px; }
  .footer__top { grid-template-columns: 1fr; gap: 38px; padding-bottom: 40px; }
  .footer { padding-top: 52px; }
}

/* large phones */
@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .section-title--center { margin-bottom: 34px; }

  .stories { padding: 56px 0 62px; }
  .services__sticky { padding: 56px 0 62px; }
  .experts, .faq { padding: 56px 0; }
  .experts__head { margin-bottom: 22px; align-items: center; }
  .experts__title { font-size: clamp(30px, 9vw, 40px); }
  .experts__eyebrow { margin-bottom: 2px; }
  .sq { width: 40px; height: 36px; }
  .sq svg { width: 14px; height: 14px; }

  .experts__stage { gap: 16px; }
  .experts__media { border-radius: 16px; }
  .experts__media::before { padding-top: 66.67%; }   /* 3:2 */
  .experts__progress { left: 14px; right: 14px; bottom: 14px; }
  .experts__meta { margin-bottom: 14px; }
  .experts__text h3 { font-size: 24px; }
  .experts__exp { margin-bottom: 14px; }
  .experts__text p { font-size: 13px; line-height: 1.75; }
  .experts__cta { margin-top: 22px; padding-block: 17px; }
  .about { padding: 52px 0 48px; }

  /* one card at a time, centred in the viewport with the neighbours peeking */
  .rail {
    --gap: 14px;
    --card: 72vw;
    --edge: calc((100% - var(--card)) / 2);
    padding: 22px var(--edge) 28px;
    scroll-snap-type: x mandatory;
  }
  .service {
    flex: 0 0 var(--card);
    scroll-snap-align: center;
    padding: 20px;
  }
  .service__pic img { aspect-ratio: 16/11; }
  .service h3 { font-size: 18px; }
  .service p { font-size: 13px; }

  /* gentler emphasis — a full 1.09 scale is overwhelming at this width */
  .rail.has-focus .service {
    transform: scale(.9);
    opacity: .4;
    /* slower hand-off between cards to match the slower scroll pacing */
    transition:
      transform .8s cubic-bezier(.22, .8, .3, 1),
      opacity .7s ease,
      filter .7s ease,
      box-shadow .8s ease;
  }
  .rail.has-focus .service.is-focus {
    transform: scale(1);
    box-shadow: 0 18px 40px rgba(40, 50, 63, .18);
  }
  .rail.has-focus .service.is-focus h3 { font-size: 18px; }

  .footer__cols { grid-template-columns: repeat(2, 1fr); padding: 34px 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__cta { max-width: none; }

  .faq { padding-bottom: 64px; }
  .acc summary { gap: 18px; padding: 18px 0; }
  .acc__arrow { width: 16px; height: 16px; }
}

/* phones */
@media (max-width: 520px) {
  .hero { min-height: 100svh; padding-bottom: 40px; }
  .hero__title { font-size: clamp(38px, 12vw, 54px); }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { padding-inline: 14px; font-size: 14px; }
  .clients__avatars img { width: 34px; height: 34px; }

  .about__text { font-size: 19px; }
  .stats { gap: 20px 16px; }

  .rail { --card: 78vw; }
  .service__icon { margin-bottom: 16px; }
  .service__icon svg { width: 26px; height: 26px; }
  .experts__media::before { padding-top: 125%; }   /* 4:5 portrait */
  .experts__title { font-size: 34px; }
  .experts__text h3 { font-size: 22px; }
  .experts__count, .experts__rating b { font-size: 11.5px; }

  .quote__mark { font-size: 52px; margin-bottom: 18px; }

  .faq__title { font-size: 26px; line-height: 1.3; }
  .acc summary { font-size: 14px; }
  .acc p { font-size: 10.5px; letter-spacing: .06em; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* very small phones */
@media (max-width: 380px) {
  .hero__actions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* landscape phones — don't force a 100vh hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 620px; }
}

/* ============================================================
   ARABIC / RTL OVERRIDES
   Appended so the shared layout above stays byte-identical to
   the English build — everything here is direction or script
   specific.
   ============================================================ */
:root {
  --font: "Cairo", "Segoe UI", system-ui, sans-serif;
  --serif: "Amiri", "Times New Roman", serif;
}

/* Arabic has no italics — the accent line gets its contrast from a
   different typeface and weight instead of a slant */
.section-title em,
.hero__title em {
  font-style: normal;
  font-weight: 400;
}
.hero__title { line-height: 1.18; letter-spacing: 0; }
.hero__title em { letter-spacing: 0; }
.section-title { line-height: 1.35; letter-spacing: 0; }
.about__text { letter-spacing: 0; line-height: 1.7; }
.experts__title { letter-spacing: 0; }

/* mirrored stacking of the client avatars */
.clients__avatars img { margin-left: 0; margin-right: -12px; }
.clients__avatars img:first-child { margin-right: 0; }

/* the "view details" pill: tight side sits on the right in RTL */
.service__link { padding: 5px 5px 5px 16px; }

/* the rail runs RTL: the first card sits on the right and the strip
   travels rightwards→leftwards. In an RTL scroller `scrollLeft` starts
   at 0 and counts DOWN into negative numbers, so script.js normalises
   it with an axis sign — see the `railDir` helper there. */
.rail { direction: rtl; }
.service { direction: rtl; }

.experts__info { padding: 30px 8px 0 4px; }

/* uppercase + wide tracking are Latin-only devices; they mangle Arabic
   shaping, so the FAQ block opts out */
.faq__tag,
.faq__title,
.acc summary,
.acc p {
  text-transform: none;
  letter-spacing: 0;
}
.faq__tag { font-size: 12px; }
.acc p { font-size: 13px; line-height: 1.95; }
.faq__title { line-height: 1.4; }

/* the diagonal indicator points the other way in a mirrored layout */
.acc__arrow { transform: scaleX(-1); }
.acc.is-open .acc__arrow { transform: scaleX(-1) rotate(90deg); }

/* numerals and latin strings stay LTR inside RTL text */
.experts__count,
.footer__bottom span,
.stat strong { direction: ltr; unicode-bidi: isolate; }
.experts__count { text-align: right; }

/* the quotation glyph belongs on the opposite corner */
.quote__mark { transform: scaleX(-1); transform-origin: right center; }

@media (max-width: 940px) {
  .nav { padding: 10px 20px 10px 10px; }
}
@media (max-width: 720px) {
  .acc p { font-size: 12.5px; }
  .faq__title { font-size: 27px; }
}

/* --- FAQ arrow -------------------------------------------------------
   The base build draws this arrow from two pseudo-elements with fixed
   pixel offsets (a 22px shaft, a head pinned at top:11px). Those numbers
   only line up at the desktop 20px box — at the 16px mobile size the
   shaft overshoots and the head detaches, which is the broken glyph.
   A masked SVG scales cleanly at any size instead.                    */
.acc__arrow::before,
.acc__arrow::after { content: none; }

.acc__arrow {
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 11v7h-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 11v7h-7'/%3E%3C/svg%3E") center / contain no-repeat;
  /* mirrored so a closed row points down-towards the text side in RTL */
  transform: scaleX(-1);
}
.acc.is-open .acc__arrow { transform: scaleX(-1) rotate(90deg); }

@media (max-width: 720px) {
  .acc__arrow { width: 17px; height: 17px; }
}
@media (max-width: 520px) {
  .acc__arrow { width: 15px; height: 15px; }
}
