/* ============================================================
   5 11 ENTERPRISE — DESIGN SYSTEM
   Editorial typography. Blue accent on ink + bone sections.
   ============================================================ */

:root {
  /* Surfaces — sky blue + white system */
  --ink:        #0C4A6E;   /* deep sky (replaces black) */
  --ink-2:      #075985;   /* sky 800 */
  --ink-3:      #0369A1;   /* sky 700 */
  --bone:       #F0F9FF;   /* sky 50 — soft white */
  --bone-2:     #E0F2FE;   /* sky 100 */
  --paper:      #FFFFFF;
  --line-dark:  rgba(255,255,255,0.14);
  --line-light: rgba(12,74,110,0.12);

  /* Text */
  --on-dark:       #FFFFFF;
  --on-dark-mute:  #BAE6FD;   /* sky 200 */
  --on-dark-soft:  #E0F2FE;   /* sky 100 */
  --on-light:      #0C4A6E;   /* deep sky */
  --on-light-mute: #475569;   /* slate 600 */
  --on-light-soft: #1E3A5F;

  /* Accents — sky blue palette */
  --clay:       #0EA5E9;   /* sky 500 — primary */
  --clay-deep:  #0284C7;   /* sky 600 */
  --clay-soft:  #7DD3FC;   /* sky 300 */
  --lime:       #38BDF8;   /* sky 400 (was lime green) */
  --sky:        #BAE6FD;   /* sky 200 */

  /* Typography */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bone);
  color: var(--on-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

.theme-dark  { background: var(--ink);  color: var(--on-dark); }
.theme-light { background: var(--bone); color: var(--on-light); }
.theme-paper { background: var(--paper); color: var(--on-light); }

/* ───── Preloader ───── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 24px;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader .pre-logo {
  width: 52px;
  height: 52px;
  background: none;
  filter: none;
  border: 3px solid rgba(255, 255, 255, 0.10);
  border-top-color: var(--clay-soft);
  border-right-color: var(--clay-soft);
  border-radius: 50%;
  animation: pre-spin 0.9s cubic-bezier(0.55, 0.1, 0.45, 0.9) infinite;
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.25);
}
.preloader .pre-word,
.preloader .pre-bar { display: none; }
@keyframes pre-spin {
  to { transform: rotate(360deg); }
}

/* Page reveal — content fades in after preloader */
body.is-loading > *:not(.preloader) { opacity: 0; }
body.is-loaded > *:not(.preloader) {
  opacity: 1;
  transition: opacity .6s var(--ease);
}

@media (max-width: 540px) { .nav-cta .btn-outline { display: none; } }

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

/* ───── Type ───── */
.h-eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--clay); }
.theme-dark .h-eyebrow { color: var(--clay-soft); }
.theme-dark .h-eyebrow::before { background: var(--clay-soft); }

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--clay); }
.theme-dark .h-display em { color: var(--clay-soft); }

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--clay); }
.theme-dark .h-section em { color: var(--clay-soft); }

.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  color: var(--on-light-mute);
  max-width: 60ch;
  text-wrap: pretty;
}
.theme-dark .lead { color: var(--on-dark-mute); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-mute);
}
.theme-dark .label { color: var(--on-dark-mute); }

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn .arr { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--clay);
  color: var(--bone);
  border-color: var(--clay);
}
.btn-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }

.btn-ink {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }

.btn-gift {
  position: relative;
  background: rgba(14, 165, 233, 0.10);
  color: var(--clay-deep);
  border-color: rgba(14, 165, 233, 0.32);
  overflow: hidden;
}
.btn-gift::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(125, 211, 252, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .65s var(--ease);
}
.btn-gift:hover {
  background: linear-gradient(135deg, var(--clay-soft), var(--clay));
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(14, 165, 233, 0.45);
}
.btn-gift:hover::before { transform: translateX(120%); }
.theme-dark .btn-gift,
.site-header.dark .btn-gift {
  background: rgba(125, 211, 252, 0.10);
  color: var(--clay-soft);
  border-color: rgba(125, 211, 252, 0.32);
}
.theme-dark .btn-gift:hover,
.site-header.dark .btn-gift:hover {
  background: var(--clay-soft);
  color: var(--ink);
}

.svc-deep-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 4px;
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: var(--line-light);
}
.theme-dark .btn-outline,
.site-header.dark .btn-outline {
  color: var(--bone);
  border-color: rgba(242, 239, 230, 0.55);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.theme-dark .btn-outline:hover,
.site-header.dark .btn-outline:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

/* ───── Premium top utility bar ───── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.top-bar.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
}
.top-bar-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.top-bar a, .top-bar span.tb-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  transition: color .2s var(--ease);
  position: relative;
}
.top-bar a:hover { color: var(--clay-soft); }
/* show the email in lowercase as written (top bar otherwise uppercases everything) */
.top-bar a[href^="mailto:"] { text-transform: none; letter-spacing: 0.03em; }
.top-bar a svg, .top-bar span.tb-item svg { width: 12px; height: 12px; opacity: 0.7; }
.top-bar .tb-divider {
  width: 1px; height: 12px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
.top-bar .tb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 8px #22D3EE;
  animation: tb-pulse 2s ease-in-out infinite;
}
@keyframes tb-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}
.top-bar .tb-strong {
  color: #FFFFFF;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .top-bar .tb-hide-sm { display: none; }
  .top-bar .container { gap: 14px; }
  .top-bar-group { gap: 14px; }
}
@media (max-width: 540px) {
  .top-bar { font-size: 10px; letter-spacing: 0.1em; }
  .top-bar .tb-hide-xs { display: none; }
}

/* ───── Header / Nav — premium glass design ───── */
.site-header {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  background: rgba(240, 249, 255, 0.55);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(12, 74, 110, 0.06);
}
.site-header.is-scrolled {
  top: 0;
  padding: 9px 0;
  background: rgba(240, 249, 255, 0.78);
  border-bottom-color: rgba(12, 74, 110, 0.10);
  box-shadow: 0 8px 32px -12px rgba(12, 74, 110, 0.18);
}
.site-header.dark {
  background: rgba(12, 74, 110, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.4);
}
.site-header.dark.is-scrolled {
  background: rgba(12, 74, 110, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.4);
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ─── Brand lockup ─── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--on-light);
  position: relative;
}
.site-header.dark .brand,
.theme-dark .brand { color: #FFFFFF; }

.brand-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: normal;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.35));
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.brand:hover .brand-img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 18px rgba(14, 165, 233, 0.55));
}
/* Isolate the blend so it doesn't leak past the brand */
.brand { isolation: isolate; }

.brand-text {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.02;
}

.brand-tagline {
  margin-left: 14px;
  padding-left: 16px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  white-space: nowrap;
}
.site-header.dark .brand-tagline,
.theme-dark .brand-tagline,
.site-footer .brand-tagline { color: rgba(255, 255, 255, 0.58); }

@media (max-width: 760px) {
  .brand-tagline {
    margin-left: 10px;
    padding-left: 12px;
    margin-top: 2px;
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 420px) {
  .brand-tagline {
    font-size: 7.5px;
    letter-spacing: 0.04em;
    white-space: normal;
  }
}

.brand-word {
  margin-left: 14px;
  padding-left: 16px;
  position: relative;
  white-space: nowrap;
  /* "511" digits in a bold sans to mirror the logo */
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-word::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 22px;
  width: 1px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.16);
}
.site-header:not(.dark) .brand-word::before {
  background: rgba(12, 74, 110, 0.16);
}

.brand .num-sm {
  font-size: 1em;          /* same size as the 5 — reads as "511" like the logo */
  vertical-align: 0;
  letter-spacing: 0.01em;
  margin-left: -0.2em;     /* close the gap so the digits sit together */
}
.brand .brand-word em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--clay);
}
.theme-dark .brand .brand-word em,
.site-header.dark .brand .brand-word em { color: var(--clay-soft); }

/* Footer brand — slightly larger */
.site-footer .brand-img {
  height: 42px;
}
.site-footer .brand-word::before {
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  .brand-word { margin-left: 10px; padding-left: 12px; font-size: 0.92em; }
  .brand-img { height: 32px; }
}

/* ─── Nav-links pill ─── */
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: 999px;
  padding: 5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 8px rgba(12, 74, 110, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header.dark .nav-links {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.20);
}
.nav-links a {
  position: relative;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--on-light-soft);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.site-header.dark .nav-links a { color: rgba(255, 255, 255, 0.78); }
.nav-links a:hover {
  color: var(--ink);
  background: rgba(14, 165, 233, 0.08);
}
.site-header.dark .nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.10);
}
.nav-links a.is-active {
  background: linear-gradient(135deg, var(--clay), var(--clay-deep));
  color: #FFFFFF;
  box-shadow:
    0 4px 14px rgba(14, 165, 233, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.site-header.dark .nav-links a.is-active {
  background: linear-gradient(135deg, var(--clay-soft), var(--clay));
  color: var(--ink);
  box-shadow:
    0 4px 14px rgba(125, 211, 252, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ─── Right-side CTA group ─── */
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Premium "Get a quote" button */
.nav-cta .btn {
  padding: 10px 18px 10px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.nav-cta .btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
  border-color: transparent;
  color: #FFFFFF;
  box-shadow:
    0 8px 24px -6px rgba(14, 165, 233, 0.45),
    0 2px 6px -2px rgba(2, 132, 199, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  isolation: isolate;
}
.nav-cta .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .65s var(--ease);
  z-index: -1;
}
.nav-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--clay-deep) 0%, var(--clay) 100%);
  transform: translateY(-1px);
  box-shadow:
    0 12px 28px -6px rgba(14, 165, 233, 0.55),
    0 4px 8px -2px rgba(2, 132, 199, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.nav-cta .btn-primary:hover::before { transform: translateX(120%); }
.nav-cta .btn-primary:active { transform: translateY(0); }
.nav-cta .btn-primary .arr {
  transition: transform .35s var(--ease);
}
.nav-cta .btn-primary:hover .arr { transform: translateX(4px) rotate(-2deg); }

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(12, 74, 110, 0.12);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.dark .hamburger {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.hamburger:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #FFFFFF;
}
.hamburger span {
  width: 16px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    background: var(--bone);
    border: 1px solid var(--line-light);
    border-radius: 22px;
    padding: 16px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s var(--ease);
  }
  .site-header.dark .nav-links { background: var(--ink-2); border-color: var(--line-dark); }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; text-align: left; padding: 12px 14px; font-size: 15px; }
  .hamburger { display: inline-flex; }
}

/* ───── Section helpers ───── */
.section {
  padding: clamp(56px, 7vw, 100px) 0;
  position: relative;
}
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }
.section-hero {
  padding-top: clamp(110px, 11vw, 150px);
  padding-bottom: clamp(60px, 7vw, 90px);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.section-head .lead { max-width: 46ch; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

/* ───── Animated entrance ───── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: .08s; }
.fade-up.d2 { transition-delay: .16s; }
.fade-up.d3 { transition-delay: .24s; }
.fade-up.d4 { transition-delay: .32s; }

/* Slide / scale variants */
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide-left.in { opacity: 1; transform: none; }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide-right.in { opacity: 1; transform: none; }
.scale-in { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.scale-in.in { opacity: 1; transform: none; }

/* Stagger children — each child reveals with progressive delay */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: .07s; }
.stagger.in > *:nth-child(3) { transition-delay: .14s; }
.stagger.in > *:nth-child(4) { transition-delay: .21s; }
.stagger.in > *:nth-child(5) { transition-delay: .28s; }
.stagger.in > *:nth-child(6) { transition-delay: .35s; }
.stagger.in > *:nth-child(7) { transition-delay: .42s; }
.stagger.in > *:nth-child(8) { transition-delay: .49s; }
.stagger.in > *:nth-child(n+9) { transition-delay: .56s; }
.stagger.in > * { opacity: 1; transform: none; }

/* Section-level reveal (whole section fades in subtly) */
section { transition: filter .6s var(--ease); }

/* Smooth scroll behaviour with offset for fixed nav */
html { scroll-padding-top: 84px; }

/* Subtle hover lift on key elements */
.btn, .card, .svc, .ind-card, .leader-card, .feature-card, .perk, .step, .dept-card {
  will-change: transform;
}

/* ───── Footer ───── */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(56px, 6.5vw, 90px) 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand .brand { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-mute); max-width: 28ch; font-size: 14px; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark-mute);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--on-dark-soft);
  padding: 6px 0;
  transition: color .2s var(--ease), transform .25s var(--ease);
}
.footer-col a:hover { color: var(--clay-soft); transform: translateX(3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: var(--on-dark-mute);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ───── Marquee / ticker ───── */
.ticker {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bone);
}
.theme-dark .ticker {
  border-color: var(--line-dark);
  background: var(--ink);
}
.ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  width: max-content;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 36px);
  color: var(--on-light-soft);
}
.theme-dark .ticker span { color: var(--on-dark-soft); }
.ticker span .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--clay);
  border-radius: 50%;
  margin: 0 28px;
  vertical-align: middle;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ───── Counters ───── */
.counter {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.counter .suffix { font-style: italic; color: var(--clay); }
.theme-dark .counter .suffix { color: var(--clay-soft); }

/* ───── Card ───── */
.card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.5vw, 36px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.theme-dark .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}

/* ───── Misc ───── */
.divider {
  height: 1px;
  background: var(--line-light);
  margin: 0;
}
.theme-dark .divider { background: var(--line-dark); }

/* ───── Grain texture overlay (subtle) ───── */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Photos removed — collapse split layouts to single column */
.svc-deep .grid { grid-template-columns: 1fr !important; max-width: 820px; }
.svc-deep:nth-of-type(even) .grid > :first-child { order: 0 !important; }
.split, .split.reverse { grid-template-columns: 1fr !important; max-width: 820px; }
.split.reverse > :first-child { order: 0 !important; }
.about-preview { grid-template-columns: 1fr !important; max-width: 760px; }
.quote-block { grid-template-columns: 1fr !important; max-width: 920px; margin: 0; }
.quote-block .qcol-left { max-width: 520px; }

/* "Coming soon" hub variant */
.office.fade-up.d3soon {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: .24s;
  border-left: 4px solid var(--clay);
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(125,211,252,.04));
}
.office.fade-up.d3soon.in { opacity: 1; transform: none; }
.office.fade-up.d3soon::before {
  content: "COMING SOON";
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--clay);
  padding: 4px 8px;
  border: 1px solid var(--clay);
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — tablet, mobile, small mobile
   ═══════════════════════════════════════════════════════════════ */

/* iPad / small laptop */
@media (max-width: 1100px) {
  .top-bar .container { padding-top: 8px; padding-bottom: 8px; gap: 16px; }
  .top-bar { font-size: 10.5px; letter-spacing: 0.1em; }
  .nav-cta .btn { padding: 9px 15px; font-size: 12.5px; }
  .nav-links a { padding: 8px 13px; font-size: 12.5px; }
}

/* Tablet portrait */
@media (max-width: 980px) {
  .site-header { top: 36px; padding: 12px 0; }
  .site-header.is-scrolled { padding: 8px 0; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .top-bar { font-size: 10px; letter-spacing: 0.08em; }
  .top-bar .container { padding-top: 7px; padding-bottom: 7px; gap: 12px; }
  .site-header { top: 32px; padding: 10px 0; }
  .site-header.is-scrolled { padding: 6px 0; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-img { height: 30px; }
  .nav-cta .btn { padding: 8px 13px; font-size: 12px; }
  .nav-cta { gap: 6px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 30px; }
  .footer-bottom { font-size: 11px; gap: 10px; }
}

/* Small mobile */
@media (max-width: 540px) {
  :root { --gutter: 14px; }
  .top-bar { font-size: 9.5px; }
  .top-bar .container { gap: 8px; }
  .site-header { top: 30px; padding: 8px 0; }
  .nav-cta .btn { padding: 7px 11px; font-size: 11.5px; }
  .nav-cta .btn .arr { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; }
  .footer-brand p { max-width: none; }
  /* keep things from clipping */
  .h-display { font-size: clamp(30px, 9vw, 44px); }
  .h-section { font-size: clamp(26px, 7vw, 36px); }
  .counter { font-size: clamp(38px, 11vw, 56px); }
  .ticker span { font-size: clamp(20px, 6vw, 28px); margin: 0; }
  .ticker-track { gap: 40px; }
}

/* prevent any element from causing horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }

/* ───── Slim, theme-matched scrollbars (≈ half default width) ───── */
html { scrollbar-width: thin; scrollbar-color: rgba(14, 165, 233, 0.55) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.45);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(14, 165, 233, 0.75); }
::-webkit-scrollbar-corner { background: transparent; }

/* ═══════════════════════════════════════════════════════════════
   LEAD-CAPTURE LANDING PAGES (apply-*.html)
   ═══════════════════════════════════════════════════════════════ */

.lp-hero {
  position: relative;
  padding-top: clamp(110px, 12vw, 160px);
  padding-bottom: clamp(40px, 5vw, 70px);
  background:
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(125, 211, 252, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bone-2) 0%, var(--bone) 100%);
  overflow: hidden;
}
.lp-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .lp-hero .container { grid-template-columns: 1fr; gap: 28px; }
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.28);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.lp-tag .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22D3EE;
  animation: gc-pulse 2s ease-in-out infinite;
}
@keyframes gc-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50%     { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

.lp-hero h1 {
  margin-top: 22px;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.lp-hero h1 em { font-style: italic; color: var(--clay); }

.lp-hero .lp-lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--on-light-mute);
  max-width: 48ch;
  margin-bottom: 26px;
  line-height: 1.55;
}

.lp-bullets {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.lp-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-light-soft);
}
.lp-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--clay-deep));
}
.lp-bullets li::after {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 8px; height: 4px;
  border-left: 1.5px solid #FFFFFF;
  border-bottom: 1.5px solid #FFFFFF;
  transform: rotate(-45deg);
}

.lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-light-mute);
}
.lp-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp-trust span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

/* ─── Form card ─── */
.lp-form-card {
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(24px, 2.6vw, 36px);
  box-shadow:
    0 32px 64px -16px rgba(12, 74, 110, 0.20),
    0 8px 16px -4px rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(12, 74, 110, 0.06);
}
.lp-form-card h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.lp-form-card h2 em { font-style: italic; color: var(--clay); }
.lp-form-card .lp-form-sub {
  font-size: 13.5px;
  color: var(--on-light-mute);
  margin-bottom: 22px;
}

.lp-form {
  display: grid;
  gap: 12px;
}
.lp-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 460px) {
  .lp-row { grid-template-columns: 1fr; }
}

.lp-field {
  display: block;
  position: relative;
}
.lp-field input,
.lp-field select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bone);
  border: 1.5px solid rgba(12, 74, 110, 0.10);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.lp-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 6l4 4 4-4' stroke='%230C4A6E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.lp-field input::placeholder { color: rgba(12, 74, 110, 0.40); }
.lp-field input:focus,
.lp-field select:focus {
  outline: none;
  border-color: var(--clay);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.lp-field.is-error input,
.lp-field.is-error select {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.04);
}
.lp-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  margin-bottom: 6px;
  font-weight: 500;
}
.lp-field-error {
  display: none;
  margin-top: 5px;
  font-size: 11.5px;
  color: #EF4444;
}
.lp-field.is-error .lp-field-error { display: block; }

.lp-submit {
  margin-top: 8px;
  position: relative;
  padding: 16px 22px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--clay) 0%, var(--clay-deep) 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 12px 28px -6px rgba(14, 165, 233, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.lp-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 32px -6px rgba(14, 165, 233, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
.lp-submit:active { transform: translateY(0); }
.lp-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.lp-submit svg { width: 16px; height: 16px; }

/* TCPA disclaimer block */
.lp-disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--on-light-mute);
}
.lp-disclaimer strong { color: var(--ink); font-weight: 600; }
.lp-disclaimer a { color: var(--clay-deep); text-decoration: underline; }

/* Success state */
.lp-success {
  display: none;
  padding: 20px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 14px;
  text-align: center;
}
.lp-success .ico {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--clay-deep));
  display: grid;
  place-items: center;
  color: #FFFFFF;
}
.lp-success h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--ink);
}
.lp-success p {
  font-size: 13.5px;
  color: var(--on-light-mute);
}
.lp-form-card.is-submitted .lp-form,
.lp-form-card.is-submitted .lp-disclaimer,
.lp-form-card.is-submitted h2,
.lp-form-card.is-submitted .lp-form-sub { display: none; }
.lp-form-card.is-submitted .lp-success { display: block; }

/* ─── Below-the-fold: steps + reassurance ─── */
.lp-steps {
  padding: clamp(56px, 7vw, 90px) 0;
  background: var(--paper);
}
.lp-steps h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
  margin-bottom: clamp(28px, 4vw, 44px);
  color: var(--ink);
}
.lp-steps h2 em { font-style: italic; color: var(--clay); }
.lp-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: lpstep;
}
@media (max-width: 800px) { .lp-steps-row { grid-template-columns: 1fr; } }
.lp-step {
  background: var(--bone);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: 24px 22px;
  counter-increment: lpstep;
}
.lp-step::before {
  content: counter(lpstep, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 38px;
  line-height: 1;
  color: var(--clay-soft);
  margin-bottom: 12px;
}
.lp-step h4 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.lp-step p { font-size: 13.5px; color: var(--on-light-mute); line-height: 1.55; }

/* Long-form bottom disclaimer (full legal copy) */
.lp-legal {
  padding: clamp(40px, 5vw, 60px) 0;
  background: var(--bone-2);
  border-top: 1px solid var(--line-light);
}
.lp-legal h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  margin-bottom: 16px;
}
.lp-legal p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--on-light-mute);
  max-width: 80ch;
  margin-bottom: 12px;
}
.lp-legal a { color: var(--clay-deep); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   BRAND-BLUE BACKGROUND — site-wide (#0291d6 family)
   Recolours the light page backgrounds only. Cards, buttons, inputs
   and dark sections are intentionally left untouched.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --clay: #0291d6;          /* primary accent -> client brand blue */
  --clay-deep: #0277b4;     /* accent hover */
  --on-light-mute: #1d4459; /* darker body text for contrast on blue */
}
body { background: #8FD0F2; }

/* light content sections -> bold blue wash */
.theme-light,
.legal-body,
.contact-section,
.positions,
.process,
.quote-section {
  background: linear-gradient(180deg, #84CAEF 0%, #AADEF7 50%, #84CAEF 100%) !important;
}

/* light page heroes -> bold blue with a soft brand-blue glow */
.about-hero,
.careers-hero,
.contact-hero,
.page-hero,
.pricing-hero,
.legal-hero,
.lp-hero {
  background:
    radial-gradient(circle at 80% 18%, rgba(2, 145, 214, 0.22), transparent 55%),
    radial-gradient(circle at 10% 88%, rgba(2, 145, 214, 0.14), transparent 55%),
    linear-gradient(180deg, #AADEF7 0%, #84CAEF 100%) !important;
}