/* =========================================================
   TrueBooks Tax — site styles
   ========================================================= */

:root {
  --navy-950: #06121f;
  --navy-900: #0a1c33;
  --navy-800: #10294a;
  --navy-700: #1b3b66;

  --em-50: #ecfdf5;
  --em-100: #d1fae5;
  --em-200: #bfebd9;
  --em-300: #6ee7b7;
  --em-400: #34d399;
  --em-500: #10b981;
  --em-600: #059669;
  --em-700: #047857;
  --on-em: #04261b;

  --ink: #0b1729;
  --text: #334155;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --on-dark: #e8eef6;
  --on-dark-muted: #a9b7cb;

  --shadow-sm: 0 1px 2px rgba(10, 28, 51, .06), 0 1px 3px rgba(10, 28, 51, .08);
  --shadow-md: 0 14px 34px -14px rgba(10, 28, 51, .22);
  --shadow-lg: 0 30px 70px -28px rgba(10, 28, 51, .45);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-gutter: stable; /* no sideways jump when the mobile menu locks scrolling */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

.js body { animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--em-700); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--em-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - clamp(32px, 6vw, 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--em-500);
  color: var(--on-em);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Placeholder marker: anything wrapped in .todo still needs a real value */
.todo {
  background: #fef3c7;
  color: #78350f;
  border: 1px dashed #d97706;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
}

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--em-500), var(--em-300));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-900);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  scale: .6;
  pointer-events: none;
  transition: opacity .3s, scale .45s var(--ease-out), background-color .2s;
}
.to-top.is-shown { opacity: 1; scale: 1; pointer-events: auto; }
.to-top:hover { background: var(--em-600); }
.to-top:focus-visible { border-radius: 50%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease-out), background-color .25s, border-color .25s,
              color .25s, box-shadow .3s var(--ease-out);
}
.btn:focus-visible { border-radius: 999px; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
  background: var(--em-500);
  color: var(--on-em);
  box-shadow: 0 12px 30px -12px rgba(16, 185, 129, .65);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn-primary:hover {
  background: var(--em-400);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(16, 185, 129, .75);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .45);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--ink);
  border-color: #cfd8e3;
  background: #fff;
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s, box-shadow .35s, color .35s, height .35s var(--ease-out);
}
.site-header.is-scrolled {
  --header-h: 66px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(10, 28, 51, .35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark { width: 38px; height: 38px; transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }
.brand-name span { color: var(--em-400); font-weight: 600; }
.is-scrolled .brand-name span { color: var(--em-700); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  opacity: .82;
  transition: opacity .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--em-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { opacity: 1; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { min-height: 44px; padding: .6rem 1.15rem; font-size: .93rem; }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .4s var(--ease-out);
  }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 32px;
    padding: calc(var(--header-h) + 28px) clamp(16px, 6vw, 40px) 40px;
    background:
      radial-gradient(600px 400px at 100% 0%, rgba(16, 185, 129, .18), transparent 60%),
      var(--navy-950);
    color: #fff;
    overflow-y: auto;
    clip-path: circle(0 at calc(100% - 40px) 38px);
    visibility: hidden;
    transition: clip-path .55s var(--ease-out), visibility 0s linear .55s;
  }
  .nav-open .site-nav {
    clip-path: circle(150% at calc(100% - 40px) 38px);
    visibility: visible;
    transition: clip-path .75s var(--ease-out), visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.02em;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s, transform .55s var(--ease-out);
  }
  .nav-link::after { display: none; }
  .nav-open .nav-link { opacity: 1; transform: none; }
  .site-nav li:nth-child(1) .nav-link { transition-delay: .12s; }
  .site-nav li:nth-child(2) .nav-link { transition-delay: .17s; }
  .site-nav li:nth-child(3) .nav-link { transition-delay: .22s; }
  .site-nav li:nth-child(4) .nav-link { transition-delay: .27s; }
  .site-nav li:nth-child(5) .nav-link { transition-delay: .32s; }
  .site-nav li:nth-child(6) .nav-link { transition-delay: .37s; }
  .nav-link.is-active { color: var(--em-400); }
  .nav-cta { min-height: 54px; font-size: 1.05rem; }

  /* backdrop-filter would trap the fixed menu inside the header */
  .nav-open .site-header,
  .nav-open .site-header.is-scrolled {
    color: #fff;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-open .brand-name span { color: var(--em-400); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Shared section bits ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 740px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); margin: 0; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--em-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h2 {
  margin: .8rem 0 1rem;
  font-size: clamp(2rem, 3.9vw, 3.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
h2 em, .hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--em-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 92px));
  color: var(--on-dark);
  background:
    radial-gradient(1100px 620px at 88% 0%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(900px 520px at 0% 100%, rgba(37, 99, 235, .13), transparent 60%),
    var(--navy-900);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 38%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 62% 38%, #000 25%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}
@keyframes grid-drift { to { background-position: 56px 56px; } }

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.orb-1 {
  width: 440px; height: 440px;
  top: -140px; right: -90px;
  background: var(--em-500);
  opacity: .22;
  animation: orb-drift 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 380px; height: 380px;
  bottom: -170px; left: -130px;
  background: #2563eb;
  opacity: .2;
  animation: orb-drift 21s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift { to { transform: translate(-70px, 50px) scale(1.15); } }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  padding-bottom: clamp(72px, 9vw, 116px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .85rem;
  font-weight: 600;
  color: var(--on-dark);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--em-400);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: #fff;
}
.hero-title em { color: var(--em-400); font-size: 1.08em; }

.hero-lead {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  color: var(--on-dark-muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: var(--on-dark-muted);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--em-400); width: 1.1em; height: 1.1em; }

/* Word-by-word headline reveal */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .12em 0;
  margin: 0 -.06em -.12em 0;
}
.word-inner { display: inline-block; }
.js .word-inner {
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
.js .is-visible .word-inner, .js .is-visible.word-inner { transform: none; }

/* Hero visual */
.hero-visual { perspective: 1200px; }
.hv-stage {
  position: relative;
  max-width: 470px;
  margin-inline: auto;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease-out);
}

.hv-main {
  position: relative;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 50px 90px -35px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.hv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.hv-label {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.hv-title { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.hv-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--em-100);
  border-radius: 999px;
  background: var(--em-50);
  font-size: .72rem;
  font-weight: 700;
  color: var(--em-700);
}
.hv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.hv-stats div { padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.hv-stats span { display: block; font-size: .74rem; font-weight: 600; color: var(--muted); }
.hv-stats strong {
  display: block;
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hv-stats strong.pos { color: var(--em-700); }

.hv-svg { width: 100%; height: auto; overflow: visible; }
.hv-svg .grid-lines line { stroke: var(--line); stroke-width: 1; }
.hv-svg .bars rect { fill: url(#barGrad); }
.hv-svg .trend {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.hv-svg .trend-dot { fill: #fff; stroke: var(--navy-700); stroke-width: 2.5; }
.hv-svg text { font-family: var(--font); font-size: 10px; font-weight: 600; fill: var(--muted); }

.js .hv-svg .bars rect {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 90ms + 500ms);
}
.js .hv-svg .trend { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out) 1.1s; }
.js .hv-svg .trend-dot { opacity: 0; transition: opacity .4s 2.6s; }
.js .is-visible .hv-svg .bars rect { transform: scaleY(1); }
.js .is-visible .hv-svg .trend { stroke-dashoffset: 0; }
.js .is-visible .hv-svg .trend-dot { opacity: 1; }

.hv-legend { display: flex; gap: 18px; margin-top: 8px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.hv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--em-500); }
.hv-legend i.line { height: 3px; border-radius: 2px; background: var(--navy-700); }

.hv-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: .8rem;
  line-height: 1.3;
  box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .5);
  transform: translateZ(60px);
  animation: float 6s ease-in-out infinite;
}
.hv-chip strong { display: block; font-size: .85rem; font-weight: 700; }
.hv-chip small { display: block; font-size: .74rem; color: var(--muted); }
.chip-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--em-50);
  color: var(--em-700);
}
.chip-icon .icon { width: 18px; height: 18px; }
.chip-icon.navy { background: #e8eef8; color: var(--navy-700); }
.hv-chip-1 { top: -24px; left: -36px; }
.hv-chip-2 { top: 44%; right: clamp(-48px, calc(121px - 13vw), -12px); animation-delay: -2s; }
.hv-chip-3 { bottom: -30px; left: 30px; min-width: 214px; animation-delay: -4s; }
.hv-chip-3 > div { flex: 1; }
.chip-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.chip-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--em-500), var(--em-400));
  transform-origin: left;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.js .hv-chip { opacity: 0; scale: .85; transition: opacity .6s ease, scale .7s var(--ease-out); }
.js .hv-chip-1 { transition-delay: .9s; }
.js .hv-chip-2 { transition-delay: 1.2s; }
.js .hv-chip-3 { transition-delay: 1.5s; }
.js .is-visible .hv-chip { opacity: 1; scale: 1; }
.js .chip-bar i { transform: scaleX(0); transition: transform 1.8s var(--ease-out) 1.9s; }
.js .is-visible .chip-bar i { transform: scaleX(1); }

/* Services ticker */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(6, 18, 31, .45);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}
.marquee-item svg { width: 12px; height: 12px; fill: var(--em-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (services, industries) ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow-md); border-color: var(--em-200); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; font-size: .975rem; line-height: 1.6; color: var(--muted); }

/* soft spotlight that follows the pointer */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(16, 185, 129, .11), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--em-50);
  color: var(--em-700);
  transition: background-color .35s, color .35s, transform .55s var(--ease-out);
}
.card-icon .icon { width: 24px; height: 24px; }
.card:hover .card-icon { background: var(--em-500); color: var(--on-em); transform: rotate(-8deg) scale(1.06); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before, .steps::after {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(12.5% - 10px);
  right: calc(12.5% - 10px);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.steps::after { background: linear-gradient(90deg, var(--em-500), var(--em-400)); }
.js .steps::after { transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease-out) .2s; }
.js .steps.is-visible::after { transform: scaleX(1); }

.step { position: relative; padding: 0 8px; text-align: center; }
.step-num {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border: 2px solid var(--em-500);
  border-radius: 50%;
  background: var(--em-500);
  color: var(--on-em);
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, .14);
}
.js .step-num {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  transition: background-color .5s, border-color .5s, color .5s, box-shadow .6s var(--ease-out);
  transition-delay: calc(var(--i) * 480ms + 250ms);
}
.js .steps.is-visible .step-num {
  border-color: var(--em-500);
  background: var(--em-500);
  color: var(--on-em);
  box-shadow: 0 0 0 8px rgba(16, 185, 129, .14);
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .975rem; }

/* ---------- Why us ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.split-copy > p { font-size: 1.1rem; color: var(--muted); }

.feature-list { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.feature-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--em-400);
  transition: transform .5s var(--ease-out);
}
.feature:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); }
.feature h3 { margin: 2px 0 4px; font-size: 1.06rem; }
.feature p { margin: 0; font-size: .975rem; color: var(--muted); }

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(500px 340px at 100% 0%, rgba(16, 185, 129, .22), transparent 60%),
    var(--navy-900);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 20%, #000 20%, transparent 70%);
}

.checklist-card { padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.cl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cl-progress { height: 6px; margin: 16px 0 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.cl-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--em-500), var(--em-400));
  transform-origin: left;
}
.js .cl-progress i { transform: scaleX(0); transition: transform 2.4s var(--ease-out) .4s; }
.js .is-visible .cl-progress i { transform: scaleX(1); }

.cl-list { margin: 0; padding: 0; list-style: none; }
.cl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}
.cl-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.cl-check {
  width: 26px; height: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--em-500);
  border-radius: 50%;
  background: var(--em-500);
}
.cl-check svg { width: 14px; height: 14px; fill: none; stroke: var(--on-em); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; }
.js .cl-check {
  border-color: var(--line);
  background: #fff;
  transition: background-color .4s, border-color .4s;
  transition-delay: calc(var(--i) * 400ms + 350ms);
}
.js .cl-check svg { stroke-dashoffset: 24; transition: stroke-dashoffset .45s ease; transition-delay: calc(var(--i) * 400ms + 500ms); }
.js .is-visible .cl-check { border-color: var(--em-500); background: var(--em-500); }
.js .is-visible .cl-check svg { stroke-dashoffset: 0; }

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 0 auto;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .88rem;
  line-height: 1.35;
}
.toast small { display: block; color: var(--on-dark-muted); font-size: .78rem; }
.toast .chip-icon { background: var(--em-500); color: var(--on-em); }
.js .toast { opacity: 0; translate: 0 16px; transition: opacity .6s, translate .7s var(--ease-out); transition-delay: 2.6s; }
.js .is-visible .toast { opacity: 1; translate: 0 0; }

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ind-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.ind-card .card-icon { margin: 0; }
.section-foot { margin: 36px 0 0; text-align: center; color: var(--muted); }
.section-foot a { font-weight: 700; text-decoration: none; }
.section-foot a:hover { text-decoration: underline; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px 28px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.plan:hover { translate: 0 -6px; box-shadow: var(--shadow-md); border-color: var(--em-200); }
.plan h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.plan-for { margin: 6px 0 0; font-size: .95rem; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 26px 0 24px; }
.plan-price strong {
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-price span { font-weight: 600; color: var(--muted); }
.plan .btn { width: 100%; }

.plan-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .97rem; line-height: 1.45; color: var(--text); }
.plan-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--em-600); }
.plan-list .plan-base { font-weight: 700; color: var(--ink); }

/* Featured (Premium) plan: dark card with a slowly travelling border light */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.plan-featured {
  isolation: isolate;
  border-color: transparent;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(16, 185, 129, .22), transparent 65%),
    var(--navy-900);
  color: var(--on-dark-muted);
  box-shadow: var(--shadow-lg);
}
.plan-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), rgba(52, 211, 153, .12), var(--em-400) 18%, rgba(52, 211, 153, .12) 36%, rgba(52, 211, 153, .12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-travel 6s linear infinite;
  pointer-events: none;
}
@keyframes border-travel { to { --angle: 360deg; } }
.plan-featured:hover { border-color: transparent; box-shadow: 0 40px 80px -30px rgba(10, 28, 51, .6); }
.plan-featured h3, .plan-featured .plan-price strong { color: #fff; }
.plan-featured .plan-for, .plan-featured .plan-price span { color: var(--on-dark-muted); }
.plan-featured .plan-list { border-top-color: rgba(255, 255, 255, .12); }
.plan-featured .plan-list li { color: var(--on-dark); }
.plan-featured .plan-list .icon { color: var(--em-400); }
.plan-featured .plan-list .plan-base { color: #fff; }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--em-500);
  color: var(--on-em);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .7);
}

@media (min-width: 1101px) {
  .plan-featured { margin-block: -14px; padding-block: 48px 46px; }
}

/* Pulse the service dropdown when a package button pre-selects it */
.field.is-prefilled select { animation: prefill 1.8s ease .7s; }
@keyframes prefill {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  30% { border-color: var(--em-500); box-shadow: 0 0 0 6px rgba(16, 185, 129, .28); }
}

/* ---------- CTA band ---------- */
.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(40px, 7vw, 80px);
  border-radius: 32px;
  background: var(--navy-900);
  color: var(--on-dark-muted);
}
.cta-box::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px; height: 700px;
  right: -220px; top: -360px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, .0), rgba(16, 185, 129, .35), rgba(37, 99, 235, .2), rgba(16, 185, 129, .0));
  filter: blur(60px);
  animation: spin 18s linear infinite;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-box h2 { margin-top: 0; color: #fff; }
.cta-box h2 em { color: var(--em-400); }
.cta-box p { margin: 0; font-size: 1.12rem; max-width: 36rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.faq-intro { position: sticky; top: 110px; }
.faq-intro p { color: var(--muted); font-size: 1.08rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--em-700); }
.faq-plus {
  position: relative;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border: 1px solid #cfd8e3;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--ease-out);
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item.is-open .faq-plus { transform: rotate(180deg); border-color: var(--em-500); background: var(--em-500); color: var(--on-em); }
.faq-item.is-open .faq-plus::after { transform: rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .5s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > div { visibility: visible; transition: visibility 0s; }
.faq-a p { margin: 0; padding: 0 54px 24px 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-copy > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { display: grid; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.ci-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--em-700);
}
.contact-list small {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list strong { color: var(--ink); font-weight: 600; }
.contact-email { font-size: 1.05rem; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--em-700); text-decoration: underline; }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.form-card > p { margin: 0 0 24px; color: var(--muted); font-size: .97rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--em-700); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' 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;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfd8e3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--em-500);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18);
}
.field-error { display: none; margin: 0; font-size: .85rem; font-weight: 600; color: #b42318; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d92d20; }
.field.has-error .field-error { display: block; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card .btn-block { margin-top: 24px; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 14px; border-radius: 12px; background: var(--em-50); color: #065f46; }
.form-status.is-error { padding: 12px 14px; border-radius: 12px; background: #fef3f2; color: #b42318; }
.form-status.is-warn { padding: 12px 14px; border-radius: 12px; background: #fffaeb; color: #93370d; }

.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(4, 38, 27, .25);
  border-top-color: var(--on-em);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 76px 0 28px;
  background: var(--navy-950);
  color: var(--on-dark-muted);
  font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { max-width: 22rem; }
.site-footer h3 {
  margin: 0 0 16px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .875rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Stats band (home + about) ---------- */
.stats-section { padding-block: clamp(56px, 7vw, 88px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 28px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat p { margin: 0; }
.stat-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(2.1rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-value.stat-text { font-size: clamp(1.45rem, 2.3vw, 1.8rem); letter-spacing: -.02em; min-height: 1.55em; }
.stat-value .icon { width: 1.1em; height: 1.1em; color: var(--em-600); }
.stat-label { font-size: .95rem; font-weight: 600; line-height: 1.45; color: var(--muted); }

.founder-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 28px 0 0;
  text-align: center;
  color: var(--muted);
}
.founder-line img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--em-200); }
.founder-line p { margin: 0; max-width: 46rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--em-700);
  text-decoration: none;
}
.text-link .icon { width: 1em; height: 1em; transition: transform .3s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- About page ---------- */
.page-hero .hero-inner { grid-template-columns: 1.1fr .9fr; }
.page-title { font-size: clamp(2.2rem, 4.3vw, 3.5rem); }

.breadcrumb { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .88rem; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

.portrait { position: relative; isolation: isolate; max-width: 420px; margin: 0 auto; perspective: 1200px; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  z-index: -1;
  border: 2px solid rgba(52, 211, 153, .45);
  border-radius: 30px;
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 28px;
  background: var(--navy-800);
  box-shadow: 0 50px 90px -35px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1);
}
.portrait-frame picture { display: block; height: 100%; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.js .portrait-frame img { transform: scale(1.08); transition: transform 1.8s var(--ease-out) .2s; }
.js .is-visible .portrait-frame img { transform: scale(1); }
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 18, 31, .88) 0%, rgba(6, 18, 31, .25) 30%, transparent 50%);
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: #fff;
}
.portrait-caption strong { font-size: 1.1rem; }
.portrait-caption span:last-child { font-size: .88rem; color: var(--on-dark-muted); }
.portrait .pc-1 { top: 34px; left: -44px; }
.portrait .pc-2 { bottom: 118px; right: -40px; animation-delay: -3s; }
.js .portrait .pc-1 { transition-delay: 1s; }
.js .portrait .pc-2 { transition-delay: 1.3s; }

.split-top { align-items: start; }
.story-copy p { font-size: 1.08rem; }
.software { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.software-label {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--em-200);
  border-radius: 999px;
  background: var(--em-50);
  font-size: .92rem;
  font-weight: 700;
  color: #065f46;
}

.expertise {
  columns: 3 280px;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.expertise li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  break-inside: avoid;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.expertise .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--em-600); }

.lead-muted { font-size: 1.1rem; color: var(--muted); }

/* Credentials shown as a ledger: ruled rows, double rule under the last line */
.ledger {
  padding: 8px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 14px;
  border-bottom: 2px solid var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.ledger-head span:last-child { color: var(--muted); }
.ledger-rows { margin: 0; border-bottom: 4px double var(--ink); }
.ledger-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px dashed #cfd8e3;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row dt {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--em-700);
  padding-top: 3px;
}
.ledger-row dd { margin: 0; font-weight: 600; color: var(--ink); }

.serve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.serve-card { padding: 34px 32px; }
.serve-card p { margin-bottom: 20px; }

.commitment {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px);
  border-radius: 32px;
  background:
    radial-gradient(600px 360px at 0% 100%, rgba(16, 185, 129, .2), transparent 60%),
    var(--navy-900);
  color: var(--on-dark-muted);
  text-align: center;
}
.commitment .eyebrow { color: var(--em-400); }
.commitment blockquote { margin: 18px auto 18px; max-width: 46rem; }
.commitment blockquote p {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.commitment blockquote em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--em-400); }
.commitment-text { max-width: 40rem; margin: 0 auto; font-size: 1.08rem; }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.values li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-weight: 700;
  color: #fff;
}
.values .icon { width: 18px; height: 18px; color: var(--em-400); }

@media (max-width: 960px) {
  .page-hero .hero-inner { grid-template-columns: 1fr; }
  .portrait { margin-top: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .serve-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .portrait { max-width: 340px; }
  .portrait::before { inset: 18px -12px -18px 12px; }
  .portrait .pc-1 { left: -8px; top: 18px; }
  .portrait .pc-2 { right: -8px; bottom: 100px; }
  .stat { padding: 22px 18px; }
  .ledger { padding-inline: 20px; }
  .ledger-head span:first-child { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Legal pages (privacy) ---------- */
.legal-hero { padding-bottom: clamp(48px, 7vw, 80px); }
.legal-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 10px; }
.legal-section { padding-top: clamp(48px, 7vw, 80px); }
.legal { max-width: 760px; }
.legal-intro { font-size: 1.12rem; color: var(--text); }
.legal h2 {
  margin: 2.4rem 0 .8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -.02em;
}
.legal h3 { margin: 1.4rem 0 .5rem; font-size: 1.08rem; }
.legal p, .legal li { color: var(--text); line-height: 1.75; }
.legal ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal li::marker { color: var(--em-600); }
.legal a { font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .85s var(--ease-out) var(--d, 0ms),
    transform .85s var(--ease-out) var(--d, 0ms),
    translate .4s var(--ease-out),
    box-shadow .4s var(--ease-out),
    border-color .4s;
}
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.94) translateY(20px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { gap: 18px; }
  .plan { padding-inline: 22px; }
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 32px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { padding: 24px 12px 32px; }
  .split, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before, .steps::after {
    top: 28px; bottom: 28px;
    left: 27px; right: auto;
    width: 2px; height: auto;
  }
  .js .steps::after { transform: scaleY(0); transform-origin: top; }
  .js .steps.is-visible::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; padding: 0; text-align: left; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 13px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .services-grid, .ind-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hv-chip-1 { left: -6px; top: -30px; }
  .hv-chip-2 { right: -6px; top: auto; bottom: 72px; }
  .hv-chip-3 { left: 12px; bottom: -34px; }
  .hv-main { padding: 18px; }
  .hv-stats { gap: 8px; }
  .hv-stats div { padding: 10px 8px; }
  .faq-a p { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
}
