@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #0c1117;
  --muted: #64748b;
  --paper: #f8fafb;
  --panel: #ffffff;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --slate: #475569;
  --copper: #0d9488;
  --copper-dark: #0f766e;
  --champagne: #f59e0b;
  --gold: #d97706;
  --sage: #10b981;
  --coral: #f43f5e;
  --cream: #fffbeb;
  --mist: #f0fdfa;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.02), 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(13, 148, 136, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --gradient-premium: linear-gradient(135deg, #0d9488 0%, #c45b4d 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(244, 63, 94, 0.1) 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain texture overlay for premium feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-premium);
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ───── Header ───── */
.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: clamp(14px, 3vw, 34px);
  left: clamp(14px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(1.4);
  transition: background 280ms ease, box-shadow 280ms ease, color 280ms ease, border-color 280ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 42%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-35%);
  transition: opacity 320ms ease, transform 620ms ease;
}

.site-header:hover::after {
  opacity: 1;
  transform: translateX(35%);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(24px) saturate(1.6);
}

.brand,
.main-nav,
.hero-actions,
.site-footer,
.site-footer nav,
.trust-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo,
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-logo {
  flex: 0 0 auto;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.2);
  transition: filter 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.brand:hover .brand-logo {
  filter: brightness(1.1) saturate(1.1);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.3);
  transform: scale(1.05);
}

.brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--copper), var(--coral));
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.main-nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.88rem;
  font-weight: 600;
}

.main-nav a,
.header-call {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.main-nav a {
  position: relative;
  transition: opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-call {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  will-change: transform;
  transition: background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.header-call:hover {
  color: #fff;
  border-color: var(--copper);
  background: var(--copper);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.3);
}

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: min(900px, 96vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13, 148, 136, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(244, 63, 94, 0.06), transparent),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(245, 158, 11, 0.04), transparent),
    linear-gradient(180deg, #f8fafb 0%, #f1f5f9 50%, #f8fafb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glitter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#particle-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.hero-glitter span::before,
.hero-glitter span::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
}

.hero-glitter span::before {
  width: 18px;
  height: 1px;
}

.hero-glitter span::after {
  width: 1px;
  height: 18px;
}

.hero-glitter span:nth-child(1) {
  top: 18%;
  left: 50%;
}

.hero-glitter span:nth-child(2) {
  top: 34%;
  left: 88%;
}

.hero-glitter span:nth-child(3) {
  top: 72%;
  left: 70%;
}

.hero-glitter span:nth-child(4) {
  top: 16%;
  left: 78%;
}

.background-paths-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.2;
  pointer-events: none;
}

.background-paths-static svg {
  width: 100%;
  height: 100%;
  transform: scale(1.24);
}

.background-paths-static path {
  stroke: rgba(13, 148, 136, 0.3);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-dasharray: 0.34 1;
  filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.1));
  animation: backgroundPathDrift 22s linear infinite;
}

.background-paths-static path:nth-child(2n) {
  stroke: rgba(244, 63, 94, 0.12);
  animation-duration: 28s;
  animation-direction: reverse;
}

.background-paths-static path:nth-child(3n) {
  animation-duration: 32s;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin: 0 auto;
  padding-top: 128px;
  padding-bottom: 120px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-left: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-content h1 {
  animation: titleGlow 5s ease-in-out infinite;
}

/* ───── Typography System ───── */
.eyebrow {
  margin: 0 0 16px;
  color: var(--copper-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-copy {
  width: min(640px, 100%);
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 22px;
}

/* ───── Advisor Card ───── */
.advisor-card {
  position: relative;
  overflow: hidden;
  display: flex;
  width: min(560px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
  will-change: transform;
  transition: border-color 280ms ease, box-shadow 280ms ease;
}

.advisor-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--copper-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.advisor-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
}

.advisor-card a {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.advisor-card a:hover {
  background: var(--copper);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

/* ───── Buttons ───── */
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 28px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  will-change: transform;
  transition: box-shadow 240ms ease, background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.button::after,
.advisor-card::after,
.service-card::after,
.feature-panel::after,
.testimonial::after,
.estimate-form::after,
.signature-card::after,
.signature-step::after,
.twentyfirst-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.25) 44%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-80%);
}

.button:hover::after,
.advisor-card:hover::after,
.service-card:hover::after,
.feature-panel:hover::after,
.testimonial:hover::after,
.estimate-form:hover::after,
.signature-card:hover::after,
.signature-step:hover::after,
.twentyfirst-card:hover::after {
  animation: shineSweep 900ms ease;
}

.button:hover {
  filter: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--copper), #0891b2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.button.primary:hover {
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.35), 0 0 0 3px rgba(13, 148, 136, 0.1);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.button.secondary.light {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary.light:hover {
  border-color: var(--copper);
  background: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

/* ───── Trust Row ───── */
.trust-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.trust-row span {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

/* ───── Showcase Cards ───── */
.hero-showcase {
  position: relative;
  min-height: 560px;
}

.showcase-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  isolation: isolate;
  transition: box-shadow 400ms ease;
}

.showcase-card:hover {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  backdrop-filter: blur(20px) saturate(1.4);
}

.showcase-card figcaption span {
  color: var(--copper-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-card.main {
  top: 12px;
  right: 42px;
  width: min(520px, 82%);
  height: 500px;
}

.showcase-card.float-one {
  top: 60px;
  left: 0;
  width: 230px;
  height: 260px;
  transform: rotate(-5deg);
}

.showcase-card.float-two {
  right: 0;
  bottom: 0;
  width: 260px;
  height: 220px;
  transform: rotate(5deg);
}

/* ───── Quote Planner ───── */
.quote-planner {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  width: min(980px, 92%);
  margin: clamp(18px, 3vw, 34px) auto 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(24px) saturate(1.4);
}

.quote-planner a {
  min-height: 58px;
  display: grid;
  align-content: center;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--ink);
  font-weight: 700;
  transition: background 200ms ease;
}

.quote-planner a:hover {
  background: var(--mist);
}

.quote-planner span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-planner .planner-button {
  min-width: 150px;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--copper), #0891b2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.trust-row span::after,
.service-tag::after,
.form-kicker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transform: translateX(-100%);
}

.trust-row span:hover::after,
.service-tag:hover::after,
.form-kicker:hover::after {
  animation: shineSweep 750ms ease;
}

/* ───── Lottie Badge ───── */
.lottie-badge {
  position: relative;
  z-index: 4;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#project-lottie {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.lottie-badge span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

[data-aos] {
  pointer-events: auto;
}

/* ───── Hero Stats ───── */
.hero-stats {
  grid-column: 1 / -1;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 48px auto 0;
  width: min(1100px, 100%);
}

.hero-stats div {
  position: relative;
  overflow: hidden;
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 260px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 30px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.hero-stats div:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hero-stats div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  animation: statSweep 5s ease-in-out infinite;
}

.hero-stats div:nth-child(2)::after {
  animation-delay: 0.5s;
}

.hero-stats div:nth-child(3)::after {
  animation-delay: 1s;
}

.hero-stats dt {
  display: block;
  margin-bottom: 8px;
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #0d9488 0%, #c45b4d 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 300ms ease;
}

.hero-stats dt.calculating {
  filter: drop-shadow(0 0 8px rgba(13, 148, 136, 0.3));
}

.hero-stats dd {
  margin: 0;
  color: var(--slate);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  opacity: 0.85;
}

/* ───── Quick Strip ───── */
.quick-strip {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-lg);
}

.quick-strip div {
  padding: 28px clamp(20px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.98);
  will-change: transform;
  transition: background 280ms ease, box-shadow 280ms ease, color 280ms ease;
}

.quick-strip div:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.quick-strip div:hover span {
  color: rgba(255, 255, 255, 0.7);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  margin-bottom: 4px;
  font-weight: 700;
}

.quick-strip span {
  color: var(--muted);
  font-weight: 400;
}

/* ───── Sections ───── */
.section {
  padding: clamp(72px, 8vw, 120px) clamp(20px, 5vw, 80px);
}

.intro-grid,
.signature-section,
.coverage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 510px);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.section-copy {
  max-width: 710px;
}

/* ───── Signature Section ───── */
.signature-section {
  position: relative;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.04), transparent),
    linear-gradient(180deg, #f8fafb, #f0f9ff, #f8fafb);
}

.signature-section::before {
  content: "";
  position: absolute;
  inset: 32px clamp(18px, 5vw, 76px);
  border: 1px solid rgba(13, 148, 136, 0.08);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.signature-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(1.3);
}

.signature-copy::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--copper), var(--champagne));
}

.signature-copy .eyebrow {
  margin-bottom: 18px;
  color: var(--copper-dark);
  letter-spacing: 0.18em;
}

.signature-copy h2 {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2rem, 3.35vw, 3.2rem);
  line-height: 1.04;
}

.signature-copy > p:not(.eyebrow) {
  max-width: 590px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
}

.premium-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.premium-pills span {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 280ms ease;
}

.premium-pills span:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--copper), #0891b2);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}

/* ───── Signature Card ───── */
.signature-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.signature-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
}

.signature-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

.signature-card:hover .signature-image-wrap img {
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04);
}

.signature-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  min-width: 154px;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(1.4);
}

.signature-badge strong {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.signature-badge span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.signature-step {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius);
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signature-step::before {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: opacity 280ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signature-step span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 10px;
  color: var(--copper-dark);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(13, 148, 136, 0.06));
  font-size: 0.72rem;
  font-weight: 800;
}

.signature-step strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
}

.signature-step p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
}

.signature-step:hover {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(245, 158, 11, 0.12), transparent 40%),
    linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
  transform: translateY(-4px);
}

.signature-step:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.signature-step:hover strong,
.signature-step:hover p {
  color: #fff;
}

.signature-step:hover span {
  color: var(--navy);
  border-color: transparent;
  background: linear-gradient(135deg, var(--champagne), #fde68a);
}

/* ───── 21st Section ───── */
.twentyfirst-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 148, 136, 0.15), transparent),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.twentyfirst-section .section-heading {
  position: relative;
  z-index: 1;
}

.twentyfirst-section .eyebrow {
  color: var(--champagne);
}

.twentyfirst-section h2 {
  color: #fff;
}

.twentyfirst-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr 0.82fr;
  gap: 14px;
}

.twentyfirst-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 238px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(245, 158, 11, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(24px);
  transition: border-color 340ms ease, background 340ms ease, box-shadow 340ms ease, transform 340ms ease;
}

.twentyfirst-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.twentyfirst-card-large {
  grid-row: span 2;
  min-height: 492px;
}

.component-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--champagne);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.twentyfirst-card h3,
.twentyfirst-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.16;
}

.twentyfirst-card p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.command-preview {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.command-preview span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.6), rgba(255, 255, 255, 0.08));
  animation: commandPulse 3s ease-in-out infinite;
}

.command-preview span:nth-child(2) {
  width: 78%;
  animation-delay: 0.2s;
}

.command-preview span:nth-child(3) {
  width: 58%;
  animation-delay: 0.4s;
}

.command-preview strong {
  width: fit-content;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--navy);
  background: var(--champagne);
  font-size: 0.86rem;
  font-weight: 800;
}

.section-copy p,
.signature-copy p,
.coverage p,
.service-card p,
.signature-step p,
.feature-panel p,
.form-heading p,
.form-note,
.testimonial span,
.faq-list p {
  color: var(--muted);
}

.check-list,
.coverage-panel ul {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li,
.coverage-panel li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-weight: 500;
}

.check-list li::before,
.coverage-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--copper), var(--sage));
}

/* ───── Cards shared styling ───── */
.estimate-form,
.advisor-card,
.signature-card,
.signature-step,
.coverage-panel,
.testimonial,
.feature-panel {
  --spot-x: 50%;
  --spot-y: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.estimate-form:hover,
.advisor-card:hover,
.signature-card:hover,
.coverage-panel:hover,
.testimonial:hover,
.feature-panel:hover,
.service-card:hover {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(13, 148, 136, 0.06), transparent 36%),
    var(--panel);
}

.estimate-form:hover,
.advisor-card:hover,
.signature-card:hover,
.coverage-panel:hover,
.testimonial:hover,
.feature-panel:hover {
  border-color: rgba(13, 148, 136, 0.18);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.1);
}

/* ───── Estimate Form ───── */
.estimate-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.estimate-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--copper), var(--champagne));
}

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

.form-kicker,
.service-tag {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--copper-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-heading h2 {
  margin-bottom: 6px;
  font-size: 1.6rem;
}

label {
  display: grid;
  gap: 6px;
  color: var(--navy-soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 16px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
}

.consent-row input {
  width: 16px;
  min-height: 16px;
  margin-top: 3px;
  accent-color: var(--copper);
}

.consent-row a,
.legal-content a,
.legal-note a {
  color: var(--navy-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
}

/* ───── Service Band ───── */
.service-band,
.faq {
  background: #f8fafc;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid,
.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

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

.service-card {
  position: relative;
  overflow: hidden;
  --spot-x: 50%;
  --spot-y: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: all 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(13, 148, 136, 0.06), transparent 40%),
    #fff;
  border-color: rgba(13, 148, 136, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  will-change: transform, filter;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 600ms ease;
}

.service-card:hover img {
  filter: saturate(1.1) contrast(1.03);
  transform: scale(1.04);
}

.service-card div {
  padding: 24px;
}

.service-card small {
  display: block;
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

.service-tag {
  margin-bottom: 14px;
  background: rgba(13, 148, 136, 0.06);
  color: var(--copper-dark);
}

/* ───── Projects ───── */
.projects {
  background: #fff;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: all 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-panel:hover {
  transform: translateY(-6px);
}

.feature-panel span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  animation: badgeFloat 4.5s ease-in-out infinite;
}

/* ───── Reviews ───── */
.reviews {
  background:
    radial-gradient(ellipse 50% 40% at 10% 50%, rgba(13, 148, 136, 0.04), transparent),
    linear-gradient(180deg, #fff, #f8fafc);
}

.testimonial {
  position: relative;
  overflow: hidden;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: all 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial:hover {
  transform: translateY(-6px);
}

.testimonial::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.06);
}

.stars {
  margin-bottom: 18px;
  color: var(--champagne);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  animation: starPulse 3s ease-in-out infinite;
}

.testimonial blockquote {
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.testimonial figcaption {
  font-weight: 700;
}

.testimonial span {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ───── Coverage ───── */
.coverage {
  background:
    radial-gradient(ellipse 50% 40% at 70% 30%, rgba(13, 148, 136, 0.12), transparent),
    linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.coverage p {
  color: rgba(255, 255, 255, 0.7);
}

.coverage .eyebrow,
.final-cta .eyebrow {
  color: var(--champagne);
}

.coverage-panel {
  padding: clamp(28px, 3vw, 40px);
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* ───── Final CTA ───── */
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(244, 63, 94, 0.1), transparent),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.final-cta h2 {
  color: #fff;
}

.final-cta p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.65);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* ───── FAQ ───── */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 22px 26px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-list details:hover {
  border-color: rgba(13, 148, 136, 0.2);
  background: #f8fafb;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}

.faq-list summary:hover {
  color: var(--copper-dark);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 12px 0 0;
  font-weight: 400;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* ───── Footer ───── */
.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(20px, 5vw, 80px);
  background: var(--navy);
  color: #fff;
}

.site-footer p {
  margin: 0 0 4px;
  font-weight: 800;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 400;
}

.site-footer nav {
  gap: 18px;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--champagne);
}

/* ───── Legal Note ───── */
.legal-note {
  padding: 40px clamp(20px, 5vw, 80px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f5f9;
  color: var(--ink);
  text-align: center;
}

.legal-note h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.legal-note p {
  max-width: 1240px;
  margin: 0 auto 16px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.legal-note-bottom {
  max-width: 1240px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 28px auto 0;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: left;
}

.legal-note-bottom span {
  text-align: right;
}

/* ───── Legal Pages ───── */
.legal-page {
  background: #fff;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 5vw, 76px);
  border-top: 12px solid #2d7ea6;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-brand,
.legal-call {
  color: var(--ink);
}

.legal-content {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 76px);
}

.legal-content h1 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.legal-content h2 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-size: 1.2rem;
}

.legal-content p {
  margin-bottom: 8px;
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.6;
}

.legal-footer {
  margin-top: 24px;
}

/* ───── Reveal Animation ───── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

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

/* ───── Keyframes ───── */
@keyframes heroDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

@keyframes titleGlow {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(245, 158, 11, 0);
  }

  50% {
    text-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
  }
}

@keyframes statSweep {
  0%,
  58% {
    transform: translateX(-110%);
  }

  78%,
  100% {
    transform: translateX(110%);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes shineSweep {
  0% {
    opacity: 0;
    transform: translateX(-85%);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(85%);
  }
}

@keyframes commandPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.88);
    transform-origin: left;
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes backgroundPathDrift {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.35;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    stroke-dashoffset: -1.34;
    opacity: 0.35;
  }
}

@keyframes floatUp {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(-5px) rotate(-0.5deg);
  }
}

/* ───── Reduced Motion ───── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 118px;
  }

  .hero-showcase {
    min-height: 520px;
  }

  .showcase-card.main {
    right: 8%;
  }

  .quote-planner {
    width: 100%;
    margin-top: 18px;
  }

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

@media (max-width: 900px) {
  .site-header {
    top: 10px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shell {
    width: min(100% - 28px, 760px);
    padding-top: 108px;
    padding-bottom: 54px;
  }

  .hero-showcase {
    min-height: 470px;
  }

  .showcase-card {
    border-width: 6px;
    border-radius: 18px;
  }

  .showcase-card.main {
    right: 0;
    width: 82%;
    height: 410px;
  }

  .showcase-card.float-one {
    top: 48px;
    width: 190px;
    height: 220px;
  }

  .showcase-card.float-two {
    width: 210px;
    height: 180px;
  }

  .quote-planner {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    margin-top: 0;
  }

  .quote-planner .planner-button {
    grid-column: 1 / -1;
  }

  .quick-strip,
  .intro-grid,
  .signature-section,
  .final-cta,
  .coverage,
  .service-grid,
  .testimonial-grid,
  .project-showcase,
  .twentyfirst-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-top: 0;
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .signature-section::before {
    inset: 24px 18px;
  }

  .signature-copy {
    max-width: none;
  }

  .signature-steps {
    grid-template-columns: 1fr;
  }

  .twentyfirst-card-large {
    grid-row: auto;
    min-height: 360px;
  }

  .final-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    right: 10px;
    left: 10px;
    min-height: 60px;
    padding: 8px 10px;
  }

  .brand span:last-child {
    max-width: 146px;
    white-space: normal;
  }

  .brand small {
    display: none;
  }

  .brand-logo,
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-call {
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 0;
    padding-top: 0;
  }

  .hero-scrim {
    background: linear-gradient(90deg, rgba(8, 20, 24, 0.94), rgba(8, 20, 24, 0.6));
  }

  .hero-shell {
    width: calc(100% - 28px);
    padding-top: 98px;
  }

  .advisor-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .advisor-card a {
    width: 100%;
    text-align: center;
  }

  .lottie-badge {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
    padding-right: 10px;
  }

  .lottie-badge span {
    text-align: center;
  }

  .premium-pills span {
    width: 100%;
    justify-content: center;
  }

  .signature-copy {
    padding: 26px 22px;
  }

  .signature-copy::before {
    top: 22px;
    bottom: 22px;
  }

  .signature-card {
    padding: 8px;
  }

  .signature-badge {
    right: 10px;
    bottom: 10px;
    min-width: 132px;
    padding: 10px 12px;
  }

  .signature-badge strong {
    font-size: 1.18rem;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .showcase-card.main {
    width: 88%;
    height: 320px;
  }

  .showcase-card.float-one {
    top: 48px;
    width: 148px;
    height: 170px;
  }

  .showcase-card.float-two {
    width: 168px;
    height: 142px;
  }

  .showcase-card figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 10px 12px;
    font-size: 0.84rem;
  }

  .quote-planner {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .quote-planner a {
    min-height: 52px;
  }

  .hero-stats div {
    min-width: calc(50% - 6px);
  }

  .estimate-form {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .site-footer nav,
  .legal-note-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-note,
  .legal-note-bottom span {
    text-align: left;
  }
}

/* ───── Final Polished Color Coding ───── */
.button.primary,
.planner-button,
.scroll-progress {
  background: var(--gradient-premium) !important;
  color: #fff !important;
}

.premium-pills span,
.lottie-badge {
  background: #fff !important;
  color: var(--navy) !important;
  border: 1px solid rgba(13, 148, 136, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  cursor: pointer;
  transition: all 300ms ease;
}

.premium-pills span.is-active,
.lottie-badge.is-active,
.premium-pills span:hover,
.lottie-badge:hover {
  background: var(--gradient-premium) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3) !important;
}

.hero-stats dt {
  display: inline-block;
  background: var(--gradient-premium) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(13, 148, 136, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

.button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 16px 36px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.3) !important;
}

.button.primary:hover,
.premium-pills span:hover,
.lottie-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 45px rgba(13, 148, 136, 0.45) !important;
  filter: brightness(1.1);
}

.quote-planner {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
}

.planner-button {
  border-radius: 999px !important;
  font-weight: 800 !important;
}


