/* ============================================================
   AINTIBAH — built on the Bailey Hart reference design system
   Display: Fraunces  |  Body/UI: Geist
   ============================================================ */

:root {
  /* Aintibah semantic color system. */
  --brand: #1b5063;
  --cta: #c56a4a;
  --cta-hover: #a95338;
  --background: #f8f7f4;
  --surface: #ffffff;
  --primary-text: #172124;
  --muted-text: #667276;
  --soft-teal: #e5eef0;
  --border: #d8e0e2;

  /* Header & Banner Layout */
  --promo-h: 36px;
  --section-px: 48px;
  --section-max: 1440px;

  /* Existing component aliases. */
  --ivory: var(--background);
  --beige: var(--soft-teal);
  --beige-glass: rgba(229, 238, 240, 0.72);
  --ink: var(--primary-text);
  --ink-muted: var(--muted-text);
  --ink-faint: rgba(102, 114, 118, 0.6);
  --border-ink: var(--border);
  --white: var(--surface);
  --white-muted: rgba(255, 255, 255, 0.64);
  --white-faint: rgba(255, 255, 255, 0.32);
  --white-glass: rgba(255, 255, 255, 0.16);
  --overlay: rgba(27, 80, 99, 0.32);
  --overlay-strong: rgba(27, 80, 99, 0.72);
  --brand-bg: #123b49;
  --brand-bg-deep: #0c2e3a;
  --footer-bg: #061c25;
  --dark-surface: var(--brand-bg);
  --dark-card: var(--brand-bg);
  --brand-deep: #0d3f4e;
  --brand-soft: rgba(27, 80, 99, 0.08);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-inset: rgba(7, 67, 82, 0.1) 0 -1px 0 0 inset, rgba(255, 255, 255, 0.2) 0 1px 0 0 inset;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fade: cubic-bezier(0.22, 0.8, 0.22, 1);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

h1, h2, h3, p { margin: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--white { color: var(--white); }
.eyebrow--center { text-align: center; }

.tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--brand);
}
.tag--white { color: var(--white); }

.section__display {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 104%;
  color: var(--brand);
  text-wrap: balance;
}
.section__display--center { text-align: center; max-width: 1000px; }

.section__sub {
  font-size: 14px;
  color: var(--white-muted);
  max-width: 560px;
  text-align: center;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.25px;
  line-height: 104%;
  color: var(--brand);
  text-wrap: balance;
}

.section-head__lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--brand);
  text-wrap: balance;
}

.section-head__desc {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
}
.section--dark .section-head__desc { color: var(--white-muted); }
.section--dark .section__display,
.section--dark .section-head__title,
.section--dark .section-head__lead { color: var(--white); }

/* ---------- Layout ---------- */

.section {
  padding: 140px var(--section-px);
  background: var(--ivory);
  scroll-margin-top: 120px;
}
.section--dark {
  background: var(--dark-surface);
}
.section__inner {
  max-width: var(--section-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.section__inner--split {
  flex-direction: row;
  gap: 64px;
  align-items: flex-start;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}
.section-head--center {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.section-head--center .section-head__desc { max-width: 560px; }

.section--why { background: var(--white); }
.section--impact { background: var(--ivory); }
.section--metrics { background: var(--ivory); }
.section--cta { background: var(--ivory); }
.section--contact { background: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: none;
  border-radius: 32px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  overflow: hidden;
  white-space: nowrap;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn--small { height: 40px; }
.btn--large { height: 48px; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--dark {
  background-color: var(--cta);
  color: var(--white);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-inset);
}
.btn--dark:hover { background-color: var(--cta-hover); }

.btn--light {
  background-color: var(--white);
  color: var(--brand);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-inset);
}
.btn--light:hover { background-color: var(--beige); }

.btn--glass {
  background-color: var(--white-glass);
  color: var(--white);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-inset);
}
.btn--glass:hover { background-color: rgba(255, 255, 255, 0.2); }

.btn--glass-light {
  background-color: var(--beige-glass);
  color: var(--brand);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-inset);
}
.btn--glass-light:hover { background-color: var(--soft-teal); }

.btn__text {
  display: block;
  height: 24px;
  overflow: hidden;
}
.btn__text > span {
  display: block;
  height: 24px;
  line-height: 24px;
  text-align: center;
  transition: transform 0.5s var(--ease-swap);
  will-change: transform;
}
.btn:hover .btn__text > span { transform: translateY(-24px); }

.btn__arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Promo bar ---------- */

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  height: var(--promo-h, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
  padding: 0 24px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.36s var(--ease-swap), opacity 0.3s ease;
  will-change: transform;
}
.promo-bar.is-hidden {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
}
.promo-bar__text {
  font-size: 12px;
  color: var(--white);
  text-align: center;
}
.promo-bar__link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo-bar__link:hover { color: var(--soft-teal); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  transform: translate3d(0, var(--promo-h, 36px), 0);
  transition: transform 0.36s var(--ease-swap);
  will-change: transform;
}
.site-header.is-scrolled {
  transform: translate3d(0, 0, 0);
}
.site-header.is-scrolled.is-hidden,
.site-header.is-hidden {
  transform: translate3d(0, -100%, 0);
}

.site-header__inner {
  position: relative;
  z-index: 3;
  max-width: 1536px;
  margin: 0 auto;
  padding: 16px var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header__primary {
  display: flex;
  align-items: center;
  gap: 80px;
}

.site-header__logo {
  display: block;
  height: 46px;
  width: auto;
  position: relative;
}
.site-header__logo-img {
  height: 46px;
  width: auto;
  transition: opacity 0.3s var(--ease-swap);
}
.site-header__logo-img--white {
  position: absolute;
  inset: 0;
  opacity: 1;
}
.site-header__logo-img--color {
  opacity: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s var(--ease-swap), opacity 0.2s ease;
}
.site-nav__link:hover { opacity: 0.7; }

.site-header__secondary {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__contact {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  transition: color 0.3s var(--ease-swap), opacity 0.2s ease;
}
.site-header__contact:hover { opacity: 0.7; }

.site-header__bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-swap);
  box-shadow: 0 4px 20px -2px rgba(17, 30, 36, 0.06);
  transform: translateZ(0);
}
.site-header__border {
  position: absolute;
  left: var(--section-px);
  right: var(--section-px);
  bottom: 0;
  height: 1px;
  background: var(--border-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-swap);
}

.site-header.is-filled .site-header__bg { opacity: 1; }
.site-header.is-filled .site-header__border { opacity: 1; }
.site-header.is-filled .site-nav__link,
.site-header.is-filled .site-header__contact { color: var(--brand); }
.site-header.is-filled .site-header__logo-img--white { opacity: 0; }
.site-header.is-filled .site-header__logo-img--color { opacity: 1; }

/* When mobile menu is open: force colored logo, hide promo bar, and keep header transparent over frosted blur */
body.has-menu-open #promo-bar,
body:has(.mobile-menu.is-open) #promo-bar {
  transform: translate3d(0, -100%, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.has-menu-open .site-header,
body:has(.mobile-menu.is-open) .site-header,
.site-header.is-menu-open {
  transform: translate3d(0, 0, 0) !important;
}
body.has-menu-open .site-header__logo-img--white,
body:has(.mobile-menu.is-open) .site-header__logo-img--white,
.site-header.is-menu-open .site-header__logo-img--white {
  opacity: 0 !important;
}
body.has-menu-open .site-header__logo-img--color,
body:has(.mobile-menu.is-open) .site-header__logo-img--color,
.site-header.is-menu-open .site-header__logo-img--color {
  opacity: 1 !important;
}
body.has-menu-open .site-header__bg,
body:has(.mobile-menu.is-open) .site-header__bg,
.site-header.is-menu-open .site-header__bg {
  opacity: 0 !important;
}
body.has-menu-open .site-header__border,
body:has(.mobile-menu.is-open) .site-header__border,
.site-header.is-menu-open .site-header__border {
  opacity: 0 !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-ink);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--brand);
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(248, 247, 244, 0.82);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--promo-h, 0px) + 72px) var(--section-px) 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-swap), visibility 0.32s var(--ease-swap);
  box-sizing: border-box;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-sizing: border-box;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mobile-menu__item {
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  transition-delay: calc(var(--item-i, 0) * 35ms);
}
.mobile-menu.is-open .mobile-menu__item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.mobile-menu__accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 400;
  letter-spacing: -0.75px;
  line-height: 120%;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  transition: color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: var(--brand);
}
.mobile-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 80, 99, 0.08);
  border: none;
  cursor: pointer;
  color: var(--brand);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease-swap);
  flex-shrink: 0;
}
.mobile-menu__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-swap);
}
.mobile-menu__toggle[aria-expanded="true"] {
  background: var(--brand);
  color: var(--white);
}
.mobile-menu__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Accordion Submenu */
.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-swap), opacity 0.25s ease, visibility 0.25s ease;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}
.mobile-menu__sub.is-open,
.mobile-menu__item--accordion.is-open .mobile-menu__sub {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
}
.mobile-menu__sub-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border-left: 2px solid transparent;
  margin: 0;
  transition: padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
}
.mobile-menu__sub.is-open .mobile-menu__sub-inner,
.mobile-menu__item--accordion.is-open .mobile-menu__sub-inner {
  padding: 8px 0 10px 14px;
  border-left-color: rgba(27, 80, 99, 0.18);
  margin: 6px 0 6px 4px;
}
.mobile-menu__sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 7px 0;
  min-height: 40px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-menu__sublink-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(27, 80, 99, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.mobile-menu__sublink:hover,
.mobile-menu__sublink:active {
  color: var(--brand);
}
.mobile-menu__sublink:hover .mobile-menu__sublink-bullet {
  background: var(--cta);
  transform: scale(1.3);
}
.mobile-menu__sublink--all {
  color: var(--brand);
  font-weight: 600;
  margin-top: 4px;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--border-ink);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  transition-delay: calc(var(--item-i, 5) * 35ms);
}
.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.mobile-menu__cta .btn {
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
}
.mobile-menu__contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.mobile-menu__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}
.mobile-menu__contact-item:hover {
  color: var(--brand);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--section-px) 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
}
.hero__headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 104%;
  color: var(--white);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) 0.1s, transform 0.9s var(--ease-out) 0.1s;
}
.hero__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) 0.25s, transform 0.9s var(--ease-out) 0.25s;
}
.hero.is-ready .hero__headline,
.hero.is-ready .hero__buttons { opacity: 1; transform: none; }

.hero__insight {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) 0.35s, transform 0.9s var(--ease-out) 0.35s, background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.hero.is-ready .hero__insight { opacity: 1; transform: none; }
.hero__insight:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.hero__insight-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hero__insight-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--white);
  white-space: nowrap;
}
.hero__insight-sub {
  font-size: 11.5px;
  line-height: 140%;
  color: rgba(255, 255, 255, 0.55);
}
.hero__insight-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.hero__insight:hover .hero__insight-arrow { transform: translateX(3px); color: var(--white); }

/* Polaroid card */
.polaroid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 360px;
  max-width: 460px;
  height: 120px;
  padding: 12px;
  border-radius: 8px;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  box-shadow: var(--shadow-inset);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out) 0.4s, transform 0.9s var(--ease-out) 0.4s, background-color 0.3s var(--ease-out);
}
.hero.is-ready .polaroid { opacity: 1; transform: none; }
.polaroid:hover { background: rgba(7, 67, 82, 0.5); }

.polaroid__thumb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.polaroid__thumb img { width: 100%; height: 100%; object-fit: cover; }

.polaroid__body {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 4px 0;
}
.polaroid__title {
  font-size: 14px;
  line-height: 150%;
  color: var(--white);
  text-wrap: balance;
}
.polaroid__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-muted);
}
.polaroid__link svg { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.polaroid:hover .polaroid__link svg { transform: translateX(3px); }

/* ---------- Phrases ---------- */

.phrases {
  background: var(--brand-bg);
  border-top: 1px solid var(--white-glass);
  border-bottom: 1px solid var(--white-glass);
  overflow: hidden;
}
.phrases__inner {
  display: block;
  padding: 24px 0;
}
.phrases__track {
  display: flex;
  width: max-content;
  animation: phrases-scroll 40s linear infinite;
  will-change: transform;
}
.phrases:hover .phrases__track { animation-play-state: paused; }
.phrases__group {
  display: flex;
  align-items: center;
}
.phrases__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  color: var(--white);
}
.phrases__item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--white);
}
@keyframes phrases-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .phrases__track { animation: none; }
}

/* ---------- Impact (sticky stat cards) ---------- */

.section--impact .section-head { margin: 0 auto; max-width: 736px; }

.sticky-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

.sticky-card {
  position: sticky;
  top: 160px;
  aspect-ratio: 1.75;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.4);
  will-change: transform;
}

.sticky-card__bg {
  position: absolute;
  inset: 0;
}
.sticky-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sticky-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 67, 82, 0.12) 0%, rgba(7, 67, 82, 0.55) 100%);
}

.sticky-card__text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--white-glass);
}
.sticky-card__value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 104%;
  color: var(--white);
}

/* ---------- Services ---------- */

.section--services { background: var(--dark-surface); }
.section--services .section__inner--split {
  gap: 120px;
}

.services-index {
  flex: 1 1 0;
  max-width: 560px;
  align-self: stretch;
  display: flex;
}
.services-index__sticky {
  position: sticky;
  top: 160px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.services-index__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.25px;
  line-height: 104%;
  color: var(--white);
  text-wrap: balance;
}
.services-index__note {
  font-size: 14px;
  line-height: 150%;
  color: var(--white-muted);
}

.services-cards {
  flex: 1 1 0;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.service-card {
  position: relative;
  min-height: 480px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  scroll-margin-top: 160px;
  transition: border-color 0.4s var(--ease-out);
}
.service-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.service-card__bg {
  position: absolute;
  inset: 0;
}
.service-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out);
}
.service-card:hover .service-card__bg img { transform: scale(1.06); }
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 67, 82, 0.25) 0%, rgba(7, 67, 82, 0.78) 60%, rgba(7, 67, 82, 0.9) 100%);
}

.service-card__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--white);
}
.service-card__text {
  font-size: 14px;
  line-height: 150%;
  color: var(--white-muted);
  max-width: 480px;
  text-wrap: balance;
}

/* ---------- Why Aintibah ---------- */

.section--why .section-head {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  gap: 80px;
}
.section--why .section-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section--why .section-head .eyebrow,
.section--why .section-head__title { max-width: 640px; }
.section--why .section-head__desc { max-width: 360px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-top: 0;
  border-right: 1px solid var(--border-ink);
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.feature-card:hover {
  background: transparent;
  transform: translateY(-4px);
}
.feature-card:first-child { border-left: 1px solid var(--border-ink); }
.feature-card:last-child { border-right: 0; }
.feature-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}
.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 120%;
  color: var(--brand);
}
.feature-card__text {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
}

/* ---------- Principles ---------- */

.section--principles {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px var(--section-px);
}
.section--principles .principles__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/principles-bg.webp") center / cover no-repeat;
  opacity: 0.35;
}
.section--principles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 67, 82, 0.16);
}
.section--principles .section__inner {
  position: relative;
  z-index: 1;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.principles {
  display: flex;
  width: 100%;
  margin-top: 32px;
}
.principle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
  border-right: 1px solid var(--white-glass);
}
.principle:first-child { border-left: 1px solid var(--white-glass); }
.principle__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 120%;
  color: var(--white);
}
.principle__text {
  font-size: 14px;
  line-height: 150%;
  color: var(--white-muted);
  max-width: 260px;
}

/* ---------- Process ---------- */

.section--process {
  background: var(--dark-surface);
  padding: 120px var(--section-px) 140px;
}
.section--process .section__inner { gap: 64px; }
.section--process .section__display {
  max-width: 820px;
  font-size: 32px;
  letter-spacing: -1.25px;
  line-height: 110%;
  text-align: left;
}

.process {
  display: flex;
  align-items: stretch;
  gap: clamp(32px, 4vw, 80px);
  width: 100%;
}
.process__visual {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 680px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
  height: auto;
}
.process__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process__steps {
  flex: 1 1 50%;
  min-width: 0;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}
.process__step {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 20px;
  align-content: center;
  padding: 20px 0;
  border-top: 1px solid var(--white-glass);
}
.process__step:first-child {
  border-top: none;
}
.process__step-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.process__step-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}
.process__step-text {
  font-size: 14px;
  line-height: 155%;
  color: var(--white-muted);
  max-width: 100%;
}

/* ---------- Metrics ---------- */

.metrics {
  display: flex;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.metric {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-right: 1px solid var(--border-ink);
  background: var(--ivory);
}
.metric:last-child { border-right: none; }

.metric--dark {
  position: relative;
  background: var(--dark-card);
  border-right: none;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 8px;
}
.metric--dark .metric__bg {
  position: absolute;
  inset: 0;
}
.metric--dark .metric__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.metric--dark .metric__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 67, 82, 0.1), rgba(7, 67, 82, 0.75));
}
.metric--dark .metric__value,
.metric--dark .metric__body { position: relative; z-index: 2; }
.metric--dark .metric__value { color: var(--white); }
.metric--dark .metric__text { color: var(--white-muted); }

.metric__value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 104%;
  color: var(--brand);
  display: flex;
  align-items: baseline;
}
.metric__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric__text {
  font-size: 12px;
  line-height: 140%;
  color: var(--ink-muted);
}

/* Counter wheel */
.counter-col {
  display: inline-block;
  height: 1em;
  line-height: 1;
  width: 1ch;
  overflow: clip;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.counter-stack {
  display: block;
  white-space: pre;
  text-align: center;
  line-height: 1;
  transform: translate3d(0, 0, 0);
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}
.counter-suffix {
  display: inline-block;
  margin-left: 2px;
}

/* ---------- Testimonials ---------- */

.section--testimonials { background: var(--dark-surface); }

.carousel {
  width: 100%;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  gap: 64px;
  will-change: transform;
  transition: transform 0.8s var(--ease-fade);
}
.carousel__slide {
  flex-shrink: 0;
  width: calc(66.6667% - 21.3333px);
}
.carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 32px;
}
.carousel__control {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-muted);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.carousel__control:hover {
  background: var(--white);
  color: var(--ink);
}
.carousel__control svg { width: 18px; height: 18px; }

.testimonial {
  display: flex;
  align-items: stretch;
  gap: 32px;
  height: 100%;
  min-height: 300px;
}
.testimonial__media {
  flex: 0 0 280px;
  border-radius: 8px;
  overflow: hidden;
}
.testimonial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--white);
  text-wrap: balance;
}
.testimonial__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}
.testimonial__role {
  font-size: 12px;
  color: var(--white-muted);
}

/* ---------- CTA cards ---------- */

.cta-cards {
  display: flex;
  gap: 8px;
  height: 480px;
}

.cta-card {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-card);
  padding: 32px;
  display: flex;
}
.cta-card__bg {
  position: absolute;
  inset: 0;
}
.cta-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-card:nth-child(2) .cta-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 67, 82, 0.35), rgba(7, 67, 82, 0.78));
}

.cta-card__wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cta-card__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cta-card__icon {
  width: 24px;
  height: 24px;
  color: var(--white);
}
.cta-card__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 120%;
  color: var(--white);
  max-width: 322px;
  text-wrap: balance;
}
.cta-card__desc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.cta-card__desc p {
  font-size: 12px;
  line-height: 140%;
  color: var(--white-muted);
  max-width: 360px;
}

/* ---------- Contact ---------- */

.section--contact .section__inner--split {
  gap: 64px;
  align-items: center;
}

.contact-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
}
.contact-intro__text {
  font-size: 12px;
  line-height: 140%;
  color: var(--ink-muted);
  max-width: 420px;
}
.contact-intro__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
}
.contact-line svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}
.contact-line:hover { color: var(--brand); }
.contact-intro__address {
  font-size: 12px;
  line-height: 140%;
  color: var(--ink-muted);
  max-width: 320px;
}

.contact-card {
  position: relative;
  flex: 1 1 0;
  max-width: 640px;
  border-radius: 8px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  align-items: center;
}
.contact-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.contact-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-card__form {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  justify-content: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.contact-form__row {
  display: flex;
  gap: 16px;
  width: 100%;
}
.contact-form__row .contact-form__field { flex: 1; }
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.contact-form__label {
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(27, 80, 99, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 150%;
  color: var(--ink);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.contact-form textarea {
  resize: vertical;
  min-height: 64px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 80, 99, 0.12);
}
.contact-form__submit { width: 100%; }
.contact-form__req { color: var(--cta); }
.contact-form__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sand-tint);
  border: 1px solid var(--border-ink);
  transition: opacity 0.3s ease;
}
.contact-form__note.is-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}
.contact-form__note.is-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--white);
}
.footer-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.footer > div { position: relative; z-index: 1; }
.footer__logo {
  width: 161px;
  height: auto;
}

.footer__newsletter {
  padding: 100px var(--section-px) 0;
  display: flex;
  justify-content: center;
}
.footer__newsletter-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer__newsletter-icon {
  width: 32px;
  height: 32px;
  color: var(--white);
}
.footer__newsletter-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.25px;
  line-height: 104%;
  color: var(--white);
  text-align: center;
  text-wrap: balance;
}
.footer__newsletter-desc {
  font-size: 14px;
  line-height: 150%;
  color: var(--white-muted);
  text-align: center;
  max-width: 420px;
}
.newsletter {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 448px;
}
.newsletter__input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--white-glass);
  border-radius: 10px;
  background: var(--white-glass);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  transition: border-color 0.3s var(--ease-out);
}
.newsletter__input::placeholder { color: var(--white-faint); }
.newsletter__input:focus {
  outline: none;
  border-color: var(--white-muted);
}
.footer__newsletter-note {
  font-size: 12px;
  color: var(--white-muted);
}

.footer__main {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 100px var(--section-px) 0;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding: 48px 0;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 380px;
  flex-shrink: 0;
}
.footer__logo {
  width: 161px;
  height: auto;
  display: block;
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--white);
  white-space: nowrap;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 160px;
}
.footer__col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-muted);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  font-size: 12px;
  color: var(--white);
  text-decoration: none;
  width: fit-content;
}
.footer__links a:hover { color: var(--beige); }
.footer__address {
  font-style: normal;
  font-size: 12px;
  line-height: 140%;
  color: var(--white-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__address a { color: var(--white); text-decoration: none; }
.footer__address a:hover { color: var(--beige); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--white-glass);
  font-size: 12px;
  color: var(--white-muted);
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__legal a {
  color: var(--white-muted);
  text-decoration: none;
}
.footer__legal a:hover { color: var(--white); }

.footer__logo-art {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.8s var(--ease-out), transform 1.8s var(--ease-out);
}
.footer__logo-art.is-in-view {
  opacity: 1;
  transform: none;
}
.footer__logo-art canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.footer__logo-static {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: none;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__headline, .hero__buttons, .polaroid { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive: tablet (<=1023px) ---------- */

@media (max-width: 1023px) {
  :root {
    --section-px: 32px;
  }
  .site-nav { display: none; }
  .site-header__contact { display: none; }
  .site-header__cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { padding: 14px var(--section-px); }
  .site-header__border { left: var(--section-px); right: var(--section-px); }

  .hero { padding: 120px var(--section-px) 40px; }
  .hero__headline { font-size: 48px; letter-spacing: -1.25px; }
  .polaroid { width: 280px; max-width: 280px; }

  .section { padding: 90px var(--section-px); }
  .section--about-hero { padding: 110px var(--section-px) 80px; }
  .section--subhero { padding: 120px var(--section-px) 64px; }
  .section--principles { padding: 90px var(--section-px); }
  .section--process { padding: 80px var(--section-px) 100px; }
  .section--contact { padding: 80px var(--section-px) 100px; }
  .section--tabs { padding: 90px var(--section-px); }
  .footer__newsletter { padding: 80px var(--section-px) 0; }
  .footer__main { padding: 80px var(--section-px) 0; }

  .process {
    flex-direction: column;
    gap: 36px;
    align-items: stretch;
  }
  .process__visual {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: clamp(280px, 42vw, 420px);
    min-height: auto;
  }
  .process__steps {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
  }
  .process__step {
    flex: none;
    width: 100%;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px 0;
  }
  .process__step:first-child {
    border-top: 1px solid var(--white-glass);
  }

  .services-index { flex-basis: 260px; max-width: 300px; }
  .services-cards { gap: 40px; }
  .service-card { min-height: 460px; }

  .metrics { flex-wrap: wrap; }
  .metric { flex: 1 1 33.333%; border-right: 1px solid var(--border-ink); }
  .metric--dark { flex: 1 1 100%; margin-right: 0; margin-bottom: 8px; border-radius: 12px; }

  .section--contact .section__inner--split { gap: 64px; }
}

/* ---------- Responsive: mobile (<=809px) ---------- */

@media (max-width: 809px) {
  :root {
    --section-px: 20px;
  }
  body { font-size: 14px; }

  .section { padding: 72px var(--section-px); }
  .section--principles { padding: 72px var(--section-px); min-height: auto; }
  .section--process { padding: 72px var(--section-px); }
  .section--contact { padding: 64px var(--section-px) 80px; }
  .section--impact { padding: 72px var(--section-px); }
  .section--about-hero { padding: 72px var(--section-px); }
  .section--subhero { padding: 110px var(--section-px) 48px; }
  .section--subhero--tickered { padding-bottom: 0; }
  .section--tabs { padding: 72px var(--section-px); }

  .section__display { font-size: 40px; letter-spacing: -2px; }
  .section-head__title { font-size: 32px; letter-spacing: -1px; }
  .section-head__lead { font-size: 28px; }

  .promo-bar__text { font-size: 11px; }

  .site-header__inner { padding: 12px var(--section-px); }
  .site-header__logo { height: 48px; }
  .site-header__logo-img { height: 48px; }
  .site-header__border { left: var(--section-px); right: var(--section-px); }

  .hero { height: 90vh; min-height: 540px; padding: 110px var(--section-px) 40px; }
  .hero__inner { align-items: flex-start; }
  .polaroid { display: none; }
  .hero__insight { display: none; }
  .hero__headline { font-size: 40px; letter-spacing: -2px; }
  .hero__buttons { flex-direction: column; align-items: flex-start; }
  .about-hero__visual { display: none; }
  .about-hero__inner { justify-content: flex-start; }
  .polaroid { width: 300px; max-width: 100%; height: auto; }
  .polaroid__thumb { width: 80px; height: 80px; }

  .phrases__inner { padding: 20px 0; }
  .phrases__item { padding: 0 20px; font-size: 15px; }

  .sticky-stack { gap: 40px; }
  .sticky-card { top: 96px; aspect-ratio: auto; height: 320px; }
  .sticky-card__value { font-size: 44px; }

  .section--why .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .feature-card,
  .feature-card:first-child,
  .feature-card:last-child { border-left: 0; border-right: 0; border-bottom: 1px solid var(--border-ink); }
  .feature-card:last-child { border-bottom: 0; }

  .section__inner--split { flex-direction: column; gap: 44px; }
  .section__inner--split > .services-index,
  .section__inner--split > .services-cards,
  .section__inner--split > .contact-intro,
  .section__inner--split > .contact-card,
  .section__inner--split > .contact-form-wrap { flex: none; width: 100%; max-width: 100%; }
  .services-index__sticky { position: static; }
  .service-card { min-height: 400px; }

  .principles { flex-direction: column; }
  .principle { border-right: none; border-bottom: 1px solid var(--white-glass); }
  .principle:first-child { border-left: none; border-top: 1px solid var(--white-glass); }
  .principle:last-child { border-bottom: none; }

  .process { flex-direction: column; gap: 28px; }
  .process__visual { flex: none; width: 100%; max-width: 100%; height: clamp(220px, 50vw, 320px); }
  .process__step { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .process__step-head { flex-direction: row; align-items: center; gap: 10px; }

  .metrics { flex-direction: column; }
  .metric { flex: none; width: 100%; border-right: none; border-bottom: 1px solid var(--border-ink); }
  .metric:last-child { border-bottom: none; }
  .metric--dark { margin-bottom: 8px; }

  .carousel__slide { width: 100%; }
  .testimonial { flex-direction: column; min-height: 0; }
  .testimonial__media { flex: none; width: 100%; height: 220px; }
  .testimonial__quote { font-size: 24px; }
  .carousel__controls { justify-content: center; }

  .cta-cards { flex-direction: column; height: auto; }
  .cta-card { min-height: 400px; padding: 24px; }
  .cta-card__title { font-size: 18px; }

  .footer__newsletter { padding: 64px var(--section-px) 0; }
  .footer__newsletter-title { font-size: 28px; }
  .newsletter { flex-direction: column; }
  .newsletter__input { width: 100%; }
  .footer__main { padding: 64px var(--section-px) 0; }
  .footer__row { flex-direction: column; gap: 48px; }
  .footer__bar { flex-direction: column; gap: 8px; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Responsive: small mobile (<=480px) ---------- */

@media (max-width: 480px) {
  :root {
    --section-px: 16px;
  }
}

/* ---------- Services index list ---------- */

.services-index__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.services-index__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 100%;
  text-decoration: none;
  color: var(--white-faint);
  transition: color 0.3s var(--ease-out);
  padding: 16px 0 16px 20px;
  border-top: 1px solid var(--white-glass);
}
.services-index__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.3s var(--ease-out);
}
.services-index__item:hover { color: var(--white-muted); }
.services-index__item.is-active { color: var(--white); }
.services-index__item.is-active::before { background: var(--brand); }

/* ============================================================
   About (homepage hero-style) + editorial split
   ============================================================ */

.section--about-hero {
  background: var(--ivory);
  padding: 160px var(--section-px) 100px;
}
.about-hero__inner {
  flex-direction: row;
  gap: 80px;
  align-items: center;
}
.about-hero__text {
  flex: 1 1 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.about-hero__headline {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 104%;
  color: var(--ink);
  text-wrap: balance;
}
.about-hero__sub {
  font-size: 16px;
  line-height: 150%;
  color: var(--ink-muted);
  max-width: 520px;
}
.about-hero__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.about-hero__visual {
  position: relative;
  flex: 1 1 0;
  max-width: 640px;
  height: 560px;
  border-radius: 12px;
  overflow: hidden;
}
.about-hero__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 50, 62, 0.2) 0%, rgba(5, 50, 62, 0.6) 100%);
}
.about-widgets {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  min-height: 24px;
}
.about-widget {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 800ms var(--ease-fade);
}
.about-widget.is-active { opacity: 1; }
.about-widget__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
}
.about-widget__text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  color: var(--white);
  white-space: nowrap;
}

.section--about .section__inner--split {
  gap: 132px;
  align-items: center;
}
.section--about .section__inner--reverse {
  gap: 132px;
  align-items: center;
}
.about__visual {
  flex: 1 1 0;
  max-width: 680px;
  border-radius: 12px;
  overflow: hidden;
}
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.about__content {
  flex: 1 1 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.about__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.25px;
  line-height: 104%;
  color: var(--ink);
  text-wrap: balance;
}
.about__lead {
  font-size: 16px;
  line-height: 150%;
  color: var(--ink-muted);
}
.about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.about__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--border-ink);
}
.about__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}
.about__item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__item-body h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  color: var(--ink);
}
.about__item-body p {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
}

/* ============================================================
   Subpage: sub-hero, grid cells, FAQ, stepper, quote, statband, related, CTA caption
   ============================================================ */

.section--subhero {
  position: relative;
  background: var(--dark-surface);
  padding: 160px var(--section-px) 80px;
  overflow: hidden;
}
.section--subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/subhero-bg.webp") center / cover no-repeat;
  opacity: 0.16;
}
.section--subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 67, 82, 0.55);
}
.subhero__inner {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  max-width: 1440px;
}
.subhero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 900px;
}
.subhero__title {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 104%;
  color: var(--white);
  text-wrap: balance;
}
.subhero__lead {
  font-size: 16px;
  line-height: 150%;
  color: var(--white-muted);
  max-width: 640px;
}
.subhero__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grid-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 0;
  width: 100%;
  border-top: 1px solid var(--border-ink);
  border-left: 1px solid var(--border-ink);
}
.grid-cells--dark { border-color: var(--white-glass); }
.grid-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  border-bottom: 1px solid var(--border-ink);
  border-right: 1px solid var(--border-ink);
  text-decoration: none;
  transition: background-color 0.4s var(--ease-out);
}
.grid-cells--dark .grid-cell { border-color: var(--white-glass); }
a.grid-cell:hover { background: var(--beige); }
.grid-cells--dark a.grid-cell:hover { background: rgba(255, 255, 255, 0.06); }
.grid-cell__icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
}
.grid-cells--dark .grid-cell__icon { color: var(--white); }
.grid-cell__body { display: flex; flex-direction: column; gap: 8px; }
.grid-cell__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 120%;
  color: var(--ink);
}
.grid-cells--dark .grid-cell__title { color: var(--white); }
.grid-cell__text {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
}
.grid-cells--dark .grid-cell__text { color: var(--white-muted); }
.grid-cell__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}
.grid-cells--dark .grid-cell__arrow { color: var(--white); }
.grid-cell__arrow svg { width: 14px; height: 14px; }

.section--faq { background: var(--white); }
.faq {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--border-ink);
}
.faq__item:last-child { border-bottom: 1px solid var(--border-ink); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  text-align: left;
  color: var(--ink);
  transition: color 0.3s var(--ease-out);
}
.faq__question:hover { color: var(--brand); }
.faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq__answer p {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
  padding-bottom: 24px;
  max-width: 640px;
}

.section--quote { background: var(--dark-surface); }
.quote-block {
  display: flex;
  align-items: stretch;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.quote-block__media {
  flex: 0 0 400px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.quote-block__media img { width: 100%; height: 100%; object-fit: cover; }
.quote-block__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.quote-block__quote {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--white);
  text-wrap: balance;
}
.quote-block__name { font-size: 14px; font-weight: 500; color: var(--white); }
.quote-block__role { font-size: 12px; color: var(--white-muted); }

.section--statband { background: var(--ivory); }
.statband {
  display: flex;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.statband__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 32px;
  border-right: 1px solid var(--border-ink);
}
.statband__stat:last-child { border-right: none; }
.statband__value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -4px;
  line-height: 104%;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.statband__body { display: flex; flex-direction: column; gap: 12px; }
.statband__text { font-size: 12px; line-height: 140%; color: var(--ink-muted); }

.section--related { background: var(--white); }
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.related__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border-ink);
  border-radius: 12px;
  text-decoration: none;
  background: var(--white);
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.related__item:hover {
  background: var(--ivory);
  transform: translateY(-4px);
}
.related__media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
}
.related__media img { width: 100%; height: 100%; object-fit: cover; }
.related__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
}
.related__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 120%;
  color: var(--ink);
}
.related__desc {
  font-size: 14px;
  line-height: 150%;
  color: var(--ink-muted);
}
.related__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-top: 4px;
}
.related__link svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.related__item:hover .related__link svg { transform: translateX(3px); }

.cta-caption {
  display: flex;
  justify-content: center;
  padding: 0 48px;
}
.cta-caption p {
  font-size: 12px;
  line-height: 140%;
  color: var(--ink-faint);
  max-width: 760px;
  text-align: center;
}

/* ---------- Phase stepper (vertical, auto-advancing, progress rail) ---------- */

.stepper {
  display: flex;
  flex-direction: column;
  width: 100%;
  --stepper-duration: 3.8s;
}
.stepper__item {
  position: relative;
  padding-left: 32px;
}
.stepper__track {
  position: absolute;
  left: 5.5px;
  top: 26px;
  bottom: -8px;
  width: 1px;
  background: var(--border-ink);
}
.stepper__item:nth-last-child(2) .stepper__track,
.stepper__item:nth-last-child(2) .stepper__progress { display: none; }
.stepper__progress {
  position: absolute;
  left: 5.5px;
  top: 26px;
  bottom: -8px;
  width: 1px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.stepper__item.is-active .stepper__progress {
  animation: stepper-grow var(--stepper-duration) linear forwards;
}
.stepper.is-paused .stepper__progress,
.stepper__item.is-active.is-selected .stepper__progress {
  animation-play-state: paused;
}
@keyframes stepper-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.stepper__dot {
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-ink);
  border-radius: 50%;
  background: var(--ivory);
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.stepper__item.is-active .stepper__dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(27, 80, 99, 0.14);
}
.stepper__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 0;
  margin-left: -12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s var(--ease-out);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stepper__row:hover { background: rgba(27, 80, 99, 0.05); }
.stepper__label {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 120%;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease-out);
}
.stepper__label:hover { color: var(--ink-muted); }
.stepper__item.is-active .stepper__label { color: var(--ink); }
.stepper__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.stepper__item.is-active .stepper__content { grid-template-rows: 1fr; }
.stepper__content > div { overflow: hidden; }
.stepper__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 8px 0 28px;
}
.stepper__inner p {
  font-size: 16px;
  line-height: 150%;
  color: var(--ink-muted);
  max-width: 480px;
  text-wrap: balance;
}

/* ---------- Subpage: tabs split (image + stepper) ---------- */

.section--tabs {
  background: var(--ivory);
  padding: 120px 48px;
}
.tabs-split {
  flex-direction: row;
  gap: 64px;
  align-items: center;
}
.tabs-visual {
  flex: 1 1 0;
  max-width: 676px;
  height: 704px;
  border-radius: 8px;
  overflow: hidden;
}
.tabs-visual img { width: 100%; height: 100%; object-fit: cover; }
.tabs-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}
.tabs-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* ---------- Responsive additions for subpage components ---------- */

@media (max-width: 1023px) {
  .tabs-visual { height: 560px; }
}

@media (max-width: 809px) {
  .contact-card {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .contact-card__bg { display: none; }
  .contact-card__form {
    width: 100%;
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid rgba(27, 80, 99, 0.14);
    box-shadow: 0 4px 20px rgba(17, 30, 36, 0.06);
    box-sizing: border-box;
  }
  .contact-form {
    width: 100%;
    padding: 0;
    gap: 16px;
    box-sizing: border-box;
  }
  .contact-form__fields {
    width: 100%;
    gap: 14px;
  }
  .contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .contact-form__field {
    width: 100%;
    gap: 6px;
  }
  .contact-form__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid rgba(27, 80, 99, 0.22);
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    min-height: 48px;
  }
  .contact-form textarea {
    min-height: 84px;
    resize: vertical;
  }
  .contact-form__submit {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
    font-weight: 600;
  }
  .section--subhero { padding: 110px var(--section-px) 48px; }
  .section--subhero--tickered { padding-bottom: 0; }
  .hero-ticker { margin-left: calc(-1 * var(--section-px)); margin-right: calc(-1 * var(--section-px)); }
  .about-hero__inner { flex-direction: column; gap: 48px; }
  .about-hero__text { max-width: none; width: 100%; }
  .about-hero__headline { font-size: 40px; letter-spacing: -2px; }
  .about-hero__visual { height: 320px; max-width: none; width: 100%; }

  .section--about .section__inner--split,
  .section--about .section__inner--reverse { flex-direction: column; gap: 48px; }
  .about__visual { max-width: none; width: 100%; }
  .about__visual img { aspect-ratio: 16 / 10; }

  .section--tabs { padding: 72px var(--section-px); }
  .tabs-split { flex-direction: column; align-items: stretch; gap: 40px; }
  .tabs-visual { flex: none; width: 100%; max-width: none; height: 320px; }
  .tabs-column { gap: 40px; }

  .grid-cells { grid-template-columns: 1fr; }
  .grid-cell { padding: 24px; }

  .quote-block { flex-direction: column; gap: 32px; }
  .quote-block__media { flex: none; width: 100%; aspect-ratio: 16 / 10; }

  .statband { flex-direction: column; }
  .statband__stat { border-right: none; border-bottom: 1px solid var(--border-ink); }
  .statband__stat:last-child { border-bottom: none; }

  .related__grid { grid-template-columns: 1fr; }
  .cta-caption { padding: 0; }
}



.stepper__cta {
  padding-top: 8px;
}

/* ---------- Header: Services dropdown (desktop) ---------- */

.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s var(--ease-out);
}
.nav-dropdown__trigger:hover { opacity: 0.7; }
.site-header.is-filled .nav-dropdown__trigger { color: var(--ink); }
.nav-dropdown__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease-out);
}
.nav-dropdown.is-open .nav-dropdown__chevron { transform: rotate(180deg); }

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -24px;
  width: 340px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-ink);
  border-radius: 12px;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.25);
  padding: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav-dropdown__panel::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s var(--ease-out);
}
.nav-dropdown__item:hover { background: var(--beige); }
.nav-dropdown__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand);
}
.nav-dropdown__item span { display: flex; flex-direction: column; }
.nav-dropdown__item strong {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.25px;
  color: var(--ink);
}
.nav-dropdown__item small {
  font-size: 12px;
  line-height: 140%;
  color: var(--ink-muted);
}
.nav-dropdown__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 14px 12px 8px;
  border-top: 1px solid var(--border-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
.nav-dropdown__all:hover { color: var(--brand-deep); }
.nav-dropdown__all svg { width: 14px; height: 14px; }

/* ============================================================
   Blog editorial system (native to the Aintibah design system)
   ============================================================ */

/* ---------- Blog index ---------- */

.section--blog-index { background: var(--ivory); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border-ink);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  transition: background-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.blog-card:hover { background: var(--ivory); transform: translateY(-4px); }
.blog-card__media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.blog-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.75px;
  line-height: 110%;
  color: var(--ink);
}
.blog-card__excerpt { font-size: 14px; line-height: 150%; color: var(--ink-muted); }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ---------- Article page ---------- */

.section--article-hero { background: var(--ivory); padding: 160px var(--section-px) 64px; }
.article-hero--img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.article-hero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.74) 0%, rgba(16, 18, 22, 0.55) 45%, rgba(16, 18, 22, 0.8) 100%);
}
.article-hero--img .article-hero__inner { position: relative; z-index: 1; }
.article-hero--img .article-hero__title { color: #fff; }
.article-hero--img .article-hero__lead { color: rgba(255, 255, 255, 0.85); }
.article-hero--img .article-hero__date { color: rgba(255, 255, 255, 0.7); }
.article-hero--img .tag {
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
}
.article-hero__inner { max-width: 860px; }
.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.article-hero__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 108%;
  color: var(--ink);
  text-wrap: balance;
}
.article-hero__lead {
  font-size: 18px;
  line-height: 150%;
  color: var(--ink-muted);
  margin-top: 24px;
  max-width: 720px;
}

.section--article { background: var(--white); padding: 80px var(--section-px) 120px; }
.article__inner { max-width: 760px; }
.article__body { display: flex; flex-direction: column; gap: 24px; }
.article__body p { font-size: 16px; line-height: 170%; color: var(--ink); }
.article__body strong { font-weight: 500; color: var(--ink); }
.article__body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--ink);
  margin-top: 40px;
  text-wrap: balance;
}
.article__body h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.25px;
  line-height: 120%;
  color: var(--ink);
  margin-top: 24px;
}
.article__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article__body ul li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 170%;
  color: var(--ink);
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}
.article__body ol {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article__body ol li { font-size: 16px; line-height: 170%; color: var(--ink); }

.article__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border-ink);
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0;
}
.article__table th {
  text-align: left;
  padding: 14px 20px;
  background: var(--beige);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--border-ink);
}
.article__table td {
  padding: 14px 20px;
  font-size: 15px;
  line-height: 150%;
  color: var(--ink);
  border-bottom: 1px solid var(--border-ink);
}
.article__table tr:last-child td { border-bottom: none; }

.article__callout {
  border-left: 3px solid var(--brand);
  background: var(--beige);
  border-radius: 0 12px 12px 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article__callout strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
}
.article__callout p { font-size: 15px; line-height: 160%; color: var(--ink); }

.article__checklist {
  border: 1px solid var(--border-ink);
  border-radius: 12px;
  padding: 8px 24px;
  display: flex;
  flex-direction: column;
}
.article__checklist label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-ink);
  font-size: 15px;
  line-height: 155%;
  color: var(--ink);
  cursor: pointer;
}
.article__checklist label:last-child { border-bottom: none; }
.article__checklist input {
  appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1.5px solid var(--border-ink);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.article__checklist input:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.article__checklist input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.article__note {
  font-size: 13px;
  line-height: 150%;
  color: var(--ink-faint);
}

.article__cta {
  margin-top: 48px;
  border-top: 1px solid var(--border-ink);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.article__cta h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 116%;
  color: var(--ink);
}
.article__cta p { font-size: 15px; line-height: 160%; color: var(--ink-muted); max-width: 560px; }

.article__related { background: var(--ivory); }
.article__related-footer {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Hero tag ticker ---------- */

.hero .hero-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  margin: 0;
}
.hero-ticker {
  position: relative;
  width: auto;
  margin: 56px -48px 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 18, 22, 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.hero-ticker__track {
  display: flex;
  width: max-content;
  animation: hero-ticker-scroll 42s linear infinite;
  will-change: transform;
}
.hero-ticker:hover .hero-ticker__track { animation-play-state: paused; }
.hero-ticker__group {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-ticker__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 100%;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.hero-ticker__tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
@keyframes hero-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ticker__track { animation: none; }
}
.section--article-hero.article-hero--img { padding-bottom: 0; }
.section--subhero--tickered { padding-bottom: 0; }

/* ---------- Blog responsive ---------- */

@media (max-width: 809px) {
  .section--article-hero { padding: 120px var(--section-px) 48px; }
  .section--article-hero.article-hero--img { padding-bottom: 0; }
  .hero-ticker { margin-left: calc(-1 * var(--section-px)); margin-right: calc(-1 * var(--section-px)); }
  .article-hero__title { font-size: 36px; letter-spacing: -1px; }
  .section--article { padding: 48px var(--section-px) 72px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article__table { display: block; overflow-x: auto; }
}


/* ============================================================
   MOTION SYSTEM — primitives (see DESIGN.md §4)
   ============================================================ */

/* ---------- TextReveal (masked word rise) ---------- */
[data-text-reveal] .tw__mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-text-reveal] .tw__word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
[data-text-reveal].is-visible .tw__word { transform: translateY(0); }

/* ---------- ImageReveal (lift + settle; opacity/transform so IO can see it) ---------- */
[data-img-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-img-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-img-reveal][data-parallax] {
  transition: opacity 0.9s var(--ease-out);
}
[data-img-reveal][data-parallax].is-visible { transform: none; }

/* ---------- TiltCard (perspective + glare) ---------- */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.service-card[data-tilt] {
  transition: border-color 0.4s var(--ease-out), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tilt__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

/* ---------- MagneticButton ---------- */
[data-magnetic] {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* ---------- ReadingProgress ---------- */
[data-reading-progress] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 300;
  pointer-events: none;
}

/* ---------- Page transitions ---------- */
html.page-exit main { opacity: 0; transform: translateY(10px); }
html.page-exit { pointer-events: none; }
main {
  transition: opacity 0.17s var(--ease-out), transform 0.17s var(--ease-out);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-text-reveal] .tw__word,
  [data-img-reveal],
  [data-img-reveal] img,
  [data-tilt],
  [data-magnetic],
  [data-reading-progress],
  main {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Mobile: simplify ---------- */
@media (max-width: 809px) {
  [data-tilt] { transition: none; }
  [data-parallax] { transform: none !important; }
}

/* ---------- intl-tel-input (contact phone) ---------- */
.contact-form .iti {
  width: 100%;
}
.contact-form .iti__country-container {
  z-index: 4;
}
.contact-form .iti input.iti__tel-input,
.contact-form .iti input[type="tel"] {
  width: 100%;
}
.contact-form .iti__selected-dial-code {
  font-size: 15px;
  color: var(--ink);
}
.contact-form .iti__arrow {
  border-top-color: var(--ink-muted);
}
.contact-form .iti__dropdown-content {
  border-radius: 10px;
  border: 1px solid var(--border-ink);
  box-shadow: 0 18px 40px rgba(6, 28, 37, 0.14);
  font-family: var(--font-body);
}
.contact-form .iti__country-list {
  max-height: 220px;
}
.contact-form .iti__country {
  font-size: 14px;
}
.contact-form .iti__search-input {
  border-radius: 8px;
  border-color: var(--border-ink);
  font-size: 14px;
}
.contact-form .iti--show-flags .iti__country-name {
  margin-right: 8px;
}
