:root {
  --background: #fcfaf6;
  --foreground: #1f1915;
  --card: #fffefb;
  --primary: #114c4c;
  --primary-foreground: #fbf8f0;
  --secondary: #efebdf;
  --secondary-foreground: #104040;
  --muted: #f2eee6;
  --muted-foreground: #6a6258;
  --accent: #e28242;
  --accent-foreground: #fefcf4;
  --border: #e0dad1;
  --input: #e0dad1;
  --shadow-sm: 0 10px 30px rgba(48, 42, 33, 0.07);
  --shadow-md: 0 18px 45px rgba(48, 42, 33, 0.12);
  --shadow-glow: 0 24px 60px -18px color-mix(in srgb, var(--accent) 55%, transparent);
  --radius: 8px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --gradient-accent: linear-gradient(120deg, var(--primary) 0%, color-mix(in srgb, var(--accent) 70%, var(--primary)) 45%, var(--accent) 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--background);
  color: var(--foreground);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  height: auto;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.brand-mark,
.price-line strong,
.hero-stat p,
.process-card > span,
.stats-grid dd {
  font-family: Fraunces, Georgia, serif;
}

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

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  border-color: var(--border);
  background: rgba(252, 250, 246, 0.86);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a,
.site-footer nav a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.site-footer nav a:hover {
  color: var(--foreground);
}

.button.header-button {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button-primary:hover {
  box-shadow: var(--shadow-sm);
}

.button-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}

.button-outline:hover {
  border-color: #e1b18a;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--card);
}

.button-large {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
}

.group:hover .icon-inline {
  transform: translateX(2px);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.icon-inline {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--background);
  overflow: hidden;
  transform-origin: top;
}

/* Panel + staggered link entrance when the menu opens (open-only). */
.site-header.is-menu-open .mobile-menu {
  animation: menu-panel-in 320ms var(--ease-spring) both;
}

.site-header.is-menu-open .mobile-nav > * {
  animation: menu-link-in 360ms var(--ease-spring) both;
  animation-delay: 60ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(2) {
  animation-delay: 105ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(3) {
  animation-delay: 150ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(4) {
  animation-delay: 195ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(5) {
  animation-delay: 240ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(6) {
  animation-delay: 285ms;
}

.site-header.is-menu-open .mobile-nav > *:nth-child(n + 7) {
  animation-delay: 330ms;
}

@keyframes menu-panel-in {
  from {
    opacity: 0;
    transform: scaleY(0.96) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

@keyframes menu-link-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}

.mobile-nav a:not(.button) {
  border-radius: var(--radius);
  padding: 0.75rem;
  color: var(--foreground);
}

.mobile-nav a:not(.button):hover {
  background: var(--secondary);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 25%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(45% 45% at 80% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 65% 85%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%);
  filter: blur(8px);
  opacity: 0.9;
  animation: mesh-spin 30s linear infinite;
}

.ambient-shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.9;
  animation: drift 14s ease-in-out infinite;
}

.ambient-accent {
  top: -6rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(226, 130, 66, 0.15);
}

.ambient-primary {
  top: 33%;
  left: -5rem;
  width: 16rem;
  height: 16rem;
  background: rgba(17, 76, 76, 0.1);
  animation-delay: 3s;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-block: 3rem 4rem;
}

.single-column {
  max-width: 48rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--secondary);
  padding: 0.375rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-lede {
  max-width: 28rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.metric-highlight {
  color: var(--foreground);
  font-weight: 600;
}

.stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
}

.stars .icon {
  width: 1rem;
  height: 1rem;
}

.hero-media {
  position: relative;
}

.image-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.image-frame:hover img {
  transform: scale(1.04);
}

.hero-image {
  aspect-ratio: 4 / 5;
}

.hero-stat {
  position: absolute;
  left: -0.5rem;
  bottom: -1.25rem;
  width: 11rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  animation: float-slow 6s ease-in-out infinite;
}

.hero-stat p {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 600;
}

.hero-stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.35;
}

.section {
  border-top: 1px solid var(--border);
  padding-block: 4rem;
}

.section-muted {
  background: #f7f4ee;
  background: color-mix(in srgb, var(--secondary) 42%, transparent);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-kicker {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card,
.testimonial-card,
.pricing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}

.service-card:hover,
.testimonial-card:hover,
.pricing-card:hover {
  --lift: -6px;
  border-color: #dea878;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(226, 130, 66, 0.12);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  transition: background-color 240ms ease, color 240ms ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: var(--accent-foreground);
}

.service-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.ghost-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover .ghost-icon {
  opacity: 1;
}

.service-card p,
.process-card p,
.pricing-card > p,
.testimonial-card small,
.copy-stack,
.contact-copy > p {
  color: var(--muted-foreground);
}

.service-card p {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.service-card ul,
.pricing-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: auto 0 0;
  list-style: none;
}

.service-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
}

.service-card li span {
  width: 0.375rem;
  height: 0.375rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
}

.process-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--border);
  gap: 1px;
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card);
  padding: 1.5rem;
  transition: background-color 240ms ease;
}

.process-card:hover {
  background: #f8f5ed;
  background: color-mix(in srgb, var(--secondary) 52%, var(--card));
}

.process-card > span {
  color: var(--accent);
  font-size: 1.875rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.process-card:hover > span {
  transform: translateY(-2px);
}

.process-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.process-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.about-grid,
.contact-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.about-media {
  order: 2;
}

.about-image {
  aspect-ratio: 4 / 5;
  max-width: 28rem;
}

.about-copy,
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.copy-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.75;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 0;
}

.stats-grid div {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
}

.stats-grid dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.stats-grid dd {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
}

.stats-grid p {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.35;
}

.testimonial-card {
  gap: 1rem;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-card .focus-copy {
  margin: 0;
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.7;
}

.testimonial-card .focus-meta {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.testimonial-card figcaption > span:first-child,
.form-success > span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(226, 130, 66, 0.12);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
}

.testimonial-card strong,
.testimonial-card small {
  display: block;
}

.testimonial-card strong {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-card small {
  font-size: 0.75rem;
}

.pricing-grid {
  display: grid;
  align-items: start;
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.pricing-card > p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 1.25rem;
}

.price-line strong {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.price-line span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.pricing-card ul {
  margin-top: 1.5rem;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.pricing-card li .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--accent);
}

.pricing-card .button {
  width: 100%;
  margin-top: 2rem;
}

.contact-section {
  background: var(--background);
}

.contact-copy {
  align-self: start;
}

.contact-copy > p {
  max-width: 28rem;
  line-height: 1.75;
}

.contact-image {
  display: none;
  max-width: 28rem;
  aspect-ratio: 5 / 3;
}

.email-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.email-link:hover {
  color: var(--accent);
}

.email-link .icon {
  width: 1rem;
  height: 1rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label span {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  padding: 0.7rem 0.75rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(226, 130, 66, 0.28);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-success {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.form-success > span {
  width: 3.5rem;
  height: 3.5rem;
}

.form-success .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.form-success p,
.form-error {
  max-width: 20rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.form-error {
  margin-bottom: 1rem;
  color: #a33a2a;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-footer .container {
  padding-block: 3rem 2rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.site-footer p {
  max-width: 21rem;
  color: rgba(251, 248, 240, 0.7);
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer nav a {
  color: rgba(251, 248, 240, 0.7);
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
}

.site-footer nav a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(251, 248, 240, 0.16);
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 16%, transparent);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(251, 248, 240, 0.62);
  color: color-mix(in srgb, var(--primary-foreground) 62%, transparent);
}

.footer-credit-accent {
  color: var(--accent);
  font-weight: 600;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal[data-revealed="true"],
.reveal[data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

.animate-in {
  animation: fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 160ms;
}

.delay-3 {
  animation-delay: 240ms;
}

.delay-4 {
  animation-delay: 320ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.08);
  }
}

@keyframes mesh-spin {
  from {
    transform: rotate(0deg) scale(1.05);
  }
  to {
    transform: rotate(360deg) scale(1.05);
  }
}

@keyframes gradient-pan {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes sheen-sweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  60%,
  100% {
    transform: translateX(220%) skewX(-18deg);
  }
}

/* ===== Advanced animation layer ===== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  height: 3px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: var(--gradient-accent);
  pointer-events: none;
  will-change: transform;
}

/* Animated gradient headline */
.text-gradient {
  background: linear-gradient(
    100deg,
    var(--foreground) 0%,
    var(--primary) 35%,
    var(--accent) 60%,
    var(--foreground) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-pan 9s var(--ease-out-soft) infinite;
}

/* Keep the entrance animation when the gradient is on an animated element */
.animate-in.text-gradient {
  animation:
    fade-up 700ms var(--ease-spring) 80ms both,
    gradient-pan 9s var(--ease-out-soft) 800ms infinite;
}

/* Fallback: if background-clip:text is unsupported, show solid text instead of invisible */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .text-gradient {
    background: none;
    color: var(--foreground);
  }
}

/* Directional reveal variants (JS adds .js to <html>) */
.js .reveal[data-reveal="left"] {
  transform: translateX(-36px);
}

.js .reveal[data-reveal="right"] {
  transform: translateX(36px);
}

.js .reveal[data-reveal="zoom"] {
  transform: scale(0.92);
}

.js .reveal[data-reveal="left"][data-revealed="true"],
.js .reveal[data-reveal="right"][data-revealed="true"],
.js .reveal[data-reveal="zoom"][data-revealed="true"] {
  transform: none;
}

/* Interactive cards: pointer spotlight + subtle 3D tilt */
.service-card,
.testimonial-card,
.pricing-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translateY(var(--lift, 0px)) translateZ(0);
}

.service-card::before,
.testimonial-card::before,
.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    16rem 16rem at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 60%
  );
  transition: opacity 240ms ease;
  pointer-events: none;
}

.service-card:hover::before,
.testimonial-card:hover::before,
.pricing-card:hover::before {
  opacity: 1;
}

.service-card > *,
.testimonial-card > *,
.pricing-card > * {
  position: relative;
  z-index: 1;
}

/* Sheen sweep on primary buttons */
.button-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--primary-foreground) 35%, transparent),
    transparent
  );
  transform: translateX(-120%) skewX(-18deg);
}

.button-primary:hover::after {
  animation: sheen-sweep 900ms var(--ease-out-soft);
}

/* Magnetic button helper (transform set via JS) */
[data-magnetic] {
  transition: transform 220ms var(--ease-spring), box-shadow 220ms ease;
}

/* Animated accent divider under section headings */
.section-heading h2 {
  position: relative;
  padding-bottom: 0.75rem;
}

.section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--gradient-accent);
  transition: width 700ms var(--ease-spring) 120ms;
}

.section-heading.reveal[data-revealed="true"] h2::after,
.section-heading[data-revealed="true"] h2::after {
  width: 3.5rem;
}

/* Active nav indicator */
.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  transition: transform 240ms var(--ease-spring);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

/* Count-up tabular alignment to avoid layout shift */
.stats-grid dd,
.hero-stat p {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 3rem, 72rem);
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

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

  .contact-image {
    display: block;
  }
}

@media (min-width: 768px) {
  .desktop-nav,
  .button.header-button {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

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

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

  .footer-top,
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(100% - 4rem, 72rem);
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding-block: 5rem 6rem;
  }

  .hero-grid.single-column,
  .about-grid.single-column,
  .contact-grid.single-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lede {
    font-size: 1.125rem;
  }

  .section {
    padding-block: 6rem;
  }

  .service-card,
  .testimonial-card,
  .pricing-card,
  .process-card,
  .contact-card {
    padding: 2rem;
  }

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

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

  .about-media {
    order: 0;
  }

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

@media (max-width: 460px) {
  .rating-row,
  .stats-grid {
    align-items: start;
  }

  .rating-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .reveal,
  .js .reveal[data-reveal="left"],
  .js .reveal[data-reveal="right"],
  .js .reveal[data-reveal="zoom"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card,
  .testimonial-card,
  .pricing-card {
    transform: none !important;
  }

  .text-gradient {
    animation: none !important;
  }

  .hero-backdrop::before,
  .button-primary:hover::after {
    animation: none !important;
  }

  .scroll-progress {
    display: none;
  }
}

/* ---- Binary QA polish (2026-10) ---- */
.popular-badge {
  width: max-content;
  max-width: calc(100% - 3rem);
  right: auto;
  line-height: 1.4;
  white-space: nowrap;
}

/* Keep the 1px dividers of the process grid crisp while cards fade in */
.js .process-grid .reveal {
  transform: none;
}

@media (max-width: 460px) {
  .rating-row {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .rating-row .stars {
    flex: 0 0 auto;
  }
}

a.footer-credit-accent {
  text-decoration: none;
}

a.footer-credit-accent:hover,
a.footer-credit-accent:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Process grid dividers as real borders (the 1px-gap trick vanished at fractional heights) */
.process-grid {
  gap: 0;
  background: var(--card);
}

.process-grid > .process-card {
  margin: -1px 0 0 -1px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
