﻿/* ==========================================================================
   Infilabs â€” Components
   --------------------------------------------------------------------------
   Contents
     01  Buttons & links
     02  Header, navigation & mega menu
     03  Mobile drawer
     04  Heroes (home, page, product, article, 404)
     05  Trust bar & statistics
     06  Cards (service, product, industry, module, person, post)
     07  Content bands (overview, capability, benefit, stack, steps)
     08  Timeline & story
     09  Case studies, quotes & marquee
     10  Spotlights, pricing & CTA
     11  Filters, tabs & accordion
     12  Forms
     13  Offices, quick links & contact
     14  Footer
     15  Preloader & back-to-top
     16  Responsive overrides
   ========================================================================== */

/* ==========================================================================
   01  Buttons & links
   ========================================================================== */

.btn {
  --btn-py: 0.72rem;
  --btn-px: 1.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn svg {
  transition: transform var(--dur) var(--ease-spring);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--sm {
  --btn-py: 0.56rem;
  --btn-px: 1.05rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  --btn-py: 0.95rem;
  --btn-px: 1.7rem;
  font-size: var(--fs-base);
}

.btn--block {
  width: 100%;
}

/* Primary â€” brand gradient with a sweeping sheen on hover. */
.btn--primary {
  background: var(--grad-cta);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 22%, rgb(255 255 255 / 0.3) 50%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 14px 40px hsl(var(--brand-h) 90% 42% / 0.46);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Ghost â€” glass outline. */
.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  border-color: var(--accent-line);
  color: var(--accent-bright);
}

[data-theme='light'] .btn--ghost:hover {
  color: var(--accent-deep);
}

/* Text link with a sliding arrow and an underline that draws in. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--sp-5);
  color: var(--accent-bright);
  font-size: var(--fs-sm);
  font-weight: 600;
}

[data-theme='light'] .link-arrow {
  color: var(--accent-deep);
}

.link-arrow::after {
  content: '';
  position: absolute;
}

.link-arrow svg {
  transition: transform var(--dur) var(--ease-spring);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* Square icon button used in the header, carousel and drawer. */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  color: var(--text-2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--glass-bg-hover);
  transform: translateY(-1px);
}

/* Theme toggle swaps which glyph is shown per theme. */
.icon-btn__moon,
[data-theme='light'] .icon-btn__sun {
  display: none;
}

[data-theme='light'] .icon-btn__moon {
  display: block;
}

.icon-btn--menu {
  display: none;
}

/* ==========================================================================
   02  Header, navigation & mega menu
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

/* Condensed, frosted state applied by navigation.js once scrolled. */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--sh-sm);
}

/* Fallback for browsers without color-mix support. */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header.is-stuck {
    background: var(--ink);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}

/* Scroll-progress hairline under the header. */
.site-header__progress {
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.site-header.is-stuck .site-header__progress {
  opacity: 1;
}

/* ------------------------------------------------------------------- brand */

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

/* --------------------------------------------------------- logo wordmark ---
   The official mark (assets/images/infi.png) is black letters plus a teal
   period on transparency, so it works as supplied on light surfaces only.

   On dark surfaces `brightness(0) invert(1)` flattens every opaque pixel to
   pure white while preserving the alpha channel, giving a clean white
   silhouette. That also whitens the period, so the teal is reinstated as a
   positioned overlay â€” coordinates taken by sampling the asset, expressed as
   percentages so they hold at any rendered size.

   Filters were chosen by measurement: plain invert(1) turns the teal pink
   (#B33458), and invert(1) hue-rotate(180deg) turns it near-black (#006F4B).
   Neither is acceptable, hence this approach.
   -------------------------------------------------------------------------- */

.brand__logo {
  position: relative;
  display: block;
  width: 128px;
  flex: none;
  transition: opacity var(--dur) var(--ease);
}

.brand__logo-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hidden by default: on light surfaces the asset's own teal period is correct. */
.brand__logo-dot {
  display: none;
  position: absolute;
  left: 95.38%;
  top: 78.43%;
  width: 4.62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-teal);
}

a.brand:hover .brand__logo {
  opacity: 0.78;
}

/* Dark theme, and the footer â€” which stays dark in both themes. */
:root:not([data-theme='light']) .brand__logo-img,
.site-footer .brand__logo-img,
.section--dark .brand__logo-img {
  filter: brightness(0) invert(1);
}

:root:not([data-theme='light']) .brand__logo-dot,
.site-footer .brand__logo-dot,
.section--dark .brand__logo-dot {
  display: block;
}

.brand--sm .brand__logo {
  width: 112px;
}

.brand--footer .brand__logo {
  width: 158px;
}

/* Print is always on white, so force the original black artwork. */
@media print {
  .brand__logo-img {
    filter: none !important;
  }

  .brand__logo-dot {
    display: none !important;
  }
}

/* --------------------------------------------------------------------- nav */

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  background: var(--glass-bg);
}

/* Active underline indicator. */
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
}

.nav__caret {
  transition: transform var(--dur) var(--ease);
  opacity: 0.6;
}

.nav__item--has-mega:hover .nav__caret,
.nav__item--has-mega.is-open .nav__caret {
  transform: rotate(180deg);
}

/* -------------------------------------------------------------- mega menu */

.mega {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  z-index: var(--z-mega);
  width: min(1060px, calc(100vw - 3rem));
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--surface-2) 94%, transparent);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), visibility var(--dur);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .mega {
    background: var(--surface-2);
  }
}

/* Opened on hover for pointer users and on click via JS for keyboard/touch. */
.nav__item--has-mega:hover .mega,
.nav__item--has-mega.is-open .mega,
.mega:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__inner {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: var(--sp-6);
  padding: var(--sp-6);
}

.mega__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.mega__heading {
  margin-bottom: var(--sp-3);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.mega__list {
  display: grid;
  gap: 0.15rem;
}

.mega__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  border-radius: var(--r-sm);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.mega__link:hover {
  background: var(--glass-bg-hover);
  transform: translateX(2px);
}

.mega__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mega__text strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}

/* Promoted feature card in the mega panel. */
.mega__feature {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--sp-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface-3);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}

.mega__feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.mega__feature-eyebrow {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.mega__feature-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
}

.mega__feature-body {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.mega__feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--sp-3);
  color: var(--accent-bright);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

/* ==========================================================================
   03  Mobile drawer
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(2 5 12 / 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  padding: var(--sp-5);
  background: var(--surface-2);
  border-left: 1px solid var(--line);
  box-shadow: var(--sh-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.drawer__nav {
  padding-block: var(--sp-5);
  flex: 1;
}

.drawer__group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.drawer__group summary svg {
  transition: transform var(--dur) var(--ease);
  color: var(--text-3);
}

.drawer__group[open] summary svg {
  transform: rotate(180deg);
}

.drawer__sub {
  display: grid;
  gap: 0.1rem;
  padding: 0.25rem 0 var(--sp-4);
}

.drawer__sub a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: var(--fs-sm);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.drawer__sub a:hover {
  background: var(--glass-bg);
  color: var(--text);
}

.drawer__sub span[style] {
  color: var(--accent);
  display: inline-flex;
}

.drawer__all {
  color: var(--accent-bright) !important;
  font-weight: 600;
}

.drawer__top {
  display: grid;
  gap: 0.1rem;
  border-top: 1px solid var(--line);
  padding-top: var(--sp-4);
}

.drawer__top-link {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
}

.drawer__foot {
  display: grid;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.drawer__contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.drawer__contact:hover {
  color: var(--accent-bright);
}

/* ==========================================================================
   04  Heroes
   ========================================================================== */

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.hero--home {
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4rem, 7vw, 8rem);
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero--home .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
}

.hero__line {
  display: block;
}

.hero__title--page {
  font-size: var(--fs-3xl);
  max-width: 22ch;
}

.hero__rotator {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}

.hero__rotator-label {
  color: var(--text-3);
}

/* Typewriter caret. */
.typewriter {
  color: var(--brand-3);
  border-right: 2px solid var(--brand-3);
  padding-right: 3px;
  animation: caret 1.05s steps(1) infinite;
  min-height: 1em;
}

.hero__tagline {
  margin-top: var(--sp-3);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
}

[data-theme='light'] .hero__tagline {
  color: var(--accent-deep);
}

.hero__lede {
  margin-top: var(--sp-5);
  max-width: 60ch;
  color: var(--text-2);
  font-size: var(--fs-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: var(--sp-7);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__badges svg {
  color: var(--accent);
}

/* Scroll hint at the bottom of the home hero. */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(-50%);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.hero__scroll span {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
}

.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scroll-dot 1.9s var(--ease) infinite;
}

/* -------------------------------------------------------------- page heroes */

.hero--page {
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero__inner--page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-top: var(--sp-6);
}

.hero__metrics {
  display: grid;
  gap: var(--sp-4);
}

.hero--article {
  padding-block: clamp(2rem, 4vw, 3rem) var(--sp-8);
  border-bottom: 1px solid var(--line);
}

.hero--404 {
  display: flex;
  align-items: center;
  min-height: 78vh;
  padding-block: var(--sp-10);
  text-align: center;
}

/* ------------------------------------------------------------ orbit visual */

.orbit {
  /* Orbit radius as an explicit length. A percentage cannot be used on the
     nodes' translate() because percentages there resolve against the node's own
     box, not the container â€” which collapses every node onto the core. */
  --orbit-r: clamp(104px, 17vw, 186px);
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.orbit__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: var(--sh-md);
  animation: float-y 6s var(--ease) infinite alternate;
}

.orbit__core-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--brand-h) 92% 58% / 0.45), transparent 62%);
  filter: blur(18px);
}

.orbit__core img {
  position: relative;
}

.orbit__ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit__ring--1 {
  inset: 22%;
  border-style: dashed;
  animation: spin 34s linear infinite;
}

.orbit__ring--2 {
  inset: 8%;
  border-color: var(--line-2);
}

.orbit__ring--3 {
  inset: -4%;
  border-style: dashed;
  animation: spin 52s linear infinite reverse;
}

.orbit__nodes {
  position: absolute;
  inset: 0;
  animation: spin 44s linear infinite;
}

/* Polar placement only. No animation here â€” an animated `transform` would
   override this declaration entirely and collapse every node onto the core. */
.orbit__node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--angle)) translate(var(--orbit-r)) rotate(calc(-1 * var(--angle)));
}

/* Counter-rotation lives on its own element. Same duration as .orbit__nodes
   but reversed, so the glyph and label stay upright as the ring revolves. */
.orbit__spin {
  display: block;
  animation: spin 44s linear infinite reverse;
}

.orbit__node-inner {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  /* Negative margin on both axes centres the 52px box on the node's origin
     point, which is what the polar transform positions. */
  margin: -26px 0 0 -26px;
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brand-3);
  box-shadow: var(--sh-sm);
}

.orbit__node em {
  /* Sits just below the 52px icon box, which is centred on the origin. */
  position: absolute;
  top: 32px;
  left: 0;
  transform: translateX(-50%);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------- breadcrumbs */

.crumbs {
  position: relative;
  z-index: 2;
  padding-block: var(--sp-2);
}

.crumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.crumbs a {
  color: var(--text-3);
  transition: color var(--dur) var(--ease);
}

.crumbs a:hover {
  color: var(--accent-bright);
}

.crumbs li[aria-current] {
  color: var(--text-2);
  font-weight: 500;
}

.crumbs svg {
  opacity: 0.45;
}

/* ==========================================================================
   05  Trust bar & statistics
   ========================================================================== */

.trustbar {
  border-block: 1px solid var(--line);
  background: var(--glass-bg);
  padding-block: var(--sp-4);
}

.trustbar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
}

.trustbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.trustbar__list svg {
  color: var(--ok);
}

.stat-row {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.stat {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  box-shadow: var(--neu);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.stat:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.05em;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tr-tight);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat__suffix {
  font-size: 0.62em;
}

.stat__label {
  margin-top: 0.7rem;
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

/* ==========================================================================
   06  Cards
   ========================================================================== */

.cards {
  display: grid;
  gap: var(--sp-5);
}

.cards--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(305px, 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.cards--compact { gap: var(--sp-4); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  background: var(--glass-bg-hover);
  box-shadow: var(--sh-md);
}

/* Radial highlight following the pointer â€” coordinates set by animations.js. */
.card__sheen {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(
    22rem 22rem at var(--mx, 50%) var(--my, 0%),
    var(--accent-soft),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
  pointer-events: none;
}

.card:hover .card__sheen {
  opacity: 1;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease);
}

.card__icon--lg {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
}

.card:hover .card__icon {
  transform: translateY(-2px) scale(1.06);
  background: var(--accent);
  color: #fff;
}

[data-theme='light'] .card:hover .card__icon {
  color: #fff;
}

.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.card__title {
  font-size: var(--fs-lg);
  letter-spacing: var(--tr-snug);
}

.card--industry .card__title,
.cards--4 .card__title {
  font-size: var(--fs-md);
}

.card__tagline {
  color: var(--accent-bright);
  font-size: var(--fs-sm);
  font-weight: 500;
}

[data-theme='light'] .card__tagline {
  color: var(--accent-deep);
}

.card__body {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.card__tags li {
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-3);
  font-size: 0.6875rem;
  font-family: var(--font-mono);
}

.card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.card__metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card__metrics strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  color: var(--accent-bright);
  letter-spacing: var(--tr-snug);
}

[data-theme='light'] .card__metrics strong {
  color: var(--accent-deep);
}

.card__metrics span {
  color: var(--text-3);
  font-size: 0.6875rem;
  line-height: 1.3;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--sp-4);
  color: var(--accent-bright);
  font-size: var(--fs-sm);
  font-weight: 600;
}

[data-theme='light'] .card__more {
  color: var(--accent-deep);
}

.card__more svg {
  transition: transform var(--dur) var(--ease-spring);
}

.card:hover .card__more svg {
  transform: translateX(4px);
}

.card--industry {
  padding: var(--sp-5);
}

.card--industry .card__more {
  padding-top: var(--sp-3);
}

/* Leadership avatar */
.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.4rem;
  border-radius: var(--r-md);
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.avatar--sm {
  width: 42px;
  height: 42px;
  font-size: var(--fs-sm);
  margin: 0;
}

/* ==========================================================================
   07  Content bands
   ========================================================================== */

/* Two-column narrative + pillars */
.overview,
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.overview__pillars,
.intro__proof {
  display: grid;
  gap: var(--sp-4);
}

.pillar {
  padding: var(--sp-5);
}

.pillar__num {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
}

.pillar__title {
  font-size: var(--fs-md);
}

.pillar__body {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Proof point with an accent spine */
.proof {
  position: relative;
  padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 6px);
  overflow: hidden;
}

.proof__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--grad-brand);
}

.proof__title {
  font-size: var(--fs-md);
}

.proof__body {
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

/* Capability matrix */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: var(--sp-4);
}

.cap {
  padding: var(--sp-5);
}

.cap__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-base);
  font-weight: 600;
}

.cap__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cap__list {
  display: grid;
  gap: 0.55rem;
}

.cap__list--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.55rem var(--sp-5);
}

.cap__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.cap__list svg {
  margin-top: 0.28em;
  color: var(--accent);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: var(--sp-5);
}

.benefit {
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-5);
  border-left: 2px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}

.benefit:hover {
  border-left-color: var(--accent);
}

.benefit__metric {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tr-tight);
}

.benefit__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-md);
}

.benefit__body {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Technology stack / chips */
.stack,
.tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: var(--sp-5);
}

.tech__group {
  padding: var(--sp-5);
}

.stack__label,
.tech__label {
  margin-bottom: var(--sp-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

[data-theme='light'] .chip:hover {
  color: var(--accent-deep);
}

.chips--lg .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
}

.chip--outline {
  background: transparent;
  border-color: var(--line-2);
}

.chip--outline svg {
  color: var(--accent);
}

/* Numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: var(--sp-5);
}

.step {
  position: relative;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}

.step:hover {
  border-color: var(--accent-line);
  transform: translateY(-4px);
}

.step__num {
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.step__title {
  font-size: var(--fs-md);
}

.step__body {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

/* Service group heading on the services index */
.svc-group + .svc-group {
  margin-top: var(--sp-9);
}

.svc-group__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.svc-group__title {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: var(--fs-xl);
}

.svc-group__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.1em;
}

.svc-group__body {
  color: var(--text-3);
  font-size: var(--fs-sm);
  max-width: 46ch;
}

/* Industry rail (chips linking to sectors) */
.ind-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: 0.6rem;
}

.ind-rail a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}

.ind-rail a span {
  flex: 1;
}

.ind-rail a > svg:first-child {
  color: var(--accent);
}

.ind-rail a > svg:last-child {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ind-rail a:hover {
  border-color: var(--accent-line);
  background: var(--accent-softer);
  color: var(--text);
  transform: translateX(3px);
}

.ind-rail a:hover > svg:last-child {
  opacity: 1;
  transform: translateX(0);
}

/* Related rail */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: var(--sp-4);
}

.rail__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--sp-5);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.rail__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--glass-bg-hover);
}

.rail__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.rail__title {
  font-size: var(--fs-base);
}

.rail__body {
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.55;
}

.rail__cta {
  color: var(--accent);
  margin-top: auto;
  padding-top: var(--sp-3);
  transition: transform var(--dur) var(--ease-spring);
}

.rail__card:hover .rail__cta {
  transform: translateX(4px);
}

/* Product detail split layout */
.prod-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.prod-split__side {
  display: grid;
  gap: var(--sp-4);
}

.side-card {
  padding: var(--sp-5);
}

.side-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-base);
}

.side-card__title svg {
  color: var(--accent);
}

.side-card__list {
  display: grid;
  gap: 0.5rem;
}

.side-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.side-card__list svg {
  margin-top: 0.28em;
  color: var(--ok);
}

/* Mission / vision cards */
.mv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-5);
}

.mv__card {
  padding: var(--sp-7);
}

.mv__text {
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: var(--tr-snug);
}

/* Global presence */
.presence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.presence__regions {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.presence__regions li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.presence__regions strong {
  display: block;
  font-size: var(--fs-base);
}

.presence__regions span {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.presence__dot {
  width: 9px;
  height: 9px;
  margin-top: 0.5em;
  flex: none;
  border-radius: 50%;
  background: var(--brand-3);
  box-shadow: 0 0 0 4px hsl(var(--brand-3-h) 90% 52% / 0.16);
}

.presence__offices {
  display: grid;
  gap: var(--sp-4);
}

/* Challenge â†’ response pairs (industry pages) */
.pairs {
  display: grid;
  gap: var(--sp-4);
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  transition: border-color var(--dur) var(--ease);
}

.pair:hover {
  border-color: var(--accent-line);
}

.pair__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  color: var(--err);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.pair__label--ok {
  color: var(--ok);
}

.pair__text {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.pair__response {
  padding: var(--sp-4);
  border-radius: var(--r-md);
}

.pair__response .pair__text {
  color: var(--text);
}

.pair__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Compliance band */
.compliance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.compliance .section-head {
  margin-bottom: 0;
}

/* ==========================================================================
   08  Timeline & story
   ========================================================================== */

.timeline,
.story {
  position: relative;
  display: grid;
  gap: var(--sp-5);
  padding-left: 56px;
}

.timeline__spine {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 19px;
  width: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}

/* Fill height is driven by scroll position in animations.js. */
.timeline__spine i {
  position: absolute;
  inset: 0 0 auto;
  display: block;
  height: 0%;
  background: var(--grad-brand);
  transition: height 120ms linear;
}

.timeline__item,
.story__item {
  position: relative;
}

.timeline__marker {
  position: absolute;
  top: 14px;
  left: -56px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.timeline__item:hover .timeline__marker {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.timeline__card,
.story__card {
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}

.timeline__item:hover .timeline__card,
.story__item:hover .story__card {
  transform: translateX(4px);
  border-color: var(--accent-line);
}

.timeline__title,
.story__title {
  font-size: var(--fs-md);
}

.timeline__body,
.story__body {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.story__year {
  position: absolute;
  top: 16px;
  left: -56px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
}

/* ==========================================================================
   09  Case studies, quotes & marquee
   ========================================================================== */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--sp-5);
}

.case {
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.case__sector {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme='light'] .case__sector {
  color: var(--accent-deep);
}

.case__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-lg);
}

.case__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.case__label {
  margin-bottom: 0.35rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.case__text {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.case__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.case__results li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.case__results strong {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tr-tight);
}

.case__results span {
  color: var(--text-3);
  font-size: 0.6875rem;
  line-height: 1.35;
}

/* ------------------------------------------------------------- testimonials */

.quotes {
  position: relative;
}

.quotes__track {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.quotes__track::-webkit-scrollbar {
  display: none;
}

.quote {
  flex: 0 0 min(560px, 88%);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  padding: var(--sp-7);
}

.quote__mark {
  color: var(--accent);
  opacity: 0.45;
}

.quote__text {
  margin: var(--sp-4) 0 var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: var(--tr-snug);
  color: var(--text);
}

.quote__by {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.quote__by strong {
  display: block;
  font-size: var(--fs-sm);
}

.quote__by span {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.quotes__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

.quotes__dots {
  display: flex;
  gap: 0.45rem;
}

.quotes__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}

.quotes__dots button.is-active {
  width: 26px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
}

/* ----------------------------------------------------------------- marquee */

.partners__heading {
  text-align: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
  color: var(--text-3);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.marquee__item:hover {
  opacity: 1;
  color: var(--text);
}

/* ==========================================================================
   10  Spotlights, pricing & CTA
   ========================================================================== */

.spotlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--sp-5);
}

.spot {
  position: relative;
  padding: var(--sp-7);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.spot:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.spot__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}

.spot__title {
  margin-top: 0.25rem;
  font-size: var(--fs-xl);
}

.spot__body {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.spot__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.spot__points li,
.price__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.spot__points svg,
.price__points svg {
  margin-top: 0.28em;
  color: var(--accent);
  flex: none;
}

/* ----------------------------------------------------------------- pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: var(--sp-5);
  align-items: stretch;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.price:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.price--featured {
  border-color: var(--accent-line);
  background: linear-gradient(170deg, var(--accent-soft), transparent 55%), var(--glass-bg);
  box-shadow: var(--sh-accent);
}

.price__badge {
  position: absolute;
  top: -0.75rem;
  left: var(--sp-6);
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.price__title {
  font-size: var(--fs-md);
}

.price__amount {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--tr-tight);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.price__body {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.price__points {
  display: grid;
  gap: 0.5rem;
  margin: var(--sp-4) 0 var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.price a {
  margin-top: auto;
}

.pricing__note {
  margin-top: var(--sp-6);
  color: var(--text-3);
  font-size: var(--fs-xs);
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
}

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

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  inset: -50% -20% auto;
  height: 30rem;
  background:
    radial-gradient(40rem 20rem at 20% 60%, hsl(var(--brand-h) 92% 56% / 0.28), transparent 66%),
    radial-gradient(36rem 18rem at 78% 40%, hsl(var(--brand-2-h) 86% 62% / 0.26), transparent 66%);
  filter: blur(20px);
  pointer-events: none;
}

.cta__content {
  position: relative;
}

.cta__title {
  font-size: var(--fs-2xl);
  letter-spacing: var(--tr-tight);
}

.cta__body {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-md);
  max-width: 52ch;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.cta__note {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   11  Filters, tabs & accordion
   ========================================================================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-7);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.filter span {
  padding: 0.05rem 0.38rem;
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-2);
}

.filter.is-active {
  border-color: transparent;
  background: var(--grad-cta);
  color: #fff;
}

.filter.is-active span {
  background: rgb(255 255 255 / 0.22);
  color: #fff;
}

.filters__empty {
  text-align: center;
  color: var(--text-3);
  padding: var(--sp-8) 0;
}

/* Hidden by the filter script. */
[data-filter].is-hidden {
  display: none !important;
}

/* -------------------------------------------------------------------- tabs */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--sp-5);
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  width: fit-content;
  margin-inline: auto;
}

.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.tabs__tab:hover {
  color: var(--text);
}

.tabs__tab.is-active {
  background: var(--grad-cta);
  color: #fff;
}

.tabs__panel[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- accordion */

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass-bg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.faq__item[open] {
  border-color: var(--accent-line);
  background: var(--accent-softer);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--tr-snug);
  color: var(--text);
}

.faq__chev {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease);
}

.faq__item[open] .faq__chev {
  transform: rotate(135deg);
  background: var(--accent-soft);
}

.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
}

.faq__a p {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.72;
  max-width: 72ch;
}

.faq__a p + p {
  margin-top: var(--sp-3);
}

/* ==========================================================================
   12  Forms
   ========================================================================== */

.form {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.form__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-lg);
}

.form__title svg {
  color: var(--accent);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}

.form__row,
.field {
  margin-bottom: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0;
}

.form > .field {
  margin-bottom: var(--sp-4);
}

.field__label {
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.field__label span {
  color: var(--err);
}

.field__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.field__input::placeholder {
  color: var(--text-3);
  opacity: 0.75;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__input--area {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

/* Native select arrow, drawn as a background image so it themes correctly. */
select.field__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238391b0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.field--invalid .field__input {
  border-color: var(--err);
}

.field__error {
  color: var(--err);
  font-size: var(--fs-xs);
  min-height: 0;
}

.field__error:empty {
  display: none;
}

/* Custom checkbox */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  line-height: 1.5;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  background: var(--surface-3);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

/* --grad-cta rather than --grad-brand: the tick is a white graphical object, so
   WCAG 1.4.11 requires 3:1 against its background, which the bright cyan end of
   --grad-brand does not clear. */
.check input:checked {
  background: var(--grad-cta)
    no-repeat center /
    12px 12px;
  border-color: transparent;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E"),
    var(--grad-cta);
}

.check input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.field--check {
  margin-bottom: var(--sp-5);
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.form__note {
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.55;
  max-width: 42ch;
}

.form__note a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-theme='light'] .form__note a {
  color: var(--accent-deep);
}

/* Submission feedback line. */
.form__status {
  margin-top: var(--sp-4);
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  display: none;
}

.form__status.is-ok {
  display: block;
  border: 1px solid hsl(152 62% 48% / 0.4);
  background: hsl(152 62% 48% / 0.1);
  color: var(--ok);
}

.form__status.is-err {
  display: block;
  border: 1px solid hsl(354 78% 60% / 0.4);
  background: hsl(354 78% 60% / 0.1);
  color: var(--err);
}

.form--info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* -------------------------------------------------------------------- jobs */

.jobs {
  display: grid;
  gap: var(--sp-4);
}

.job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) var(--sp-6);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}

.job:hover {
  transform: translateX(4px);
  border-color: var(--accent-line);
}

.job__title {
  font-size: var(--fs-lg);
}

.job__summary {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 70ch;
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  margin-top: var(--sp-4);
}

.job__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.job__meta svg {
  color: var(--accent);
}

/* Internship panel */
.intern {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
}

.intern__title {
  font-size: var(--fs-xl);
}

.intern__body {
  margin: var(--sp-4) 0 var(--sp-5);
  color: var(--text-2);
  font-size: var(--fs-md);
}

.intern__stats {
  display: grid;
  gap: var(--sp-4);
}

/* ==========================================================================
   13  Offices, quick links & contact
   ========================================================================== */

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--sp-5);
}

.office {
  padding: var(--sp-6);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.office:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.office__flag {
  font-size: 1.9rem;
  line-height: 1;
}

.office__role {
  margin-top: var(--sp-3);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme='light'] .office__role {
  color: var(--accent-deep);
}

.office__city {
  margin-top: 0.35rem;
  font-size: var(--fs-lg);
}

.office__address {
  margin-top: var(--sp-3);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.office__meta {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.office__meta > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: var(--sp-3);
  align-items: baseline;
}

.office__meta dt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.office__meta dt svg {
  color: var(--accent);
}

.office__meta dd {
  color: var(--text-2);
  font-size: var(--fs-sm);
  margin: 0;
}

.office__meta a:hover {
  color: var(--accent-bright);
}

/* Office card with an embedded map */
.contact-offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--sp-5);
}

.contact-office {
  overflow: hidden;
  padding: 0;
}

.contact-office__map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.contact-office__map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.35) contrast(1.05);
}

[data-theme='dark'] .contact-office__map iframe,
:root:not([data-theme='light']) .contact-office__map iframe {
  filter: grayscale(0.5) invert(0.9) hue-rotate(180deg) contrast(0.9) brightness(0.95);
}

.contact-office__body {
  padding: var(--sp-6);
}

.contact-office__body .btn {
  margin-top: var(--sp-5);
}

/* Quick contact links */
.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: var(--sp-4);
}

.quick__item {
  display: grid;
  gap: 0.3rem;
  padding: var(--sp-5);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease);
}

.quick__item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
}

.quick__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.quick__label {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick__value {
  font-size: var(--fs-sm);
  font-weight: 500;
  word-break: break-word;
}

/* ==========================================================================
   Blog
   ========================================================================== */

.feature-post {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.feature-post:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
}

.feature-post__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xl);
  letter-spacing: var(--tr-tight);
}

.feature-post__excerpt {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-md);
  max-width: 62ch;
}

.feature-post__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-3);
  color: var(--accent);
  overflow: hidden;
}

.feature-post__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--accent-soft), transparent 62%);
  filter: blur(24px);
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(305px, 1fr));
  gap: var(--sp-5);
}

.post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--sp-6);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur) var(--ease);
}

.post:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
}

.post__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.tag {
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-3);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--cat {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-bright);
}

[data-theme='light'] .tag--cat {
  color: var(--accent-deep);
}

.post__date {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.post__title {
  font-size: var(--fs-md);
}

.post__excerpt {
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.post__meta {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

/* Article */
.article__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-3xl);
  letter-spacing: var(--tr-tight);
}

.article__lede {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-md);
}

.article__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.article__byline strong {
  display: block;
  font-size: var(--fs-sm);
}

.article__byline span {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.article__progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.article__body section + section {
  margin-top: var(--sp-7);
}

.article__h2 {
  font-size: var(--fs-xl);
  letter-spacing: var(--tr-snug);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.article__body p {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.78;
}

.article__cta {
  margin-top: var(--sp-9);
  padding: var(--sp-7);
  text-align: center;
}

.article__cta-title {
  font-size: var(--fs-lg);
}

.article__cta p {
  margin: var(--sp-3) auto var(--sp-5);
  color: var(--text-2);
  font-size: var(--fs-sm);
  max-width: 52ch;
}

/* ==========================================================================
   404
   ========================================================================== */

.error {
  position: relative;
  z-index: 2;
}

.error__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error__title {
  margin-top: var(--sp-4);
  font-size: var(--fs-2xl);
}

.error__lede {
  margin: var(--sp-4) auto 0;
  color: var(--text-2);
  font-size: var(--fs-md);
  max-width: 54ch;
}

.error .hero__actions {
  justify-content: center;
}

.error__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

.error__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  color: var(--text-2);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out);
}

.error__links a:hover {
  border-color: var(--accent-line);
  color: var(--text);
  transform: translateY(-2px);
}

.error__links svg {
  color: var(--accent);
}

/* ==========================================================================
   14  Footer
   ========================================================================== */

.site-footer {
  position: relative;
  margin-top: var(--sp-6);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--line);
  background: var(--surface-1);
  overflow: clip;
}

[data-theme='light'] .site-footer {
  --ink: #060b18;
  --surface-1: #060b18;
  --surface-2: #0c1327;
  --surface-3: #111a34;
  --text: #e9edf9;
  --text-2: #b3bdd6;
  --text-3: #8391b0;
  --line: rgb(255 255 255 / 0.085);
  --line-2: rgb(255 255 255 / 0.14);
  --glass-bg: rgb(255 255 255 / 0.045);
  --glass-line: rgb(255 255 255 / 0.10);
  --accent: hsl(var(--accent-h) 88% 64%);
  --accent-bright: hsl(var(--accent-h) 95% 72%);
  /* See the note in tokens.css: accent *text* in light theme uses --accent-deep,
     so it has to be brightened for this always-dark surface. */
  --accent-deep: hsl(var(--accent-h) 95% 72%);
  --accent-soft: hsl(var(--accent-h) 88% 64% / 0.14);
  color: var(--text);
  color-scheme: dark;
}

.site-footer__glow {
  position: absolute;
  inset: -60% 0 auto;
  height: 34rem;
  background: radial-gradient(50rem 20rem at 50% 100%, hsl(var(--brand-h) 92% 56% / 0.2), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

/* One explicit five-track grid: brand, three link columns, offices.
   Previously the link columns lived in a nested `auto-fit` grid, which could
   only fit three tracks at this width and pushed Offices onto a second row,
   leaving a large empty gap beside it. Explicit tracks keep every column on one
   row and give Offices the extra width its addresses need. */
.footer__top {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    repeat(3, minmax(0, 0.85fr))
    minmax(0, 1.3fr);
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: var(--sp-9);
  align-items: start;
}

.footer__pitch {
  margin-top: var(--sp-4);
  color: var(--text-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 42ch;
}

.footer__heading {
  margin-bottom: var(--sp-4);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--tr-wide);
  text-transform: uppercase;
}

.footer__list {
  display: grid;
  gap: 0.6rem;
}

.footer__list a {
  color: var(--text-3);
  font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer__list a:hover {
  color: var(--brand-3);
  padding-left: 4px;
}

.footer__office + .footer__office {
  margin-top: var(--sp-5);
}

/* Stacked rather than inline: side by side, "United States" and its
   "Global Headquarters" descriptor both wrapped mid-phrase in a narrow column. */
.footer__office-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.footer__office-country {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.footer__office-label em {
  color: var(--text-3);
  font-style: normal;
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__address {
  margin-top: 0.4rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
  line-height: 1.7;
}

.footer__office-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
}

.footer__office-phone:hover {
  color: var(--brand-3);
}

.footer__office-phone svg {
  color: var(--brand-3);
}

/* Newsletter */
.newsletter {
  margin-top: var(--sp-6);
}

.newsletter__label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter__input {
  flex: 1 1 190px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.newsletter__input::placeholder {
  color: var(--text-3);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px hsl(var(--brand-h) 92% 60% / 0.16);
}

.newsletter__note {
  margin-top: 0.5rem;
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.newsletter__note.is-ok {
  color: var(--ok);
}

.newsletter__note.is-err {
  color: var(--err);
}

.footer__socials {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-6);
}

.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  color: var(--text-3);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}

.social:hover {
  color: #fff;
  border-color: transparent;
  background: var(--grad-cta);
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}

.footer__copy {
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
}

.footer__legal a {
  color: var(--text-3);
  font-size: var(--fs-xs);
  transition: color var(--dur) var(--ease);
}

.footer__legal a:hover {
  color: var(--brand-3);
}

/* ==========================================================================
   15  Preloader & back-to-top
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 480ms var(--ease), visibility 480ms;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__inner {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  color: var(--brand);
}

.preloader__word {
  width: 150px;
}

.preloader__bar {
  width: 132px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}

.preloader__bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 220ms var(--ease);
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-sticky);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-spring),
    visibility var(--dur), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  color: var(--brand-3);
  border-color: var(--brand-3);
}

/* ==========================================================================
   16  Responsive overrides
   ========================================================================== */

@media (max-width: 1180px) {
  .mega__inner {
    grid-template-columns: 1fr;
  }

  .mega__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Five tracks get too narrow here â€” drop the brand onto its own row. */
  .footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  /* Swap desktop nav for the drawer. */
  .nav,
  .site-header__cta {
    display: none;
  }

  .icon-btn--menu {
    display: grid;
  }

  .hero--home .hero__inner,
  .hero__inner--page,
  .overview,
  .intro,
  .prod-split,
  .presence,
  .compliance,
  .cta,
  .intern,
  .feature-post {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Footer: brand spans the full width, then link columns and offices sit
     two-up beneath it. */
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .hero__visual {
    order: -1;
    max-width: 340px;
    margin-inline: auto;
  }

  .hero__metrics {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .cta__actions {
    align-items: flex-start;
  }

  .feature-post__visual {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .mega__cols {
    grid-template-columns: 1fr;
  }

  .pair {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-3);
  }

  .pair__arrow {
    transform: rotate(90deg);
    justify-self: start;
    margin-left: var(--sp-2);
  }

  .job {
    grid-template-columns: minmax(0, 1fr);
  }

  .job__action {
    justify-self: start;
  }

  .case__results,
  .card__metrics {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .timeline,
  .story {
    padding-left: 44px;
  }

  .timeline__spine {
    left: 15px;
  }

  .timeline__marker,
  .story__year {
    left: -44px;
    width: 32px;
    height: 32px;
    font-size: 0.5rem;
  }

  .quote {
    flex-basis: 90%;
    padding: var(--sp-5);
  }

  .office__meta > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .tabs__list {
    width: 100%;
    flex-direction: column;
    border-radius: var(--r-md);
  }

  .tabs__tab {
    justify-content: center;
    border-radius: var(--r-sm);
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 560px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }
}

@media (max-width: 460px) {
  .cards,
  .cards--2,
  .cards--3,
  .cards--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn--lg {
    --btn-px: 1.25rem;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------- print */

@media print {
  .site-header,
  .site-footer,
  .drawer,
  .preloader,
  .to-top,
  .hero__particles,
  .mesh,
  .grid-lines,
  .marquee {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass,
  .card {
    border: 1px solid #ccc;
    background: none;
    box-shadow: none;
  }
}
