/* ==========================================================================
   VetAccountants.com — Master Stylesheet
   National-firm veterinary accounting, bookkeeping & financial advisory
   ========================================================================== */

:root {
  --navy: #102746;
  --navy-deep: #0B1B32;
  --navy-soft: #1B3960;
  --emerald: #008C72;
  --teal: #087D71;
  --emerald-bright: #0AA88A;
  --mint: #EAF7F2;
  --mint-border: #C7E8DC;
  --soft-white: #FAFCFB;
  --white: #FFFFFF;
  --light-gray: #F2F5F7;
  --border: #DCE4EC;
  --border-subtle: #E6EDF3;
  --ink: #102746;
  --ink-body: #334861;
  --ink-muted: #5A6F85;
  --danger: #B91C1C;
  --danger-bg: #FEF2F2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(16, 39, 70, 0.05);
  --shadow-sm: 0 6px 20px -6px rgba(16, 39, 70, 0.08), 0 2px 6px rgba(16, 39, 70, 0.04);
  --shadow-md: 0 16px 38px -14px rgba(16, 39, 70, 0.14), 0 4px 12px rgba(16, 39, 70, 0.05);
  --shadow-lg: 0 28px 60px -22px rgba(16, 39, 70, 0.22), 0 8px 20px rgba(16, 39, 70, 0.06);

  --container: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  background-color: var(--soft-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal);
}

h1, h2, h3, h4 {
  color: var(--navy);
  margin: 0 0 0.65em;
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 4.1vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.38rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

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

.section {
  padding: 92px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--light-gray);
}

.section-mint {
  background: linear-gradient(180deg, #F4FBF8 0%, var(--mint) 100%);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #123354 100%);
  color: rgba(255, 255, 255, 0.86);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--mint);
  border: 1px solid var(--mint-border);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.section-navy .eyebrow {
  background: rgba(0, 140, 114, 0.18);
  border-color: rgba(0, 140, 114, 0.42);
  color: #7EEAD4;
}

.section-navy .eyebrow::before {
  background: #43D6B9;
}

.section-header {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  color: var(--ink-muted);
  line-height: 1.68;
}

.section-navy .lead {
  color: rgba(234, 247, 242, 0.8);
}

/* ==========================================================================
   Buttons + Subtle LED Perimeter Border & Hand-Drawn FREE Underline
   ========================================================================== */
@property --led-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes ledOrbit {
  to {
    --led-angle: 360deg;
  }
}

@keyframes drawSquiggle {
  from {
    stroke-dashoffset: 84;
    opacity: 0.35;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

/* Subtle LED-like traveling border highlight (Hero & Header Consultation CTAs) */
.btn-led {
  isolation: isolate;
  border-color: transparent;
}

.btn-led::before,
.btn-led::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  pointer-events: none;
  animation: ledOrbit 4.5s linear infinite;
}

/* Crisp thin perimeter light ring clipped strictly to the rounded border */
.btn-led::before {
  padding: 1.75px;
  background: conic-gradient(
    from var(--led-angle),
    rgba(234, 247, 242, 0.22) 0deg,
    rgba(234, 247, 242, 0.22) 280deg,
    rgba(10, 168, 138, 0.68) 318deg,
    rgba(234, 247, 242, 0.98) 345deg,
    rgba(126, 234, 212, 0.84) 354deg,
    rgba(234, 247, 242, 0.22) 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 2;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

/* Restrained ambient outer halo traveling in sync */
.btn-led::after {
  inset: -2px;
  background: conic-gradient(
    from var(--led-angle),
    transparent 0deg,
    transparent 296deg,
    rgba(0, 140, 114, 0.42) 326deg,
    rgba(126, 234, 212, 0.62) 346deg,
    transparent 360deg
  );
  filter: blur(7px);
  z-index: -1;
  opacity: 0.34;
  transition: opacity 0.28s ease;
}

.btn-led-hero::before {
  padding: 2px;
  opacity: 0.96;
}

.btn-led-hero::after {
  opacity: 0.48;
  filter: blur(8px);
}

.btn-led-hero:hover::before {
  opacity: 1;
}

.btn-led-hero:hover::after {
  opacity: 0.72;
}

.btn-led-nav::before {
  padding: 1.5px;
  opacity: 0.74;
}

.btn-led-nav::after {
  opacity: 0.22;
  filter: blur(6px);
}

.btn-led-nav:hover::before {
  opacity: 0.94;
}

.btn-led-nav:hover::after {
  opacity: 0.4;
}

/* Hand-drawn squiggly underline beneath FREE only */
.free-highlight {
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
}

.btn .free-highlight .free-squiggle {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -7px;
  width: calc(100% + 2px);
  height: 7px;
  color: #EAF7F2;
  pointer-events: none;
  overflow: visible;
}

.btn.btn-sm .free-highlight .free-squiggle {
  bottom: -6px;
  height: 6px;
}

.free-squiggle path {
  stroke-dasharray: 84;
  stroke-dashoffset: 84;
  animation: drawSquiggle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.btn:focus-visible {
  outline: 3px solid rgba(0, 140, 114, 0.4);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(0, 140, 114, 0.45);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(0, 140, 114, 0.55);
  background: linear-gradient(135deg, #02987C 0%, #076F64 100%);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--light-gray);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 0.88rem;
}

.btn-arrow > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.22s var(--ease-out);
}

.btn-arrow:hover > svg {
  transform: translateX(3px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 252, 251, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 228, 236, 0.85);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px -12px rgba(16, 39, 70, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-name span {
  color: var(--emerald);
}

.brand-name small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-body);
  background: transparent;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: var(--mint);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 120;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-item:hover > .nav-link svg,
.nav-item.open > .nav-link svg {
  transform: rotate(180deg);
}

.dropdown-link {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  transition: background-color 0.18s ease;
}

.dropdown-link:hover {
  background: var(--mint);
}

.dropdown-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.dropdown-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px 24px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-list a {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--navy);
}

.mobile-nav-list a:hover {
  background: var(--mint);
}

.mobile-nav-sub {
  padding-left: 16px;
  border-left: 2px solid var(--mint-border);
  margin: 4px 0 8px 12px;
}

.mobile-nav-sub a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-body);
  padding: 8px 12px;
}

.mobile-drawer .btn {
  width: 100%;
  margin-top: 14px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 64px 0 82px;
  background:
    radial-gradient(ellipse 65% 55% at 88% 12%, rgba(0, 140, 114, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 85%, rgba(16, 39, 70, 0.045), transparent 65%),
    var(--soft-white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr);
  gap: 52px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 20px;
  line-height: 1.13;
}

.hero-headline-visual {
  display: block;
}

.hl-line {
  display: block;
}

.hl-type-line {
  height: 1.13em;
  line-height: 1.13;
  overflow: visible;
}

/* Reserve width & fixed height of widest word ("Independent") and keep live text
   completely out of flow so deleting the last letter can NEVER shift baseline or page height */
.typewriter-slot {
  position: relative;
  display: inline-block;
  vertical-align: top;
  height: 1.13em;
  line-height: 1.13;
}

.typewriter-ghost {
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  padding-right: 10px;
}

.typewriter-active {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.typewriter-live {
  color: var(--navy);
  line-height: 1.13;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.84em;
  margin-left: 3px;
  border-radius: 2px;
  background-color: var(--emerald);
  transform: translateY(-0.02em);
  animation: cursorBlink 1.05s steps(1, end) infinite;
  flex-shrink: 0;
}

@keyframes cursorBlink {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}

.hero-copy .lead {
  font-size: clamp(1.06rem, 1.45vw, 1.22rem);
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--ink-body);
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.hero-pillar-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 39, 70, 0.09);
  background: var(--light-gray);
  aspect-ratio: 16 / 11;
}

.hero-photo-frame img,
.hero-photo-frame .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 24%;
}

.hero-photo-frame .hero-video {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.hero-photo-frame.is-playing .hero-video {
  opacity: 1;
}

.hero-photo-frame.video-failed .hero-video {
  display: none;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 39, 70, 0) 64%, rgba(16, 39, 70, 0.24) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-floating-card {
  z-index: 3;
  position: absolute;
  left: -24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(220, 228, 236, 0.95);
  border-radius: 16px;
  padding: 15px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 290px;
}

.hero-floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--mint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-floating-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.hero-floating-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* ==========================================================================
   Featured Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, #2AD1AE 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease-out);
  pointer-events: none;
}

.service-card:hover::after,
.service-card:focus-within::after {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -14px rgba(16, 39, 70, 0.16), 0 6px 16px rgba(0, 140, 114, 0.08);
  border-color: var(--mint-border);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card:hover .service-icon,
.service-card.is-emphasized .service-icon {
  background: #DFF4EC;
  box-shadow: inset 0 0 0 1px rgba(0, 140, 114, 0.24), 0 6px 16px -6px rgba(0, 140, 114, 0.28);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

/* --- 1. Bookkeeping: Animated Ledger (lines draw sequentially + emerald check) --- */
.svc-icon-ledger .ledger-line {
  stroke-dasharray: 16;
  stroke-dashoffset: 0;
}

.svc-icon-ledger .ledger-check {
  stroke-dasharray: 14;
  stroke-dashoffset: 0;
  stroke: #008C72;
}

.service-card.is-animating .svc-icon-ledger .ledger-line-1 {
  animation: ledgerDraw 1.8s var(--ease-out) 0s both;
}

.service-card.is-animating .svc-icon-ledger .ledger-line-2 {
  animation: ledgerDraw 1.8s var(--ease-out) 0.22s both;
}

.service-card.is-animating .svc-icon-ledger .ledger-line-3 {
  animation: ledgerDraw 1.8s var(--ease-out) 0.44s both;
}

.service-card.is-animating .svc-icon-ledger .ledger-check {
  animation: ledgerCheckDraw 1.8s var(--ease-out) 0.68s both;
}

.service-card.is-emphasized .svc-icon-ledger .ledger-check {
  filter: drop-shadow(0 0 2.5px rgba(0, 140, 114, 0.55));
}

@keyframes ledgerDraw {
  0%   { stroke-dashoffset: 16; opacity: 0.25; }
  28%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

@keyframes ledgerCheckDraw {
  0%   { stroke-dashoffset: 14; opacity: 0; }
  30%  { stroke-dashoffset: 0;  opacity: 1; }
  52%  { stroke-dashoffset: 0;  opacity: 1; stroke: #0AA88A; }
  100% { stroke-dashoffset: 0;  opacity: 1; stroke: #008C72; }
}

/* --- 2. Veterinary Accounting: Growing Financial Chart --- */
.svc-icon-chart .chart-bar {
  transform-box: view-box;
  transform-origin: 0 22.5px;
}

.service-card.is-animating .svc-icon-chart .chart-bar-1 {
  animation: chartBarRise 1.5s var(--ease-out) 0s both;
}

.service-card.is-animating .svc-icon-chart .chart-bar-2 {
  animation: chartBarRise 1.5s var(--ease-out) 0.16s both;
}

.service-card.is-animating .svc-icon-chart .chart-bar-3 {
  animation: chartBarRisePeak 1.65s var(--ease-out) 0.32s both;
}

.service-card.is-emphasized .svc-icon-chart .chart-bar-3 {
  filter: drop-shadow(0 0 4px rgba(0, 140, 114, 0.65));
}

@keyframes chartBarRise {
  0%   { transform: scaleY(0.12); opacity: 0.4; }
  48%  { transform: scaleY(1.04); opacity: 1; }
  72%  { transform: scaleY(1);    opacity: 1; }
  100% { transform: scaleY(1);    opacity: 1; }
}

@keyframes chartBarRisePeak {
  0%   { transform: scaleY(0.12); opacity: 0.4; filter: drop-shadow(0 0 0 rgba(0, 140, 114, 0)); }
  48%  { transform: scaleY(1.05); opacity: 1;   filter: drop-shadow(0 0 4.5px rgba(0, 140, 114, 0.65)); }
  78%  { transform: scaleY(1);    opacity: 1;   filter: drop-shadow(0 0 3px rgba(0, 140, 114, 0.42)); }
  100% { transform: scaleY(1);    opacity: 1;   filter: drop-shadow(0 0 0 rgba(0, 140, 114, 0)); }
}

/* --- 3. Fractional CFO & Advisory: Moving Clock --- */
.svc-icon-clock .clock-halo {
  opacity: 0;
  stroke: #0AA88A;
}

.svc-icon-clock .clock-hand {
  transform-box: view-box;
  transform-origin: 14px 14px;
}

.service-card.is-animating .svc-icon-clock .clock-hour {
  animation: clockHourSweep 1.65s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.service-card.is-animating .svc-icon-clock .clock-minute {
  animation: clockMinuteSweep 1.75s cubic-bezier(0.16, 1, 0.3, 1) 0s both;
}

.service-card.is-animating .svc-icon-clock .clock-halo {
  animation: clockHaloPulse 1.75s ease-in-out 0s both;
}

.service-card.is-emphasized .svc-icon-clock .clock-halo {
  opacity: 0.45;
}

@keyframes clockHourSweep {
  0%   { transform: rotate(-42deg); }
  100% { transform: rotate(0deg); }
}

@keyframes clockMinuteSweep {
  0%   { transform: rotate(-165deg); }
  100% { transform: rotate(0deg); }
}

@keyframes clockHaloPulse {
  0%   { opacity: 0; stroke-width: 1; }
  45%  { opacity: 0.48; stroke-width: 1.6; }
  100% { opacity: 0.14; stroke-width: 1; }
}

/* --- 4. Multi-Location & Growth: Expanding Hospital --- */
.svc-icon-hospital .hosp-outline {
  stroke-dasharray: 82;
  stroke-dashoffset: 0;
}

.svc-icon-hospital .hosp-win {
  fill: rgba(0, 140, 114, 0.25);
  transition: fill 0.25s ease;
}

.svc-icon-hospital .hosp-building {
  transform-box: view-box;
  transform-origin: 14px 23px;
}

.service-card.is-animating .svc-icon-hospital .hosp-building {
  animation: hospExpandLift 1.85s var(--ease-out) 0s both;
}

.service-card.is-animating .svc-icon-hospital .hosp-outline {
  animation: hospOutlineDraw 1.85s var(--ease-out) 0s both;
}

.service-card.is-animating .svc-icon-hospital .hosp-win-1 {
  animation: hospWinLight 1.3s ease-out 0.52s both;
}

.service-card.is-animating .svc-icon-hospital .hosp-win-2 {
  animation: hospWinLight 1.3s ease-out 0.68s both;
}

.service-card.is-animating .svc-icon-hospital .hosp-win-3 {
  animation: hospWinLight 1.3s ease-out 0.84s both;
}

.service-card.is-animating .svc-icon-hospital .hosp-win-4 {
  animation: hospWinLight 1.3s ease-out 1.00s both;
}

.service-card.is-emphasized .svc-icon-hospital .hosp-building {
  filter: drop-shadow(0 0 3.5px rgba(0, 140, 114, 0.45));
}

@keyframes hospOutlineDraw {
  0%   { stroke-dashoffset: 82; opacity: 0.35; }
  45%  { stroke-dashoffset: 0;  opacity: 1; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

@keyframes hospExpandLift {
  0%   { transform: translateY(2px) scaleY(0.94); filter: drop-shadow(0 0 0 rgba(0, 140, 114, 0)); }
  58%  { transform: translateY(-1px) scaleY(1.02); filter: drop-shadow(0 0 3.5px rgba(0, 140, 114, 0.5)); }
  100% { transform: translateY(0) scaleY(1); filter: drop-shadow(0 0 0 rgba(0, 140, 114, 0)); }
}

@keyframes hospWinLight {
  0%   { fill: rgba(0, 140, 114, 0.08); }
  40%  { fill: #0AA88A; }
  100% { fill: rgba(0, 140, 114, 0.38); }
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald);
}

.card-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease-out);
}

.service-card:hover .card-link svg,
.card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   CINEMATIC MULTI-VIDEO VETERINARY MOSAIC (Phase 3)
   Inspired by layered motion + lazy IntersectionObserver architecture
   ========================================================================== */
.mosaic-section {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(ellipse 68% 55% at 50% 42%, rgba(234, 247, 242, 0.72), rgba(242, 245, 247, 0.35) 62%, transparent 100%),
    linear-gradient(180deg, #F5F9F8 0%, #EEF4F6 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  --mosaic-progress: 0;
}

.mosaic-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(16, 39, 70, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mosaic-topline-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy);
}

.mosaic-topline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(0, 140, 114, 0.16);
}

.mosaic-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 42px;
}

.mosaic-header h2 {
  margin-bottom: 0;
}

.mosaic-header .lead {
  margin-bottom: 0;
  font-size: 1.08rem;
  color: var(--ink-body);
}

/* Asymmetrical 6-panel Bento Mosaic:
   Panel 1 (Compassionate Care) occupies ~42% of total visual gallery area */
.video-mosaic {
  display: grid;
  grid-template-columns: 4.4fr repeat(6, 1fr);
  grid-template-rows: 320px 264px;
  gap: 18px;
  align-items: stretch;
}

.mosaic-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.mosaic-slot-1 { grid-column: 1 / 2; grid-row: 1 / 3; --enter-y: 24px; --delay: 0ms;   --travel: -6px; }
.mosaic-slot-2 { grid-column: 2 / 5; grid-row: 1 / 2; --enter-y: 28px; --delay: 70ms;  --travel: 6px; }
.mosaic-slot-3 { grid-column: 5 / 8; grid-row: 1 / 2; --enter-y: 32px; --delay: 130ms; --travel: -5px; }
.mosaic-slot-4 { grid-column: 2 / 4; grid-row: 2 / 3; --enter-y: 28px; --delay: 190ms; --travel: 5px; }
.mosaic-slot-5 { grid-column: 4 / 6; grid-row: 2 / 3; --enter-y: 32px; --delay: 250ms; --travel: -6px; }
.mosaic-slot-6 { grid-column: 6 / 8; grid-row: 2 / 3; --enter-y: 36px; --delay: 310ms; --travel: 5px; }

/* Separated transform layers so entrance, parallax, and hover zoom compose cleanly */
.mosaic-enter {
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translate3d(0, var(--enter-y, 16px), 0);
  transition: transform 0.65s var(--ease-out) var(--delay, 0ms);
}

.mosaic-section.has-entered .mosaic-enter {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mosaic-parallax {
  width: 100%;
  height: 100%;
  transform: translate3d(0, calc(var(--mosaic-progress) * var(--travel, 0px)), 0);
  will-change: transform;
}

.mosaic-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 20px 42px -18px rgba(16, 39, 70, 0.34), 0 4px 12px rgba(16, 39, 70, 0.08);
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mosaic-media-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.75s var(--ease-out);
}

.mosaic-card:hover .mosaic-media-wrap {
  transform: scale(1.045);
}

.mosaic-poster,
.mosaic-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mosaic-slot-1 .mosaic-poster,
.mosaic-slot-1 .mosaic-video {
  object-position: 48% 34%;
}

.mosaic-slot-4 .mosaic-poster,
.mosaic-slot-4 .mosaic-video {
  object-position: 56% 42%;
}

.mosaic-slot-5 .mosaic-poster,
.mosaic-slot-5 .mosaic-video {
  object-position: 48% 36%;
}

.mosaic-video {
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.mosaic-card.is-playing .mosaic-video {
  opacity: 1;
}

.mosaic-card.video-failed .mosaic-video {
  display: none;
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 39, 70, 0.04) 22%,
    rgba(16, 39, 70, 0.38) 62%,
    rgba(11, 27, 50, 0.9) 100%
  );
  transition: background 0.45s ease, opacity 0.45s ease;
  z-index: 2;
  pointer-events: none;
}

.mosaic-card:hover .mosaic-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 140, 114, 0.14) 0%,
    rgba(16, 39, 70, 0.46) 56%,
    rgba(8, 56, 60, 0.9) 100%
  );
}

.mosaic-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 22px;
  z-index: 3;
  color: var(--white);
  pointer-events: none;
}

.mosaic-slot-1 .mosaic-label {
  padding: 28px 30px;
}

.mosaic-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8BF0DB;
  margin-bottom: 6px;
}

.mosaic-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2AD1AE;
}

.mosaic-title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.01em;
}

.mosaic-slot-1 .mosaic-title {
  font-size: 1.48rem;
}

.mosaic-caption {
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(234, 247, 242, 0.86);
  margin-top: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height 0.42s var(--ease-out), opacity 0.35s ease, transform 0.42s var(--ease-out);
}

.mosaic-slot-1 .mosaic-caption {
  max-height: 60px;
  opacity: 0.92;
  transform: translateY(0);
  font-size: 0.92rem;
}

.mosaic-card:hover .mosaic-caption {
  max-height: 70px;
  opacity: 1;
  transform: translateY(0);
}

.mosaic-footer {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(16, 39, 70, 0.1);
}

.mosaic-footer-note {
  font-size: 0.95rem;
  color: var(--ink-body);
  max-width: 580px;
}

/* ==========================================================================
   Value Proposition Grid + Interactive Spotlight & Mini SVG Micro-Visuals
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: start;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.32s ease, transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.32s ease;
}

/* Thin emerald progress bar sweeping across the top of the active spotlight card */
.value-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, #2AD1AE 100%);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
}

.value-card.is-spotlight::before {
  opacity: 1;
  animation: valueProgressSweep 3.4s linear forwards;
}

.value-card.is-hovered::before {
  opacity: 1;
  animation: none;
  transform: scaleX(1);
  transition: transform 0.35s var(--ease-out);
}

@keyframes valueProgressSweep {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.value-card:hover,
.value-card.is-spotlight {
  border-color: #9DDAC8;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(16, 39, 70, 0.14), 0 4px 12px rgba(0, 140, 114, 0.08);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FDFA 100%);
}

.value-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--emerald);
  background: var(--mint);
  padding: 5px 11px;
  border-radius: 7px;
  transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.value-card:hover .value-num,
.value-card.is-spotlight .value-num {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 4px 12px -4px rgba(0, 140, 114, 0.55);
}

.value-viz {
  width: 68px;
  height: 26px;
  flex-shrink: 0;
  overflow: visible;
}

/* 01: PIMS & Bank Alignment Pulses */
.viz-align-pulse {
  opacity: 0.35;
}

.value-card.is-spotlight .viz-align-pulse-1,
.value-card:hover .viz-align-pulse-1 {
  animation: vizAlignTravel 1.5s var(--ease-out) 0s both;
}

.value-card.is-spotlight .viz-align-pulse-2,
.value-card:hover .viz-align-pulse-2 {
  animation: vizAlignTravel 1.5s var(--ease-out) 0.18s both;
}

.value-card.is-spotlight .viz-align-node,
.value-card:hover .viz-align-node {
  animation: vizNodeMatch 1.5s var(--ease-out) 0.55s both;
}

@keyframes vizAlignTravel {
  0%   { transform: translateX(-28px); opacity: 0; }
  35%  { opacity: 1; }
  80%  { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.85; }
}

@keyframes vizNodeMatch {
  0%   { transform: scale(0.7); opacity: 0.4; }
  55%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.viz-align-node {
  transform-box: fill-box;
  transform-origin: center;
}

/* 02: COGS Segment Separation */
.viz-cogs-seg {
  transform-box: fill-box;
  transform-origin: left center;
}

.value-card.is-spotlight .viz-cogs-1,
.value-card:hover .viz-cogs-1 {
  animation: vizBarGrow 1.1s var(--ease-out) 0s both;
}

.value-card.is-spotlight .viz-cogs-2,
.value-card:hover .viz-cogs-2 {
  animation: vizBarGrow 1.1s var(--ease-out) 0.16s both;
}

.value-card.is-spotlight .viz-cogs-3,
.value-card:hover .viz-cogs-3 {
  animation: vizBarGrow 1.1s var(--ease-out) 0.32s both;
}

@keyframes vizBarGrow {
  0%   { transform: scaleX(0.15); opacity: 0.35; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* 03: Payroll Ratio Meters */
.viz-pay-bar {
  transform-box: fill-box;
  transform-origin: left center;
}

.value-card.is-spotlight .viz-pay-1,
.value-card:hover .viz-pay-1 {
  animation: vizBarGrow 1.15s var(--ease-out) 0s both;
}

.value-card.is-spotlight .viz-pay-2,
.value-card:hover .viz-pay-2 {
  animation: vizBarGrow 1.15s var(--ease-out) 0.18s both;
}

.value-card.is-spotlight .viz-pay-3,
.value-card:hover .viz-pay-3 {
  animation: vizBarGrow 1.15s var(--ease-out) 0.36s both;
}

/* 04: Tax-Ready Monthly Checkoffs */
.viz-tax-check {
  stroke-dasharray: 12;
  stroke-dashoffset: 0;
}

.value-card.is-spotlight .viz-tax-1,
.value-card:hover .viz-tax-1 {
  animation: vizCheckTick 0.9s var(--ease-out) 0.05s both;
}

.value-card.is-spotlight .viz-tax-2,
.value-card:hover .viz-tax-2 {
  animation: vizCheckTick 0.9s var(--ease-out) 0.28s both;
}

.value-card.is-spotlight .viz-tax-3,
.value-card:hover .viz-tax-3 {
  animation: vizCheckTick 0.9s var(--ease-out) 0.52s both;
}

@keyframes vizCheckTick {
  0%   { stroke-dashoffset: 12; opacity: 0.2; }
  100% { stroke-dashoffset: 0;  opacity: 1; }
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Interactive Financial Dashboard Preview (Phase 5)
   ========================================================================== */
.dashboard-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard-topbar {
  background: var(--navy);
  color: var(--white);
  padding: 18px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 140, 114, 0.24);
  border: 1px solid rgba(126, 234, 212, 0.4);
  color: #9FF5E3;
}

.dashboard-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.dash-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dash-tab.active {
  background: var(--emerald);
  color: var(--white);
}

.dashboard-body {
  padding: 28px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.kpi-card {
  background: var(--soft-white);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.22s ease;
}

.kpi-card:hover {
  border-color: var(--mint-border);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--emerald);
  transition: background-color 0.35s ease, color 0.35s ease;
  white-space: nowrap;
}

.kpi-pill.is-5yr {
  background: var(--emerald);
  color: var(--white);
}

.kpi-value {
  font-size: clamp(1.38rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 6px;
}

.chart-panel {
  position: relative;
  background: var(--soft-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 24px 22px;
  overflow: hidden;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.chart-panel.is-5yr {
  border-color: rgba(0, 140, 114, 0.28);
  box-shadow: 0 12px 32px -18px rgba(0, 140, 114, 0.22);
}

.chart-story-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(16, 39, 70, 0.06);
  pointer-events: none;
}

.chart-story-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--emerald) 65%, #37c7a7 100%);
  border-radius: 0 3px 3px 0;
  will-change: width;
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.chart-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid var(--mint-border);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.chart-phase-pill.is-zooming {
  background: #102746;
  border-color: #102746;
  color: #9FF5E3;
}

.chart-phase-pill.is-5yr {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

.chart-phase-pill .phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: phasePulse 1.8s ease-in-out infinite;
}

@keyframes phasePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.chart-controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.chart-action-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-horizon-group {
  display: inline-flex;
  background: #E9F0F6;
  padding: 2px;
  border-radius: 8px;
  gap: 2px;
}

.horizon-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.horizon-btn:hover {
  color: var(--navy);
}

.horizon-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(16, 39, 70, 0.14);
}

.horizon-btn.active[data-horizon="5y"] {
  background: var(--emerald);
  color: var(--white);
}

.chart-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-body);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.chart-replay-btn:hover,
.chart-replay-btn:focus-visible {
  border-color: var(--emerald);
  color: var(--emerald);
  background: var(--mint);
  outline: none;
}

.chart-replay-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s var(--ease-out);
}

.chart-replay-btn:hover svg {
  transform: rotate(-45deg);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.chart-svg {
  width: 100%;
  height: auto;
  min-width: 540px;
  display: block;
}

.chart-grid-group {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.chart-svg.grid-visible .chart-grid-group {
  opacity: 1;
}

.chart-guide-line {
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

.chart-guide-line.visible {
  opacity: 1;
}

.dash-dot-group {
  outline: none;
}

.dash-dot {
  transition: r 0.18s var(--ease-out), opacity 0.22s ease, transform 0.22s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.dash-dot-halo {
  pointer-events: none;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes dotHaloBurst {
  0%   { opacity: 0.52; transform: scale(1); }
  100% { opacity: 0;    transform: scale(2.4); }
}

.dash-dot-halo.burst {
  animation: dotHaloBurst 0.65s var(--ease-out) forwards;
}

.dash-dec-ring {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.dash-dec-ring.visible {
  opacity: 0.42;
}

.chart-tooltip {
  position: absolute;
  top: 12px;
  left: 60px;
  min-width: 204px;
  background: rgba(16, 39, 70, 0.96);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(139, 240, 219, 0.24);
  font-size: 0.8rem;
  line-height: 1.48;
  box-shadow: 0 14px 30px -10px rgba(11, 27, 50, 0.42);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, left 0.14s ease;
  z-index: 12;
}

.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip-month {
  font-weight: 700;
  color: #8BF0DB;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 2px;
}

.chart-tooltip-row strong {
  color: #FFFFFF;
}

/* 5-Year Horizon Executive Metrics Strip (reveals cleanly on zoom-out) */
.five-yr-strip {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.7s var(--ease-out), opacity 0.55s ease, margin-top 0.7s var(--ease-out);
}

.five-yr-strip.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.five-yr-strip-inner {
  overflow: hidden;
  border-top: 1px solid transparent;
  padding-top: 0;
  transition: border-color 0.5s ease, padding-top 0.6s var(--ease-out);
}

.five-yr-strip.is-visible .five-yr-strip-inner {
  border-top-color: rgba(0, 140, 114, 0.22);
  padding-top: 16px;
}

.five-yr-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.five-yr-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #9FF5E3;
}

.five-yr-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.five-yr-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.five-yr-metric {
  background: var(--white);
  border: 1px solid rgba(16, 39, 70, 0.09);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.45s ease, border-color 0.25s ease;
}

.five-yr-strip.is-visible .five-yr-metric {
  transform: translateY(0);
  opacity: 1;
}

.five-yr-strip.is-visible .five-yr-metric:nth-child(2) { transition-delay: 0.08s; }
.five-yr-strip.is-visible .five-yr-metric:nth-child(3) { transition-delay: 0.16s; }
.five-yr-strip.is-visible .five-yr-metric:nth-child(4) { transition-delay: 0.24s; }

.five-yr-metric:hover {
  border-color: var(--mint-border);
}

.five-yr-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.five-yr-val {
  font-size: clamp(1.18rem, 1.7vw, 1.46rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.five-yr-val.is-emerald {
  color: var(--emerald);
}

.five-yr-sub {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.dashboard-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Practice Profitability Calculator (Phase 6)
   ========================================================================== */
.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: stretch;
}

.calc-controls,
.calc-results {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}

.calc-results {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-field {
  margin-bottom: 28px;
}

.calc-field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calc-field label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.calc-readout {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald) var(--pct, 50%), #DDE6EE var(--pct, 50%));
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--emerald);
  box-shadow: 0 4px 12px rgba(16, 39, 70, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.calc-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--emerald);
  box-shadow: 0 4px 12px rgba(16, 39, 70, 0.22);
  cursor: pointer;
}

.calc-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

.calc-bar-wrap {
  margin-top: 10px;
  padding: 18px;
  background: var(--soft-white);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.calc-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-body);
  margin-bottom: 9px;
}

.calc-bar-track {
  height: 12px;
  border-radius: 999px;
  background: #DCE5EE;
  overflow: hidden;
  display: flex;
}

.calc-bar-exp {
  background: var(--navy);
  height: 100%;
  transition: width 0.2s ease;
}

.calc-bar-profit {
  background: var(--emerald);
  height: 100%;
  transition: width 0.2s ease;
}

.calc-disclaimer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
}

.calc-metric {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px;
}

.calc-metric.highlight {
  background: rgba(0, 140, 114, 0.2);
  border-color: rgba(126, 234, 212, 0.38);
}

.calc-metric-label {
  font-size: 0.78rem;
  color: rgba(234, 247, 242, 0.76);
  font-weight: 600;
  margin-bottom: 6px;
}

.calc-metric-value {
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.calc-metric.highlight .calc-metric-value {
  color: #8BF0DB;
}

/* ==========================================================================
   Practices Served, Process & FAQ
   ========================================================================== */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.22s ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--mint-border);
}

.practice-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.practice-card p {
  font-size: 0.91rem;
  color: var(--ink-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  position: relative;
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--mint-border);
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--emerald);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--ink-body);
  line-height: 1.68;
}

/* ==========================================================================
   Subpage Hero & Content Layouts
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 65%, #123659 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 72px 0 68px;
}

.page-hero h1 {
  color: var(--white);
  max-width: 780px;
}

.page-hero .lead {
  color: rgba(234, 247, 242, 0.84);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(234, 247, 242, 0.7);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #8BF0DB;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-xs);
}

.detail-card h3 {
  margin-bottom: 10px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--ink-body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23008C72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5L6.5 11.5L12.5 4.8'/%3E%3C/svg%3E") center/12px no-repeat;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 40px;
  font-size: 1.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.prose li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Consultation Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: start;
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.form-group label .req {
  color: var(--emerald);
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--soft-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(0, 140, 114, 0.14);
}

textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--soft-white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-body);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.checkbox-pill:has(input:checked) {
  border-color: var(--emerald);
  background: var(--mint);
  color: var(--navy);
}

.checkbox-pill input {
  accent-color: var(--emerald);
  width: 16px;
  height: 16px;
  margin: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-notice {
  font-size: 0.82rem;
  color: var(--ink-muted);
  background: var(--light-gray);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
}

.form-status {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.form-status.is-success {
  display: block;
  background: var(--mint);
  border: 1px solid var(--mint-border);
  color: var(--navy);
}

.form-status.is-error {
  display: block;
  background: var(--danger-bg);
  border: 1px solid #FECACA;
  color: var(--danger);
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, #0E3D4B 100%);
  border-radius: var(--radius-xl);
  padding: 58px 48px;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(234, 247, 242, 0.84);
  max-width: 600px;
  font-size: 1.04rem;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(226, 236, 245, 0.78);
  padding: 72px 0 36px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-brand-name span {
  color: #3DD3B4;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(226, 236, 245, 0.76);
}

.footer-links a:hover {
  color: #7EEAD4;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(226, 236, 245, 0.58);
}

/* ==========================================================================
   Scroll Reveal Animations (Tasteful & Restrained)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints (1280px, 1024px, 768px, 430px, 390px, 375px)
   ========================================================================== */
@media (max-width: 1120px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-mosaic {
    grid-template-columns: 3.6fr repeat(6, 1fr);
    grid-template-rows: 275px 235px;
    gap: 14px;
  }

  .hero-floating-card {
    left: 14px;
    bottom: 14px;
  }
}

@media (max-width: 960px) {
  .nav-desktop,
  .header-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-grid,
  .value-grid,
  .calculator-grid,
  .contact-grid,
  .mosaic-header {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero {
    padding: 46px 0 64px;
  }

  .section {
    padding: 72px 0;
  }

  .video-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 14px;
  }

  .mosaic-slot-1 {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .mosaic-slot-2,
  .mosaic-slot-3,
  .mosaic-slot-4,
  .mosaic-slot-5 {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .mosaic-slot-6 {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 8.5;
  }

  .mosaic-parallax {
    transform: none !important;
  }

  .kpi-grid,
  .practices-grid,
  .steps-grid,
  .five-yr-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 58px 0;
  }

  .hero-pillars,
  .services-grid,
  .value-cards,
  .kpi-grid,
  .practices-grid,
  .steps-grid,
  .detail-grid,
  .form-grid,
  .checkbox-grid,
  .calc-results-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-floating-card {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }

  .mosaic-topline-right {
    display: none;
  }

  .video-mosaic {
    gap: 12px;
  }

  .mosaic-slot-1 {
    aspect-ratio: 16 / 11;
  }

  .mosaic-slot-2,
  .mosaic-slot-3,
  .mosaic-slot-4,
  .mosaic-slot-5 {
    aspect-ratio: 4 / 4.2;
  }

  .mosaic-slot-6 {
    aspect-ratio: 16 / 10;
  }

  .mosaic-label {
    padding: 13px 14px;
  }

  .mosaic-slot-1 .mosaic-label {
    padding: 18px 20px;
  }

  .mosaic-title {
    font-size: 0.94rem;
  }

  .mosaic-slot-1 .mosaic-title {
    font-size: 1.24rem;
  }

  .mosaic-tag {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .mosaic-tag::before {
    flex-shrink: 0;
  }

  .mosaic-slot-2 .mosaic-tag,
  .mosaic-slot-3 .mosaic-tag,
  .mosaic-slot-4 .mosaic-tag,
  .mosaic-slot-5 .mosaic-tag {
    display: none;
  }

  .mosaic-caption {
    display: none;
  }

  .mosaic-slot-1 .mosaic-caption {
    display: block;
    font-size: 0.84rem;
  }

  .dashboard-topbar,
  .dashboard-body,
  .calc-controls,
  .calc-results,
  .contact-panel {
    padding: 22px 18px;
  }

  .chart-panel {
    padding: 18px 14px 16px;
  }

  .chart-svg {
    min-width: 0;
  }

  .five-yr-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .five-yr-metric {
    padding: 11px 12px;
  }

  .cta-banner {
    padding: 36px 24px;
  }

  .btn-group .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal],
  .mosaic-enter {
    opacity: 1 !important;
    transform: none !important;
  }

  .mosaic-parallax {
    transform: none !important;
  }

  .hero-photo-frame .hero-video {
    display: none !important;
  }

  .typewriter-cursor {
    display: none !important;
  }

  .btn-led::before,
  .btn-led::after {
    animation: none !important;
  }

  .btn-led::before {
    background: rgba(234, 247, 242, 0.45);
  }

  .btn-led::after {
    opacity: 0.16 !important;
  }

  .free-squiggle path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }

  .service-card.is-animating .service-icon *,
  .value-card::before,
  .value-card .value-viz *,
  .chart-phase-pill .phase-dot {
    animation: none !important;
  }
}
