/* =========================================================
   YJ Turnkey — design tokens
   Change brand colors here and they update everywhere.
   ========================================================= */
:root {
  --navy-950: #020617;
  --navy-900: #0B1220;
  --navy-800: #0F172A;
  --navy-700: #1E293B;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #EEF2F6;
  --slate-50:  #F8FAFC;
  --white: #FFFFFF;

  /* Brand */
  --accent: #0369A1;        /* primary blue, AA on white */
  --accent-hover: #075985;
  --blue: #2563EB;
  --sky: #0EA5E9;
  --sky-light: #38BDF8;
  --teal: #0D9488;
  --amber: #F59E0B;
  --amber-dark: #B45309;
  --green: #16A34A;
  --rose: #E11D48;
  --success: #15803D;
  --danger: #B91C1C;

  --grad-brand: linear-gradient(120deg, #0369A1 0%, #2563EB 50%, #0D9488 100%);
  --grad-button: linear-gradient(120deg, #0369A1, #2563EB);

  --text: var(--navy-950);
  --text-muted: var(--slate-600);
  --bg: var(--white);
  --border: var(--slate-200);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow: 0 10px 30px -10px rgb(15 23 42 / .15), 0 2px 6px rgb(15 23 42 / .05);
  --shadow-lg: 0 30px 70px -20px rgb(15 23 42 / .28), 0 8px 20px -8px rgb(15 23 42 / .12);
  --shadow-color: 0 20px 50px -18px rgb(37 99 235 / .45);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy-800); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-brand); }
.eyebrow-light { color: var(--sky-light); }

.grad-text {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 22px;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { --btn-h: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-button); color: var(--white); box-shadow: var(--shadow-color); }
.btn-primary:hover { box-shadow: 0 24px 50px -16px rgb(37 99 235 / .6); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-outline { color: var(--navy-800); border-color: var(--slate-300); background: rgb(255 255 255 / .7); backdrop-filter: blur(8px); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--white); }
.btn-ghost-light { color: var(--white); border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .06); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .7); }
.btn-white { background: var(--white); color: var(--navy-800); box-shadow: 0 14px 30px -12px rgb(2 6 23 / .4); }
.btn-white:hover { background: #F0F9FF; }

/* Light sweep across the button on hover */
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-shine:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-white.btn-shine::after { background: linear-gradient(110deg, transparent 30%, rgb(56 189 248 / .25) 50%, transparent 70%); }

.play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-button); color: #fff; }
.play svg { fill: currentColor; stroke: none; margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgb(255 255 255 / .72);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.site-header.scrolled { background: rgb(255 255 255 / .9); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--sky), var(--blue), var(--teal), var(--amber)); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; transition: transform .4s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { white-space: nowrap; font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.brand-name strong { font-weight: 800; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--navy-700); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.main-nav a:hover { background: var(--slate-100); color: var(--navy-950); }
.main-nav a.active { color: var(--accent); background: #E0F2FE; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--navy-800); }
.header-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (bright) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #F0F9FF 0%, #F8FAFC 60%, #FFFFFF 100%);
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(56px, 6vw, 80px);
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(28px, 3.5vw, 48px));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgb(15 23 42 / .09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; will-change: transform; }
.blob-1 { width: 520px; height: 520px; background: #7DD3FC; top: -140px; right: -80px; animation: drift1 18s ease-in-out infinite alternate; }
.blob-2 { width: 420px; height: 420px; background: #FDE68A; bottom: -120px; right: 28%; opacity: .6; animation: drift2 22s ease-in-out infinite alternate; }
.blob-3 { width: 380px; height: 380px; background: #99F6E4; top: 30%; left: -140px; opacity: .55; animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-120px, 80px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(140px, -60px) scale(.9); } }
@keyframes drift3 { to { transform: translate(90px, -70px) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .8); border: 1px solid #BAE6FD; box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 700; color: var(--navy-700);
}
.pill-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.pill-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; color: var(--navy-950); }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator-word {
  grid-area: 1 / 1; padding-bottom: .08em;
  background: var(--grad-brand); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(.45em) rotateX(-40deg); filter: blur(6px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease);
  animation: gradShift 6s linear infinite;
}
.rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-.45em) rotateX(40deg); filter: blur(6px); transition-duration: .35s; }
@keyframes gradShift { to { background-position: 200% 0; } }

.hero-lede { margin-top: 18px; font-size: clamp(1.08rem, 1rem + .4vw, 1.28rem); color: var(--slate-600); max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: .94rem; font-weight: 600; color: var(--navy-700); }
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.ht-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.ht-blue { background: #DBEAFE; color: var(--blue); }
.ht-green { background: #DCFCE7; color: var(--green); }
.ht-amber { background: #FEF3C7; color: var(--amber-dark); }

/* Hero visual */
.hero-visual { position: relative; perspective: 1200px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .3s var(--ease); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { translate: 0 -12px; } }
.turn-card {
  position: relative; background: rgb(255 255 255 / .92); color: var(--text);
  border-radius: var(--radius-lg); padding: 26px; border: 1px solid rgb(255 255 255 / .8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.turn-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(140deg, #7DD3FC, #2563EB 40%, #FDE68A 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.turn-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.tc-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.tc-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.tc-badge { font-size: .78rem; font-weight: 800; background: #E0F2FE; color: #075985; padding: 6px 11px; border-radius: 999px; white-space: nowrap; transition: background-color .3s, color .3s; }
.tc-badge.ready { background: #DCFCE7; color: #166534; }
.tc-tasks li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border); font-weight: 600; font-size: .95rem;
  transition: color .3s;
}
.tc-tasks em { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--slate-500); padding: 3px 9px; border-radius: 999px; background: var(--slate-100); transition: background-color .3s, color .3s; }
.tc-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--slate-300); flex-shrink: 0; position: relative; transition: background-color .3s, border-color .3s, box-shadow .3s, transform .4s var(--spring); }
.tc-tasks .done { color: var(--slate-500); }
.tc-tasks .done .tc-check { background: var(--c); border-color: var(--c); transform: scale(1.08); }
.tc-tasks .done .tc-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tc-tasks .done em { color: #166534; background: #DCFCE7; }
.tc-tasks .active .tc-check { border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); animation: pulseRing 1.2s ease-in-out infinite; }
.tc-tasks .active em { color: #fff; background: var(--c); }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 8%, transparent); } }
.tc-progress { height: 10px; background: var(--slate-100); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.tc-progress span {
  display: block; height: 100%; border-radius: 99px; transition: width .8s var(--ease);
  background: linear-gradient(90deg, #0EA5E9, #2563EB, #0D9488, #F59E0B); background-size: 300% 100%;
  animation: gradShift 4s linear infinite;
}
.tc-foot { margin-top: 14px; font-size: .92rem; color: var(--text-muted); }
.tc-foot strong { color: var(--text); }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--white);
  box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; white-space: nowrap;
  transform: translateZ(40px);
}
.float-chip strong { display: block; font-weight: 800; }
.float-chip small { color: var(--text-muted); font-weight: 600; font-size: .78rem; }
.chip-a { top: -26px; left: -54px; animation: bob 5s ease-in-out infinite; }
.chip-b { top: auto; bottom: -30px; right: -28px; animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.fc-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.fc-green { background: #DCFCE7; color: var(--green); }
.fc-amber { background: #FEF3C7; color: var(--amber-dark); }
.fc-amber svg { fill: currentColor; }

.float-stat {
  position: absolute; right: -26px; bottom: -48px;
  background: linear-gradient(135deg, #F59E0B, #EA580C); color: var(--white);
  padding: 16px 22px; border-radius: var(--radius); box-shadow: 0 20px 40px -14px rgb(234 88 12 / .55);
  transform: translateZ(60px) rotate(-3deg);
  animation: bob 5.5s ease-in-out -1s infinite;
}
.fs-num { font-size: 2.3rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.fs-num span { font-size: 1rem; margin-left: 2px; }
.fs-label { font-size: .82rem; font-weight: 700; margin-top: 4px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--slate-300); border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Logos marquee ---------- */
.logos { padding: 24px 0 28px; background: var(--white); }
.logos-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.logos-title { font-size: .9rem; font-weight: 700; color: var(--text-muted); }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--white);
  font: inherit; font-size: .78rem; font-weight: 700; color: var(--slate-600); cursor: pointer;
}
.marquee-toggle:hover { border-color: var(--slate-500); color: var(--navy-800); }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee {
  display: flex; overflow: hidden; gap: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-group { display: flex; gap: 20px; flex-shrink: 0; min-width: 100%; justify-content: space-around; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-group, .marquee:focus-within .marquee-group, .marquee.paused .marquee-group { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 20px)); } }
.logo-slot {
  width: 170px; height: 64px; display: grid; place-items: center; flex-shrink: 0;
  border: 1.5px dashed var(--slate-300); border-radius: 12px;
  font-size: .8rem; font-weight: 600; color: var(--slate-500); background: var(--slate-50);
}
.marquee-group img { display: block; }

/* ---------- Stats (gradient panel) ---------- */
.stats { padding: 8px 0 24px; background: var(--white); }
.stats-grid {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 40px 28px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0C4A6E 0%, #1D4ED8 45%, #0F766E 100%);
  background-size: 200% 200%; animation: gradPan 14s ease-in-out infinite alternate;
  box-shadow: var(--shadow-color);
}
.stats-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 15% 20%, rgb(56 189 248 / .45), transparent 40%), radial-gradient(circle at 85% 90%, rgb(245 158 11 / .35), transparent 40%);
}
@keyframes gradPan { to { background-position: 100% 100%; } }
.stat { text-align: center; padding: 8px; color: var(--white); }
.stat + .stat { border-left: 1px solid rgb(255 255 255 / .2); }
.stat-num { font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .95rem; color: #E0F2FE; font-weight: 600; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(48px, 5vw, 72px) 0; }
.section-tint { background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%); }
.section-sky { background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 50%, #FFFBEB 100%); }
.section-dark { background: #0B1B3F; color: var(--white); overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 50% at 90% 10%, rgb(37 99 235 / .55), transparent 70%), radial-gradient(35% 45% at 5% 95%, rgb(13 148 136 / .45), transparent 70%), radial-gradient(25% 30% at 50% 60%, rgb(245 158 11 / .12), transparent 70%);
}
.section-quote { background: linear-gradient(160deg, #F0F9FF 0%, #FFFFFF 45%, #FFFBEB 100%); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-lede { margin-top: 12px; font-size: 1.05rem; color: var(--text-muted); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  --c: var(--accent);
  position: relative; overflow: hidden; isolation: isolate;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease);
}
.service-card::before { /* spotlight that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 60%);
}
.service-card::after { /* colored top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover { border-color: color-mix(in srgb, var(--c) 40%, white); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c) 13%, white); color: var(--c);
  transition: transform .45s var(--spring), background-color .3s, color .3s;
}
.service-card:hover .svc-icon { transform: rotate(-8deg) scale(1.1); background: var(--c); color: #fff; }
.svc-icon svg { width: 24px; height: 24px; }
.service-card p { margin-top: 8px; color: var(--text-muted); }
.service-card-cta {
  border: 0; color: var(--white); display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #1D4ED8, #0369A1 50%, #0F766E); background-size: 200% 200%;
  animation: gradPan 10s ease-in-out infinite alternate;
}
.service-card-cta::before, .service-card-cta::after { display: none; }
.service-card-cta h3 { font-size: 1.4rem; }
.service-card-cta p { color: #E0F2FE; margin-bottom: 22px; }
.service-card-cta .btn { align-self: flex-start; }
.service-card-cta:hover { box-shadow: var(--shadow-color); }

/* Process */
.process-wrap { position: relative; }
.process-track { position: absolute; left: 12.5%; right: 12.5%; top: 46px; height: 4px; border-radius: 4px; background: rgb(15 23 42 / .08); }
.process-track span { display: block; height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #0EA5E9, #2563EB, #0D9488, #F59E0B); transition: transform .15s linear; }
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; padding: 22px 20px; text-align: center;
  background: rgb(255 255 255 / .75); backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / .9); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  color: var(--white); font-weight: 800; font-size: 1rem; margin-bottom: 14px;
  background: var(--sc); box-shadow: 0 12px 24px -10px var(--sc);
  transition: transform .45s var(--spring);
}
.step:hover .step-num { transform: rotate(-8deg) scale(1.1); }
.step:nth-child(1) { --sc: #0284C7; }
.step:nth-child(2) { --sc: #2563EB; }
.step:nth-child(3) { --sc: #0D9488; }
.step:nth-child(4) { --sc: #D97706; }
.step p { margin-top: 8px; color: var(--text-muted); }

/* Before / After */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ba { margin: 0; }
.ba figcaption { margin-top: 14px; font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.ba-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--slate-100); transition: transform .4s var(--ease); }
.ba:hover .ba-frame { transform: translateY(-4px); }
.ba-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ph { font-weight: 700; font-size: .95rem; }
.ph span { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.ph-before span { left: 25%; }
.ph-after span { left: 75%; }
.ph-before { background: repeating-linear-gradient(45deg, #CBD5E1 0 14px, #D5DDE7 14px 28px); color: var(--navy-700); }
.ph-after { background: linear-gradient(135deg, #BAE6FD, #F0F9FF 50%, #FEF3C7); color: var(--accent); }
.ba-tag {
  position: absolute; top: 14px; z-index: 2; pointer-events: none;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; background: rgb(2 6 23 / .72); color: #fff;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--green); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; pointer-events: none; z-index: 2; box-shadow: 0 0 0 1px rgb(0 0 0 / .08);
}
.ba-handle::after {
  content: "\2039  \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-button); box-shadow: var(--shadow-color);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.1rem; white-space: pre;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba-frame:has(.ba-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Why + testimonials */
.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why-list { margin-top: 22px; display: grid; gap: 4px; }
.why-list li {
  display: flex; gap: 16px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.why-list li:hover { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); transform: translateX(6px); }
.why-list .why-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.why-list svg { width: 22px; height: 22px; }
.why-list li:nth-child(1) .why-ic { background: rgb(56 189 248 / .18); color: #7DD3FC; }
.why-list li:nth-child(2) .why-ic { background: rgb(52 211 153 / .18); color: #6EE7B7; }
.why-list li:nth-child(3) .why-ic { background: rgb(251 191 36 / .18); color: #FCD34D; }
.why-list li:nth-child(4) .why-ic { background: rgb(129 140 248 / .2); color: #A5B4FC; }
.why-list p { color: var(--slate-300); margin-top: 4px; }
.testimonials { display: grid; gap: 20px; }
.quote-card {
  position: relative; margin: 0; padding: 24px 26px; border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
  backdrop-filter: blur(10px); transition: transform .35s var(--ease), background-color .3s;
}
.quote-card:hover { transform: translateY(-4px); background: rgb(255 255 255 / .1); }
.quote-card::before { content: "\201C"; position: absolute; top: 4px; right: 22px; font-size: 5rem; line-height: 1; font-weight: 800; color: rgb(56 189 248 / .35); }
.stars { display: flex; gap: 3px; color: #FBBF24; margin-bottom: 12px; }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.quote-card blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; font-weight: 500; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .9rem; color: var(--slate-300); }
.quote-card strong { color: var(--white); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-button); color: #fff; font-weight: 800; font-size: .85rem; flex-shrink: 0; }
.quote-card:nth-child(2) .avatar { background: linear-gradient(135deg, #0D9488, #16A34A); }

/* Service area */
.areas-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--border);
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--spring), border-color .2s, background-color .2s;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); }
.chips li:nth-child(4n+2) { --dot: var(--teal); }
.chips li:nth-child(4n+3) { --dot: var(--amber); }
.chips li:nth-child(4n+4) { --dot: var(--blue); }
.chips li:hover { transform: translateY(-3px); border-color: var(--dot, var(--accent)); }
.areas-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 36px; border-radius: var(--radius-lg); color: var(--white);
  background: linear-gradient(135deg, #0F172A, #1E3A8A);
  box-shadow: var(--shadow-lg);
}
.areas-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgb(245 158 11 / .5), transparent 70%);
}
.areas-card h3 { font-size: 1.5rem; }
.areas-card p { margin: 10px 0 24px; color: var(--slate-300); }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.quote-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-list { margin-top: 32px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.contact-list li:nth-child(1) .ci { background: #DBEAFE; color: var(--blue); }
.contact-list li:nth-child(2) .ci { background: #CCFBF1; color: var(--teal); }
.contact-list li:nth-child(3) .ci { background: #FEF3C7; color: var(--amber-dark); }
.contact-list svg { width: 20px; height: 20px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

.quote-form {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg);
  display: grid; gap: 20px;
}
.quote-form::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, #38BDF8, #2563EB 35%, transparent 60%, #F59E0B);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .92rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.req { color: var(--danger); }
.optional { font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--slate-50); border: 1.5px solid var(--slate-300); border-radius: 12px;
  transition: border-color .15s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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 12px center; padding-right: 40px; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slate-500); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgb(37 99 235 / .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-err { color: var(--danger); font-size: .88rem; font-weight: 600; }
.field-err:empty { display: none; }
.field-help { color: var(--text-muted); font-size: .88rem; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--slate-300); border-radius: 12px; font-weight: 600; font-size: .92rem;
  transition: border-color .15s, background-color .15s, transform .25s var(--spring);
}
.check span::before {
  content: ""; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--slate-500); flex-shrink: 0;
  background-position: center; background-repeat: no-repeat; transition: background-color .15s, border-color .15s;
}
.check:hover span { border-color: var(--slate-500); }
.check input:checked + span { border-color: var(--blue); background: #EFF6FF; transform: scale(1.02); }
.check input:checked + span::before {
  background-color: var(--blue); border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.check input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-error-summary { padding: 14px 16px; border-radius: 12px; background: #FEF2F2; border: 1px solid #FECACA; color: var(--danger); font-weight: 600; }
.form-error-summary ul { margin-top: 6px; padding-left: 18px; list-style: disc; font-weight: 500; }
.form-error-summary a { color: inherit; }
.form-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: -8px; }

#submit-btn .spinner { display: none; width: 20px; height: 20px; border: 2.5px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
#submit-btn.loading { pointer-events: none; opacity: .85; }
#submit-btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--white);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px;
  animation: popIn .5s var(--spring);
}
.form-success[hidden] { display: none; }
.form-success svg { width: 72px; height: 72px; color: var(--success); }
.form-success svg path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .5s .25s var(--ease) forwards; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--text-muted); max-width: 28em; }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); transition: border-color .2s, box-shadow .3s; }
.faq details:hover { box-shadow: var(--shadow); }
.faq details[open] { border-color: #93C5FD; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 600; color: var(--accent); background: #E0F2FE; line-height: 1;
  transition: transform .3s var(--spring), background-color .2s, color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { padding: 0 24px 22px; color: var(--text-muted); }
.faq details[open] p { animation: fadeDown .35s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; color: var(--white);
  padding: clamp(52px, 6vw, 76px) 0;
  background: linear-gradient(120deg, #0369A1, #1D4ED8, #0F766E, #0369A1); background-size: 300% 300%;
  animation: gradPan 12s ease-in-out infinite alternate;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(40px); }
.cta-band::before { width: 320px; height: 320px; left: -60px; top: -120px; background: rgb(56 189 248 / .5); animation: drift1 16s ease-in-out infinite alternate; }
.cta-band::after { width: 280px; height: 280px; right: -40px; bottom: -140px; background: rgb(245 158 11 / .45); animation: drift2 18s ease-in-out infinite alternate; }
.cta-band h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); }
.cta-inner p { margin-top: 12px; font-size: 1.2rem; color: #E0F2FE; }
.cta-band .hero-ctas { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 64px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--sky), var(--blue), var(--teal), var(--amber)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.brand-footer { color: var(--white); }
.footer-tag { margin-top: 14px; max-width: 26em; font-size: .95rem; }
.footer-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { display: grid; gap: 10px; font-size: .95rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }

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

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.in { opacity: 1; transform: none; }

/* Hero entrance */
.hero-copy > * { animation: heroIn .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-visual { animation: heroVisualIn 1s .2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes heroVisualIn { from { opacity: 0; transform: translateY(40px) scale(.96); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-track { display: none; }
  .chip-b { right: -12px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 1.05rem; }

  .hero-grid, .why-grid, .areas-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 40px auto 0; width: 100%; }
  .chip-a { left: -8px; }
  .float-stat { right: -8px; }
  .scroll-cue { display: none; }
  .quote-intro { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat:nth-child(3) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-actions .btn-sm { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; }
  .services-grid, .process, .ba-grid, .field-row { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
  .turn-card { padding: 20px; }
  .chip-a { top: -34px; left: 0; }
  .chip-b { display: none; }
  .float-stat { bottom: -36px; padding: 12px 16px; }
  .fs-num { font-size: 1.8rem; }
  .logos-head { flex-direction: column; gap: 10px; text-align: center; }
  .logo-slot { width: 140px; }
  .stats-grid { padding: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-cta {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn-outline { color: var(--navy-800); }
  .site-footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left { opacity: 1; transform: none; }
  .marquee { flex-wrap: wrap; justify-content: center; mask-image: none; }
  .marquee-group { animation: none; flex-wrap: wrap; justify-content: center; min-width: 0; flex-shrink: 1; width: 100%; padding: 0 20px; }
  .marquee-group[aria-hidden="true"], .marquee-toggle { display: none; }
}

/* ---------- Compact quote form: fits in one screen ---------- */
.section-quote { padding: clamp(40px, 4vw, 56px) 0; }
.section-quote h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); }
.section-quote .section-lede { font-size: 1.02rem; margin-top: 12px; }
.section-quote .contact-list { margin-top: 24px; }
.quote-form { gap: 14px; padding: clamp(20px, 3vw, 30px); }
.quote-form .field { gap: 5px; }
.quote-form .field label, .quote-form .field legend { font-size: .86rem; }
.quote-form .field legend { margin-bottom: 8px; }
.quote-form .field input, .quote-form .field select { min-height: 44px; padding: 9px 12px; }
.quote-form .field textarea { min-height: 64px; padding: 9px 12px; }
.field-row { gap: 14px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.quote-form .check-grid { gap: 8px; }
.quote-form .check span { min-height: 44px; padding: 8px 12px; font-size: .88rem; }
.quote-form .btn-lg { --btn-h: 52px; }
.quote-form .form-note { margin-top: -4px; font-size: .8rem; }
@media (max-width: 960px) { .field-row-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .field-row-3 { grid-template-columns: 1fr; } }

/* ---------- Client logo tiles ---------- */
.logo-tile {
  flex-shrink: 0; width: 232px; height: 100px; padding: 14px 20px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #BAE6FD; }
.marquee-group img { max-width: 100%; height: auto; }
.marquee { padding: 6px 0 10px; }
@media (max-width: 640px) {
  .logo-tile { width: 190px; height: 86px; padding: 12px 16px; }
}

/* ---------- Services: side-by-side heading so the full grid fits one screen ---------- */
@media (min-width: 961px) {
  #services .section-head {
    max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: end;
    grid-template-areas: "eyebrow ." "title lede";
  }
  #services .section-head .eyebrow { grid-area: eyebrow; justify-self: start; }
  #services .section-head h2 { grid-area: title; }
  #services .section-head .section-lede { grid-area: lede; margin-top: 0; }
}
.services-grid { gap: 16px; }
.service-card p { margin-top: 6px; }
.service-card:not(.service-card-cta) { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; align-content: start; }
.service-card:not(.service-card-cta) .svc-icon { grid-row: span 2; margin-bottom: 0; }
.service-card:not(.service-card-cta) h3 { align-self: center; }

/* ---------- One section per screen (desktop/laptop) ----------
   Each section fills the viewport below the sticky header and centers its
   content, so clicking a nav link shows only that section. */
@media (min-width: 961px) and (min-height: 600px) {
  .section {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; justify-content: center;
  }
}

/* Shorter laptop screens: tighten spacing so each section still fits one screen */
@media (min-width: 961px) and (max-height: 760px) {
  .section, .section-quote { padding: 18px 0; }
  .section-head { margin-bottom: 18px; }
  h2, .section-quote h2 { font-size: 2rem; }
  .section-lede { font-size: 1rem; }
  .quote-form { gap: 10px; padding: 20px 24px; }
  .quote-form .field textarea { min-height: 44px; }
  .quote-form .check span { min-height: 40px; }
  .quote-form .field input, .quote-form .field select { min-height: 42px; }
  .section-quote .contact-list { margin-top: 16px; gap: 8px; }
  .services-grid { gap: 12px; }
  .service-card:not(.service-card-cta) { padding: 18px 20px; }
}

/* ---------- Hero photo background ---------- */
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
  filter: saturate(1.08) contrast(1.03);
}
/* White fade: solid behind the text on the left, opening up to show the room on the right */
.hero-bg {
  background:
    linear-gradient(90deg, rgb(248 250 252 / .95) 0%, rgb(248 250 252 / .9) 32%, rgb(248 250 252 / .62) 50%, rgb(248 250 252 / .1) 68%, transparent 100%),
    linear-gradient(180deg, rgb(255 255 255 / .35) 0%, transparent 14%, transparent 88%, #fff 100%);
}
.hero { background: #F8FAFC; }
.hero .blob { display: none; }         /* the photo supplies the color */
.hero-bg::after { mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 55%); }
@media (max-width: 960px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgb(248 250 252 / .94) 0%, rgb(248 250 252 / .88) 55%, rgb(248 250 252 / .7) 75%, #fff 100%);
  }
}

/* ---------- Stats strip inside the hero ---------- */
.hero { padding-bottom: clamp(28px, 3.5vw, 44px); }
.hero-stats { margin-top: clamp(40px, 4.5vw, 60px); padding: 22px 24px; }
.hero-stats .stat-num { font-size: clamp(1.7rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.1; }
.hero-stats .stat-label { font-size: .9rem; }
@media (max-width: 960px) {
  .hero-stats { margin-top: 64px; padding: 20px 12px; }
}
@media (min-width: 961px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem); }
  .hero-stats { margin-top: 36px; padding: 16px 24px; }
}
/* Compact turn card so the hero + stats strip fit the first screen */
.turn-card { padding: 22px 24px; }
.turn-card-head { margin-bottom: 12px; }
.tc-tasks li { padding: 9px 0; }
.tc-foot { margin-top: 10px; }
@media (min-width: 961px) and (max-height: 820px) {
  .turn-card { padding: 18px 22px; }
  .tc-tasks li { padding: 7px 0; font-size: .9rem; }
  .hero-ctas { margin-top: 22px; }
  .hero-lede { margin-top: 14px; font-size: 1.05rem; }
  .pill { margin-bottom: 12px; }
}

/* Keep both hero buttons on one row on laptop widths */
@media (min-width: 961px) and (max-width: 1280px) {
  .hero-ctas .btn-lg { padding: 0 20px; font-size: 1rem; --btn-h: 52px; }
  .hero-ctas { flex-wrap: nowrap; }
}

/* More breathing room above the hero content; scales with screen height
   so the stats strip still fits on the first screen on short laptops. */
.hero { padding-top: calc(var(--header-h) + 40px); }
@media (min-width: 961px) {
  .hero { padding-top: calc(var(--header-h) + clamp(44px, 14vh - 42px, 96px)); }
}

/* ---------- Quote confirmation popup ---------- */
.confirm-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 28px; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: var(--shadow-lg);
}
.confirm-dialog::backdrop { background: rgb(2 6 23 / .55); backdrop-filter: blur(4px); }
.confirm-dialog[open] { animation: dialogIn .3s var(--spring); }
.confirm-dialog[open]::backdrop { animation: fadeIn .25s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fadeIn { from { opacity: 0; } }
.cd-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cd-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: #DBEAFE; color: var(--blue); }
.cd-head h2 { font-size: 1.35rem; }
.cd-head p { color: var(--text-muted); font-size: .95rem; margin-top: 4px; }
.cd-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.cd-summary dt, .cd-summary dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--border); font-size: .94rem; }
.cd-summary dt:first-of-type, .cd-summary dt:first-of-type + dd { border-top: 0; }
.cd-summary dt { font-weight: 700; color: var(--slate-600); background: var(--slate-50); white-space: nowrap; }
.cd-summary dd { font-weight: 600; overflow-wrap: anywhere; }
.cd-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 480px) {
  .confirm-dialog { padding: 22px 18px; }
  .cd-summary { grid-template-columns: 1fr; }
  .cd-summary dt { padding-bottom: 2px; border-top: 1px solid var(--border); background: transparent; font-size: .8rem; }
  .cd-summary dd { padding-top: 0; border-top: 0; }
  .cd-actions { flex-direction: column-reverse; }
  .cd-actions .btn { width: 100%; }
}

/* Spam trap field: off-screen for people, still present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero layout: stats strip is the grid's 3rd item ----------
   Desktop: text | card on row 1, full-width stats on row 2.
   Tablet/phone: one column ordered text → stats → card → buttons. */
.hero-grid { column-gap: 56px; row-gap: 0; }
.hero-stats { grid-column: 1 / -1; }

@media (max-width: 960px) {
  .hero-copy { display: contents; }
  .hero-copy > .pill      { order: 1; justify-self: start; }
  .hero-copy > h1         { order: 2; }
  .hero-copy > .hero-lede { order: 3; }
  .hero-stats             { order: 4; margin-top: 28px; }
  .hero-visual            { order: 5; margin-top: 72px; }
  .hero-copy > .hero-ctas { order: 6; margin-top: 36px; }
}
@media (max-width: 960px) {
  .hero-stats { row-gap: 14px; padding: 18px 12px; }
  .hero-stats .stat { padding: 4px; }
  .hero-stats .stat-num { font-size: 1.9rem; }
  .hero-stats .stat-label { font-size: .84rem; }
}

/* Mobile sticky bar now has a single full-width "Request a Quote" button */
@media (max-width: 640px) { .mobile-cta { grid-template-columns: 1fr; } }
