/* ============================================================
   IMX Funds — imxfundmanagement.com
   Design system per IMX-WEB-GUIDE-001 v2.0 (brand-aligned)
   Archivo (display) + Inter (body) · IMX Blue leads
   ============================================================ */

:root {
  --blue: #1E4DD8;
  --navy: #1F3864;
  --ink: #10182B;
  --peri: #C7CEFB;
  --lime: #C9F36B;
  --mist: #F1F4F8;
  --body: #333333;
  --white: #FFFFFF;
  --hairline: rgba(16, 24, 43, 0.14);
  --hairline-light: rgba(255, 255, 255, 0.18);
  --max: 1320px;
  --text-max: 720px;
  --pad-section: clamp(96px, 7vw + 56px, 176px);
  --font-display: "Archivo", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }

/* Link underline grows on hover, IMX Blue */
.link-arrow,
.body-link {
  position: relative;
  font-weight: 600;
  color: var(--blue);
}
.link-arrow::after,
.body-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.35s ease;
}
.link-arrow:hover::after,
.body-link:hover::after { width: 100%; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.display {
  font-weight: 700;
  font-size: clamp(44px, 5.6vw, 80px);
  color: var(--ink);
}

h1 {
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 60px);
  color: var(--navy);
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--navy);
}

h3 {
  font-weight: 600;
  font-size: clamp(19px, 1.6vw, 23px);
  color: var(--blue);
  line-height: 1.3;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.65;
  max-width: var(--text-max);
}

p { max-width: var(--text-max); }
p + p { margin-top: 1.2em; }

.text-white { color: var(--white); }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 16px 34px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--hairline);
}
.btn--ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }

.section--ink .btn--ghost {
  color: var(--white);
  border-color: var(--hairline-light);
}
.section--ink .btn--ghost:hover { color: var(--lime); border-color: var(--lime); background: transparent; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: box-shadow 0.4s ease;
}

/* Blur lives on a pseudo-element: backdrop-filter on .nav itself would make
   it the containing block for the fixed-position mobile menu */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nav.is-solid::before { opacity: 1; }
.nav.is-solid { box-shadow: 0 1px 0 var(--hairline); }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav__logo img { height: 26px; width: auto; min-width: 130px; }

.nav__menu {
  display: flex;
  gap: 44px;
}

.nav__menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.35s ease;
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { width: 100%; }
.nav__menu a.is-active { color: var(--blue); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  z-index: 102;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.3s ease;
}

/* ---------- Hero (Home) ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 640px at 84% 18%, rgba(199, 206, 251, 0.55), transparent 64%),
    radial-gradient(560px 560px at 70% 78%, rgba(30, 77, 216, 0.10), transparent 60%),
    radial-gradient(420px 420px at 12% 88%, rgba(199, 206, 251, 0.35), transparent 62%);
}

.hero__art::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 18%;
  width: 1px;
  height: 120%;
  background: linear-gradient(to bottom, transparent, rgba(30, 77, 216, 0.32), transparent);
  transform: rotate(24deg);
  transform-origin: center;
}

.hero__content { position: relative; max-width: 880px; }

.hero__sub {
  margin-top: 36px;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--body);
  max-width: 620px;
}

.hero__scroll {
  position: absolute;
  bottom: 48px;
  left: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--navy);
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px; height: 44px;
  background: var(--blue);
  margin: 14px 0 0 2px;
}

/* Sub-page headers */
.page-head {
  position: relative;
  padding: calc(84px + clamp(80px, 9vw, 150px)) 0 var(--pad-section);
  overflow: hidden;
}
.page-head--art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px 560px at 88% 0%, rgba(199, 206, 251, 0.45), transparent 64%);
}
.page-head .container { position: relative; }

/* ---------- Sections ---------- */

.section { padding: var(--pad-section) 0; }

.section--mist { background: var(--mist); }

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}
.section--ink h2, .section--ink .display { color: var(--white); }
.section--ink .eyebrow { color: var(--peri); }

.section--peri { background: var(--peri); }

.rule { border: 0; border-top: 1px solid var(--hairline); }

/* Split section: eyebrow/heading left, prose right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.split__title h2 { max-width: 480px; }

/* Three-column capability grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
}
.cap {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.cap__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 14px;
}
.cap h3 { margin-bottom: 14px; }
.cap p { font-size: 16px; }

/* Four-item beliefs grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(40px, 5vw, 80px);
}

/* Statement (ink) panel */
.statement { text-align: left; }
.statement .display { font-size: clamp(36px, 4.4vw, 64px); max-width: 900px; }
.statement__actions { margin-top: 56px; display: flex; gap: 20px; flex-wrap: wrap; }

/* Forward links */
.forward {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}
.forward a {
  display: block;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  color: var(--ink);
  transition: color 0.3s ease;
}
.forward a:hover { color: var(--blue); }
.forward h3 { color: inherit; margin-bottom: 10px; font-family: var(--font-display); }
.forward p { font-size: 16px; color: var(--body); }

/* Periwinkle one-pager callout */
.callout {
  background: var(--peri);
  padding: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}
.callout h3 { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2vw, 27px); margin-bottom: 10px; }
.callout p { color: var(--ink); font-size: 15px; opacity: 0.78; }
.callout .btn { background: var(--ink); border-color: var(--ink); white-space: nowrap; }
.callout .btn:hover { background: var(--blue); border-color: var(--blue); }

/* Video feature */
.video-feature .container { max-width: 1140px; }
.video-feature video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ink);
}

/* Numbered phase steps */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 4vw, 64px) clamp(40px, 5vw, 88px);
  counter-reset: step;
}
.step {
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.step h3 { margin-bottom: 12px; }
.step p { font-size: 16px; margin-bottom: 16px; }
.step ul { list-style: none; }
.step li {
  font-size: 15px;
  padding: 7px 0 7px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
}
.step li::before { content: "—"; color: var(--blue); margin-right: 10px; }
.step li:last-child { border-bottom: 0; }

/* Capability list (Phase 2, mist) */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(32px, 4vw, 64px);
}
.cap-grid .cap h3 { font-size: 18px; }
.cap-grid .cap p { font-size: 15px; }

/* Two-column responsibilities */
.duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 96px);
}
.duo__col h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 22px; }
.duo__col ul { list-style: none; }
.duo__col li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
}
.duo__col li::before { content: "—"; color: var(--blue); margin-right: 12px; }

/* Platform structure diagram */
.diagram {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}
.diagram__box {
  border: 1px solid var(--hairline);
  background: var(--white);
  padding: 26px 32px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy);
}
.diagram__box--lead {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.diagram__box--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.diagram__link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 14px 0;
}
.diagram__link::before { content: "↓"; display: block; font-size: 16px; margin-bottom: 4px; }
.diagram__note {
  margin: 36px auto 0;
  font-size: 15px;
  color: var(--body);
  max-width: 560px;
}

/* Spec table */
.spec {
  width: 100%;
  border-collapse: collapse;
}
.spec th, .spec td {
  text-align: left;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.spec th {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  width: 38%;
  padding-right: 32px;
}
.spec td {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--navy);
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 880px;
}
.tag {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--hairline);
  padding: 10px 20px;
  background: var(--white);
}
.tag--lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }

.tags-note { margin-top: 24px; font-size: 15px; color: var(--body); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 110px);
  align-items: start;
}
.contact-block { margin-bottom: 40px; }
.contact-block .eyebrow { margin-bottom: 12px; }
.contact-block p { font-size: 17px; }
.contact-block a { font-weight: 600; }

/* Form card */
.card {
  border: 1px solid var(--hairline);
  background: var(--white);
  padding: clamp(32px, 4vw, 56px);
}
.card h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 22px; margin-bottom: 28px; }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 13.5px; color: var(--body); opacity: 0.75; margin-top: 16px; }

/* Compliance layout */
.legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(48px, 5vw, 96px);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 120px;
  list-style: none;
}
.legal__toc a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.legal__toc a:hover { color: var(--blue); }
.legal__section { margin-bottom: clamp(56px, 6vw, 88px); scroll-margin-top: 120px; }
.legal__section h2 { font-size: clamp(23px, 2.2vw, 30px); margin-bottom: 24px; }
.legal__section h3 { color: var(--navy); font-family: var(--font-body); font-weight: 600; font-size: 17px; margin: 28px 0 10px; }
.legal__section p, .legal__section li { font-size: 15.5px; }
.legal__section ul { list-style: none; max-width: var(--text-max); }
.legal__section li { padding: 6px 0; }
.legal__section li::before { content: "—"; color: var(--blue); margin-right: 10px; }

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

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(72px, 6vw, 110px) 0 48px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(40px, 5vw, 88px);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hairline-light);
}
.footer__brand img { height: 24px; width: auto; margin-bottom: 28px; }
.footer__brand p { max-width: 320px; }
.footer__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peri);
  margin-bottom: 20px;
}
.footer__nav { list-style: none; }
.footer__nav li { margin-bottom: 12px; }
.footer__nav a { color: rgba(255, 255, 255, 0.72); transition: color 0.3s ease; }
.footer__nav a:hover { color: var(--white); }
.footer address { font-style: normal; line-height: 1.9; }
.footer address a { color: var(--white); font-weight: 500; }
.footer__reg { margin-top: 22px; font-size: 13.5px; opacity: 0.65; }
.footer__legal {
  padding-top: 36px;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.55;
  max-width: 920px;
}

/* ---------- Reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease 0.08s, transform 1s ease 0.08s;
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}
.error-page img { height: 56px; margin-bottom: 40px; }
.error-page .display { color: var(--white); font-size: clamp(40px, 5vw, 68px); }
.error-page p { color: rgba(255,255,255,0.72); margin-top: 18px; }
.error-page .btn { margin-top: 40px; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 60px) clamp(32px, 4vw, 64px);
}
.person {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.person h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 21px;
  margin-bottom: 6px;
}
.person__role { font-weight: 600; color: var(--blue); font-size: 15px; }
.person__creds { font-size: 14.5px; color: var(--body); margin-top: 4px; }

/* ---------- Stats band / track record ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin: 48px 0;
}
.stat__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4.5vw, 64px);
  color: var(--white);
  line-height: 1;
  display: block;
}
.stat__l {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--peri);
}
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 64px);
  margin-top: 24px;
}
.case {
  border-top: 1px solid var(--hairline-light);
  padding-top: 24px;
}
.case h3 { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.case__period { font-size: 13.5px; color: var(--peri); margin-top: 4px; }
.case p { font-size: 15.5px; margin-top: 10px; }
.case__metrics { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.case__metrics span { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: 18px; }
.case__metrics small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-top: 2px; }
.footnote { font-size: 13px; line-height: 1.7; opacity: 0.6; max-width: 860px; margin-top: 40px; }

/* ---------- Insights ---------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
}
.insight-card {
  display: block;
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
  color: var(--ink);
}
.insight-card:hover h3 { color: var(--blue); }
.insight-card__kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.insight-card h3 { font-family: var(--font-display); color: var(--ink); transition: color 0.3s ease; margin-bottom: 12px; }
.insight-card p { font-size: 15.5px; color: var(--body); }

.article { max-width: 760px; }
.article h2 { font-size: clamp(24px, 2.2vw, 32px); margin: 48px 0 20px; }
.article p { margin-top: 1.1em; }
.article ul { list-style: none; max-width: var(--text-max); margin-top: 1.1em; }
.article li { padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.article li::before { content: "—"; color: var(--blue); margin-right: 12px; }

/* ---------- Form status ---------- */

.form-msg { display: none; margin-top: 18px; font-size: 15px; padding: 14px 16px; }
.form-msg.is-ok { display: block; background: var(--mist); color: var(--navy); border-left: 3px solid var(--blue); }
.form-msg.is-err { display: block; background: #FBEAEA; color: #7A1F1F; border-left: 3px solid #B43F3F; }

/* Newsletter inline form */
.newsletter { display: flex; gap: 12px; max-width: 560px; }
.newsletter input { flex: 1; }

/* ---------- Draft banner (staging Arabic) ---------- */

.draft-banner {
  background: var(--lime);
  color: var(--ink);
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  position: relative;
  z-index: 110;
}

/* ---------- RTL ---------- */

[dir="rtl"] .hero__scroll { left: auto; right: 40px; }
[dir="rtl"] .hero__scroll::after { margin: 14px 2px 0 0; }
[dir="rtl"] .step li::before,
[dir="rtl"] .duo__col li::before,
[dir="rtl"] .article li::before,
[dir="rtl"] .legal__section li::before { margin-right: 0; margin-left: 12px; }
[dir="rtl"] .callout .btn { white-space: normal; }

/* ---------- Breakpoints ---------- */

@media (max-width: 991px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: var(--white);
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.45s ease, visibility 0s linear 0.45s;
    z-index: 101;
  }
  .nav__menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.45s ease;
  }
  .nav__menu a { font-size: 22px; font-family: var(--font-display); font-weight: 600; }

  .grid-3, .cap-grid, .team-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; margin-bottom: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .container { padding: 0 24px; }
  .hero__scroll { left: 24px; }
  .grid-3, .grid-4, .cap-grid, .steps, .duo, .forward, .team-grid, .insight-grid, .cases { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 32px; }
  .newsletter { flex-direction: column; }
  [dir="rtl"] .hero__scroll { right: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal__toc { grid-template-columns: 1fr; }
}

@media (max-width: 478px) {
  .container { padding: 0 18px; }
  .hero__scroll { left: 18px; }
  .nav__inner { height: 72px; }
  .nav__logo img { height: 22px; min-width: 110px; }
}
