/* ==========================================================================
   ResourcePad
   Theme sampled from the seven-circle logo:
   indigo #4337FF, purple #8300C4, blue #0074DE, sky #0090C8,
   teal #00A488, magenta #FE28A9, orange #FF914B.
   Type: Fraunces for display (soft, a little witty), Outfit for UI.
   Edit tokens here, then check a page in the browser.
   ========================================================================== */

:root {
  --indigo: #4337ff;
  --purple: #8300c4;
  --blue: #0074de;
  --sky: #0090c8;
  --teal: #00a488;
  --magenta: #fe28a9;
  --orange: #ff914b;
  --ink: #16142b;
  --ink-soft: #3a3850;
  --muted: #5e5c72;
  --line: #e4e0ee;
  --paper: #f6f5fb;
  --paper-2: #efeaf7;
  --white: #ffffff;
  --dark: #12101c;
  --header: 78px;
  --radius: 26px;
  --shadow: 0 18px 50px rgba(22, 20, 43, 0.08);
  --shadow-lg: 0 30px 70px rgba(22, 20, 43, 0.14);
  --font-display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --container: 1180px;
  --wide: 1240px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: #4337ff; color: white; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Author display rules must not override the hidden attribute. */
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

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

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

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

.section { padding: 92px 0; }

.section-tight { padding: 28px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head p { max-width: 42ch; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, var(--indigo), var(--magenta), var(--orange), var(--teal), var(--indigo));
  flex: none;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 5.15rem);
  font-weight: 560;
}

h1 em, .display em {
  font-style: italic;
  font-weight: 520;
  color: var(--purple);
}

h2 { font-size: clamp(2rem, 4vw, 3.35rem); }

h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 46ch;
  color: var(--ink-soft);
}

.muted { color: var(--muted); }

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

.btn {
  --btn-bg: var(--ink);
  --btn-fg: white;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn:hover .arrow { transform: translateX(4px); }

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

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

.btn-ink { --btn-bg: var(--ink); --btn-fg: white; }

.btn-ink:hover { background: #2a2348; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: #d9d4e6;
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { border-color: var(--ink); background: white; }

.btn-light { --btn-bg: white; --btn-fg: var(--ink); }

.btn-light:hover { background: #fff7fb; }

.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: -1;
}

.btn-ghost .ripple, .btn-light .ripple { background: rgba(131, 0, 196, 0.18); }

/* ==========================================================================
   Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: #0a0812;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  background: rgba(10, 8, 18, 0.96);
}

.header-inner {
  height: 100%;
  width: min(var(--wide), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand img {
  width: auto;
  height: 30px;
  max-width: min(220px, 52vw);
  display: block;
  border-radius: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover img { transform: scale(1.04); }

.site-footer .brand img {
  height: 42px;
  max-width: min(230px, 70vw);
}

.nav-desktop {
  margin-left: auto;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
}

.nav-list > li { display: flex; align-items: center; }

.nav-link, .sub-toggle {
  appearance: none;
  background: none;
  border: 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 9px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover, .sub-toggle:hover,
.nav-link[aria-current="page"], .sub-toggle[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.has-sub.is-open .caret { transform: rotate(180deg); }

.header-cta { flex: none; min-height: 42px; padding: 0 16px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
}

.burger, .burger::before, .burger::after {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
  position: absolute;
  left: 13px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger { top: 22px; }
.burger::before, .burger::after { content: ""; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }

/* Mega menus hang from the header so they can be wide without clipping. */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 16px 0;
}

.mega[hidden] { display: none; }

.mega-inner {
  width: min(980px, 100%);
  margin-inline: auto;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 20, 43, 0.05);
  padding: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.mega-industries .mega-inner { width: min(820px, 100%); }

.mega-intro h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 8px 0 8px;
}

.mega-intro p { color: var(--muted); font-size: 0.95rem; }

.mega-intro a {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}

.mega-intro a:hover { gap: 6px; }

.mega-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px;
}

.mega-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 8px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 520;
  padding: 7px 8px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.mega-link:hover { background: var(--paper); }

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent, var(--indigo));
  flex: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.mega-link:hover .swatch, .industry-link:hover .swatch { transform: scale(1.35); }

.industry-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.industry-link {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 16px;
  color: var(--ink);
}

.industry-link:hover { background: var(--paper); }

.industry-link strong { font-weight: 600; }

.industry-link > span:not(.swatch) {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
}

.industry-link .swatch {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.mobile-panel {
    position: fixed;
    /* inset: var(--header) 0 0 0; */
    background: rgba(246, 245, 251, 0.98);
    z-index: 99999;
    overflow: visible;
    padding: 12px 20px 40px;
    width: 100%;
}

.mobile-panel[hidden] { display: none; }

.mobile-panel a, .mobile-acc {
  display: flex;
  width: 100%;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 1.35rem;
  font-family: var(--font-display);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  letter-spacing: -0.03em;
}

.mobile-sub { padding: 6px 0 12px 8px; }

.mobile-sub[hidden] { display: none; }

.mobile-sub a {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 0;
  padding: 8px 0;
  color: var(--ink-soft);
}

.mobile-label {
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: 36px 0 20px;
  background:
    radial-gradient(520px 320px at 92% 0%, rgba(254, 40, 169, 0.16), transparent 70%),
    radial-gradient(480px 320px at 0% 80%, rgba(0, 164, 136, 0.14), transparent 70%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - var(--header) - 80px);
}

.hero h1 { max-width: 12ch; }

.hero .lede { margin-top: 18px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts strong { color: var(--ink); font-weight: 600; }

.hero-stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.stage-card {
  width: min(460px, 100%);
  aspect-ratio: 1 / 1.02;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 40%),
    radial-gradient(circle at 78% 28%, rgba(131, 0, 196, 0.22), transparent 48%),
    radial-gradient(circle at 18% 72%, rgba(67, 55, 255, 0.18), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(254, 40, 169, 0.12), transparent 42%),
    linear-gradient(160deg, #fff 0%, #f3eefe 45%, #ebe4f8 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.logo-3d {
  position: relative;
  width: min(70%, 300px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-24deg) translateZ(20px);
  display: grid;
  place-items: center;
}

.logo-3d-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 55, 255, 0.22), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(254, 40, 169, 0.16), transparent 55%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.logo-3d-mark {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  border-radius: 0;
  transform: translateZ(36px);
  filter:
    drop-shadow(0 18px 26px rgba(22, 20, 43, 0.22))
    drop-shadow(0 4px 0 rgba(22, 20, 43, 0.12))
    drop-shadow(-8px 12px 18px rgba(67, 55, 255, 0.2))
    drop-shadow(10px 14px 20px rgba(254, 40, 169, 0.16));
  image-rendering: auto;
}

.logo-3d-floor {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -8%;
  height: 18%;
  background: radial-gradient(ellipse at center, rgba(22, 20, 43, 0.22), transparent 70%);
  filter: blur(12px);
  z-index: 1;
  transform: rotateX(75deg) translateZ(-30px);
  pointer-events: none;
}

.sticker {
  position: absolute;
  right: 2%;
  bottom: 7%;
  margin: 0;
  rotate: -6deg;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  max-width: 230px;
  line-height: 1.3;
}

.sticker small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  border-block: 1px solid var(--line);
  background: white;
  overflow: hidden;
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  align-items: center;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.marquee-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--magenta));
  display: block;
}

/* ==========================================================================
   Home sections
   ========================================================================== */

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.intro-grid .lede { margin-top: 14px; }

.pull {
  background: var(--dark);
  color: #efeaf8;
  border-radius: 32px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.pull::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -40px;
  bottom: -50px;
  background: var(--magenta);
  opacity: 0.85;
}

.pull::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: 50px;
  bottom: 20px;
  background: var(--orange);
}

.pull p, .pull strong { position: relative; z-index: 1; }

.pull strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 540;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: white;
  margin-bottom: 12px;
}

.service-index { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 72px 1.1fr 1.4fr auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 18px 12px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row .num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--muted);
}

.service-row h3 { font-size: 1.55rem; }

.service-row p { color: var(--muted); }

.service-row .go {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-row:hover { color: var(--ink); }

.service-row:hover .go {
  background: var(--accent, var(--indigo));
  color: white;
  border-color: transparent;
  transform: rotate(-12deg) scale(1.05);
}

.service-row:hover { background: color-mix(in srgb, var(--accent, var(--purple)) 7%, white); }

.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--indigo)) 14%, white);
  color: var(--accent, var(--indigo));
}

.icon-bubble svg { width: 22px; height: 22px; }

.service-row:hover .icon-bubble { transform: rotate(-8deg) scale(1.06); transition: transform 0.3s ease; }

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

.industry-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 22px;
  border-radius: 28px;
  background: white;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent, var(--indigo));
}

.industry-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.industry-tile .kicker,
.country .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.industry-tile .kicker,
.country .kicker,
.badge,
.step .n,
.service-row:hover h3,
.partner:hover h3 {
  color: color-mix(in srgb, var(--accent, var(--purple)) 62%, #140018);
}

.industry-tile .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.industry-tile p { color: var(--muted); margin-top: auto; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1200px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 28px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 1px solid rgba(22, 20, 43, 0.04);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-card:hover { box-shadow: var(--shadow); }

.logo-plate {
  background: #f3f1f8;
  min-height: 168px;
  display: grid;
  place-items: center;
  padding: 28px 22px;
  position: relative;
}

.logo-plate[data-plate="dark"] { background: var(--dark); }

.logo-plate img {
  max-height: 78px;
  max-width: 78%;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .logo-plate img,
.partner:hover .logo-plate img { transform: scale(1.06); }

.logo-plate .corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent, var(--magenta));
  top: 14px;
  right: 14px;
}

.project-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.project-body h3 { font-size: 1.35rem; }

.project-body p { color: var(--muted); font-size: 0.98rem; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
}

.stats {
  background: var(--dark);
  color: #efeaf8;
  position: relative;
  overflow: hidden;
}

.stats .container { position: relative; z-index: 1; }

.stats-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-bg span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.9;
}

.stats-bg .a { width: 180px; height: 180px; background: var(--indigo); right: 8%; top: -40px; }
.stats-bg .b { width: 120px; height: 120px; background: var(--magenta); right: 4%; top: 80px; opacity: 0.85; }
.stats-bg .c { width: 90px; height: 90px; background: var(--orange); left: -20px; bottom: -20px; }
.stats-bg .d { width: 70px; height: 70px; background: var(--teal); left: 50px; bottom: 30px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent, white);
}

.stat span { display: block; margin-top: 8px; max-width: 18ch; color: #c9c4d8; }

.quote-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.quote {
  background: white;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.quote.featured { background: white; }

.quote q {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 520;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  quotes: none;
}

.quote footer { margin-top: auto; color: var(--muted); font-size: 0.95rem; }

.stars { color: var(--orange); letter-spacing: 2px; font-size: 0.95rem; }

.sample-flag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px dashed var(--purple);
  border-radius: 999px;
  padding: 4px 8px;
}

.cta-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  background: white;
  border-radius: 36px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--sky);
  opacity: 0.18;
  right: -40px;
  top: -50px;
}

.cta-copy h2 { margin: 8px 0 12px; }

.contact-points { margin-top: 18px; display: grid; gap: 6px; }

.contact-points a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

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

.lead-form { position: relative; z-index: 1; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field-wide { grid-column: 1 / -1; }

.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.req { color: var(--magenta); }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid #e0dbea;
  background: var(--paper);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9c2da; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(0, 116, 222, 0.35);
  border-color: var(--blue);
  background: white;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--magenta);
  background: #fff5fa;
}

.field-error { color: #b00058; font-size: 0.82rem; min-height: 0; }

.field-error:empty, .field-error[hidden] { display: none; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
}

.form-note { color: var(--muted); font-size: 0.88rem; flex: 1; min-width: 180px; }

.form-success, .form-fail {
  margin-top: 12px;
  border-radius: 18px;
  padding: 16px 18px;
}

.form-success {
  background: #e8faf4;
  color: #0c5b48;
}

.form-success strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 4px;
  color: #084437;
}

.form-fail { background: #fff1f6; color: #8d1248; }

.form-success[hidden], .form-fail[hidden] { display: none; }

/* ==========================================================================
   Interior pages
   ========================================================================== */

.page-hero {
  padding: 54px 0 20px;
  position: relative;
}

.page-hero.tint {
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--accent, var(--purple)) 22%, transparent), transparent 70%),
    var(--paper);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--ink); text-decoration: none; font-weight: 560; }

.breadcrumb a:hover { color: var(--purple); }

.page-hero h1 { max-width: 16ch; }

.deck { margin-top: 16px; max-width: 58ch; font-size: 1.15rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  align-items: start;
}

.prose { display: grid; gap: 14px; max-width: 68ch; }

.prose a { color: var(--purple); }

.steps { display: grid; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step .n {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.benefit-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.plain-card, .benefit {
  background: white;
  border-radius: 24px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plain-card:hover, .benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.benefit h3, .plain-card h3 { font-size: 1.3rem; margin-bottom: 8px; }

.plain-card p, .benefit p { color: var(--muted); }

.stack-list { display: grid; gap: 12px; }

.stack-list li {
  background: white;
  border-radius: 18px;
  padding: 16px 16px 16px 18px;
  border-left: 5px solid var(--accent, var(--teal));
}

.stack-list strong { color: var(--ink); display: block; margin-bottom: 4px; }

.related-note {
  background: white;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--muted);
  margin-bottom: 14px;
  border: 1px dashed #d5d0e4;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 560;
  font-size: 0.9rem;
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.filter-live { min-height: 1.4em; color: var(--muted); margin-bottom: 10px; }

.empty-filter {
  grid-column: 1 / -1;
  padding: 28px;
  background: white;
  border-radius: 20px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

a.tag { text-decoration: none; }
a.tag:hover { background: var(--ink); color: white; }

.case-hero {
  padding: 42px 0 10px;
}

.case-hero-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center;
  background: white;
  border-radius: 36px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.case-hero-card .logo-plate { border-radius: 24px; min-height: 200px; }

.case-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: start;
}

.case-rail {
  position: sticky;
  top: calc(var(--header) + 18px);
  display: grid;
  gap: 14px;
  background: white;
  border-radius: 24px;
  padding: 18px;
}

.case-rail dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-rail dd { margin: 0 0 10px; color: var(--ink); font-weight: 560; }

.case-block { margin-bottom: 28px; }

.case-block h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 10px; }

.feature-list { display: grid; gap: 8px; margin-top: 8px; }

.feature-list li {
  padding-left: 18px;
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--teal));
  position: absolute;
  left: 0;
  top: 0.55em;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.result {
  background: white;
  border-radius: 20px;
  padding: 16px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.country {
  background: white;
  border-radius: 24px;
  padding: 18px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease;
}

.country:hover { transform: translateY(-5px); }

.country .flag-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 14px 10px 0 color-mix(in srgb, var(--accent) 35%, white);
}

.values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.partner {
  display: grid;
  grid-template-columns: 72px minmax(180px, 280px) 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.partner:last-child { border-bottom: 1px solid var(--line); }

.partner .idx {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent, var(--purple));
}

.partner .logo-plate {
  min-height: 120px;
  border-radius: 20px;
}

.partner h3 { font-size: 1.6rem; margin-bottom: 4px; }

.badge {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partner .out {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.partner:hover .out {
  background: var(--ink);
  color: white;
  transform: rotate(-12deg);
}

.partner:hover { background: color-mix(in srgb, var(--accent, var(--purple)) 6%, transparent); }

.slider { position: relative; }

.slider-viewport { overflow: hidden; border-radius: 28px; }

.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide { min-width: 100%; }

.review-card {
  background: white;
  border-radius: 28px;
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  quotes: none;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.slider-controls button:hover { border-color: var(--ink); }

.dots { display: flex; gap: 6px; margin-right: auto; }

.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d5d0e2;
  cursor: pointer;
}

.dots button[aria-current="true"] { background: var(--magenta); transform: scale(1.2); }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.map-card {
  border-radius: 28px;
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(22, 20, 43, 0.04), rgba(22, 20, 43, 0.02)),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(0, 116, 222, 0.08) 38px, rgba(0, 116, 222, 0.08) 39px),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(131, 0, 196, 0.07) 38px, rgba(131, 0, 196, 0.07) 39px),
    #f4f7fb;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.pin {
  background: white;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: 260px;
  position: relative;
}

.pin::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: var(--magenta);
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%) rotate(-45deg);
}

.pin strong { color: var(--ink); display: block; }

.map-note { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }

.band {
  background: var(--dark);
  color: white;
  border-radius: 32px;
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

.band h2 { color: white; max-width: 14ch; }

.band p { color: #c9c4d8; max-width: 36ch; }

.band .orb {
  position: absolute;
  border-radius: 50%;
  right: 18%;
  top: -30px;
  width: 100px;
  height: 100px;
  background: var(--orange);
  opacity: 0.9;
}

.band .orb.two {
  width: 70px;
  height: 70px;
  right: 12%;
  top: 40px;
  background: var(--teal);
}

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

.site-footer {
  background: var(--dark);
  color: #c9c4d8;
  padding: 80px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.85fr) minmax(280px, 1.5fr) minmax(180px, 1fr);
  gap: 48px 40px;
  align-items: start;
}

.site-footer h2, .site-footer h3, .site-footer a.brand-name, .site-footer .brand-name { color: white; }

.site-footer a { color: #c9c4d8; text-decoration: none; }

.site-footer a:hover { color: white; }

.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  line-height: 1.65;
  color: #b7b1c8;
}

.footer-col { display: grid; align-content: start; gap: 12px; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9b96ad;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-col a {
  line-height: 1.45;
  font-size: 0.98rem;
}

.footer-services {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}

.footer-services h3 { margin-bottom: 8px; }

.footer-all-services {
  margin-top: 6px;
  color: white !important;
  font-weight: 600;
}

.footer-contact a {
  max-width: 28ch;
  line-height: 1.55;
}

.footer-base {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #9b96ad;
}

.footer-mark {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.footer-mark i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .mega { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .case-hero-card, .case-layout, .cta-band, .intro-grid, .quote-grid, .contact-layout { grid-template-columns: 1fr; }
  .case-rail { position: static; }
  .partner { grid-template-columns: 48px 1fr; }
  .partner .logo-plate { grid-column: 1 / -1; }
  .partner .out { display: none; }
}

@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 14ch; }
  .hero-stage { min-height: 380px; }
  .industry-grid, .project-grid, .benefit-grid, .card-grid, .stat-grid, .country-grid, .review-grid, .result-grid, .values {
    grid-template-columns: 1fr 1fr;
  }
  .service-row { grid-template-columns: 48px 1fr auto; }
  .service-row p { display: none; }
  .split, .contact-layout { grid-template-columns: 1fr; }
  .mega-inner, .mega-groups { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container, .container-wide, .header-inner { width: calc(100% - 28px); }
  .industry-grid, .project-grid, .benefit-grid, .card-grid, .stat-grid, .country-grid, .review-grid, .result-grid, .values, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sticker { position: static; rotate: -2deg; margin: 12px auto 0; }
  .hero-stage { min-height: 340px; }
  .cta-band, .band, .case-hero-card { padding: 18px; border-radius: 24px; }
  .page-hero h1 { max-width: none; }
}

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