/* =============================================================================
   UKP CPA — Design System
   Brand: #3A93AB (teal) + black + grey.  Minimal, modern, professional.
   ============================================================================= */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  --teal: #3a93ab;
  --teal-600: #2f7f95;
  --teal-700: #266a7d;
  --teal-300: #6fb6c9;
  --teal-100: #e6f2f5;
  --teal-050: #f2f8fa;

  --ink: #0e1116;      /* near-black */
  --ink-800: #14181f;
  --ink-700: #1c222b;
  --charcoal: #232a33;
  --grey-600: #4a545f;
  --grey-500: #667180;
  --grey-400: #8a94a1;
  --grey-300: #c3cbd4;
  --grey-200: #e2e7ec;
  --grey-100: #eef1f4;
  --grey-050: #f6f8f9;
  --white: #ffffff;

  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --text: #1c222b;
  --text-muted: #667180;
  --border: #e2e7ec;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 1px 3px rgba(14, 17, 22, 0.06);
  --shadow: 0 4px 12px rgba(14, 17, 22, 0.06), 0 2px 4px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 12px 28px rgba(14, 17, 22, 0.10), 0 4px 10px rgba(14, 17, 22, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, 0.16), 0 8px 20px rgba(14, 17, 22, 0.08);
  --shadow-teal: 0 12px 30px rgba(58, 147, 171, 0.30);

  --grad-teal: linear-gradient(135deg, #3a93ab 0%, #266a7d 100%);
  --grad-teal-soft: linear-gradient(135deg, #f2f8fa 0%, #e6f2f5 100%);
  --grad-dark: linear-gradient(160deg, #14181f 0%, #0e1116 60%, #0a0d11 100%);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;

  --font-head: "Sora", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

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

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { color: var(--text); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--grey-600); line-height: 1.6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px; flex-shrink: 0; }
.eyebrow svg { width: 15px; height: 15px; flex-shrink: 0; }
.eyebrow.centered { justify-content: center; }
.text-grad {
  background: var(--grad-teal); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1360px; }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.home-page .section { padding-block: clamp(32px, 4.5vw, 60px); }
.home-page .section-half-gap { padding-bottom: clamp(16px, 2.25vw, 30px); }
.home-page .section-footer-gap { padding-bottom: clamp(56px, 7vw, 96px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--grad-dark); color: var(--grey-200); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .lede { color: var(--grey-300); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(58, 147, 171, 0.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--teal-700); border: 1.5px solid var(--grey-200); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; color: var(--teal-700); }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header / Nav --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent; transition: height 0.3s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { height: 68px; background: rgba(255,255,255,0.92); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 28px; width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; transition: height 0.3s var(--ease); }
.scrolled .brand img { height: 38px; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.97rem; color: var(--ink-700);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-item.active .nav-link, .nav-item.open .nav-link { color: var(--teal-700); background: var(--teal-050); }
.nav-link .chev { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.nav-phone svg { width: 17px; height: 17px; color: var(--teal); }

/* ---- Mega menu ------------------------------------------------------------ */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(920px, 92vw); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 120;
}
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-item.mega-right .mega { left: auto; right: 0; transform: translateX(0) translateY(10px); }
.nav-item.mega-right.open .mega { transform: translateX(0) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mega-grid.cols-1 { grid-template-columns: 1fr; }
.mega-col-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; padding: 0 10px; }
.mega-link {
  display: flex; gap: 13px; padding: 12px 12px; border-radius: 14px;
  transition: background 0.2s, transform 0.2s; align-items: flex-start;
}
.mega-link:hover { background: var(--grey-050); }
.mega-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal-700);
}
.mega-ico svg { width: 20px; height: 20px; }
.mega-link:hover .mega-ico { background: var(--grad-teal); color: #fff; }
.mega-txt strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--ink); letter-spacing: -0.01em; }
.mega-txt strong .ext { display: inline-block; width: 13px; height: 13px; vertical-align: -1px; color: var(--grey-400); }
.mega-link:hover .mega-txt strong .ext { color: var(--teal-600); }
.mega-txt span { display: block; font-size: 0.83rem; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.mega-feature {
  border-radius: var(--radius); padding: 22px; color: #fff; background: var(--grad-teal);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 100%;
  position: relative; overflow: hidden;
}
.mega-feature::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%); }
.mega-feature h4 { color: #fff; }
.mega-feature p { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin-top: 8px; }
.mega-feature .link-arrow { color: #fff; margin-top: 16px; }
.mega-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mega-footer span { font-size: 0.86rem; color: var(--text-muted); }
.mega-2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
@media (max-width: 1080px) { .mega-2col { grid-template-columns: 1fr; } .mega-feature { display: none; } }

/* ---- Mobile nav ----------------------------------------------------------- */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-left: auto; }
.nav-toggle span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: background 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: #fff;
  transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto;
  padding: 24px var(--gutter) 60px; display: none;
}
.mobile-nav.mounted { display: block; }
body.nav-open .mobile-nav { transform: translateX(0); }
.m-group { border-bottom: 1px solid var(--border); }
.m-group > a, .m-acc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); text-align: left; }
.m-acc-btn .chev { width: 20px; height: 20px; transition: transform 0.3s var(--ease); color: var(--teal); }
.m-group.open .m-acc-btn .chev { transform: rotate(180deg); }
.m-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.m-group.open .m-panel { max-height: 1400px; }
.m-panel-inner { padding: 4px 4px 18px; display: flex; flex-direction: column; gap: 2px; }
.m-sub { padding: 11px 12px; border-radius: 10px; color: var(--grey-600); font-size: 0.98rem; }
.m-sub:hover { background: var(--grey-050); color: var(--teal-700); }
.m-sub.head { color: var(--teal-700); font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 4px; }
.mobile-cta { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1024px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,13,17,0.92) 0%, rgba(10,13,17,0.72) 42%, rgba(10,13,17,0.34) 100%),
    linear-gradient(0deg, rgba(10,13,17,0.85) 0%, rgba(10,13,17,0.1) 45%);
}
.hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 64px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(6px);
  font-family: var(--font-head); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.02em; color: #fff;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 0 4px rgba(95,211,154,0.25); }
.hero h1 { color: #fff; margin-top: 22px; text-wrap: balance; max-width: 760px; }
.hero .lede { color: rgba(255,255,255,0.86); margin-top: 22px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 52px; }
.hero-stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 0.86rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 7px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .mouse::after { animation: none; } }

/* ---- Interior page hero --------------------------------------------------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; background: var(--grad-dark); color: #fff; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -140px; right: -80px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(58,147,171,0.28), transparent 70%); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 26px 26px; opacity: 0.5; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-top: 16px; max-width: 16ch; }
.page-hero p { color: var(--grey-300); margin-top: 18px; max-width: 60ch; font-size: 1.1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--grey-400); }
.breadcrumb a:hover { color: var(--teal-300); }
.breadcrumb .sep { opacity: 0.5; }

/* ---- Cards ---------------------------------------------------------------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); margin-bottom: 18px; transition: background 0.3s, color 0.3s; }
.card-ico svg { width: 25px; height: 25px; }
.card:hover .card-ico { background: var(--grad-teal); color: #fff; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-muted); margin-top: 10px; font-size: 0.96rem; }
.card .link-arrow { margin-top: 18px; }
.card-count { font-family: var(--font-head); font-size: 0.8rem; color: var(--teal-600); font-weight: 600; }

/* ---- Service tabs (category pages) ---------------------------------------- */
.svc-tabs { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.svc-tab-nav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(var(--header-h) + 20px); }
.svc-tab-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--border); background: #fff;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.svc-tab-btn .stb-num { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--grey-400); transition: color 0.3s; flex-shrink: 0; }
.svc-tab-btn .stb-txt { min-width: 0; }
.svc-tab-btn .stb-txt strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--ink); letter-spacing: -0.01em; }
.svc-tab-btn .stb-txt span { display: block; font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }
.svc-tab-btn .stb-arrow {
  margin-left: auto; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grey-100); color: var(--grey-500);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-tab-btn .stb-arrow svg { width: 14px; height: 14px; }
.svc-tab-btn:hover { border-color: var(--teal-300); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.svc-tab-btn:hover .stb-arrow { background: var(--teal-100); color: var(--teal-700); }
.svc-tab-btn.active { border-color: var(--teal); background: var(--teal-050); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.svc-tab-btn.active .stb-num { color: var(--teal-600); }
.svc-tab-btn.active .stb-arrow { background: var(--grad-teal); color: #fff; transform: rotate(45deg); }

.svc-panel { display: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.svc-panel.active { display: block; animation: panelIn 0.5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.svc-panel-media { position: relative; }
.svc-panel-media .ph { aspect-ratio: 21 / 8; }
.svc-panel-badge {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(14,17,22,0.55); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.svc-panel-badge svg { width: 15px; height: 15px; color: var(--teal-300); }
.svc-panel-body { padding: clamp(24px, 3.5vw, 40px); }
.svc-panel-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.svc-panel-body > p { color: var(--grey-600); margin-top: 12px; font-size: 1.02rem; line-height: 1.7; }
.svc-panel-body h4 { margin-top: 26px; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); }
.svc-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.svc-includes li {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px;
  background: var(--grey-050); border: 1px solid var(--grey-100); border-radius: 12px;
  font-size: 0.93rem; color: var(--grey-600); font-weight: 500;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc-includes li:hover { border-color: var(--teal-300); background: var(--teal-050); transform: translateY(-3px); }
.svc-includes li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.svc-panel.active .svc-includes li { animation: fadeUpIn 0.45s var(--ease) both; }
.svc-panel.active .svc-includes li:nth-child(1) { animation-delay: 0.10s; }
.svc-panel.active .svc-includes li:nth-child(2) { animation-delay: 0.18s; }
.svc-panel.active .svc-includes li:nth-child(3) { animation-delay: 0.26s; }
.svc-panel.active .svc-includes li:nth-child(4) { animation-delay: 0.34s; }
.svc-panel.active .svc-includes li:nth-child(5) { animation-delay: 0.42s; }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .svc-tabs { grid-template-columns: 1fr; }
  .svc-tab-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: thin; }
  .svc-tab-nav .svc-tab-btn { flex-shrink: 0; width: auto; padding: 12px 16px; }
  .svc-tab-nav .svc-tab-btn .stb-txt span, .svc-tab-nav .svc-tab-btn .stb-arrow { display: none; }
  .svc-tab-nav .svc-tab-btn:hover, .svc-tab-nav .svc-tab-btn.active { transform: none; }
}

/* Services index: category showcases (reuse tab-button tile styling via .svc-mini) */
.svc-mini-list { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
/* .svc-mini tiles are a static list, not links — neutralize the interactive tab styling */
.svc-mini { cursor: default; }
.svc-mini:hover { transform: none; border-color: var(--border); box-shadow: none; }
.svc-cat-media { position: sticky; top: calc(var(--header-h) + 20px); }
.svc-cat-media .ph { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; }
@media (max-width: 900px) { .svc-cat-media { position: static; } .svc-cat-media .ph { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .svc-includes { grid-template-columns: 1fr; } .svc-panel-media .ph { aspect-ratio: 16 / 8; } }
@media (prefers-reduced-motion: reduce) {
  .svc-panel.active, .svc-panel.active .svc-includes li { animation: none; }
}

/* Industry card */
.ind-card { position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; border-radius: var(--radius-lg); color: #fff; background: var(--grad-dark); border: 1px solid var(--ink-700); }
.ind-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(58,147,171,0.35), transparent 60%); opacity: 0.9; transition: opacity 0.4s; }
.ind-card:hover::before { opacity: 1; }
.ind-card .ind-ico { position: absolute; top: 24px; left: 24px; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); color: var(--teal-300); }
.ind-card .ind-ico svg { width: 24px; height: 24px; }
.ind-card h3 { color: #fff; position: relative; }
.ind-card p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin-top: 6px; position: relative; }
.ind-card .link-arrow { color: var(--teal-300); margin-top: 14px; position: relative; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Value / feature small card */
.value-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.value-card .vnum { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--teal); letter-spacing: 0.05em; }
.value-card h4 { margin-top: 10px; }
.value-card p { color: var(--text-muted); font-size: 0.93rem; margin-top: 8px; }

/* ---- Trust bar / logos ---------------------------------------------------- */
.trustbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; }
.trust-item .ti-ico svg { width: 21px; height: 21px; }
.trust-item strong { font-family: var(--font-head); display: block; font-size: 1rem; color: var(--ink); }
.trust-item span { font-size: 0.85rem; color: var(--text-muted); }

/* ---- Stats / counters ----------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 34px); }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.03em; color: var(--ink); }
.section-dark .stat .num { color: #fff; }
.stat .num .suffix { color: var(--teal); }
.stat .lbl { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }
.section-dark .stat .lbl { color: var(--grey-400); }

/* ---- Split / feature rows ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.feature-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; margin-top: 2px; }
.feature-list .fi svg { width: 16px; height: 16px; }
.feature-list strong { font-family: var(--font-head); display: block; color: var(--ink); font-size: 1.02rem; }
.feature-list p { color: var(--text-muted); font-size: 0.94rem; margin-top: 2px; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--grad-teal-soft); }
.media-frame.dark { background: var(--grad-dark); }
.media-panel { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); background: var(--grad-teal); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-teal); }
.media-panel::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); }

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); background: var(--grad-dark); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(58,147,171,0.4), transparent 55%), radial-gradient(circle at 90% 90%, rgba(58,147,171,0.25), transparent 50%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--grey-300); margin: 16px auto 30px; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Portal cards --------------------------------------------------------- */
.portal-card { display: flex; flex-direction: column; padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); position: relative; overflow: hidden; }
.portal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portal-card .p-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--grad-teal); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-teal); }
.portal-card .p-ico svg { width: 28px; height: 28px; }
.portal-card h3 { margin-top: 22px; }
.portal-card p { color: var(--text-muted); margin-top: 10px; }
.portal-card .btn { margin-top: 24px; align-self: flex-start; }
.portal-card ul.checks { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.portal-card ul.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--grey-600); }
.portal-card ul.checks svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ---- FAQ / accordion ------------------------------------------------------ */
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.faq-q .ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; transition: transform 0.3s var(--ease), background 0.3s, color 0.3s; }
.faq-q .ic svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .ic { background: var(--grad-teal); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 4px 22px; color: var(--text-muted); }

/* ---- Chips / pills -------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; background: var(--teal-050); color: var(--teal-700); font-size: 0.88rem; font-family: var(--font-head); font-weight: 500; border: 1px solid var(--teal-100); }
.chip svg { width: 15px; height: 15px; }

.side-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: #fff; }
.side-card.accent { background: var(--grad-teal); color: #fff; box-shadow: var(--shadow-teal); }
.side-card.accent h4, .side-card.accent p { color: #fff; }
.side-card h4 { font-size: 1.05rem; }
.side-card p { font-size: 0.92rem; color: var(--text-muted); margin-top: 8px; }

/* ---- Form fields ------------------------------------------------------------ */
.calc-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.input-wrap { position: relative; }
.input-wrap .prefix, .input-wrap .suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--grey-500); font-size: 0.98rem; pointer-events: none; }
.input-wrap .prefix { left: 16px; } .input-wrap .suffix { right: 16px; }
.input-wrap.has-prefix input { padding-left: 32px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--grey-200); border-radius: 12px; background: var(--grey-050);
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(58,147,171,0.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667180' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.disclaimer { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--teal-050); border: 1px solid var(--teal-100); color: var(--grey-600); font-size: 0.86rem; margin-top: 24px; }
.disclaimer svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; }

/* ---- Contact form --------------------------------------------------------- */
.form-note { display: flex; gap: 12px; padding: 14px 18px; border-radius: 12px; background: #fff8e6; border: 1px solid #f5e0a3; color: #7a5c00; font-size: 0.88rem; margin-bottom: 24px; }
.form-note svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error { color: #c0392b; font-size: 0.82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e07a6f; background: #fdf3f2; }
.field.invalid .form-error { display: block; }
.form-success { display: none; padding: 20px; border-radius: 14px; background: var(--teal-050); border: 1px solid var(--teal-100); color: var(--teal-700); align-items: center; gap: 12px; }
.form-success.show { display: flex; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: 0.92rem; color: var(--grey-600); }

/* ---- Intake form: sections, pill options ---------------------------------- */
.form-section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--border); }
.form-section:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-section-head .fs-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; flex-shrink: 0; }
.form-section-head .fs-ico svg { width: 19px; height: 19px; }
.form-section-head h3 { font-size: 1.15rem; }
.form-section-head span.fs-sub { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.policy-card { background: var(--grey-050); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 28px; }
.policy-card p { color: var(--grey-600); font-size: 0.94rem; }
.policy-card p + p { margin-top: 12px; }
.policy-card strong { color: var(--ink); }
.legal-shell { max-width: 920px; margin-inline: auto; }
.legal-card { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.legal-copy > * + * { margin-top: 16px; }
.legal-copy h2,
.legal-copy h3,
.legal-copy h4 { font-family: var(--font-head); color: var(--ink); }
.legal-copy h2 { margin-top: 28px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.legal-copy h3 { margin-top: 24px; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.legal-copy p,
.legal-copy li { color: var(--grey-700); line-height: 1.75; }
.legal-copy ul,
.legal-copy ol { padding-left: 1.2rem; margin-top: 10px; }
.legal-copy li + li { margin-top: 8px; }
.legal-copy a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 0.12em; }
.legal-copy strong,
.legal-copy b { color: var(--ink); }

.opt-group { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-group.stack { flex-direction: column; align-items: flex-start; }
.opt { position: relative; display: inline-flex; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-body { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--grey-200); background: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--grey-600); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.opt-mark { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--grey-300); flex-shrink: 0; position: relative; transition: border-color 0.2s, background 0.2s; }
.opt input[type="checkbox"] ~ .opt-body .opt-mark { border-radius: 5px; }
.opt-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal); transform: scale(0); transition: transform 0.2s var(--ease); }
.opt input[type="checkbox"] ~ .opt-body .opt-mark::after { border-radius: 2px; inset: 2px; }
.opt input:checked ~ .opt-body { border-color: var(--teal); background: var(--teal-050); color: var(--teal-700); }
.opt input:checked ~ .opt-body .opt-mark { border-color: var(--teal); }
.opt input:checked ~ .opt-body .opt-mark::after { transform: scale(1); }
.opt input:focus-visible ~ .opt-body { outline: 3px solid var(--teal); outline-offset: 2px; }
.opt-group.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt-group.grid2 .opt-body { width: 100%; border-radius: 12px; }
@media (max-width: 520px) { .opt-group.grid2 { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 60px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.info-block:last-child { border-bottom: none; }
.info-block .ib-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-050); color: var(--teal-700); display: grid; place-items: center; flex-shrink: 0; }
.info-block .ib-ico svg { width: 22px; height: 22px; }
.info-block h4 { font-size: 1rem; } .info-block p, .info-block a { color: var(--text-muted); font-size: 0.95rem; margin-top: 3px; }
.info-block a:hover { color: var(--teal-700); }
.hours-table { width: 100%; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table td { padding: 10px 0; font-size: 0.94rem; }
.hours-table td:first-child { color: var(--grey-600); } .hours-table td:last-child { text-align: right; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.hours-table tr.closed td:last-child { color: var(--grey-400); }

/* ---- Blog ----------------------------------------------------------------- */
.avatar.initials.sm { width: 36px; height: 36px; font-size: 0.82rem; border-radius: 50%; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.blog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-muted); }
.blog-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grey-300); }
.blog-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(14,17,22,0.5); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; }

/* Featured post */
.blog-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.blog-feature:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-feature-media { position: relative; align-self: stretch; min-height: 320px; }
.blog-feature-media .ph { position: absolute; inset: 0; }
.blog-feature-body { padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0; }
.blog-feature-body h2 { margin-top: 14px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.blog-feature-body .lede { margin-top: 14px; }
.blog-feature-body .blog-meta { margin-top: 22px; }
@media (max-width: 820px) { .blog-feature { grid-template-columns: 1fr; } .blog-feature-media { min-height: 220px; } .blog-feature-body { padding: 0 24px 28px; } }

/* Post cards */
.blog-grid { align-items: stretch; }
.blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-card-media { position: relative; aspect-ratio: 16 / 9; }
.blog-card-media .ph { position: absolute; inset: 0; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.15rem; margin-top: 12px; line-height: 1.3; }
.blog-card-body p { color: var(--text-muted); margin-top: 10px; font-size: 0.94rem; flex: 1; }
.blog-card-body .link-arrow { margin-top: 18px; }

/* Article */
.post-hero { padding-top: clamp(28px, 5vw, 52px); }
.post-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.post-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.post-byline strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.94rem; }
.post-byline span span, .post-byline > div span { color: var(--text-muted); font-size: 0.82rem; }
.post-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--grey-300); }
.post-cover { margin-top: clamp(24px, 4vw, 40px); }
.post-cover .ph { border-radius: var(--radius-lg); aspect-ratio: 21 / 9; box-shadow: var(--shadow-md); }
.post-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.post-toc { position: sticky; top: calc(var(--header-h) + 20px); }
.toc-card { background: var(--grey-050); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 24px; }
.toc-card h4 { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600); }
.toc-card h4 svg { width: 16px; height: 16px; }
.toc-list { margin-top: 14px; counter-reset: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a { display: block; padding: 9px 10px; border-radius: 9px; font-size: 0.9rem; color: var(--grey-600); line-height: 1.4; transition: background 0.2s, color 0.2s; border-left: 2px solid transparent; }
.toc-list li a:hover { background: var(--teal-050); color: var(--teal-700); }
.toc-list li a.active { background: var(--teal-050); color: var(--teal-700); border-left-color: var(--teal); font-weight: 500; }
.post-body { max-width: 720px; }
.post-lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.6; color: var(--ink); font-family: var(--font-head); font-weight: 500; padding-bottom: 26px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.post-section { padding-top: 18px; }
.post-section h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-top: 22px; }
.post-section p { color: var(--grey-600); margin-top: 16px; font-size: 1.05rem; line-height: 1.75; }
.post-section ul.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.post-section ul.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--grey-600); font-size: 1.02rem; }
.post-section ul.ticks svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }
.post-cta { margin-top: 40px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--grad-teal-soft); border: 1px solid var(--teal-100); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.post-cta h3 { font-size: 1.25rem; }
.post-cta p { color: var(--grey-600); margin-top: 8px; font-size: 0.96rem; max-width: 46ch; }
.post-cta .btn { flex-shrink: 0; }
@media (max-width: 900px) { .post-layout { grid-template-columns: 1fr; } .post-toc { position: static; } .post-cover .ph { aspect-ratio: 16 / 9; } }

/* ---- Thank-you page ------------------------------------------------------- */
.thankyou-hero { padding-block: clamp(72px, 12vw, 140px); }
.thankyou-check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--grad-teal); color: #fff; box-shadow: var(--shadow-teal); animation: tyPop 0.6s var(--ease) both; }
.thankyou-check svg { width: 40px; height: 40px; stroke-width: 3; }
@keyframes tyPop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.thankyou-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 44px auto 0; text-align: left; }
.ty-step { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ty-step .ty-num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-700); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.ty-step strong { font-family: var(--font-head); display: block; color: var(--ink); font-size: 1rem; }
.ty-step p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; line-height: 1.5; }
@media (max-width: 760px) { .thankyou-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .thankyou-check { animation: none; } }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--grad-dark); color: var(--grey-400); padding-top: clamp(56px, 7vw, 84px); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand img { height: 46px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: var(--grey-400); font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: var(--grey-300); transition: background 0.25s, color 0.25s, transform 0.25s; }
.footer-social a:hover { background: var(--grad-teal); color: #fff; transform: translateY(-3px); border-color: transparent; }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--grey-400); font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 26px; font-size: 0.85rem; color: var(--grey-500); }
.footer-bottom a:hover { color: var(--teal-300); }

/* ---- Reveal animations ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* =============================================================================
   IMAGERY + MOTION SYSTEM (v2)
   ============================================================================= */

/* ---- Scroll progress bar -------------------------------------------------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--grad-teal); z-index: 200; will-change: transform; }

/* ---- Image media treatments ---------------------------------------------- */
.ph { position: relative; overflow: hidden; background: var(--ink-800); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease), filter 0.6s var(--ease); }
.ph.zoom:hover img, a:hover > .ph.zoom img, .ind-tile:hover .ph img, .bento-item:hover .ph img { transform: scale(1.07); }
.ph.duo img { filter: grayscale(1) contrast(1.04) brightness(0.92); }
.ph.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(58,147,171,0.55), rgba(14,17,22,0.82)); mix-blend-mode: multiply; z-index: 1; transition: opacity 0.5s var(--ease); }
.bento-item:hover .ph.duo img, .ind-tile:hover .ph.duo img { filter: grayscale(0) contrast(1) brightness(1); }
.bento-item:hover .ph.duo::after, .ind-tile:hover .ph.duo::after { opacity: 0.72; }
.ph-scrim::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10,13,17,0.92) 0%, rgba(10,13,17,0.35) 45%, rgba(10,13,17,0.05) 100%); }

/* Clip reveal for images */
.reveal[data-anim="clip"] { opacity: 1; clip-path: inset(0 0 100% 0); transform: none; transition: clip-path 0.9s var(--ease); }
.reveal[data-anim="clip"].in { clip-path: inset(0 0 0 0); }
.reveal[data-anim="left"] { transform: translateX(-48px); }
.reveal[data-anim="right"] { transform: translateX(48px); }
.reveal[data-anim="zoom"] { transform: scale(0.94); }
.reveal[data-anim="blur"] { filter: blur(14px); }
.reveal[data-anim="blur"].in { filter: blur(0); }
.reveal[data-anim="left"].in, .reveal[data-anim="right"].in, .reveal[data-anim="zoom"].in { transform: none; }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 34px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--grey-500); white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--teal); }
.marquee-item .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; } }

/* ---- Bento grid (services) ----------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; gap: 18px; }
.bento-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; text-decoration: none; border: 1px solid var(--ink-700); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.bento-item .ph { position: absolute; inset: 0; z-index: 0; }
.bento-item > * { position: relative; z-index: 2; }
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); color: #fff; backdrop-filter: blur(6px); margin-bottom: auto; }
.bento-ico svg { width: 24px; height: 24px; }
.bento-item h3 { color: #fff; margin-top: 16px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.bento-item p { color: rgba(255,255,255,0.82); font-size: 0.96rem; margin-top: 8px; max-width: 46ch; }
.bento-item .link-arrow { color: #fff; margin-top: 16px; }
.bento-item.cta { background: var(--grad-teal); border: none; justify-content: center; align-items: flex-start; }
.bento-item.cta .ph { display: none; }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } }

/* ---- Sticky-scroll scene (how we work) ----------------------------------- */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.scene-pin { position: sticky; top: calc(var(--header-h) + 24px); }
.scene-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.scene-visual .ph { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); transform: scale(1.05); }
.scene-visual .ph.active { opacity: 1; transform: scale(1); }
.scene-visual .badge { position: absolute; left: 22px; bottom: 22px; z-index: 3; }
.scene-steps { display: flex; flex-direction: column; gap: 20px; }
.scene-step { padding: 28px 28px 28px 30px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; position: relative; transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s; opacity: 0.55; }
.scene-step::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--grey-200); transition: background 0.4s; }
.scene-step.active { opacity: 1; box-shadow: var(--shadow-md); border-color: transparent; }
.scene-step.active::before { background: var(--grad-teal); }
.scene-step .s-num { font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: 0.9rem; letter-spacing: 0.08em; }
.scene-step h3 { font-size: 1.3rem; margin-top: 6px; }
.scene-step p { color: var(--text-muted); margin-top: 8px; }
@media (max-width: 900px) { .scene { grid-template-columns: 1fr; } .scene-pin { position: static; } .scene-visual { aspect-ratio: 16/10; margin-bottom: 8px; } }

/* ---- Horizontal-scroll gallery (industries) ------------------------------ */
.h-scroll-wrap { position: relative; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 360px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px; scrollbar-width: thin; scrollbar-color: var(--teal) var(--grey-100); cursor: grab; -webkit-overflow-scrolling: touch; }
.h-scroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.h-scroll::-webkit-scrollbar { height: 8px; }
.h-scroll::-webkit-scrollbar-track { background: var(--grey-100); border-radius: 8px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 8px; }
.h-scroll > * { scroll-snap-align: start; }
.ind-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; border: 1px solid var(--ink-700); }
.ind-tile .ph { position: absolute; inset: 0; z-index: 0; }
.ind-tile > * { position: relative; z-index: 2; }
.ind-tile .ind-ico { position: absolute; top: 26px; left: 26px; }
.ind-tile h3 { color: #fff; font-size: 1.35rem; }
.ind-tile p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 8px; }
.ind-tile .link-arrow { color: var(--teal-300); margin-top: 16px; }
.h-scroll-hint { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.85rem; font-family: var(--font-head); font-weight: 500; margin-top: 8px; }
.h-scroll-hint svg { width: 16px; height: 16px; }

/* ---- Parallax + decorative ------------------------------------------------ */
[data-parallax] { will-change: transform; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; z-index: 0; }
.orb.teal { background: radial-gradient(circle, rgba(58,147,171,0.55), transparent 70%); }
.section, .page-hero, .hero { position: relative; }

/* Parallax stats band with image */
.stats-band { position: relative; overflow: hidden; background: var(--ink); }
.stats-band .bg { position: absolute; inset: -12% 0; z-index: 0; }
.stats-band .bg img { width: 100%; height: 124%; object-fit: cover; opacity: 0.28; filter: grayscale(0.4); }
.stats-band::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(14,17,22,0.86), rgba(10,13,17,0.94)), radial-gradient(circle at 15% 20%, rgba(58,147,171,0.35), transparent 55%); }
.stats-band > .container { position: relative; z-index: 2; }

/* Image-led split media */
.split-media .media-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.split-media .media-img img { width: 100%; height: 100%; object-fit: cover; }
.media-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.media-collage .ph { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.media-collage .ph:first-child { grid-row: span 2; }
.media-collage .ph { min-height: 150px; }
.media-badge { position: absolute; z-index: 3; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-md); }

/* Interior page-hero with image */
.page-hero.has-img .ph { position: absolute; inset: 0; z-index: 0; opacity: 0.32; }
.page-hero.has-img::after { z-index: 1; }
.page-hero.has-img .container { z-index: 2; }

/* Section image banner (full-bleed) */
.img-banner { position: relative; height: clamp(280px, 40vw, 460px); overflow: hidden; }
.img-banner .ph { position: absolute; inset: 0; }
.img-banner .ph img { transform: scale(1.02); }
.img-banner .banner-content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; }

/* Magnetic / tilt hover for feature cards */
.tilt { transition: transform 0.3s var(--ease); transform-style: preserve-3d; }

/* ---- Niche flag + operator callout --------------------------------------- */
.ind-flag { position: absolute; top: 24px; right: 24px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--grad-teal); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.02em; box-shadow: var(--shadow-sm); }
.ind-flag svg { width: 13px; height: 13px; }
.op-section { overflow: hidden; }
.op-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.op-media .ph { width: 100%; height: 100%; }
.op-attrib { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.op-attrib strong { display: block; font-family: var(--font-head); color: #fff; font-size: 1rem; }
.op-attrib span { display: block; color: var(--grey-400); font-size: 0.86rem; }
.op-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--teal-700); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.2); }
.op-avatar::before { content: attr(data-initials); transform: translateY(2px); }
/* niche pill in mega menu */
.mega-link .niche-pill { display: inline-block; margin-left: 8px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--teal-700); background: var(--teal-050); border: 1px solid var(--teal-100); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- Avatars / team ------------------------------------------------------- */
.avatar { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.initials { display: grid; place-items: center; background: var(--grad-teal); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.team-card .avatar { width: 84px; height: 84px; margin-inline: auto; border-radius: 22px; }
.hero-media video { background: var(--ink); }

/* ---- Misc ----------------------------------------------------------------- */
.badge-soft { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--teal-050); color: var(--teal-700); font-size: 0.82rem; font-family: var(--font-head); font-weight: 600; }
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--grey-200), transparent); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; } .mt-4 { margin-top: 48px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
