/* ==========================================================================
   Aventiq — styles
   ========================================================================== */

:root {
  /* Brand (sampled from the logo) */
  --navy-950: #04121f;
  --navy-900: #061c2e;
  --navy-800: #0a2a42;
  --navy-700: #0d3a58;
  --green-300: #8fd14f;
  --green-400: #7cc242;
  --green-500: #3db35a;
  --teal-500: #12a78a;
  --teal-700: #047382;
  --grad: linear-gradient(120deg, #7cc242 0%, #2fb067 45%, #0e9f8c 75%, #047382 100%);

  /* Neutrals */
  --ink: #0b2236;
  --text: #34495a;
  --muted: #627585;
  --line: #e1e8ec;
  --bg: #ffffff;
  --bg-soft: #f2f6f5;
  --on-dark: #e8f0f4;
  --on-dark-muted: #a7b9c6;
  --line-dark: rgba(255, 255, 255, .12);

  /* Type & layout */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 50px -20px rgba(6, 28, 46, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-400); color: var(--navy-950); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green-400); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--grad); background-size: 140% 100%; background-position: 0 0; color: #fff; box-shadow: 0 10px 30px -12px rgba(47, 176, 103, .7); }
.btn--primary:hover { background-position: 100% 0; box-shadow: 0 14px 34px -12px rgba(47, 176, 103, .85); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--green-300); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--green-400); padding-bottom: 4px;
}
.link-arrow .icon { color: var(--teal-500); transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }
.section--dark .link-arrow { color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease), transform .45s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 18, 31, .55), rgba(4, 18, 31, 0));
  transition: opacity .35s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: block; flex: none; width: 168px; }
.brand__logo { width: 100%; height: auto; transition: opacity .3s; }
.brand__logo--color { position: absolute; inset: 0; opacity: 0; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  position: relative; display: block; padding: 10px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #fff; text-decoration: none;
  transition: color .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 16px; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); }
.lang__btn {
  border: 0; background: transparent; color: rgba(255, 255, 255, .8); cursor: pointer;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; text-decoration: none; transition: background-color .2s, color .2s;
}
.lang__btn[aria-current="true"] { background: #fff; color: var(--navy-900); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
  background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

/* Solid header after scrolling */
.header.is-solid { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(6, 28, 46, .3); height: 72px; backdrop-filter: saturate(1.4) blur(10px); }
.header.is-solid::before { opacity: 0; }
.header.is-solid .brand__logo--white { opacity: 0; }
.header.is-solid .brand__logo--color { opacity: 1; }
.header.is-solid .nav__list a { color: var(--ink); }
.header.is-solid .lang { border-color: var(--line); }
.header.is-solid .lang__btn { color: var(--muted); }
.header.is-solid .lang__btn[aria-current="true"] { background: var(--navy-900); color: #fff; }
.header.is-solid .menu-toggle { color: var(--ink); border-color: var(--line); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 720px); display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--navy-950);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; animation: hero-zoom 18s var(--ease) both; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, .72) 0%, rgba(4, 18, 31, .42) 40%, rgba(4, 18, 31, 0) 72%),
    linear-gradient(0deg, rgba(4, 18, 31, .85) 0%, rgba(4, 18, 31, 0) 34%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes hero-in { from { transform: translateY(18px); } to { transform: none; } }  /* no opacity: keeps the LCP heading visible from first paint */
.hero__in { animation: hero-in .9s var(--ease) both; }
.hero__title.hero__in { animation-delay: .1s; }
.hero__lead.hero__in { animation-delay: .2s; }
.hero__actions.hero__in { animation-delay: .3s; }

.hero__content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 56px; }
.hero__title { color: #fff; font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 13ch; margin-bottom: 26px; }
.hero__lead { max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark); line-height: 1.6; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; border-radius: 3px; background: var(--grad); }
.eyebrow--light { color: var(--green-300); }

.hero__markets { padding-bottom: 0; }
.quicklinks { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid rgba(255, 255, 255, .18); }
.quicklinks a {
  position: relative; display: flex; align-items: center; gap: 12px; height: 88px; padding: 0 18px;
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 16px;
  border-left: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s;
}
.quicklinks li:first-child a { border-left: 0; padding-left: 0; }
.quicklinks a > .icon:first-child { width: 26px; height: 26px; color: var(--green-300); }
.quicklinks__arrow { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease); }
.quicklinks a::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.quicklinks a:hover::before { transform: scaleX(1); }
.quicklinks a:hover .quicklinks__arrow { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Key figures
   -------------------------------------------------------------------------- */
.figures { background: var(--navy-950); color: #fff; padding: 8px 0 72px; }
.figures__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figure { padding: 32px 28px 0; border-left: 1px solid var(--line-dark); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure__value {
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 4.2vw, 56px); line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.figure__unit { font-size: .55em; margin-left: 1px; letter-spacing: 0; }
.figure__label { margin: 0; color: var(--on-dark-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.section-head--split > .section-lead { max-width: 52ch; margin: 0; }
.section-title { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.section-head--split .section-title { margin-bottom: 0; }
.section-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }
.section--dark .section-lead, .careers .section-lead { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Markets
   -------------------------------------------------------------------------- */
.markets__body { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.markets__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mtab {
  display: flex; align-items: center; gap: 18px; width: 100%; padding: 22px 4px; text-align: left; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--muted);
  transition: color .25s, padding .3s var(--ease);
}
.mtab__num { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.mtab .icon { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .3s var(--ease); color: var(--teal-500); }
.mtab:hover { color: var(--ink); }
.mtab[aria-selected="true"] { color: var(--ink); padding-left: 14px; box-shadow: inset 3px 0 0 var(--green-500); }
.mtab[aria-selected="true"] .mtab__num { color: var(--teal-500); }
.mtab[aria-selected="true"] .icon { opacity: 1; transform: none; }

.mpanel { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; }
.mpanel__media { position: relative; overflow: hidden; background: var(--navy-800); }
.mpanel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform 1.2s var(--ease); }
.mpanel.is-switching .mpanel__media img { opacity: 0; transform: scale(1.04); }
.mpanel__body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; transition: opacity .35s; }
.mpanel.is-switching .mpanel__body { opacity: 0; }
.mpanel__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; margin-bottom: 14px; }
.mpanel__text { color: var(--text); }
.checklist { display: grid; gap: 10px; margin: 6px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--grad) center/cover;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
}
.checklist li { position: relative; }
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
.mpanel__body .link-arrow { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   Challenges
   -------------------------------------------------------------------------- */
.challenges { position: relative; overflow: hidden; }
.challenges::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 167, 138, .22), transparent 65%); pointer-events: none;
}
.cards-5 { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ccard {
  padding: 30px 26px 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-dark);
  transition: transform .35s var(--ease), background-color .35s, border-color .35s;
}
.ccard:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .07); border-color: rgba(124, 194, 66, .45); }
.ccard__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 26px; border-radius: 14px;
  background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(47, 176, 103, .8);
}
.ccard__icon .icon { width: 26px; height: 26px; }
.ccard h3 { font-size: 20px; margin-bottom: 10px; }
.ccard p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.services__intro { position: sticky; top: 120px; }
.services__intro .section-lead { margin-bottom: 32px; }
.slist { border-top: 1px solid var(--line); counter-reset: s; }
.slist__item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.slist__item:hover { padding-left: 12px; }
.slist__num { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .06em; color: var(--teal-500); padding-top: 6px; }
.slist__item h3 { font-size: 23px; margin-bottom: 8px; }
.slist__item p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.pgrid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(290px, 1fr)); gap: 20px; }
.pcard { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-decoration: none; isolation: isolate; background: var(--navy-800); box-shadow: var(--shadow); }
.pcard--lg { grid-row: span 2; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 18, 31, .92) 0%, rgba(4, 18, 31, .35) 50%, rgba(4, 18, 31, .05) 100%); transition: opacity .4s; }
.pcard:hover img { transform: scale(1.05); }
.pcard__body { position: absolute; inset: auto 0 0; padding: clamp(22px, 3vw, 36px); padding-right: 96px; }
.pcard h3 { color: #fff; font-size: clamp(21px, 2vw, 26px); }
.pcard--lg h3 { font-size: clamp(26px, 2.8vw, 36px); max-width: 18ch; }
.pcard p { margin: 14px 0 0; color: var(--on-dark); max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
.tag--outline { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.pcard__arrow {
  position: absolute; right: clamp(22px, 3vw, 36px); bottom: clamp(22px, 3vw, 36px);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--navy-900); transition: background-color .3s, transform .35s var(--ease);
}
.pcard:hover .pcard__arrow { background: var(--green-300); transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--navy-900); }
.about__media { position: relative; overflow: hidden; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__panel { position: relative; display: flex; align-items: center; color: var(--on-dark); background: var(--navy-900); overflow: hidden; }
.about__panel::before {
  content: ""; position: absolute; inset: 0; opacity: .55; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 100%, rgba(18, 167, 138, .35), transparent 55%),
              radial-gradient(80% 60% at 0% 0%, rgba(124, 194, 66, .16), transparent 60%);
}
.about__panel::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad); }
.about__content { position: relative; padding: clamp(56px, 7vw, 104px) clamp(28px, 6vw, 96px); max-width: 680px; }
.about__content h2 { color: #fff; }
.about__content p { color: var(--on-dark-muted); font-size: 17.5px; }
.values { display: grid; gap: 14px; margin: 30px 0 38px; }
.values li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-dark-muted); }
.values strong { color: #fff; font-weight: 600; }
.values .icon { color: var(--green-300); margin-top: 3px; stroke-width: 2.4; }

/* --------------------------------------------------------------------------
   Careers
   -------------------------------------------------------------------------- */
.careers { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(96px, 12vw, 160px) 0; background: var(--navy-950); }
.careers__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.careers::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 18, 31, .95) 0%, rgba(4, 18, 31, .78) 45%, rgba(4, 18, 31, .2) 100%); }
.careers__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.careers h2 { color: #fff; max-width: 15ch; }
.careers .section-lead { max-width: 52ch; margin-bottom: 36px; color: var(--on-dark); }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: flex; flex-direction: column; }
.ncard__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--bg-soft); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__body { padding-top: 20px; }
.ncard__meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.ncard h3 { font-size: 21px; line-height: 1.3; }
.ncard h3 a { text-decoration: none; background: linear-gradient(var(--green-400), var(--green-400)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.ncard:hover h3 a { background-size: 100% 2px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 36px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; color: var(--on-dark); }
.contact__list .icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); color: var(--green-300); }
.contact__list a, .contact__list span { padding-top: 10px; text-decoration: none; }
.contact__list a:hover { color: var(--green-300); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font-weight: 400; font-size: 16px; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(18, 167, 138, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d64545; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-500); flex: none; }
.consent.is-invalid { color: #d64545; }
.form .btn { justify-self: start; }
.form__status { margin: 0; font-size: 15px; min-height: 1.4em; color: var(--teal-700); font-weight: 500; }
.form__status.is-error { color: #d64545; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 15px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--green-300); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 80px; padding-bottom: 56px; }
.footer__brand img { width: min(280px, 100%); }
.footer__col h3, .footer__title { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer address { font-style: normal; line-height: 1.8; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dark); color: #fff; }
.socials a:hover { border-color: var(--green-300); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 24px; }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: calc(var(--header-h) + 16px) var(--gutter) 40px; background: var(--navy-950); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { font-size: 24px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: #fff !important; }
  .nav__list a::after { display: none; }
  .nav__actions { justify-content: space-between; }
  .nav__actions .lang { border-color: rgba(255, 255, 255, .3) !important; }
  .nav__actions .lang__btn { color: rgba(255, 255, 255, .8) !important; }
  .nav__actions .lang__btn[aria-current="true"] { background: #fff !important; color: var(--navy-900) !important; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  body.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .header .brand__logo--white { opacity: 1; }
  body.menu-open .header .brand__logo--color { opacity: 0; }
  body.menu-open .header .menu-toggle { color: #fff; border-color: rgba(255, 255, 255, .3); }

  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .quicklinks a { font-size: 15px; padding: 0 12px; }
}

@media (max-width: 960px) {
  .quicklinks { grid-template-columns: repeat(6, max-content); overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); }
  .quicklinks a { white-space: nowrap; padding: 0 20px; }
  .quicklinks__arrow { display: none; }
  .quicklinks::-webkit-scrollbar { display: none; }
  .figures__grid { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .markets__body { grid-template-columns: 1fr; }
  .markets__tabs { flex-direction: row; overflow-x: auto; gap: 8px; border: 0; scrollbar-width: none; }
  .markets__tabs::-webkit-scrollbar { display: none; }
  .mtab { flex: none; width: auto; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; gap: 8px; }
  .mtab .icon, .mtab__num { display: none; }
  .mtab[aria-selected="true"] { padding-left: 18px; box-shadow: none; background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
  .mpanel { grid-template-columns: 1fr; }
  .mpanel__media { aspect-ratio: 16 / 9; }
  .services__grid, .contact__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .pgrid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pcard { min-height: 340px; }
  .pcard--lg { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 9; }
  .about__panel::after { width: auto; height: 6px; right: 0; bottom: auto; }
  .ngrid { grid-template-columns: 1fr 1fr; }
  .ngrid .ncard:last-child { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 72px; }
  .brand { width: 136px; }
  .hero { min-height: 100svh; }
  .hero__content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .quicklinks a { height: 72px; }
  .cards-5 { grid-template-columns: 1fr; }
  .ccard { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 22px; }
  .ccard__icon { margin: 0; grid-row: span 2; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard--lg { grid-column: auto; min-height: 420px; }
  .pcard__body { padding-right: 84px; }
  .pcard p { display: none; }
  .ngrid { grid-template-columns: 1fr; }
  .ngrid .ncard:last-child { display: flex; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .slist__item { grid-template-columns: 44px 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .footer__brand { grid-column: auto; }
}

/* ==========================================================================
   Multi-page components
   ========================================================================== */

/* Page hero (sub pages) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy-950);
  min-height: clamp(440px, 62vh, 620px); display: flex; align-items: flex-end;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 18s var(--ease) both; }
.page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 18, 31, .9) 0%, rgba(4, 18, 31, .62) 45%, rgba(4, 18, 31, .2) 85%),
    linear-gradient(0deg, rgba(4, 18, 31, .9) 0%, rgba(4, 18, 31, 0) 55%);
}
.page-hero--plain { min-height: 0; background: var(--navy-900); }
.page-hero--plain::before {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; z-index: -1; opacity: .22;
  background: radial-gradient(closest-side, #12a78a, transparent);
}
.page-hero--404 { min-height: 70vh; }
.page-hero__content { width: 100%; padding-top: calc(var(--header-h) + 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero__title { color: #fff; font-size: clamp(36px, 5.2vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 18ch; margin-bottom: 20px; }
.page-hero__lead { max-width: 62ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-dark); margin: 0; }
.page-hero .hero__actions { margin-top: 32px; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: var(--on-dark); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-300); }
.breadcrumbs [aria-current] { color: var(--green-300); }

/* Long-form text */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; margin: 48px 0 16px; }
.prose h2:first-child, .prose .answer + h2 { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose a:not(.btn) { color: var(--teal-700); text-underline-offset: 3px; }
.prose .checklist { margin-bottom: 8px; }
.prose .btn { margin-top: 24px; }
.prose--lead p { font-size: clamp(17px, 1.4vw, 19px); }
.answer {
  margin: 0 0 48px; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-soft);
  border-left: 4px solid var(--teal-500); color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.6;
}

/* Two-column: article + sticky aside */
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.aside-card {
  position: sticky; top: 96px; padding: 32px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.aside-card__title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.aside-card .checklist { margin-bottom: 24px; font-size: 16px; }
.aside-card .btn { width: 100%; justify-content: center; }
.intro-split > .aside-card { position: static; }

.intro-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-split .section-title { margin-bottom: 0; }
.intro-split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Market cards */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.mcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s;
}
.mcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mcard__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mcard:hover .mcard__media img { transform: scale(1.05); }
.mcard__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 28px 28px; }
.mcard__icon {
  position: absolute; top: -26px; left: 28px; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(4, 115, 130, .7);
}
.mcard__icon .icon { width: 26px; height: 26px; }
.mcard__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.mcard__title a { text-decoration: none; }
.mcard__title a:hover { color: var(--teal-700); }
.mcard p { color: var(--text); font-size: 16px; }
.mcard .link-arrow { margin-top: auto; }

/* Featured block */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.feature__title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; margin-bottom: 14px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: 18px; font-weight: 700; line-height: 1.35; }
.faq__icon { flex: none; width: 22px; height: 22px; color: var(--teal-700); transition: transform .3s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item summary:hover .faq__q { color: var(--teal-700); }
.faq__a { padding: 0 48px 22px 0; color: var(--text); }
.faq__a p { margin: 0; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .92); font-size: 18px; }

/* Services */
.service-list { display: grid; gap: 0; max-width: 980px; }
.service-block { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block__num { font-family: var(--font-head); font-size: 44px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-block h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; margin-bottom: 12px; }
.service-block .checklist { margin-bottom: 0; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%;
  background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { margin: 0; font-size: 16px; }

/* Projects */
.project-list { display: grid; gap: clamp(56px, 8vw, 104px); }
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; scroll-margin-top: 96px; }
.project:nth-child(even) .project__media { order: 2; }
.project__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); }
.project h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; margin-bottom: 14px; }
.facts { display: grid; gap: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts a { color: var(--teal-700); }

/* Values */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vcard { padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.vcard .ccard__icon { margin-bottom: 18px; }
.vcard h3 { font-size: 19px; margin-bottom: 8px; }
.vcard p { margin: 0; font-size: 16px; }

.footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }

@media (max-width: 1180px) {
  .vgrid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .layout-aside, .intro-split, .faq-wrap, .feature, .project { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .project:nth-child(even) .project__media { order: 0; }
  .steps--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vgrid, .steps { grid-template-columns: 1fr; }
  .mcards { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 8px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .answer { padding: 20px; font-size: 17px; }
  .faq__a { padding-right: 0; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Motion & mobile layer
   Every effect animates transform / opacity / clip-path only (no layout
   shift) and is switched off under prefers-reduced-motion.
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
main { overflow-x: clip; }
.container { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.header { height: calc(var(--header-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.header.is-solid { height: calc(72px + env(safe-area-inset-top)); }
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }

/* Scroll progress */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

/* Reveal variants: each section type enters its own way */
.js .reveal--left:not(.is-visible) { transform: translate3d(-48px, 0, 0); }
.js .reveal--right:not(.is-visible) { transform: translate3d(48px, 0, 0); }
.js .reveal--scale:not(.is-visible) { transform: translate3d(0, 24px, 0) scale(.92); }
.js .reveal--clip { transition: clip-path 1.25s var(--ease) var(--d, 0ms), transform 1.25s var(--ease) var(--d, 0ms); }
.js .reveal--clip:not(.is-visible) { opacity: 1; transform: translate3d(0, 40px, 0); clip-path: inset(0 0 100% 0); }
.js .reveal--clip.is-visible { clip-path: inset(-40px); }

/* Section titles rise word by word */
.section-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.section-title .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .95s var(--ease) calc(var(--wi) * 60ms); }
.section-title.is-in .w > span { transform: none; }

/* Hero: content drifts away while the photo sinks (driven by JS) */
.hero__media, .page-hero__media, .hero__content, .page-hero__content { will-change: transform; }

/* Parallax photos */
.feature__media, .project__media, .intro-split__media { overflow: hidden; border-radius: var(--radius-lg); }
.js .feature__media img, .js .project__media img, .js .intro-split__media img, .js .about__media img, .js .careers__bg {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform;
}

/* Marquee */
.marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0; background: #fff; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 28px); padding-right: clamp(28px, 4vw, 64px);
  font-family: var(--font-head); font-weight: 800; font-size: clamp(40px, 7.4vw, 110px); line-height: 1; letter-spacing: -.04em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px var(--navy-700);
}
.marquee__item:nth-child(even) > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.marquee__icon { flex: none; width: .5em; height: .5em; color: var(--teal-500); -webkit-text-stroke: 0; }

/* Process rail fills as you scroll through the steps */
.steps[data-progress] { position: relative; --p: 0; padding-top: 36px; }
.steps[data-progress]::before, .steps[data-progress]::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: 2px; }
.steps[data-progress]::before { background: var(--line-dark); }
.steps[data-progress]::after { background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.step { position: relative; transition: border-color .5s, background-color .5s, transform .5s var(--ease); }
.step__num { transition: box-shadow .5s, transform .5s var(--ease); }
.step.is-active { border-color: rgba(124, 194, 66, .55); background: rgba(255, 255, 255, .06); }
.step.is-active .step__num { transform: scale(1.08); box-shadow: 0 0 0 7px rgba(124, 194, 66, .16); }

/* Pointer spotlight on cards */
@media (hover: hover) and (pointer: fine) {
  .ccard, .mcard, .step, .vcard { position: relative; }
  .ccard::after, .mcard::after, .step::after, .vcard::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 194, 66, .16), transparent 45%);
  }
  .mcard::after, .vcard::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(18, 167, 138, .1), transparent 45%); }
  .ccard:hover::after, .mcard:hover::after, .step:hover::after, .vcard:hover::after { opacity: 1; }
  .vcard { transition: transform .35s var(--ease), box-shadow .35s; }
  .vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}

/* Swipe-progress bar under mobile carousels */
.snap-bar { display: none; position: relative; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--line); overflow: hidden; }
.snap-bar--dark { background: var(--line-dark); }
.snap-bar span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--s, .25)); transition: transform .15s linear; }

/* Mobile action bar */
.mbar {
  position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; padding: 8px; border-radius: 18px;
  background: rgba(6, 28, 46, .88); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 20px 40px -16px rgba(4, 18, 31, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease), opacity .35s;
}
.mbar__call { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.mbar__call .icon { width: 22px; height: 22px; }
.mbar__cta { flex: 1; justify-content: center; min-height: 52px; }
.js .mbar:not(.is-visible), body.menu-open .mbar { transform: translate3d(0, calc(100% + 32px), 0); opacity: 0; pointer-events: none; }
@media (min-width: 961px) { .mbar { display: none; } }
@media (max-width: 960px) { .footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Mobile menu: links cascade in */
@media (max-width: 1180px) {
  .nav__list li, .nav__actions { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .3s, transform .3s var(--ease); }
  body.menu-open .nav__list li, body.menu-open .nav__actions { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
  body.menu-open .nav__list li:nth-child(1) { transition-delay: .06s; }
  body.menu-open .nav__list li:nth-child(2) { transition-delay: .11s; }
  body.menu-open .nav__list li:nth-child(3) { transition-delay: .16s; }
  body.menu-open .nav__list li:nth-child(4) { transition-delay: .21s; }
  body.menu-open .nav__list li:nth-child(5) { transition-delay: .26s; }
  body.menu-open .nav__list li:nth-child(6) { transition-delay: .31s; }
  body.menu-open .nav__actions { transition-delay: .36s; }
}

@media (max-width: 960px) {
  .steps--3[data-progress] { padding-top: 0; padding-left: 28px; }
  .steps--3[data-progress]::before, .steps--3[data-progress]::after { inset: 0 auto 0 0; width: 2px; height: auto; }
  .steps--3[data-progress]::after { transform-origin: 50% 0; transform: scaleY(var(--p)); }
}

@media (max-width: 640px) {
  .js .reveal--left:not(.is-visible) { transform: translate3d(-28px, 0, 0); }
  .js .reveal--right:not(.is-visible) { transform: translate3d(28px, 0, 0); }

  /* Market and challenge cards become swipeable carousels */
  .mcards[data-snap], .cards-5[data-snap] {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 4px;
  }
  .mcards[data-snap]::-webkit-scrollbar, .cards-5[data-snap]::-webkit-scrollbar { display: none; }
  .mcards[data-snap] > *, .cards-5[data-snap] > * { scroll-snap-align: start; }
  .cards-5[data-snap] .ccard { display: block; padding: 26px 22px 28px; }
  .cards-5[data-snap] .ccard__icon { margin-bottom: 22px; }
  .snap-bar { display: block; }

  .steps[data-progress] { padding-top: 0; padding-left: 28px; }
  .steps[data-progress]::before, .steps[data-progress]::after { inset: 0 auto 0 0; width: 2px; height: auto; }
  .steps[data-progress]::after { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .marquee__item { -webkit-text-stroke-width: 1px; }
}

/* Smooth cross-page transitions (Chrome, Edge, Safari 18.2+) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal:not(.is-visible) { opacity: 1; transform: none; clip-path: none; }
  .section-title .w > span { transform: none; }
  .js .feature__media img, .js .project__media img, .js .intro-split__media img, .js .about__media img, .js .careers__bg { transform: none; }
  .header.is-hidden { transform: none; }
  .scroll-progress { display: none; }
  .nav__list li, .nav__actions { opacity: 1; transform: none; }
}
