/* ============================================================
   ELEVIO GROUP — Future-Ready Market Access
   ============================================================ */

:root {
  --ink: #141517;
  --gray-700: #333538;
  --gray-500: #8A8F98;
  --gray-200: #E2E4E6;
  --gray-100: #F4F5F6;
  --blue: #95BCDA;
  --deep: #3D699C;
  --pink: #D9A6D0;
  --white: #FFFFFF;

  --font-sans: 'Rethink Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Lilex', 'SF Mono', monospace;

  --container: 1240px;
  --gutter: 14px;
  --radius: 16px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sweep: cubic-bezier(0.65, 0.05, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.is-loading { overflow: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--pink); color: var(--ink); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* Scrollbar — subtle brand touch */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: #c4c9cf; border-radius: 8px; border: 3px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--deep); }

/* ============ Typography ============ */

.h2 {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 0.7px solid var(--gray-700);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--gray-700);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Split-line wrappers (built by JS) — bottom padding keeps descenders
   (g, p, y) from being clipped by the overflow mask */
.sl-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sl-inner { display: block; will-change: transform; }

/* ============ Buttons ============ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.575;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.35s var(--ease-out);
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--deep);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-sweep);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(0.97); }
.btn__arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(2px, -2px) rotate(8deg); }

.btn--small { padding: 5px 14px; font-size: 14px; }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white::before { background: var(--blue); }
.btn--white:hover { color: var(--ink); }

:is(a, button):focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   PRELOADER
   ============================================================ */

.loadveil {
  position: fixed; inset: 0; z-index: 998;
  background: var(--blue);
}
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
html:not(.is-loading) .preloader,
html:not(.is-loading) .loadveil { display: none; }

.preloader__center {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.preloader__mark { width: 72px; height: 71px; }
.preloader__word {
  display: flex; gap: 0.28em;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
}
.pw { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.pw__in { display: block; transform: translateY(110%); }

.preloader__meta {
  position: absolute;
  left: 32px; right: 32px; bottom: 28px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
}
.preloader__count { font-size: 15px; color: var(--white); font-variant-numeric: tabular-nums; }

.preloader__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(255, 255, 255, 0.12);
}
.preloader__bar-fill {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
}


/* ============================================================
   NAVBAR
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 7vw, 100px) 0;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out);
}
.site-nav.is-hidden { transform: translateY(-120%); }
.site-nav > * { pointer-events: auto; }

.nav-logo img {
  width: clamp(130px, 12vw, 173px);
  height: auto;
  transition: filter 0.4s;
}
.site-nav.is-scrolled .nav-logo img { filter: brightness(0); }
/* over dark sections (stats, pulse, CTA) the logo flips to white */
.site-nav.on-dark .nav-logo img { filter: brightness(0) invert(1); }

.nav-cluster { position: relative; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 5px 5px 26px;
  background: var(--gray-100);
  border-radius: 100px;
  transition: box-shadow 0.4s, background-color 0.4s;
}
.site-nav.is-scrolled .nav-pill {
  background: rgba(244, 245, 246, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(20, 21, 23, 0.13);
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-trigger:hover, .nav-trigger.is-active { color: var(--deep); }
.nav-chev { transition: transform 0.35s var(--ease-out); }
.nav-trigger.is-active .nav-chev { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(20, 21, 23, 0.16);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: max-content;
  padding: 12px;
  visibility: hidden;
}
.nav-panel.is-current { visibility: visible; }

.dd-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  min-width: 380px;
  transition: background-color 0.3s var(--ease-out);
}
.dd-link:hover { background: var(--gray-100); }

.dd-link__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-500);
  transition: color 0.3s;
}
.dd-link:hover .dd-link__num { color: var(--deep); }

.dd-link__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dd-link__title {
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out);
}
.dd-link:hover .dd-link__title { transform: translateX(4px); }
.dd-link__desc { font-size: 13.5px; color: var(--gray-500); }

.dd-link__arrow {
  display: inline-flex;
  color: var(--deep);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
}
.dd-link:hover .dd-link__arrow,
.dd-card:hover .dd-link__arrow { opacity: 1; transform: translate(0, 0); }

.dd-link--simple { min-width: 240px; padding: 12px 16px; }

.dd-foot {
  margin: 8px 4px 2px;
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
  font-size: 13.5px;
  color: var(--gray-500);
}
.dd-foot a { color: var(--deep); border-bottom: 1px solid currentColor; transition: color 0.3s; }
.dd-foot a:hover { color: var(--ink); }
.dd-foot__star { color: var(--pink); display: inline-block; }

/* Burger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}
.nav-burger__line {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out);
}
.nav-burger.is-open .nav-burger__line:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.is-open .nav-burger__line:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
  background: var(--ink);
  color: var(--white);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  padding: 110px 28px 48px;
  overflow-y: auto;
}
html.menu-locked { overflow: hidden; }
.site-nav.menu-open .nav-logo img { filter: brightness(0) invert(1); }
.site-nav.menu-open .nav-pill { background: rgba(244, 245, 246, 0.96); }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.mobile-menu__group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(138, 143, 152, 0.35);
  padding-bottom: 26px;
}
.mobile-menu__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mobile-menu__link {
  display: block;
  font-size: clamp(26px, 7vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 7px 0;
  color: var(--white);
}
.mobile-menu__link:active { color: var(--blue); }
.mobile-menu__cta { align-self: flex-start; }

/* Products panel */
.nav-panel--products { display: flex; gap: 10px; }
.dd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  width: 250px;
  min-height: 168px;
  padding: 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-100);
  transition: transform 0.4s var(--ease-out);
}
.dd-card:hover { transform: translateY(-3px); }
.dd-card--sight { background: linear-gradient(150deg, #fbf0df 0%, #f3d3a4 100%); }
.dd-card--bridge { background: linear-gradient(150deg, #eef4ea 0%, #cfe0c6 100%); }

.dd-card__logo { width: 128px; height: auto; }
.dd-card__wordmark { font-size: 21px; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; }
.dd-card__wordmark em { font-style: normal; font-weight: 400; }

.dd-card__orb {
  position: absolute;
  top: -34px; right: -34px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 58%),
              radial-gradient(circle at 60% 60%, #EFB15E, #c98a3b);
  opacity: 0.85;
  transition: transform 0.6s var(--ease-out);
}
.dd-card--bridge .dd-card__orb {
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0) 58%),
              radial-gradient(circle at 60% 60%, #89AC7D, #5f855a);
}
.dd-card:hover .dd-card__orb { transform: scale(1.18) rotate(10deg); }
.dd-card .dd-link__arrow { position: absolute; top: 16px; left: 18px; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  width: calc(100% - calc(var(--gutter) * 2));
  margin: var(--gutter) auto 0;
  height: max(560px, calc(100svh - 28px));
  border-radius: var(--radius);
  background: var(--blue);
  overflow: hidden;
}

.hero__kick, .cta__kick {
  position: absolute; inset: 0;
  will-change: transform;
}
.hero__bg, .cta__bg {
  position: absolute;
  left: -25%; top: -25%;
  width: 150%; height: 150%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

/* NOTE: no z-index here — a stacking context would isolate the
   title's mix-blend-mode from the background image */
.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 86px);
}

.hero__title {
  position: absolute;
  left: clamp(28px, 6vw, 86px);
  right: clamp(28px, 6vw, 86px);
  top: 50%;
  translate: 0 -50%;
  font-size: clamp(52px, 7.6vw, 108px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hline { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.hline__in { display: block; }
html.is-loading .hline__in { transform: translateY(112%); }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
html.is-loading .hero__foot,
html.is-loading .site-nav { opacity: 0; }

.hero__sub {
  max-width: 653px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--white);
}

/* ============================================================
   SECTION 2 — EXPERTISE
   ============================================================ */

.expertise { padding-top: clamp(64px, 8vw, 96px); }

.expertise__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
/* fixed widths: a shrink-to-fit heading changes width when the split
   lines unwrap after the reveal, nudging the text sideways */
.expertise__head .h2 { width: min(707px, 100%); }

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.exp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 40px;
  overflow: hidden;
  will-change: clip-path;
}
.exp-card--blue { background: var(--blue); color: var(--ink); }
.exp-card--dark { background: var(--ink); color: var(--white); }
.exp-card--pink { background: var(--pink); color: var(--ink); }

.exp-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.exp-card__icon svg { width: clamp(96px, 9vw, 122px); height: auto; overflow: visible; }

.exp-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 0.5px solid currentColor;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 20px;
  transition: background-color 0.4s, color 0.4s;
}
.exp-card--blue:hover .exp-card__num, .exp-card--pink:hover .exp-card__num { background: var(--ink); color: var(--white); border-color: var(--ink); }
.exp-card--dark:hover .exp-card__num { background: var(--white); color: var(--ink); border-color: var(--white); }

.exp-card__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 24px;
}
.exp-card__title { font-size: 24px; font-weight: 400; line-height: 1.3; }
.exp-card__title--logo {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.exp-card__title--logo img { height: 26px; width: auto; }
.exp-card__text { font-size: 18px; line-height: 1.4; }
.exp-card--dark .exp-card__text { color: rgba(255, 255, 255, 0.88); }

/* "Explore" chip — appears on hover, marks the card as a link */
.exp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.exp-card__cta-label {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s, transform 0.45s var(--ease-out);
}
.exp-card__cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s, color 0.35s;
}
.exp-card:hover .exp-card__cta-circle { transform: scale(1); }
.exp-card:hover .exp-card__cta-label { opacity: 1; transform: translateX(0); transition-delay: 0.08s; }
.exp-card--blue:hover .exp-card__cta-circle:hover, .exp-card--pink:hover .exp-card__cta-circle:hover { background: var(--ink); color: var(--white); }
.exp-card__cta-circle svg { transition: transform 0.35s var(--ease-out); }
.exp-card:hover .exp-card__cta-circle svg { transform: translate(1px, -1px); }

/* no hover on touch / stacked layout → the link affordance shows by default */
@media (hover: none), (max-width: 960px) {
  .exp-card__cta-label { opacity: 1; transform: none; }
  .exp-card__cta-circle { transform: scale(1); }
}

/* ============================================================
   SECTION 3 — PULSE MARQUEE
   ============================================================ */

.pulse {
  position: relative;
  padding: clamp(80px, 10vw, 120px) 0;
  overflow: hidden;
  background: var(--ink);
}
/* gradient built from colors sampled out of the original banner artwork */
.pulse__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 120% at 51% 32%, rgba(219, 163, 227, 0.9) 0%, rgba(181, 123, 199, 0.55) 36%, rgba(181, 123, 199, 0) 68%),
    linear-gradient(100deg, #426A9D 0%, #54779F 20%, #7E7FB4 36%, #B57BC7 50%, #95C3DB 74%, #9CC6DF 100%);
}
.pulse__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.marquee {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group { display: flex; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
  white-space: nowrap;
}
.marquee__text {
  font-size: clamp(56px, 7.3vw, 104px);
  line-height: 1;
  color: var(--white);
}
.marquee__star {
  width: clamp(34px, 4.2vw, 60px);
  height: clamp(34px, 4.2vw, 60px);
  color: var(--white);
  flex: none;
}

/* ============================================================
   SECTION 4 — SERVICES
   ============================================================ */

.services { background: var(--gray-200); }
.services__inner {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(60px, 8vw, 80px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.services__head { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.services__head .h2 { width: min(1111px, 100%); }

.services__grid {
  display: grid;
  grid-template-columns: 464px 1fr;
  gap: clamp(40px, 5.5vw, 80px);
  align-items: stretch;
}
.services__media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
}
.services__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
.services__grid:has(.service-row:hover) .services__media img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.services__list { display: flex; flex-direction: column; align-items: flex-start; }

.service-row {
  position: relative;
  display: flex;
  gap: 48px;
  width: 100%;
  padding: 32px;
  border-top: 1px solid var(--gray-500);
  overflow: hidden;
  isolation: isolate;
}
.service-row:last-of-type { border-bottom: 1px solid var(--gray-500); }
.service-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-sweep);
  z-index: -1;
}
.service-row:hover::before { transform: scaleY(1); }

.service-row__num {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--gray-500);
  padding-top: 4px;
  transition: color 0.4s;
}
.service-row:hover .service-row__num { color: var(--blue); }

.service-row__body { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.service-row__title {
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.service-row:hover .service-row__title { color: var(--white); transform: translateX(10px); }
.service-row__desc {
  font-size: 18px;
  color: var(--gray-500);
  transition: color 0.4s;
}
.service-row:hover .service-row__desc { color: #c7cbd1; }

.service-row__arrow {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px; height: 48px;
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  opacity: 0;
  transform: scale(0.4) rotate(-45deg);
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s;
}
.service-row:hover .service-row__arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.1s;
}

.services__btn { margin-top: 36px; }

/* ============================================================
   SECTION 5 — STATS
   ============================================================ */

.stats {
  background: var(--ink);
  color: var(--white);
  padding: clamp(60px, 8vw, 80px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(56px, 6vw, 84px);
}
.stats__title {
  color: var(--white);
  text-align: center;
  width: min(1060px, 100%);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--container), 100%);
}
.stat {
  border: 0.5px solid rgba(138, 143, 152, 0.55);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.45s var(--ease-out), background-color 0.45s;
  cursor: default;
}
/* Hovering one metric dims the others */
.stats__grid:hover .stat { opacity: 0.25; }
.stats__grid:hover .stat:hover { opacity: 1; background: rgba(149, 188, 218, 0.06); }

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  transition: color 0.45s;
}
.stat:hover .stat__num { color: var(--blue); }
.stat__label { font-size: 16px; color: var(--gray-200); }

/* ============================================================
   SECTION 6 — NEWS
   ============================================================ */

.news {
  padding: clamp(60px, 8vw, 80px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}
.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.news__head-copy { display: flex; flex-direction: column; gap: 18px; }
.news__sub { color: var(--gray-500); }

.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 39px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), border-color 0.4s;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: #c4c9cf;
  box-shadow: 0 28px 56px rgba(20, 21, 23, 0.12);
}

.blog-card__media {
  position: relative;
  display: block;
  height: 171px;
  overflow: hidden;
  flex: none;
}
.blog-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.blog-card:hover .blog-card__media img { transform: scale(1.07); }
.blog-card__tint {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(61, 105, 156, 0.32), rgba(217, 166, 208, 0.18));
  mix-blend-mode: multiply;
  transition: opacity 0.6s;
}
.blog-card:hover .blog-card__tint { opacity: 0; }

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gray-500);
}
.blog-card__tag {
  padding: 4px 10px;
  border: 0.7px solid var(--gray-500);
  border-radius: 8px;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.blog-card:hover .blog-card__tag {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.blog-card__date { letter-spacing: -0.02em; }

.blog-card__bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
}
.blog-card__title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.35s;
}
.blog-card:hover .blog-card__title { color: var(--deep); }

.blog-card__read {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: var(--gray-500);
  transition: color 0.35s;
}
.blog-card:hover .blog-card__read { color: var(--ink); }
.blog-card__arrow { display: inline-flex; color: var(--deep); }
.blog-card:hover .blog-card__arrow svg { animation: arrow-nudge 0.7s ease-in-out 1; }

@keyframes arrow-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

/* ============================================================
   SECTION 7 — CTA + FOOTER
   ============================================================ */

.cta {
  position: relative;
  background: var(--deep);
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 120px);
}

.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 29px;
  padding-inline: 24px;
}
.cta__title {
  width: min(820px, 100%);
  font-size: clamp(48px, 4.2vw, 78px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--white);
  mix-blend-mode: overlay;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--gutter) var(--gutter);
}
.footer__card {
  width: 100%;
  background: var(--ink);
  border-radius: var(--radius);
  padding: clamp(36px, 5.5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 7vw, 100px);
  color: var(--white);
}

/* card spans the full page width; inner content keeps the design width */
.footer__subscribe, .footer__cols {
  width: min(1240px, 100%);
  margin-inline: auto;
}

/* Subscribe form */
.footer__subscribe { display: flex; flex-direction: column; gap: 16px; }
.sub-form {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-500);
  transition: border-color 0.4s;
}
.sub-form:hover { border-color: #b9bec6; }
.sub-form:focus-within { border-color: transparent; }

.sub-form__left { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.sub-form__eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--gray-200);
  transition: color 0.4s;
}
.sub-form:focus-within .sub-form__eyebrow { color: var(--blue); }

.sub-form__field { position: relative; }
.sub-form__input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  caret-color: var(--pink);
  transition: transform 0.4s var(--ease-out);
}
.sub-form__input::placeholder { color: var(--white); opacity: 1; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.sub-form:hover .sub-form__input::placeholder { transform: translateX(6px); }
.sub-form__input:focus::placeholder { opacity: 0.35; }
.sub-form.is-error .sub-form__input { color: var(--pink); }

/* animated focus underline, sweeps across the form's bottom edge */
.sub-form__line {
  position: absolute;
  left: 0; right: 0;
  bottom: -17px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-sweep);
}
.sub-form:focus-within .sub-form__line { transform: scaleX(1); }

.sub-form__btn { flex: none; }
.sub-form__btn.is-success { background: var(--blue); color: var(--ink); }
.sub-form__btn.is-success::before { display: none; }

.sub-form__note { font-size: 16px; color: var(--gray-500); max-width: 760px; }
.sub-form__msg {
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 1.4em;
  color: var(--pink);
}
.sub-form__msg.is-ok { color: var(--blue); }

.sub-star {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  font-size: 18px;
  color: var(--blue);
}

/* Footer columns */
.footer__cols {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-right: clamp(0px, 5vw, 80px);
}
.footer__mark { width: 64px; height: auto; transition: transform 0.9s var(--ease-out); }
.footer__mark:hover { transform: rotate(120deg); }

.footer__links {
  display: flex;
  gap: clamp(48px, 7vw, 105px);
  flex-wrap: wrap;
}
.footer__col { display: flex; flex-direction: column; gap: 31px; }
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--white);
}
.footer__col .footer__link + .footer__link { margin-top: -11px; }
.footer__link {
  position: relative;
  font-size: 16px;
  color: var(--gray-500);
  width: fit-content;
  margin-top: 0;
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.footer__link::before {
  content: '✦';
  position: absolute;
  left: -16px;
  font-size: 10px;
  top: 4px;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-6px) rotate(-90deg);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.footer__link:hover { color: var(--white); transform: translateX(16px); }
.footer__link:hover::before { opacity: 1; transform: translateX(0) rotate(0deg); }

/* Footer bottom bar */
.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray-200);
}
.footer__legal { display: flex; gap: 48px; }
.footer__legal a, .footer__bottom p { color: var(--gray-200); }
.footer__legal a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__connect {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-200);
  transition: color 0.3s;
}
.footer__connect img { transition: transform 0.4s var(--ease-out); }
.footer__connect:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__connect:hover img { transform: translateY(-3px) scale(1.1); }

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

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__media { min-height: 320px; }
  .expertise__head { flex-direction: column; }
}

@media (max-width: 960px) {
  .expertise__grid { grid-template-columns: 1fr; }
  .exp-card { padding: 56px 32px; gap: 44px; }
  .news__grid { grid-template-columns: 1fr; max-width: 560px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { flex-direction: column; }
  .site-nav { padding-top: 26px; }
  .hero { height: max(520px, calc(100svh - 28px)); }
}

@media (max-width: 720px) {
  .nav-trigger { display: none; }
  .nav-dropdown { display: none; }
  .nav-pill { padding: 4px; gap: 8px; }
  .nav-burger { display: inline-flex; }
  .mobile-menu { display: block; }
  .news__head { flex-direction: column; align-items: flex-start; }
  .sub-form { flex-direction: column; align-items: stretch; }
  .sub-form__btn { align-self: flex-start; }
  .stats__grid { grid-template-columns: 1fr; }
  .service-row { gap: 20px; padding: 28px 16px; flex-wrap: wrap; }
  .service-row__arrow { display: none; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.is-loading .hline__in { transform: none; }
  html.is-loading .hero__foot,
  html.is-loading .site-nav { opacity: 1; }
}
