/* ==========================================================================
   FLiAI static site stylesheet
   Palette: FAA71B / 2B3990 / 00A651 / 0095DA  ·  Light theme only
   ========================================================================== */

/* ---------- 1. Font ---------- */
@font-face {
  font-family: 'Agrandir';
  src: url('../fonts/agrandir.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  /* brand */
  --amber: #FAA71B;
  --indigo: #2B3990;
  --green: #00A651;
  --blue: #0095DA;

  /* derived surface + text */
  --ink: #131A38;
  --ink-2: #3D456B;
  --muted: #626A8C;
  --bg: #FFFFFF;
  --surface: #F6F7FB;
  --surface-2: #EFF1F8;
  --line: #E3E6F1;
  --line-strong: #CFD4E6;

  /* type */
  --display: 'Agrandir', 'Segoe UI', system-ui, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --wrap: 1160px;
  --gap: 24px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(19, 26, 56, .05);
  --shadow: 0 10px 30px -14px rgba(19, 26, 56, .18);
  --shadow-lg: 0 26px 60px -26px rgba(19, 26, 56, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
/* Page tint.
   Painted on <body> rather than inside a section, for two reasons:
   a blurred child would be sliced flat by overflow: hidden, and a
   section-scoped background would end in a visible line at the section
   boundary. On <body> it flows behind the translucent header and fades
   out on its own radius, so there is no edge anywhere. */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 760px at 94% -60px, rgba(0, 149, 218, .20), transparent 62%),
    radial-gradient(760px 620px at -4% 800px, rgba(250, 167, 27, .17), transparent 60%),
    radial-gradient(620px 520px at 74% 700px, rgba(0, 166, 81, .06), transparent 64%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: rgba(43, 57, 144, .14); }

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 52px 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--indigo);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

/* ---------- 5. Typography ---------- */
.display,
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 {
  font-size: 1.13rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.lead {
  font-size: clamp(1.02rem, 1.9vw, 1.19rem);
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 62ch;
}
p { color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xsmall { font-size: .78rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .715rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head .lead { margin-top: 14px; }
.section-head.center .lead { margin-inline: auto; }

.grad {
  background: linear-gradient(96deg, var(--indigo) 0%, var(--blue) 52%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:hover svg.arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(43, 57, 144, .75);
}
.btn-primary:hover { background: #232E78; box-shadow: 0 16px 30px -12px rgba(43, 57, 144, .6); }

.btn-amber {
  background: var(--amber);
  color: #2A1C00;
  box-shadow: 0 10px 24px -12px rgba(250, 167, 27, .8);
}
.btn-amber:hover { background: #F09A08; }

.btn-ghost {
  background: #fff;
  color: var(--indigo);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--indigo); background: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--indigo);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px -18px rgba(19, 26, 56, .5);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: auto; }
.brand-text {
  font-family: var(--display);
  font-size: 1.14rem;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--indigo); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--indigo); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}
.nav-cta { margin-left: 8px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
/* close button, in-menu CTA and contact row belong to the mobile overlay only */
.nav-links .nav-cta-mobile,
.nav-links .nav-drawer-foot,
.nav-links .nav-close-row { display: none; }
/* the .nav-links a rule above must not repaint the drawer button */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
  background: var(--indigo);
}
.nav-links a.btn-primary:hover { background: #232E78; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), top .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 76px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(43, 57, 144, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 57, 144, .055) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 32%, #000 35%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.pill b {
  background: var(--indigo);
  color: #fff;
  border-radius: 100px;
  padding: 3px 9px;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, .18);
}

/* logo stroke draw */
.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px;
}
.hero-mark::after {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 149, 218, .13), transparent 68%);
  filter: blur(8px);
  z-index: -1;
}
.logo-draw { width: min(100%, 400px); height: auto; }
.logo-draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 3.4s var(--ease) forwards;
  vector-effect: non-scaling-stroke;
  stroke-width: 3.4px;
}
.logo-draw path:nth-child(2) { animation-delay: .35s; }
.logo-draw path:nth-child(3) { animation-delay: .6s; }
@keyframes draw {
  0%   { stroke-dashoffset: 1; }
  70%  { stroke-dashoffset: 0; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; fill-opacity: 1; }
}
.logo-draw .fill-indigo { fill: var(--indigo); }
.logo-draw .fill-blue { fill: var(--blue); }

/* metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 46px;
}
.metric { background: #fff; padding: 22px 20px; }
.metric .num {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--indigo);
}
.metric .num.c-amber { color: var(--amber); }
.metric .num.c-green { color: var(--green); }
.metric .num.c-blue { color: var(--blue); }
.metric .lbl {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- 9. Cards & grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent, var(--indigo));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; }
.card--flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent, var(--indigo)) 11%, #fff);
  color: var(--accent, var(--indigo));
  transition: transform .3s var(--ease);
}
.ico svg { width: 22px; height: 22px; }
.card:hover .ico { transform: scale(1.06) rotate(-3deg); }

.a-indigo { --accent: var(--indigo); }
.a-amber  { --accent: var(--amber); }
.a-green  { --accent: var(--green); }
.a-blue   { --accent: var(--blue); }

/* number chip */
.numchip {
  font-family: var(--display);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px 11px;
}

/* checklist */
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: .93rem;
  color: var(--ink-2);
  margin-bottom: 10px;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--green)) 15%, #fff);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--accent, var(--green));
  border-bottom: 1.8px solid var(--accent, var(--green));
  transform: rotate(-45deg);
}

/* arrow list */
.arrows li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.arrows li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-top: 1.7px solid var(--accent, var(--blue));
  border-right: 1.7px solid var(--accent, var(--blue));
  transform: rotate(45deg);
}

/* tag chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.tag:hover {
  border-color: color-mix(in srgb, var(--accent, var(--indigo)) 45%, #fff);
  color: var(--accent, var(--indigo));
  background: #fff;
}

/* ---------- 10. Split feature rows (services) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 52px;
  align-items: center;
}
.split + .split { margin-top: 78px; padding-top: 78px; border-top: 1px solid var(--line); }
.split--rev .split-media { order: -1; }

.split-media {
  position: relative;
  min-height: 300px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(19, 26, 56, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(19, 26, 56, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent, var(--indigo)) 16%, transparent), transparent 66%);
}
.split-glyph {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--accent, var(--indigo));
  transition: transform .45s var(--ease);
}
.split-glyph svg { width: 50px; height: 50px; stroke-width: 1.3; }
.split-media:hover .split-glyph { transform: translateY(-5px) scale(1.03); }
.chip-float {
  position: absolute;
  padding: 7px 13px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .74rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-float.p1 { top: 30px; left: 26px; }
.chip-float.p2 { bottom: 34px; right: 26px; }
.chip-float.p3 { bottom: 84px; left: 34px; }

.service-title-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.service-title-row .ico { margin-bottom: 0; }
.service-sub {
  color: var(--accent, var(--indigo));
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 12px;
}
.split h2 { font-size: clamp(1.6rem, 3.1vw, 2.1rem); }
.two-col-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 24px; }
.list-head {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ---------- 11. Process ---------- */
.steps { position: relative; }
.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  padding-bottom: 34px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 66px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent, var(--indigo));
  font-family: var(--display);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.step:hover .step-num {
  border-color: color-mix(in srgb, var(--accent, var(--indigo)) 40%, #fff);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.step-body { padding-top: 6px; }
.step-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent, var(--indigo)) 10%, #fff);
  color: var(--accent, var(--indigo));
  border: 1px solid color-mix(in srgb, var(--accent, var(--indigo)) 22%, #fff);
}
.badge svg { width: 13px; height: 13px; }

/* ---------- 12. Careers ---------- */
.job {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.job + .job { margin-top: 28px; }
.job-head {
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--indigo)) 5%, #fff), #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.job-head h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.job-body { padding: 30px 32px; }
.job-body + .job-body { border-top: 1px solid var(--line); }
.job-quote {
  border-left: 3px solid var(--accent, var(--amber));
  padding: 4px 0 4px 18px;
  color: var(--ink-2);
  font-size: 1rem;
  margin-bottom: 26px;
}
.subhead {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 14px;
}
.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--amber) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, #fff);
  margin-top: 22px;
}
.notice svg { width: 20px; height: 20px; color: #B87600; flex: none; margin-top: 2px; }
.notice p { font-size: .92rem; color: #7A5100; }
.notice strong { color: #5C3D00; }

.apply-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 30px 32px;
}
.apply-steps { counter-reset: s; }
.apply-steps li {
  counter-increment: s;
  position: relative;
  padding-left: 42px;
  margin-bottom: 16px;
  color: var(--ink-2);
  font-size: .95rem;
}
.apply-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--indigo);
  font-family: var(--display);
  font-size: .78rem;
}
.apply-steps strong { color: var(--ink); font-weight: 650; }

/* ---------- 13. Contact ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent, var(--indigo)) 38%, #fff);
  box-shadow: var(--shadow);
}
.contact-card .ico { margin-bottom: 0; width: 42px; height: 42px; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card .lbl {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-card .val { font-weight: 600; color: var(--ink); word-break: break-word; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  padding: 54px 44px;
  overflow: hidden;
  background:
    radial-gradient(560px 460px at 88% 128%, rgba(250, 167, 27, .40), transparent 62%),
    linear-gradient(122deg, #232E78 0%, var(--indigo) 42%, #1D6FA8 100%);
  color: #fff;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 72%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 14px auto 26px; max-width: 54ch; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 56px 0 26px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-brand p { font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: .92rem;
  color: var(--ink-2);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-col a:hover { color: var(--indigo); padding-left: 3px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--indigo); font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { color: var(--indigo); border-color: var(--indigo); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------- 16. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 62px 0 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #fff);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(43, 57, 144, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 57, 144, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lead { margin-top: 18px; }
.crumb {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--indigo); font-weight: 600; }
.crumb span { padding: 0 7px; }

/* ---------- 17. Misc blocks ---------- */
.quote-block {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  padding: 34px;
  position: relative;
}
.quote-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  right: 34px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--amber), var(--indigo), var(--green), var(--blue));
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.tech-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.tech-group h3 svg { width: 19px; height: 19px; color: var(--accent, var(--indigo)); }

/* ---------- 18. Scroll reveal ----------
   Scoped to .js so content stays visible if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-mark { order: -1; max-width: 320px; margin-inline: auto; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 30px; }
  .split--rev .split-media { order: 0; }
  .split + .split { margin-top: 54px; padding-top: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {

  /* ---- full-screen navigation overlay ---- */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 55;
    height: 100vh;
    height: 100dvh;
    counter-reset: navitem;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 96px 26px max(34px, env(safe-area-inset-bottom));
    background-color: #fff;
    /* same reasoning as the hero: gradients, not blurred children */
    background-image:
      linear-gradient(to right, rgba(43, 57, 144, .05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(43, 57, 144, .05) 1px, transparent 1px),
      radial-gradient(460px 420px at 108% -6%, rgba(0, 149, 218, .18), transparent 64%),
      radial-gradient(420px 380px at -8% 104%, rgba(250, 167, 27, .18), transparent 62%);
    background-size: 58px 58px, 58px 58px, auto, auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity .32s var(--ease), visibility .32s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }

  .nav-links > li {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
  }

  /* explicit close control, pinned inside the overlay */
  .nav-links .nav-close-row {
    display: block;
    position: absolute;
    top: 14px;
    right: 22px;
    border-bottom: 0;
    opacity: 1;
    transform: none;
    animation: none;
    z-index: 3;
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 13px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  }
  .nav-close svg { width: 16px; height: 16px; }
  .nav-close:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }
  .nav-links.open > li { animation: navItemIn .5s var(--ease) forwards; }
  .nav-links.open > li:nth-child(1) { animation-delay: .06s; }
  .nav-links.open > li:nth-child(2) { animation-delay: .11s; }
  .nav-links.open > li:nth-child(3) { animation-delay: .16s; }
  .nav-links.open > li:nth-child(4) { animation-delay: .21s; }
  .nav-links.open > li:nth-child(5) { animation-delay: .26s; }
  .nav-links.open > li:nth-child(6) { animation-delay: .32s; }
  .nav-links.open > li:nth-child(7) { animation-delay: .38s; }
  @keyframes navItemIn { to { opacity: 1; transform: none; } }

  .nav-links > li > a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 19px 2px;
    border-radius: 0;
    background: none;
    font-family: var(--display);
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1;
    color: var(--ink);
    transition: color .25s var(--ease), padding-left .25s var(--ease);
  }
  .nav-links > li:not(.nav-drawer-foot):not(.nav-cta-mobile) > a::before {
    counter-increment: navitem;
    content: counter(navitem, decimal-leading-zero);
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--muted);
    min-width: 26px;
  }
  .nav-links > li > a:hover,
  .nav-links > li > a:active { color: var(--indigo); padding-left: 6px; background: none; }
  .nav-links a[aria-current="page"] { color: var(--indigo); background: none; }
  .nav-links a[aria-current="page"]::after {
    content: "";
    position: static;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    align-self: center;
  }

  /* CTA + contact block inside the overlay */
  .nav-links .nav-cta-mobile { display: block; border-bottom: 0; }
  .nav-links .btn { margin-top: 30px; width: 100%; }
  .nav-links > li > a.btn::before { content: none; }
  .nav-links .nav-drawer-foot {
    display: flex;
    border-bottom: 0;
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 8px 22px;
  }
  .nav-links .nav-drawer-foot > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-family: var(--sans);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink-2);
    background: none;
  }
  .nav-links .nav-drawer-foot > a:hover { color: var(--indigo); background: none; padding-left: 0; }
  .nav-links .nav-drawer-foot svg { width: 16px; height: 16px; color: var(--indigo); flex: none; }

  /* brand + close button stay above the overlay */
  .site-header .brand,
  .nav-toggle { position: relative; z-index: 56; }
  body.nav-open .site-header {
    background: #fff;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  /* the overlay owns its own Close control, so the hamburger steps aside */
  body.nav-open .nav-toggle { display: none; }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 58px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col-lists { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 48px 0; }
  .card { padding: 22px; }
  .cta-band { padding: 40px 22px; border-radius: 22px; }
  .job-head, .job-body, .apply-box { padding: 24px 20px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-num { width: 54px; height: 54px; border-radius: 16px; font-size: 1rem; }
  .step::before { left: 27px; top: 50px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav-toggle { width: 40px; height: 40px; }
  .split-media { min-height: 240px; }
  .chip-float { display: none; }
}

/* ---------- 20. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .logo-draw path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero-grid-bg { display: none !important; }
  .hero { background: none; }
  body { color: #000; }
  .card, .job { break-inside: avoid; border-color: #ccc; }
}
