/* ============================================
   ATDRATE — Site stylesheet
   ============================================ */

/* ---------- Design tokens ---------- */
:root {
  --blue: #1A3FE5;
  --blue-600: #1632C4;
  --blue-50: #EEF2FF;
  --navy: #0A1628;
  --navy-2: #0E1B33;
  --bg: #F4F6FA;
  --bg-2: #FFFFFF;
  --line: #E4E7EE;
  --line-2: #D8DCE5;
  --ink: #0F172A;
  --ink-2: #1F2937;
  --muted: #5B6478;
  --muted-2: #8A92A3;
  --good: #16A34A;
  --bad: #94A3B8;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .06);

  --container: 1200px;
  --gap: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: .95rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow--muted { color: var(--muted); }

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--navy); color: #E2E8F0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #B8C2D1; }
.section--alt { background: #fff; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tablet landscape: collapse 4-col to 2-col */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Tablet portrait: 3-col -> 2-col, reduce section padding */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}
/* Mobile: every grid is single-column */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: #F6F8FC; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #F6F8FC; }
.btn-ghost--dark { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost--dark:hover { background: rgba(255,255,255,.06); }
.btn-link { color: var(--blue); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 800; letter-spacing: .04em; color: var(--ink); font-size: 1rem;
  display: inline-flex; align-items: center;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 48px;
  width: auto;
  display: block;
}
.footer-brand .brand img { height: 56px; }

.nav-links {
  display: flex; gap: 36px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 10px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; gap: 14px;
  }
  .nav.open .nav-links a { padding: 8px 0; border-bottom: none; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 96px 0 110px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 18ch; margin-inline: auto; }
.hero .accent { color: #6379FF; }
.hero p { color: #B8C2D1; max-width: 62ch; margin: 18px auto 28px; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 12px; }
.card ul { padding-left: 18px; margin: 0; color: var(--muted); }
.card ul li { margin: 4px 0; }
.card .icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
  font-size: 18px;
}

/* Pillar accent stripe (services page) */
.pillar { position: relative; padding-left: 14px; }
.pillar::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 3px; background: var(--blue);
}
.pillar--green::before { background: #15A34A; }
.pillar--orange::before { background: #EA580C; }
.pillar--purple::before { background: #7C3AED; }

/* ---------- Approach (accordion) ---------- */
.approach { display: grid; grid-template-columns: 1.05fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .approach { grid-template-columns: 1fr; gap: 28px; } }
.steps { border-top: 1px solid var(--line); }
.step {
  border-bottom: 1px solid var(--line);
  padding: 22px 4px 22px 14px;
  display: grid; grid-template-columns: 60px 1fr; gap: 16px;
  cursor: pointer;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease-out);
}
.step.open::before { transform: scaleY(1); }
.step .num { color: var(--muted-2); font-variant-numeric: tabular-nums; font-size: .9rem; padding-top: 2px; transition: color .25s var(--ease-out); }
.step h3 { margin-bottom: 6px; color: var(--muted); transition: color .25s ease; }
.step .body { color: var(--muted); }
.step.open h3 { color: var(--ink); }
.step.open .num { color: var(--blue); }

/* ---------- Fit list (right fit) ---------- */
.fitlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fitlist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: #C7D0DE; }
.fitlist .check { color: #5DD39E; font-weight: 700; }
.fitlist .x { color: #94A3B8; font-weight: 700; }
.fit-icon { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.fit-icon.fit-check { color: #5DD39E; }
.fit-icon.fit-x { color: #94A3B8; }
.fit-divider { margin: 28px 0 18px; color: var(--muted-2); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Insights (case study) ---------- */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  color: inherit;
}
.case:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.case .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1E2A44, #0A1628);
  position: relative; overflow: hidden;
}
.case .thumb img { width: 100%; height: 100%; object-fit: cover; }
.case .body { padding: 22px 24px 24px; }
.case .label {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.case h3 { margin: 0 0 6px; font-size: 1.125rem; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: #ECEFF5;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
  margin-top: 32px;
}
.testimonial .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2A3E78, #0F1A36);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial p { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 8px; }
.testimonial cite { color: var(--blue); font-style: normal; font-size: .85rem; font-weight: 600; }

/* ---------- CTA ---------- */
.cta-band {
  background: #ECEFF5;
  text-align: center;
  padding: 72px 24px 80px;
  border-radius: 0;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 12px auto 26px; color: var(--muted); }

.cta-blue {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta-blue h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.cta-blue p { color: rgba(255,255,255,.85); margin: 0; max-width: 60ch; }
@media (max-width: 720px) { .cta-blue { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { display: inline-block; margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 36ch; }
.footer-col h4 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); font-size: .92rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted-2);
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: .88rem;
}
.tab:hover { border-color: var(--line-2); }
.tab.active { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }

.pillar-section { padding: 56px 0; border-top: 1px solid var(--line); }
.pillar-section .pillar-label {
  color: var(--muted-2);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 6px;
}
.pillar-section h2 { margin-bottom: 24px; }
.pillar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pillar-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.pillar-card .ico {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 8px;
}
.pillar-card h3 { font-size: 1rem; margin: 0 0 4px; }
.pillar-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.pillar-card .more {
  margin-top: 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); font-weight: 600;
}

/* engagement table */
.engage-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  font-size: .92rem;
}
.engage-table th, .engage-table td {
  text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.engage-table th {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: #FAFBFD; font-weight: 600;
}
.engage-table tr:last-child td { border-bottom: none; }
.engage-table td:first-child { font-weight: 600; color: var(--ink); }

/* ============================================
   INSIGHTS PAGE
   ============================================ */
.filterbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 18px;
  background: #ECEFF5; border-radius: 12px;
  margin-bottom: 28px;
}
.filterbar-left { display: flex; gap: 8px; flex-wrap: wrap; }
.filterbar .tab { background: transparent; border-color: transparent; }
.filterbar .tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 12px; min-width: 220px;
}
.search input { border: 0; outline: 0; background: transparent; font-size: .9rem; padding: 6px 0; width: 100%; }
.search svg { color: var(--muted-2); }

.insights-grid {
  display: grid; gap: 24px;
  grid-template-columns: 2fr 1fr;
}
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }
.insights-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Tablet: 3-col -> 2-col */
@media (max-width: 900px) { .insights-row { grid-template-columns: repeat(2, 1fr); } }
/* Mobile: 1-col */
@media (max-width: 640px) { .insights-row { grid-template-columns: 1fr; } }

.insight {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.insight:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.insight .thumb { aspect-ratio: 16/10; background: #0F1A36; overflow: hidden; }
.insight .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.insight .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.insight .label {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
}
.insight .label--muted { color: var(--muted); }
.insight h3 { font-size: 1.15rem; margin: 0; }
.insight p { font-size: .92rem; color: var(--muted); margin: 0; }
.insight .read { margin-top: auto; padding-top: 12px; color: var(--blue); font-weight: 600; font-size: .88rem; }

.feature-insight {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 760px) { .feature-insight { grid-template-columns: 1fr; } }
.feature-insight .thumb { background: #0F1A36; min-height: 280px; }
.feature-insight .body { padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.feature-insight .label { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.feature-insight h3 { margin: 0; }
.feature-insight p { color: var(--muted); margin: 0; }
.feature-insight .read { color: var(--blue); font-weight: 600; font-size: .88rem; }

.report-band {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin-top: 28px;
}
.report-band .eyebrow { color: #6379FF; }
.report-band h2 { color: #fff; max-width: 22ch; }
.report-band p { color: #B8C2D1; max-width: 60ch; margin: 0; }
@media (max-width: 760px) { .report-band { grid-template-columns: 1fr; } }

.newsletter {
  text-align: center; padding: 64px 24px;
}
.newsletter h2 { margin-bottom: 8px; }
.newsletter p { color: var(--muted); margin-bottom: 24px; }
.newsletter form {
  display: inline-flex; gap: 8px; max-width: 480px; width: 100%;
}
.newsletter input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 8px; font-family: inherit; font-size: .95rem;
}
.newsletter input:focus { outline: 0; border-color: var(--blue); }

/* ============================================
   APPLY PAGE
   ============================================ */
.apply-shell { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; }
@media (max-width: 980px) { .apply-shell { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label, .legend {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,63,229,.12);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.field .err { font-size: .8rem; color: #DC2626; display: none; }
.field.has-error .err { display: block; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .row-2 { grid-template-columns: 1fr; } }

fieldset.field { border: 0; padding: 0; margin: 0 0 22px; }
.checkgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
@media (max-width: 700px) { .checkgrid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-radius: 6px;
  cursor: pointer;
  font-size: .94rem;
}
.check input[type="checkbox"] {
  appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-2);
  border-radius: 4px; display: inline-block; position: relative; cursor: pointer;
  background: #fff;
}
.check input[type="checkbox"]:checked {
  background: var(--blue); border-color: var(--blue);
}
.check input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.form-foot { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; }
.form-foot p {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 0;
}

/* Sidebar cards */
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 22px;
}
.aside-card--blue {
  background: var(--blue);
  color: #fff; border-color: var(--blue);
}
.aside-card--blue .eyebrow { color: rgba(255,255,255,.8); }
.aside-card--blue h3 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }
.aside-card--blue .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600;
}
.aside-card--blue .pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #5DD39E;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  position: relative;
}
/* Single continuous dashed line that connects badge centers — sits behind
   the badges so each circle covers it cleanly. */
.steps-list::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  bottom: 14px;
  border-left: 1px dashed var(--line);
  z-index: 0;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0 0 22px;
  position: relative;
}
.steps-list li:last-child { padding-bottom: 0; }
.steps-list .badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .78rem;
  position: relative;
  z-index: 1;
}
.steps-list li > div {
  flex: 1;
  min-width: 0;
  padding-top: 5px; /* aligns title baseline with badge center */
}
.steps-list h4 {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.steps-list p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.aside-img {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #B8C2D1, #6B7280);
  background-image:
    linear-gradient(180deg, rgba(10,22,40,0) 50%, rgba(10,22,40,.35)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=900&q=80");
  background-size: cover; background-position: center;
}

/* ---------- Page header (non-hero) ---------- */
.page-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.page-head h1 { max-width: 22ch; }
.page-head .lead { margin-top: 14px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.hide-sm { display: initial; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* Visually hidden (screen-reader only) */
.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;
}

/* ============================================
   MOTION & MICRO-INTERACTIONS
   ============================================ */

/* ---- Easing tokens ---- */
:root {
  --ease-out: cubic-bezier(.2, .65, .3, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);
}

/* ---- Icon wrappers: ensure SVG centers and inherits color ---- */
.icon, .pillar-card .ico {
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.icon svg, .pillar-card .ico svg { display: block; }

/* ---- Card hover: lift + subtle blue tint + border + icon flip ---- */
.card {
  transition:
    transform .35s var(--ease-out),
    border-color .25s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background-color .35s var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  background-color: #FAFBFF;
  box-shadow: 0 18px 40px rgba(26, 63, 229, .10);
}
.card:hover .icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06);
}
.card:hover h3 { color: var(--blue); }

/* ---- Pillar card hover (services page) ---- */
.pillar-card {
  transition:
    transform .35s var(--ease-out),
    border-color .25s var(--ease-out),
    box-shadow .35s var(--ease-out),
    background-color .35s var(--ease-out);
  position: relative;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  background-color: #FAFBFF;
  box-shadow: 0 14px 32px rgba(26, 63, 229, .09);
}
.pillar-card:hover .ico {
  background: var(--blue);
  color: #fff;
  transform: scale(1.06);
}
.pillar-card:hover h3 { color: var(--blue); }
.pillar-card .more { transition: gap .2s var(--ease-out), color .2s var(--ease-out); display: inline-flex; align-items: center; gap: 6px; }
.pillar-card:hover .more { gap: 10px; }

/* ---- Case study card: image zoom + tint ---- */
.case {
  transition: border-color .25s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.case:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 16px 36px rgba(26, 63, 229, .10); }
.case .thumb { transition: transform .8s var(--ease-out); will-change: transform; }
.case:hover .thumb { transform: scale(1.05); }
.case:hover h3 { color: var(--blue); }
.case .body, .case h3 { transition: color .25s var(--ease-out); }

/* ---- Insight cards (insights page) ---- */
.insight {
  transition: border-color .25s var(--ease-out), box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.insight:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 14px 32px rgba(26, 63, 229, .08); }
.insight .thumb { transition: transform .8s var(--ease-out); }
.insight:hover .thumb { transform: scale(1.04); }
.insight h3 { transition: color .25s var(--ease-out); }
.insight:hover h3 { color: var(--blue); }
.insight .read { transition: gap .2s var(--ease-out); display: inline-flex; align-items: center; gap: 6px; }
.insight:hover .read { gap: 10px; }

.feature-insight { transition: border-color .25s var(--ease-out), box-shadow .35s var(--ease-out); }
.feature-insight:hover { border-color: var(--blue); box-shadow: 0 16px 36px rgba(26, 63, 229, .10); }
.feature-insight .thumb { transition: transform .8s var(--ease-out); }
.feature-insight:hover .thumb { transform: scale(1.03); }
.feature-insight h3 { transition: color .25s var(--ease-out); }
.feature-insight:hover h3 { color: var(--blue); }

/* ---- Aside cards (apply page) ---- */
.aside-card { transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.aside-card:not(.aside-card--blue):hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

/* ---- Buttons: subtle shine sweep on primary ---- */
.btn { position: relative; overflow: hidden; }
.btn-primary { background: var(--blue); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-light:hover, .btn-ghost:hover { transform: translateY(-1px); }

/* ---- Btn-link arrow nudge ---- */
.btn-link { transition: gap .2s var(--ease-out); display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { gap: 10px; text-decoration: none; }

/* ---- Nav links: animated underline (replaces border-bottom approach) ---- */
.nav-links a { border-bottom: 0 !important; position: relative; transition: color .2s var(--ease-out); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* ---- Tabs (services + insights) ---- */
.tab { transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .15s var(--ease-out); }
.tab:hover { transform: translateY(-1px); }

/* ---- Engagement table row hover ---- */
.engage-table tbody tr { transition: background-color .15s var(--ease-out); }
.engage-table tbody tr:hover { background-color: #FAFBFD; }

/* ---- Footer link nudge ---- */
.footer-col a { transition: color .15s var(--ease-out), padding-left .2s var(--ease-out); }
.footer-col a:hover { padding-left: 4px; text-decoration: none; }

/* ---- Form fields focus-lift ---- */
.field input, .field select, .field textarea {
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { transform: translateY(-1px); }
.check { transition: background-color .15s var(--ease-out); border-radius: 6px; }
.check:hover { background-color: #F6F8FC; }

/* ---- Approach accordion: smooth expand instead of display:none ---- */
.step {
  transition:
    padding .25s var(--ease-out),
    border-color .25s var(--ease-out),
    background-color .25s var(--ease-out);
}
.step .body {
  display: block;
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  transition:
    max-height .35s var(--ease-out),
    opacity .25s var(--ease-out),
    margin .25s var(--ease-out);
}
.step.open .body { max-height: 240px; opacity: 1; margin-top: 6px; display: block; }

/* ---- Hero entrance ---- */
@keyframes hero-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.hero h1 { animation: hero-up .8s var(--ease-out) both; }
.hero p  { animation: hero-up .8s var(--ease-out) .15s both; }
.hero .btn { animation: hero-up .8s var(--ease-out) .3s both; }

/* ---- Hero illustration: 5 diagonal rays fanning from one origin ---- */
.hero-illustration {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  animation: hero-up 1s var(--ease-out) .1s both;
}

.origin-halo {
  transform-origin: 200px 130px;
  animation: halo-pulse 6s var(--ease-in-out) infinite;
}
.origin-dot {
  filter: drop-shadow(0 0 10px rgba(167, 179, 255, .9));
}
@keyframes halo-pulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

.pulse {
  stroke-dasharray: 140 2400;
  stroke-dashoffset: 2400;
  animation: ray-travel 4.8s linear infinite;
}
.pulse-1 { animation-delay: 0s;   }
.pulse-2 { animation-delay: .95s; }
.pulse-3 { animation-delay: 1.9s; }
.pulse-4 { animation-delay: 2.85s;}
.pulse-5 { animation-delay: 3.8s; }

@keyframes ray-travel {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 720px) {
  .rays-base { opacity: .12; }
  .pulse { stroke-width: 1.4; }
  .origin-halo { transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) {
  .origin-halo, .pulse { animation: none; }
  .pulse { stroke-dashoffset: 0; opacity: .35; }
}

/* ============================================
   SECTION-LEVEL ANIMATIONS (homepage)
   ============================================ */

/* ---- Card icons: stroke draw-in when revealed ---- */
.card .icon svg path,
.card .icon svg circle,
.card .icon svg polyline,
.card .icon svg line,
.card .icon svg polygon,
.card .icon svg rect {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.1s var(--ease-out) .25s;
}
.card.is-visible .icon svg path,
.card.is-visible .icon svg circle,
.card.is-visible .icon svg polyline,
.card.is-visible .icon svg line,
.card.is-visible .icon svg polygon,
.card.is-visible .icon svg rect {
  stroke-dashoffset: 0;
}

/* ---- Fit list icons: drawn-in checks/X with stagger ---- */
.fit-icon polyline,
.fit-icon line,
.fit-icon path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  transition: stroke-dashoffset .7s var(--ease-out);
}
[data-reveal].is-visible .fit-icon polyline,
[data-reveal].is-visible .fit-icon line,
[data-reveal].is-visible .fit-icon path {
  stroke-dashoffset: 0;
}
.fitlist li:nth-child(1) .fit-icon polyline,
.fitlist li:nth-child(1) .fit-icon line { transition-delay: .15s; }
.fitlist li:nth-child(2) .fit-icon polyline,
.fitlist li:nth-child(2) .fit-icon line { transition-delay: .30s; }
.fitlist li:nth-child(3) .fit-icon polyline,
.fitlist li:nth-child(3) .fit-icon line { transition-delay: .45s; }

/* ---- Testimonial: large decorative quote glyph ---- */
.testimonial { position: relative; overflow: hidden; isolation: isolate; }
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: 88px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(26, 63, 229, .09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--ease-out) .15s, transform 1s var(--ease-out) .15s;
}
.testimonial.is-visible::before { opacity: 1; transform: translateY(0); }
.testimonial > * { position: relative; z-index: 1; }

/* ---- CTA band: slow radial glow pulse ---- */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute; inset: -10%;
  background: radial-gradient(ellipse at 50% 70%, rgba(26, 63, 229, .12), transparent 55%);
  animation: cta-glow 9s var(--ease-in-out) infinite;
  pointer-events: none;
  z-index: 0;
}
.cta-band > .container { position: relative; z-index: 1; }
@keyframes cta-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---- Section eyebrow: thin accent line that grows on reveal ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transition: width .8s var(--ease-out) .25s;
}
[data-reveal]:not(.is-visible) .eyebrow::after,
.eyebrow[data-reveal]:not(.is-visible)::after { width: 0; }

/* Reduced-motion respect for these too */
@media (prefers-reduced-motion: reduce) {
  .card .icon svg path,
  .card .icon svg circle,
  .card .icon svg polyline,
  .card .icon svg line,
  .card .icon svg polygon,
  .card .icon svg rect,
  .fit-icon polyline,
  .fit-icon line,
  .fit-icon path { stroke-dashoffset: 0; transition: none; }
  .testimonial::before { opacity: 1; transform: none; transition: none; }
  .cta-band::before { animation: none; opacity: .8; }
}

/* ---- Scroll reveal (driven by IntersectionObserver in main.js) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s var(--ease-out),
    transform .7s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================
   WELCOME MODAL
   Auto-opens 2 seconds after first arrival per session.
   Captures Name + Contact + Email (required) + Reason (optional).
   ============================================ */
.welcome-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s var(--ease-out);
}
.welcome-modal.is-open { opacity: 1; visibility: visible; }
.welcome-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 22, 40, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.welcome-modal__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 36px 36px 30px;
  max-width: 520px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  /* Hide the scrollbar visually but keep scroll functional on very short viewports */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/legacy Edge */
  box-shadow: 0 30px 80px rgba(10, 22, 40, .35);
  transform: translateY(18px) scale(.985);
  transition: transform .5s var(--ease-out);
}
.welcome-modal__card::-webkit-scrollbar {
  display: none;                /* Chrome / Safari / Edge Chromium */
  width: 0;
  height: 0;
}
.welcome-modal.is-open .welcome-modal__card { transform: translateY(0) scale(1); }
.welcome-modal__close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 24px; line-height: 1;
  color: var(--muted-2); cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.welcome-modal__close:hover { background: #F4F6FA; color: var(--ink); }
.welcome-modal__eyebrow { margin-bottom: 10px; }
.welcome-modal__card h2 {
  font-size: 1.5rem; line-height: 1.2;
  margin: 0 0 10px;
}
.welcome-modal__lead {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}
.welcome-modal__form .field { margin-bottom: 14px; }
.welcome-modal__form label {
  display: block;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  margin-bottom: 6px;
}
.welcome-modal__form .req { color: var(--blue); margin-left: 3px; font-weight: 700; }
.welcome-modal__form input,
.welcome-modal__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: .94rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.welcome-modal__form input:focus,
.welcome-modal__form textarea:focus {
  outline: 0; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 63, 229, .12);
}
.welcome-modal__form input.invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.welcome-modal__form .err {
  display: none;
  font-size: .78rem; color: #DC2626;
  margin-top: 5px;
}
.welcome-modal__form .field.has-error .err { display: block; }
.welcome-modal__form .row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.welcome-modal__submit {
  width: 100%;
  justify-content: center;
  padding: 13px 22px;
  margin-top: 4px;
}
.welcome-modal__foot {
  text-align: center;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0;
}
.welcome-modal__success {
  text-align: center; padding: 12px 0 8px;
}
.welcome-modal__success h2 { margin-bottom: 8px; }
.welcome-modal__success p { color: var(--muted); margin: 0; font-size: .94rem; }

@media (max-width: 520px) {
  .welcome-modal__card { padding: 28px 22px 24px; border-radius: 14px; }
  .welcome-modal__card h2 { font-size: 1.3rem; }
  .welcome-modal__form .row-2 { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal,
  .welcome-modal__card { transition: none; }
}
/* ============================================
   ARTICLE / BLOG PAGES
   ============================================ */
.container--narrow { max-width: 760px; }

.article-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 56px 0 36px;
}
.article-head .eyebrow { color: var(--blue); }
.article-head h1 {
  max-width: 22ch;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.article-meta {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  align-items: center;
}
.article-meta .dot { color: var(--muted-2); }
.article-meta strong { color: var(--ink); font-weight: 600; }

.article-hero-img {
  background: #fff;
  padding: 0 24px;
}
.article-hero-img > div {
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1F2937, #0F172A);
  margin-top: 0;
  position: relative;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-body {
  background: #fff;
  padding: 56px 0 60px;
}
.article-body .container--narrow {
  font-size: 1.05rem;
  line-height: 1.78;
}
.article-body .lead {
  font-size: 1.18rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 28px;
  font-weight: 500;
}
.article-body h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  letter-spacing: -.01em;
}
.article-body p { margin: 0 0 18px; color: var(--ink-2); }
.article-body ul, .article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--ink-2);
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--blue);
  border-bottom: 1px solid rgba(26, 63, 229, .25);
  transition: border-color .2s var(--ease-out);
}
.article-body a:hover { text-decoration: none; border-bottom-color: var(--blue); }

.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
}
.article-body blockquote p { margin: 0; }

.key-takeaway {
  background: var(--blue-50);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 8px 8px 0;
}
.key-takeaway h4 {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 6px;
  font-weight: 700;
}
.key-takeaway p { margin: 0; color: var(--ink); }

.article-related {
  background: var(--bg);
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.article-related h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.article-cta-wrap {
  background: #fff;
  padding: 0 0 80px;
}
.article-cta-wrap .cta-blue { margin-top: 0; }

@media (max-width: 700px) {
  .article-body .container--narrow { font-size: 1rem; line-height: 1.7; }
  .article-body .lead { font-size: 1.08rem; }
  .article-hero-img > div { aspect-ratio: 16 / 10; }
}
/* Hero headline now uses h2 element for SEO (one H1 per page) but visually matches old h1 */
.hero .hero-headline { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; max-width: 18ch; margin: 0 auto .4em; }
.hero .hero-headline .accent { color: #6379FF; }

/* ============================================
   MOBILE & TABLET POLISH
   Targeted fixes that go beyond the per-component breakpoints
   ============================================ */

/* Bigger touch targets on small screens (Apple/Google guideline: >= 44px) */
@media (max-width: 700px) {
  .tab {
    padding: 11px 18px;
    font-size: .94rem;
  }
  .btn {
    padding: 14px 22px;
  }
  .btn-link {
    padding: 8px 0;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* Hero: reduce top/bottom padding on small screens so above-the-fold content shows */
@media (max-width: 700px) {
  .hero { padding: 64px 0 80px; }
  .hero p { font-size: .98rem; }
  .hero .hero-headline { max-width: none; }
}

/* Page head: smaller vertical breathing room on phones */
@media (max-width: 700px) {
  .page-head { padding: 44px 0 32px; }
}

/* Container: less side padding on very small screens to maximize content width */
@media (max-width: 480px) {
  .container { padding-inline: 18px; }
}

/* AI Automation section (homepage & services): tighten layout for tablet/mobile */
@media (max-width: 900px) {
  #ai-automation .grid-2 { gap: 28px !important; }
}
@media (max-width: 640px) {
  #ai-automation h2 { font-size: 1.5rem !important; max-width: none !important; }
  #ai-automation .card { padding: 22px !important; }
}

/* Approach accordion: tighter on mobile */
@media (max-width: 640px) {
  .approach { gap: 24px; }
  .step { padding: 18px 4px 18px 14px; grid-template-columns: 44px 1fr; gap: 12px; }
  .step .num { font-size: .82rem; }
}

/* Engagement table: ensure horizontal scroll works smoothly on touch */
@media (max-width: 640px) {
  .engage-table { font-size: .85rem; }
  .engage-table th, .engage-table td { padding: 12px 14px; }
}

/* Article body on phones: tighter side padding for the narrow container */
@media (max-width: 640px) {
  .article-head { padding: 40px 0 28px; }
  .article-head h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .article-related h2 { font-size: 1.3rem; }
  .article-cta-wrap { padding: 0 0 56px; }
  .cta-blue { padding: 28px 24px; }
  .cta-blue h3 { font-size: 1.25rem; }
}

/* Insights filter bar: stack search beneath tabs on phones */
@media (max-width: 640px) {
  .filterbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .search { min-width: auto; width: 100%; }
}

/* Apply form sidebar cards: tighter on mobile */
@media (max-width: 640px) {
  .aside-card { padding: 22px; }
  .aside-card--blue h3 { font-size: 1.2rem; }
}

/* Footer: stack legal links cleanly on phones */
@media (max-width: 480px) {
  .footer-grid { gap: 28px; }
  .footer-bottom { font-size: .78rem; }
}

/* Card hover lift disabled on touch devices to avoid stuck states */
@media (hover: none) {
  .card:hover,
  .pillar-card:hover,
  .case:hover,
  .insight:hover,
  .feature-insight:hover,
  .aside-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Prevent text horizontal overflow on long words / URLs */
.article-body p,
.article-body li,
.case .body,
.insight .body {
  overflow-wrap: anywhere;
}