/* ==========================================================================
   Grant McGregor — technology · people
   Brand system
   - Blues are lifted directly from the logo (#0061A9 / #7AB1DB).
   - "Technology" voice: Geist + Geist Mono. "People" voice: Instrument Serif italic.
   - Stone neutrals nod to the sandstone of the Merchants' Hall, Edinburgh.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --blue: #0061a9;
  --blue-700: #004f8a;
  --blue-800: #003f6f;
  --blue-50: #eaf3fb;
  --sky: #7ab1db;
  --sky-200: #bcd8ee;

  /* Neutrals */
  --ink: #0a1b2c;
  --ink-2: #283a4c;
  --muted: #566676;
  --stone: #f6f3ee;
  --stone-2: #ece6dc;
  --paper: #ffffff;
  --line: rgba(10, 27, 44, 0.11);
  --line-strong: rgba(10, 27, 44, 0.2);

  /* Night */
  --night: #061626;
  --night-2: #0b2238;
  --night-3: #12304d;
  --night-ink: #e8eff6;
  --night-muted: #a3b5c7;
  --night-line: rgba(255, 255, 255, 0.12);

  /* Signals */
  --green: #1fae78;
  --amber: #e3a03a;
  --red: #d6574f;

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape & depth */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 27, 44, 0.05), 0 2px 10px rgba(10, 27, 44, 0.05);
  --shadow: 0 1px 3px rgba(10, 27, 44, 0.06), 0 24px 48px -20px rgba(10, 27, 44, 0.22);
  --shadow-lg: 0 2px 6px rgba(10, 27, 44, 0.08), 0 40px 80px -30px rgba(10, 27, 44, 0.35);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico .fill, symbol .fill { fill: currentColor; stroke: none; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
.display {
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.015em; }
h1 em, h2 em, .why__mark em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.015em;
  color: var(--blue);
}
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 4px rgba(122, 177, 219, 0.25);
}
.eyebrow--light { color: var(--sky); }
.dot { color: var(--sky); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--blue); box-shadow: 0 10px 24px -10px rgba(0, 97, 169, 0.6); }
.btn--primary:hover { --btn-bg: var(--blue-700); box-shadow: 0 14px 30px -10px rgba(0, 97, 169, 0.7); }
.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: #000; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(10, 27, 44, 0.04); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.btn--text { --btn-bg: transparent; --btn-fg: var(--blue); padding-inline: 8px; }
.btn--text:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 0.92rem; }
.btn--lg { min-height: 56px; padding: 15px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue);
  transition: gap .3s var(--ease), color .2s;
}
.link-arrow:hover { gap: 12px; color: var(--blue-700); }

/* ---------- Announcement ---------- */
.announce { background: var(--night); color: var(--night-ink); font-size: 0.9rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding-block: 8px; position: relative; }
.announce p { text-align: center; padding-right: 28px; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; }
.announce a:hover { color: var(--sky-200); }
.announce__tag {
  display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(122,177,219,.18); color: var(--sky-200);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}
.announce__close { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); color: var(--night-muted); padding: 6px; border-radius: 8px; display: grid; }
.announce__close:hover { color: #fff; }
.announce.is-hidden { display: none; }

/* ---------- Header ---------- */
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed-position mobile menu. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 243, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: background-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(10,27,44,.25); }
.site-header.is-scrolled::before { background: rgba(246, 243, 238, 0.92); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  font-weight: 500; font-size: 0.96rem; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav ul a:hover { background: rgba(10, 27, 44, 0.06); color: var(--ink); }
.nav__mobile-extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__client { font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.header__client:hover { color: var(--ink); }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.header__phone:hover { color: var(--blue); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; color: var(--ink); border: 1px solid var(--line-strong); }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle .ico--close { display: none; }
.nav-toggle[aria-expanded="true"] .ico--open { display: none; }
.nav-toggle[aria-expanded="true"] .ico--close { display: block; }

/* Live status dot */
.status-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none;
}
.status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0;
  animation: pulse 2.2s var(--ease) infinite;
}
.status-dot.is-closed { background: var(--amber); }
.status-dot.is-closed::after { border-color: var(--amber); animation: none; }
.status-dot--lg { width: 12px; height: 12px; }
@keyframes pulse {
  0% { transform: scale(.6); opacity: .9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 700px; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(122,177,219,.28), transparent 70%),
    radial-gradient(500px 260px at 10% 10%, rgba(0,97,169,.08), transparent 70%);
}
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero .eyebrow { margin-bottom: 24px; }
.hero__aside { padding-bottom: 8px; }
.hero__aside .lead { color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.micro { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.micro .ico { color: var(--green); }

.hero__media { position: relative; margin-top: clamp(40px, 5vw, 64px); }
.hero__media > img {
  width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; object-position: 50% 32%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px; box-shadow: var(--shadow);
  color: var(--ink);
}
.float-card--status { left: clamp(16px, 3vw, 32px); bottom: clamp(-28px, -2vw, -16px); display: flex; align-items: center; gap: 14px; padding: 16px 20px 16px 18px; }
.float-card__title { font-weight: 600; letter-spacing: -0.01em; }
.float-card__meta { font-size: 0.86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.float-card__meta a { color: var(--blue); font-weight: 600; }
.float-card--quote { right: clamp(16px, 3vw, 32px); top: clamp(16px, 3vw, 32px); max-width: 330px; padding: 20px 22px; }
.float-card--quote p { font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.25; letter-spacing: -0.005em; }
.float-card--quote footer { margin-top: 12px; font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.float-card--quote footer strong { color: var(--ink); font-weight: 600; }
.float-card--place {
  left: clamp(16px, 3vw, 32px); top: clamp(16px, 3vw, 32px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; background: rgba(6,22,38,.6); color: #fff; border-color: rgba(255,255,255,.18); box-shadow: none;
}
.float-card--place .ico { color: var(--sky); }

.cert-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; margin-top: 28px; }
.cert-row li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.84rem; font-weight: 500; color: var(--ink-2);
}
.cert-row .ico { color: var(--blue); }

/* ---------- Clients marquee ---------- */
.clients { padding-block: 28px 40px; }
.clients__inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.clients__label { font-size: 0.92rem; color: var(--muted); max-width: 170px; line-height: 1.4; }
.clients__label strong { color: var(--ink); font-weight: 600; }
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex; align-items: center; white-space: nowrap;
  font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em; color: #6b7a88;
}
.marquee__track li::after { content: "·"; margin-inline: 22px; color: var(--sky); font-weight: 700; font-size: 1.4em; line-height: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }
.section--night { background: var(--night); color: var(--night-muted); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night h2 em { color: var(--sky); }
.section--night .lead { color: var(--night-muted); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; max-width: 780px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-top: 20px; }
.section-head--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.section-head__side { display: grid; gap: 18px; justify-items: start; }

/* ---------- Problems ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain {
  padding: 28px 24px 30px; border-radius: var(--r);
  background: var(--stone); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s;
}
.pain:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--paper); }
.pain__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--paper); color: var(--blue); border: 1px solid var(--line); margin-bottom: 22px;
}
.pain__icon .ico { width: 22px; height: 22px; }
.pain h3 { margin-bottom: 10px; }
.pain p { font-size: 0.97rem; color: var(--muted); }

.bridge {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: var(--r);
  background: var(--blue-50); color: var(--ink); font-weight: 500; font-size: 1.06rem;
  border: 1px solid rgba(0, 97, 169, 0.12);
  transition: background-color .3s;
}
.bridge:hover { background: #dfedf9; }
.bridge__cta { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.bridge:hover .bridge__cta .ico { transform: translateX(3px); }
.bridge__cta .ico { transition: transform .3s var(--ease); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column;
  padding: 32px 30px 34px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.service__num { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.service__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; }
.service__icon .ico { width: 26px; height: 26px; }
.service__kicker { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.service h3 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 14px; }
.service > p { color: var(--muted); font-size: .98rem; }
.service .link-arrow { margin-top: auto; padding-top: 28px; }

.service--feature { background: var(--night); border-color: var(--night); color: var(--night-muted); }
.service--feature h3 { color: #fff; }
.service--feature > p { color: var(--night-muted); }
.service--feature .service__num { color: var(--night-muted); }
.service--feature .service__icon { background: var(--sky); color: var(--night); }
.service--feature .service__kicker { color: var(--sky); }
.service--feature .checklist { border-color: var(--night-line); }
.service--feature .checklist li { color: var(--night-ink); }
.service--feature .checklist li::before { background-color: rgba(122,177,219,.18); }
.service--feature .link-arrow { color: var(--sky); }
.service--feature .link-arrow:hover { color: #fff; }

.checklist { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.checklist li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ab1db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service:not(.service--feature) .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061a9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.more-services { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: center; }
.more-services__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.more-services ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.more-services a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: all .2s;
}
.more-services a:hover { border-color: var(--blue); color: var(--blue); background: var(--paper); }

/* ---------- Why (night) ---------- */
.why { overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 90% 0%, rgba(0,97,169,.35), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(122,177,219,.12), transparent 70%);
}
.why .container { position: relative; }
.why__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.why__mark {
  margin: 28px 0 28px; color: #fff; white-space: nowrap;
  font-size: clamp(2.2rem, 4.3vw, 3.9rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1;
}
.why__mark em { color: var(--sky); font-size: 1.12em; }
.why__dot { color: var(--sky); display: inline-block; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.why__media img { border-radius: var(--r-lg); aspect-ratio: 1 / 1; object-fit: cover; object-position: 60% 30%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }

.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.diff {
  padding: 26px 24px; border-radius: var(--r);
  background: rgba(255,255,255,.04); border: 1px solid var(--night-line);
  transition: background-color .3s, border-color .3s;
}
.diff:hover { background: rgba(255,255,255,.07); border-color: rgba(122,177,219,.35); }
.diff .ico { width: 26px; height: 26px; color: var(--sky); margin-bottom: 18px; }
.diff h3 { font-size: 1.1rem; margin-bottom: 8px; }
.diff p { font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid var(--night-line); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--night-line); }
.stat dd { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat dt { font-size: .92rem; line-height: 1.45; max-width: 220px; }

/* ---------- Health check ---------- */
.health__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.health__intro .lead { margin-top: 20px; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--blue-50); color: var(--blue); stroke-width: 3; }
.ticks--light li { color: #fff; }
.ticks--light .ico { background: rgba(122,177,219,.16); color: var(--sky); }

.quiz {
  position: relative; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
  background: var(--stone); border: 1px solid var(--line); box-shadow: var(--shadow);
  min-height: 440px; display: flex; flex-direction: column;
}
.quiz__head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.quiz__step { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.quiz__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--stone-2); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: inherit; transition: width .5s var(--ease); }
.quiz__body { flex: 1; display: flex; flex-direction: column; }
.q { animation: qIn .45s var(--ease); display: flex; flex-direction: column; flex: 1; }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } }
.q__cat { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.q__cat .ico { width: 18px; height: 18px; }
.q__text { font-size: clamp(1.3rem, 2.2vw, 1.62rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.q__hint { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.q__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 32px; }
.q__opt {
  padding: 16px 12px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line-strong);
  font-weight: 600; color: var(--ink); transition: all .2s var(--ease);
}
.q__opt:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.q__opt[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.q__back { margin-top: 16px; align-self: flex-start; font-size: .9rem; color: var(--muted); font-weight: 500; }
.q__back:hover { color: var(--ink); }
.q__back[hidden] { display: none; }

.quiz__result { animation: qIn .5s var(--ease); }
.result__top { display: flex; align-items: center; gap: 24px; }
.gauge { position: relative; width: 112px; height: 112px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge__track { stroke: var(--stone-2); }
.gauge__value { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.gauge__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1rem; color: var(--muted); }
.gauge__label strong { font-size: 2.1rem; color: var(--ink); font-weight: 600; letter-spacing: -0.04em; margin-right: 1px; }
.gauge__label { display: flex; align-items: baseline; justify-content: center; padding-top: 34px; }
.result__grade { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.result__summary { margin-top: 6px; color: var(--muted); font-size: .97rem; }
.result__recs { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.result__recs-title { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.result__recs ol { display: grid; gap: 12px; counter-reset: rec; }
.result__recs li { counter-increment: rec; position: relative; padding-left: 38px; font-size: .95rem; color: var(--ink-2); }
.result__recs li::before {
  content: counter(rec); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 600; color: var(--ink);
}
.result__recs li strong { color: var(--ink); }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px);
  opacity: .7;
}
.step { position: relative; padding-right: 12px; }
.step__num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--blue); color: var(--blue);
  font-weight: 600; font-size: 1.15rem; margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--stone);
}
.step:first-child .step__num { background: var(--blue); color: #fff; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; }

.switch-quote {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.switch-quote__img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; min-height: 320px; }
.switch-quote blockquote { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.switch-quote blockquote p { font-family: var(--font-serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.22; color: var(--ink); letter-spacing: -0.01em; }
.switch-quote footer { margin-top: 24px; display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); }
.switch-quote footer strong { color: var(--ink); font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px 28px; border-radius: var(--r); background: var(--stone); border: 1px solid var(--line);
}
.quote--wide { grid-column: span 2; background: var(--blue); border-color: var(--blue); color: #fff; }
.quote p { font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.quote--wide p { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.22; color: #fff; letter-spacing: -0.01em; }
.quote footer { display: flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--muted); }
.quote footer > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.quote footer strong { color: var(--ink); font-weight: 600; }
.quote--wide footer, .quote--wide footer strong { color: #fff; }
.quote--wide footer { color: var(--sky-200); }
.quote__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--font-mono); font-size: .78rem; color: var(--blue); font-weight: 500;
}
.quote--wide .quote__avatar { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); color: #fff; }
.quote:nth-child(6) { background: var(--night); border-color: var(--night); }
.quote:nth-child(6) footer { color: var(--night-muted); }
.quote:nth-child(6) .quote__avatar { color: var(--sky); }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case__img { overflow: hidden; aspect-ratio: 16 / 10; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__img img { transform: scale(1.05); }
.case__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case__tags span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.case h3 { font-size: 1.32rem; margin-bottom: 8px; }
.case__body > p:not(.case__tags) { color: var(--muted); font-size: .96rem; }
.case .link-arrow { margin-top: auto; padding-top: 20px; }

.sectors { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sectors__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sectors ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sectors li { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cert { background: var(--paper); padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; min-height: 148px; position: relative; transition: background-color .3s; }
.cert::before {
  content: ""; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230061a9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.cert:hover { background: var(--stone); }
.cert__code { font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.015em; }
.cert__name { font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* ---------- Story ---------- */
.story__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__media { position: relative; }
.story__media img { border-radius: var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; box-shadow: var(--shadow); }
.story__media figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .9rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); width: fit-content;
}
.story__badge { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; background: var(--blue); color: #fff; }
.story__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.05rem; }
.story__copy h2 { margin-bottom: 8px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 32px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.values > div { background: var(--stone); padding: 18px 20px; }
.values dt { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.values dt::before { content: "· "; color: var(--sky); font-weight: 700; }
.values dd { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.story__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }

/* ---------- Insights ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.insight {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--stone); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.insight:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.insight__art {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: var(--night);
}
.insight__art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 18px 18px; }
.insight__art .ico { position: relative; width: 56px; height: 56px; stroke-width: 1.3; transition: transform .6s var(--ease); }
.insight:hover .insight__art .ico { transform: scale(1.1) rotate(-4deg); }
.insight__art span { position: absolute; right: 18px; bottom: 6px; font-family: var(--font-serif); font-style: italic; font-size: 4.5rem; line-height: 1; opacity: .16; }
.insight--a .insight__art { background: linear-gradient(135deg, var(--night) 0%, var(--blue-800) 100%); }
.insight--b .insight__art { background: linear-gradient(135deg, var(--blue) 0%, #3d8fd0 100%); }
.insight--c .insight__art { background: linear-gradient(135deg, var(--night-3) 0%, var(--night) 100%); }
.insight--c .insight__art .ico { color: var(--sky); }
.insight__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.insight__type { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.insight__type .ico { width: 15px; height: 15px; }
.insight h3 { font-size: 1.22rem; }
.insight .link-arrow { margin-top: auto; padding-top: 22px; }

.social-strip { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--r); background: var(--stone); border: 1px solid var(--line); }
.social-strip p { font-weight: 500; color: var(--ink); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--night-line); color: var(--night-ink); transition: all .25s var(--ease);
}
.socials a:hover { background: var(--sky); border-color: var(--sky); color: var(--night); transform: translateY(-2px); }
.socials .ico { width: 18px; height: 18px; }
.socials--dark a { border-color: var(--line-strong); color: var(--ink); background: var(--paper); }
.socials--dark a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__card { margin-top: 32px; display: flex; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq__card img { width: 88px; height: 104px; object-fit: cover; object-position: 50% 15%; border-radius: 12px; flex: none; }
.faq__card-title { font-weight: 600; color: var(--ink); }
.faq__card p:not(.faq__card-title) { font-size: .92rem; color: var(--muted); margin: 2px 0 8px; }
.faq__list { display: grid; gap: 10px; }
.faq { border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: box-shadow .3s; }
.faq[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; font-weight: 600; font-size: 1.06rem; color: var(--ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--stone); color: var(--blue); flex: none; transition: transform .35s var(--ease), background-color .3s; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__answer { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 0% 0%, rgba(0,97,169,.4), transparent 70%), radial-gradient(500px 400px at 100% 100%, rgba(122,177,219,.14), transparent 70%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__copy .lead { margin-top: 20px; }
.contact__details { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--r); overflow: hidden; }
.contact__details li { display: flex; gap: 14px; padding: 18px 20px; background: var(--night); }
.contact__details .ico { color: var(--sky); margin-top: 3px; }
.contact__details span { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 2px; }
.contact__details a, .contact__details address, .contact__details p { color: #fff; font-weight: 500; font-size: .96rem; line-height: 1.45; word-break: break-word; }
.contact__details a:hover { color: var(--sky); }

.form-card { background: var(--paper); color: var(--ink-2); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); }
.form { display: grid; gap: 16px; }
.form__head { margin-bottom: 4px; }
.form__title { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.form__sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .88rem; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--stone); border: 1.5px solid transparent; color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px rgba(0,97,169,.12); }
.field__error { display: none; font-size: .82rem; color: var(--red); }
.field.is-invalid input { border-color: var(--red); background: #fff6f5; }
.field.is-invalid .field__error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: all .2s;
}
.chip:hover span { border-color: var(--blue); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:checked + span::before { content: "✓"; font-size: .8rem; }
.chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form__privacy { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.form__privacy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form-card__existing { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.form-card__existing a { color: var(--blue); font-weight: 600; }

.form-success { display: grid; gap: 14px; justify-items: start; padding: 12px 0; animation: qIn .5s var(--ease); }
.form-success[hidden] { display: none; }
.form-success__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(31,174,120,.12); color: var(--green); }
.form-success__icon .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.form-success p { color: var(--muted); }
.form-success a { color: var(--blue); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #040f1b; color: var(--night-muted); padding-top: clamp(64px, 8vw, 96px); font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(40px, 6vw, 96px); padding-bottom: 56px; }
.footer__brand img { height: 42px; width: auto; margin-bottom: 22px; }
.footer__brand p { max-width: 320px; margin-bottom: 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer__heading { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__cols ul { display: grid; gap: 10px; }
.footer__cols a:hover { color: #fff; }
.footer__contact a { color: var(--night-ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--night-line); font-size: .86rem; }
.footer__bottom a:hover { color: #fff; }
.footer__tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--night-ink); }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header__client { display: none; }
  .nav ul a { padding-inline: 10px; }
}

/* Mid widths: drop the header phone (it's in the hero) so the nav never wraps */
@media (max-width: 1120px) {
  .header__phone { display: none; }
  .header__inner { gap: 20px; }
}

@media (max-width: 1080px) {
  .pain-grid, .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid, .case-grid, .insight-grid { grid-template-columns: 1fr 1fr; }
  .service-grid > :last-child, .case-grid > :last-child, .insight-grid > :last-child { grid-column: span 2; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote--wide, .quotes > :last-child { grid-column: span 2; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .header__phone, .header__actions > .btn { display: none; }
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
    background: var(--stone); padding: 24px var(--gutter) 40px;
    display: flex; flex-direction: column; gap: 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav ul a:hover { background: none; color: var(--blue); }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 8px; }
  .nav__mobile-link { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); padding: 6px 0; }
  .nav__mobile-link .ico { color: var(--blue); }
  .header__actions { margin-left: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-cta { transform: translateY(110%); }

  .hero__grid, .section-head--split, .why__grid, .health__grid, .story__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: 24px; }
  .faq__intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .switch-quote { grid-template-columns: 1fr; }
  .switch-quote__img img { min-height: 0; aspect-ratio: 16 / 9; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .story__media img { aspect-ratio: 4 / 3; }
  .why__media img { aspect-ratio: 16 / 10; }
  .cert-row { justify-content: flex-start; }
  .clients__inner { grid-template-columns: 1fr; gap: 14px; }
  .clients__label { max-width: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .why__mark { white-space: normal; }
  .announce { font-size: .84rem; }
  .announce__tag { display: none; }
  .brand img { height: 32px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__media > img { aspect-ratio: 4 / 3; object-position: 58% 40%; border-radius: var(--r); }
  .float-card--quote { position: relative; right: auto; top: auto; max-width: none; margin-top: 12px; }
  .float-card--status { position: relative; left: auto; bottom: auto; margin-top: -32px; margin-inline: 12px; }
  .float-card--place { font-size: .76rem; left: 12px; top: 12px; }
  .pain-grid, .diff-grid, .service-grid, .case-grid, .insight-grid, .quotes, .cert-grid, .steps, .values, .contact__details, .form__row { grid-template-columns: 1fr; }
  .service-grid > :last-child, .case-grid > :last-child, .insight-grid > :last-child, .quote--wide, .quotes > :last-child { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .q__options { grid-template-columns: 1fr; }
  .result__top { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .bridge { padding: 20px; }
  .sectors { flex-direction: column; align-items: flex-start; }
  .social-strip { flex-direction: column; align-items: flex-start; }

  .mobile-cta {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(6, 22, 38, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--night-line);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .site-footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Hero load-in (not scroll-bound, so above-the-fold content paints immediately) */
.rise { animation: rise .9s var(--ease) both; }
.rise--2 { animation-delay: .06s; }
.rise--3 { animation-delay: .14s; }
.rise--4 { animation-delay: .24s; }
.rise--5 { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
