/* ─────────────────────────────────────────────────────────────
   Quadion — Brand-compliant styles
   Type: Open Sans (400 / 600 / 700 / 800)
   Palette: Teal #007297 · Black #010101 · Gray #838383
            Light gray #f5f6f6 · Amber #f99d1c (accent only)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --teal: #007297;
  --teal-deep: #00536e;          /* darker for dark sections */
  --teal-light: #e6f1f5;         /* tint for soft fills */
  --black: #010101;
  --gray: #838383;
  --gray-line: #d8dbdd;
  --gray-soft: #ebedee;
  --light-gray: #f5f6f6;
  --amber: #f99d1c;
  --white: #ffffff;

  /* Tokens */
  --primary: var(--teal);
  --primary-deep: var(--teal-deep);
  --primary-soft: var(--light-gray);
  --accent: var(--amber);
  --bg: var(--white);
  --bg-2: var(--light-gray);
  --fg: var(--black);
  --fg-soft: var(--gray);
  --line: var(--gray-line);
  --line-strong: #c5c8ca;
  --on-primary: var(--white);

  --radius: 12px;
  --radius-lg: 20px;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --display: "Open Sans", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --label: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--teal); color: var(--white); }

/* Typographic primitives — brand: SemiBold for labels/captions */
.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700; /* Bold for H2/H3 */
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  color: var(--black);
}
h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; } /* ExtraBold */

/* Brand-friendly emphasis: teal-colored highlight inside heading */
.serif-em,
h1 em, h2 em, h3 em {
  color: var(--teal);
  font-style: normal;
  font-weight: inherit;
}

.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons — unified 40px height across the site */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-deep); box-shadow: 0 4px 18px rgba(0, 114, 151, .25); }
.btn--ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--teal); background: var(--teal); color: var(--white); }
.btn--on-dark.btn--primary {
  background: var(--white);
  color: var(--teal-deep);
}
.btn--on-dark.btn--primary:hover { background: var(--amber); color: var(--black); }
.btn--on-dark.btn--ghost {
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn--on-dark.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ─── Top Navigation ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in srgb, var(--white) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--gray-line); }
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img { height: 28px; width: auto; display: block; }
.nav__links {
  display: flex; align-items: center; gap: 30px;
  font-size: 15px;
  font-weight: 600;
}
.nav__links a {
  color: var(--black);
  transition: color .2s;
  position: relative;
}
.nav__links a:hover { color: var(--teal); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
/* ─── Mobile navigation ────────────────────────────────── */
.nav__burger {
  display: none;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}
.nav__burger:hover { border-color: var(--teal); color: var(--teal); }
.nav__burger:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.nav__drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: min(310px, 84vw);
  z-index: 320;
  background: var(--white);
  border-right: 1px solid var(--gray-line);
  box-shadow: 24px 0 60px rgba(1,1,1,.18);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform .32s cubic-bezier(.22,.61,.36,1), visibility 0s linear .32s;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 28px;
  gap: 6px;
  overflow-y: auto;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .32s cubic-bezier(.22,.61,.36,1), visibility 0s; }
.nav__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.nav__drawer-head img { height: 24px; width: auto; display: block; }
.nav__drawer-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  background: transparent;
  color: var(--black);
  cursor: pointer;
}
.nav__drawer a {
  padding: 14px 2px;
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  border-bottom: 1px solid var(--gray-line);
}
.nav__drawer a:hover { color: var(--teal); }
.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 310;
  background: rgba(1,1,1,.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nav__scrim.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 840px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__inner { gap: 12px; padding-inline: 18px; }
  .brand { margin-right: auto; }
  .brand img { height: 20px !important; }
  .nav__cta .btn { height: 34px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 360px) {
  .brand img { height: 18px !important; }
  .nav__cta .btn { padding: 0 10px; font-size: 12px; }
}

/* ─── Hero (Teal dominant per brand: dark bg = teal) ────── */
.hero {
  position: relative;
  background: var(--teal);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 25%, rgba(255,255,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 10% 90%, color-mix(in srgb, var(--amber) 18%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 80%);
}
.hero__dots {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.6;
  background-image: radial-gradient(rgba(255,255,255,0.2) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse 60% 50% at 82% 28%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 82% 28%, black 0%, transparent 60%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 11vw, 150px) var(--pad) clamp(56px, 8vw, 96px);
  max-width: var(--max);
  margin: 0 auto;
}
.hero__eyebrow {
  color: rgba(255,255,255,0.75);
}
.hero__eyebrow::before { background: var(--amber); }

.hero__title {
  font-family: var(--display);
  font-weight: 800; /* ExtraBold for H1 */
  font-size: clamp(44px, 7.4vw, 104px);
  margin-top: 28px;
  max-width: 18ch;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero__title em {
  font-style: normal;
  color: var(--amber);
}
.hero__sub {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}
.hero__trust .dot {
  width: 4px; height: 4px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
}
.hero__trust span {
  display: inline-flex; align-items: center; gap: 14px;
}

/* ── Hero stats (unified trust + meta) ─────────────────── */
.hero__stats {
  margin-top: 56px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding: 28px 0 24px;
}
.hero__stat-rule {
  flex: 0 0 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.14);
}
.hero__stat {
  flex: 0 1 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
}
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child { padding-right: 0; }
.hero__stat-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero__stat-value em {
  font-style: normal;
  color: var(--amber);
  font-weight: 800;
}
.hero__stat-label {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
@media (max-width: 900px) {
  .hero__stats { flex-wrap: wrap; row-gap: 28px; column-gap: 20px; }
  .hero__stat { flex: 1 1 38%; }
  .hero__stat-rule { display: none; }
}
@media (max-width: 520px) {
  .hero__stats { flex-direction: column; align-items: stretch; padding: 24px 0; row-gap: 0; }
  .hero__stat { flex: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero__stat:last-child { border-bottom: none; }
}

.hero__meta {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  gap: 24px;
}
.hero__meta-stats { display: flex; gap: 36px; }
.hero__meta strong {
  color: var(--white);
  font-weight: 700;
  margin-left: 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
}
@media (max-width: 720px) {
  .hero__meta-stats { display: none; }
}

/* ─── Logo strip ────────────────────────────────────────── */
.logos {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  padding: 52px 0;
}
.logos__head {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 32px;
}
.logos__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.logos__row > .logo {
  padding: 28px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--gray);
  filter: grayscale(1);
  opacity: 0.65;
  border-right: 1px solid var(--gray-line);
  transition: filter .35s ease, opacity .35s ease, color .35s ease, background .35s ease;
  text-align: center;
  min-height: 86px;
}
.logos__row > .logo:nth-child(6n) { border-right: none; }
.logos__row > .logo:nth-child(n+7) { border-top: 1px solid var(--gray-line); }
.logos__row > .logo:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--teal);
  background: var(--light-gray);
}
@media (max-width: 900px) {
  .logos__row { grid-template-columns: repeat(3, 1fr); }
  .logos__row > .logo:nth-child(6n) { border-right: 1px solid var(--gray-line); }
  .logos__row > .logo:nth-child(3n) { border-right: none; }
}

/* ─── Value props (light bg — white dominant) ───────────── */
.props__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}
.props__head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  margin-bottom: 0;
}
.props__head h2 em { color: var(--teal); font-style: normal; }
.props__head .lede {
  color: var(--gray);
  font-size: 18px;
  max-width: 50ch;
  margin-bottom: 0;
}
.props__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--black);
}
.prop {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background .3s;
}
.prop:last-child { border-right: none; }
.prop:hover { background: var(--light-gray); }
.prop__num {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.prop h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 16ch;
  color: var(--black);
}
.prop p {
  margin: 0;
  color: var(--black);
  font-size: 15.5px;
  line-height: 1.55;
}
.prop__icon {
  width: 38px; height: 38px;
  border: 1px solid var(--gray-line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  background: var(--white);
}
.prop:hover .prop__icon { border-color: var(--teal); color: var(--white); background: var(--teal); }
@media (max-width: 980px) {
  .props__head { grid-template-columns: 1fr; gap: 20px; }
  .props__grid { grid-template-columns: 1fr; }
  .prop { border-right: none; border-bottom: 1px solid var(--gray-line); }
  .prop:last-child { border-bottom: none; }
}

/* ─── Pillars (How we work — dark teal section) ─────────── */
.pillars {
  background: var(--teal);
  color: var(--white);
}
.pillars h2, .pillars h3 { color: var(--white); }
.pillars .eyebrow { color: rgba(255,255,255,0.75); }
.pillars__head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 80px;
}
.pillars__head h2 {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  max-width: 18ch;
  margin-bottom: 0;
}
.pillars__head h2 em {
  font-style: normal;
  color: var(--amber);
}
.pillars__head .lede {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 50ch;
  margin-bottom: 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.pillar {
  padding: 36px 28px 40px;
  border-right: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background .3s;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(255,255,255,0.06); }
.pillar__step {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.pillar__step .ring {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: grid; place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
}
.pillar h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.012em;
  max-width: 17ch;
}
.pillar p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 15.5px;
  line-height: 1.55;
}
@media (max-width: 980px) {
  .pillars__head { grid-template-columns: 1fr; gap: 20px; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(1), .pillar:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 600px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .pillar:last-child { border-bottom: none; }
}

/* ─── Services (light bg, teal/amber accents) ──────────── */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.services__head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
}
.services__head h2 em { font-style: normal; color: var(--teal); }
.services__head .all {
  justify-self: end;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-transform: uppercase;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.services__head .all:hover { color: var(--amber); border-bottom-color: var(--amber); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(1,1,1,.07); }
.svc--dark { background: var(--teal); color: var(--white); }
.svc--dark h3, .svc--dark p { color: var(--white); }
.svc--light { background: var(--light-gray); color: var(--black); border: 1px solid var(--gray-line); }
.svc--midnight { background: var(--black); color: var(--white); }
.svc--midnight h3, .svc--midnight p { color: var(--white); }
.svc__tag {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.85;
  align-self: flex-start;
}
.svc--dark .svc__tag, .svc--midnight .svc__tag { border-color: rgba(255,255,255,0.5); color: var(--amber); }
.svc--light .svc__tag { color: var(--teal); border-color: var(--teal); }
.svc__num {
  position: absolute;
  top: 32px;
  right: 32px;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.6;
  letter-spacing: 0.08em;
}
.svc h3 {
  font-size: clamp(26px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: auto;
  max-width: 14ch;
}
.svc p {
  margin: 18px 0 28px;
  font-size: 15.5px;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 38ch;
}
.svc__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1px solid currentColor;
  padding-top: 16px;
}
.svc--light .svc__link { color: var(--teal); }
.svc__link .arrow { transition: transform .25s; }
.svc:hover .svc__link .arrow { transform: translate(4px, -4px); }

@media (max-width: 980px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__head { grid-template-columns: 1fr; gap: 16px; }
  .services__head .all { justify-self: start; }
}

/* ─── Technologies (light gray section) ────────────────── */
.tech { background: var(--light-gray); border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line); }
.tech__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.tech__head h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
}
.tech__head h2 em { font-style: normal; color: var(--teal); }
.tech__head h2 { margin-bottom: 0; }
.tech__head .lede { color: var(--black); font-size: 17px; max-width: 48ch; margin-bottom: 0; }

.tech__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 2px solid var(--black);
}
.tech__col {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tech__col:last-child { border-right: none; }
.tech__col h4 {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}
.tech__col h4::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--amber);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.tech__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 8px 14px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  font-size: 14px;
  background: var(--white);
  font-weight: 600;
  color: var(--black);
  transition: background .2s, border-color .2s, color .2s;
}
.pill:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.tech__ai {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--black);
}
.tech__ai .serif-em { color: var(--teal); font-weight: 700; }
.tech__cloud-note {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--gray);
  padding: 8px 0;
  border-top: 1px dashed var(--gray-line);
  margin-top: 6px;
  font-style: italic;
}

@media (max-width: 1100px) {
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .tech__col { border-bottom: 1px solid var(--gray-line); }
  .tech__col:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .tech__grid { grid-template-columns: 1fr; }
  .tech__col { border-right: none; }
}

/* ─── Case studies ─────────────────────────────────────── */
.cases__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.cases__head h2 { font-size: clamp(36px, 4.5vw, 60px); font-weight: 700; }
.cases__head h2 em { font-style: normal; color: var(--teal); }
.cases__head .lede { color: var(--gray); font-size: 17px; max-width: 44ch; }

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s, box-shadow .35s;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(1,1,1,.12); }
.case__media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
}
.case__media--accent { background: var(--teal-deep); color: var(--white); }
.case__media--midnight { background: var(--black); color: var(--white); }
.case__media-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}
.case__media-pattern--grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 70%, black 30%, transparent 80%);
}
.case__media-pattern--dots {
  background-image: radial-gradient(rgba(255,255,255,0.22) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}
.case__media-pattern--waves {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 14px, transparent 14px 28px);
}
.case__media-label {
  position: absolute;
  top: 18px;
  left: 18px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  color: var(--white);
}
.case__media--accent .case__media-label { background: rgba(255,255,255,0.18); }
.case__media-title {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--white);
}
.case__media-title em { font-style: normal; color: var(--amber); }
.case__body {
  padding: 26px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.case__client {
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--black);
}
.case__result {
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--black);
  text-wrap: pretty;
  font-weight: 400;
}
.case__result strong { color: var(--teal); font-weight: 700; }
.case__link {
  margin-top: auto;
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 14px;
  border-top: 1px solid var(--gray-line);
}
.case:hover .case__link { color: var(--amber); }
.case__link .arrow { transition: transform .25s; }
.case:hover .case__link .arrow { transform: translate(3px, -3px); }
@media (max-width: 980px) {
  .cases__grid { grid-template-columns: 1fr; }
  .cases__head { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Testimonials (light gray section) ────────────────── */
.quotes { background: var(--light-gray); }
.quotes__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.quotes__head h2 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; }
.quotes__head h2 em { font-style: normal; color: var(--teal); }
.quotes__nav {
  justify-self: end;
  display: flex;
  gap: 10px;
}
.quotes__nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-line);
  background: var(--white);
  display: grid; place-items: center;
  color: var(--black);
  transition: all .2s;
}
.quotes__nav button:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.quotes__stage {
  position: relative;
  min-height: 340px;
}
.quote {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.quote.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.quote__mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 220px;
  line-height: 0.7;
  color: var(--teal);
  opacity: 0.18;
  margin-top: -10px;
}
.quote__body {
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--black);
  text-wrap: pretty;
  margin: 0;
  font-style: normal;
}
.quote__author {
  margin-top: 32px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  border-top: 1px solid var(--gray-line);
  padding-top: 18px;
}
.quote__author strong {
  display: block;
  text-transform: none;
  font-size: 17px;
  color: var(--black);
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 2px;
}
.quotes__dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  justify-content: center;
}
.quotes__dots button {
  width: 36px; height: 4px;
  border-radius: 2px;
  border: none;
  background: var(--gray-line);
  transition: background .2s, width .2s;
  padding: 0;
}
.quotes__dots button.is-active { background: var(--teal); width: 56px; }
@media (max-width: 900px) {
  .quotes__stage { display: grid; min-height: 0; }
  .quote { position: relative; inset: auto; grid-area: 1 / 1; }
  .quote__mark { display: none; }
  .quote > * { width: 100%; max-width: 100%; margin-left: 0; padding-left: 0; text-align: left; }
  .quote, .quote blockquote, .quote figcaption {
    margin-inline: 0;
    padding-inline: 0;
    max-width: 100%;
  }
  .quotes__head { grid-template-columns: 1fr; margin-bottom: 30px; }
  .quotes__nav { justify-self: start; }
  .quote { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Certifications ───────────────────────────────────── */
.certs__head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.certs__head h2 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; margin-bottom: 0; }
.certs__head h2 em { font-style: normal; color: var(--teal); }
.certs__head .lede { color: var(--gray); font-size: 17px; max-width: 50ch; margin-bottom: 0; }

/* ISO box — teal dominant (large area), amber as small accent only */
.iso {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
}
.iso__seal {
  background: var(--teal-deep);
  color: var(--white);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}
.iso__seal-stamp {
  width: 118px; height: 118px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--amber);
}
.iso__seal-stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(249,157,28,0.55);
  border-radius: 50%;
}
.iso__seal-cert {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.iso__seal-cert strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 800;
  line-height: 1;
  margin-top: 8px;
  color: var(--white);
}
.iso__body { padding: 44px 44px 40px; display: flex; flex-direction: column; gap: 20px; }
.iso__body h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  max-width: 22ch;
  color: var(--white);
}
.iso__body p {
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
.iso .eyebrow { color: rgba(255,255,255,0.75); }
@media (max-width: 820px) {
  .iso { grid-template-columns: 1fr; }
  .iso__seal { flex-direction: column; align-items: center; text-align: center; }
}

.badges {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.badge {
  padding: 22px 14px;
  border-right: 1px solid var(--gray-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--black);
  transition: color .25s, background .25s;
  min-height: 88px;
}
.badge:last-child { border-right: none; }
.badge:hover { color: var(--teal); background: var(--light-gray); }
.badge small {
  display: block;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.85;
}
@media (max-width: 980px) {
  .badges { grid-template-columns: repeat(3, 1fr); }
  .badge:nth-child(n) { border-bottom: 1px solid var(--gray-line); }
  .badge:nth-child(3n) { border-right: none; }
}

/* ─── CTA Section ──────────────────────────────────────── */
.cta-section {
  background: var(--teal);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 70% at 92% 50%, rgba(249,157,28,0.18), transparent 70%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
}
.cta-section__grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
}
.cta-section__inner {
  position: relative; z-index: 2;
  padding: clamp(80px, 11vw, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-section h2 {
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 800;
  max-width: 14ch;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.02;
}
.cta-section h2 em {
  font-style: normal;
  color: var(--amber);
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.5;
  max-width: 40ch;
  margin: 0 0 32px;
}
.cta-section .eyebrow { color: rgba(255,255,255,0.75); }
.cta-section__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.06);
}
.cta-section__panel-label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.cta-section__panel-stat {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.cta-section__panel-stat em {
  font-style: normal;
  color: var(--amber);
}
.cta-section__panel-sub {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
}
@media (max-width: 900px) {
  .cta-section__inner { grid-template-columns: 1fr; }
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { font-size: 14px; max-width: 32ch; line-height: 1.55; margin: 0; }
.footer__col h5 {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 16px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,0.85); font-size: 14.5px; font-weight: 400; transition: color .2s; }
.footer__col a:hover { color: var(--amber); }
.footer__base {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Section headers (eyebrows) */
.section-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.section-tag .num { font-weight: 700; letter-spacing: 0.06em; font-size: 13px; color: var(--black); }

/* Tweaks density variants */
.density-compact .section { padding: clamp(48px, 6vw, 88px) 0; }
.density-roomy .section { padding: clamp(96px, 12vw, 160px) 0; }

.badges--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .badges--6 { grid-template-columns: repeat(3, 1fr); } }
