:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-border: #e2e0dc;
  --color-accent: #1d4ed8;
  --color-accent-dark: #173ca5;
  --color-accent-soft: #eaf0ff;
  --color-dark: #111827;
  --font-heading: "Libre Franklin", Arial, sans-serif;
  --font-sans: "Source Serif 4", Georgia, serif;
  --container: 1200px;
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 55px rgba(17, 17, 17, 0.06);
  --space-section: clamp(5rem, 10vw, 9rem);
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #111111;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--color-text);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding-block: var(--space-section);
}

.section--bordered {
  border-block: 1px solid var(--color-border);
}

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

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  margin-right: 0.7rem;
  vertical-align: 0.22em;
  background: currentColor;
}

.eyebrow--light {
  color: #c8d6ff;
}

.section-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.section-heading {
  display: grid;
  gap: 2rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-intro {
  max-width: 34rem;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button--secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-text);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
}

.button--light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--color-accent-dark);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(226, 224, 220, 0.88);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: flex-end;
  gap: 2px;
  padding: 4px;
  border-radius: 5px;
  background: var(--color-accent);
}

.brand-mark span {
  flex: 1;
  border-radius: 1px;
  background: #ffffff;
}

.brand-mark span:nth-child(1) {
  height: 42%;
}

.brand-mark span:nth-child(2) {
  height: 68%;
}

.brand-mark span:nth-child(3) {
  height: 100%;
}

.nav-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  z-index: 99;
  inset: var(--header-height) 0 auto;
  display: none;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  flex-direction: column;
  padding: 1.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
  color: #333333;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.header-cta {
  display: none;
}

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

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

.hero-grid > * {
  min-width: 0;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.25rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.hero-lede {
  max-width: 38rem;
  margin: 1.8rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
}

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

.hero-note {
  margin: 1.2rem 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(31rem, 125vw, 42rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.9), transparent 25%),
    linear-gradient(155deg, #edf2ff 0%, #cddcff 42%, #557fe8 100%);
  box-shadow: 0 26px 80px rgba(29, 78, 216, 0.18);
  isolation: isolate;
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000000, transparent 80%);
}

.visual-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 60px rgba(23, 60, 165, 0.18);
}

.visual-panel--back {
  top: 1%;
  right: -6%;
  width: 72%;
  height: 48%;
  border-radius: 22px;
  background: linear-gradient(145deg, #7d9cf0, var(--color-accent));
  transform: rotate(6deg);
}

.hero-photo-frame {
  position: absolute;
  z-index: 1;
  inset: 5% 7% 8% 5%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: #dfe5ef;
  box-shadow: 0 30px 65px rgba(23, 60, 165, 0.25);
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 31, 78, 0.18) 0%,
    rgba(12, 31, 78, 0) 38%
  );
  pointer-events: none;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-badge {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 3%;
  display: grid;
  width: 7.4rem;
  aspect-ratio: 1;
  place-content: center;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.visual-badge span {
  display: block;
  color: var(--color-accent);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
}

.about-copy > p {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.stats div {
  min-width: 0;
}

.stats dt {
  font-size: clamp(1.55rem, 5vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stats dd {
  margin: 0.65rem 0 0;
  color: var(--color-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.1rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 2.8rem;
  height: 2.8rem;
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: auto 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.service-card a {
  margin-top: 1.5rem;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.service-card a span {
  margin-left: 0.35rem;
}

/* Process timeline */
.process-section {
  overflow: hidden;
  background: #f3f2ef;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .section-title,
.section-heading--center .section-intro {
  margin-inline: auto;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 1px;
  background: var(--color-border);
}

.timeline-step {
  position: relative;
  padding: 0 0 2rem 3rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 0.58rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px #f3f2ef;
}

.timeline-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.04);
}

.timeline-card > span {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.timeline-card h3 {
  margin: 0.7rem 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.timeline-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1rem;
}

.quote-card {
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.quote-card blockquote {
  margin: 0;
  font-size: clamp(1.3rem, 3.3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.quote-card figcaption > span:last-child {
  display: grid;
}

.quote-card strong {
  font-size: 0.85rem;
}

.quote-card small {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

/* Pricing */
.pricing-section {
  border-block: 1px solid var(--color-border);
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.pricing-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  text-align: left;
}

.pricing-table th,
.pricing-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table thead th {
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-table tbody th span,
.pricing-table tbody th small {
  display: block;
}

.pricing-table tbody th span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pricing-table tbody th small {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.pricing-table tbody td {
  color: #4f4f4f;
  font-size: 0.82rem;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table .is-featured {
  background: var(--color-accent);
  color: #ffffff;
}

.pricing-table .is-featured th,
.pricing-table .is-featured td,
.pricing-table .is-featured small {
  color: #ffffff;
}

.pricing-note {
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.pricing-note a {
  color: var(--color-accent);
  font-weight: 700;
}

/* FAQ */
.faq-layout {
  display: grid;
  gap: 3.5rem;
}

.faq-heading {
  align-self: start;
}

.faq-heading .section-intro {
  margin-top: 1.5rem;
}

.accordion {
  border-top: 1px solid var(--color-border);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item h3 {
  margin: 0;
}

.accordion-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.accordion-item button span {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.accordion-item button span::before,
.accordion-item button span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

.accordion-item button span::after {
  transform: rotate(90deg);
}

.accordion-item button[aria-expanded="true"] span::after {
  transform: rotate(0deg);
}

.accordion-panel p {
  max-width: 40rem;
  margin: -0.3rem 0 1.5rem;
  padding-right: 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Contact */
.contact-section {
  background: var(--color-accent);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  gap: 3.5rem;
}

.contact-copy .section-title {
  max-width: 12ch;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: #dbe5ff;
}

.contact-details {
  display: grid;
  gap: 0.6rem;
  margin-top: 2.5rem;
  color: #ffffff;
  font-size: 0.88rem;
  font-style: normal;
}

.contact-details a {
  width: fit-content;
}

.contact-details span {
  margin-top: 0.65rem;
  color: #c8d6ff;
}

.contact-form {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(9, 31, 98, 0.24);
  box-shadow: 0 24px 65px rgba(6, 27, 91, 0.18);
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
}

.field label span {
  color: #c8d6ff;
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.8rem 0.9rem;
}

.field input {
  min-height: 3rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #fecaca;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding-block: 2.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
}

.footer-nav a {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.72rem;
}

@media (min-width: 520px) {
  .container {
    width: min(calc(100% - 3rem), var(--container));
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
  }

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

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

  .field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: 82px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: end;
  }

  .section-heading--center {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.7fr);
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(4.7rem, 8.8vw, 7.5rem);
  }

  .hero-visual {
    min-height: 36rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 5rem;
  }

  .stats dd {
    font-size: 0.76rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .site-footer p {
    justify-self: end;
    text-align: right;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: absolute;
    inset: 50% auto auto 50%;
    display: flex;
    overflow: visible;
    max-height: none;
    flex-direction: row;
    gap: clamp(1rem, 2.5vw, 2rem);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translate(-50%, -50%);
  }

  .site-nav a {
    padding: 0.4rem 0;
    border: 0;
    font-size: 0.8rem;
  }

  .header-cta {
    display: inline-flex;
  }

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

  .services-grid .service-card:last-child {
    grid-column: 2;
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 29rem;
  }

  .timeline::before {
    inset: 50% 0 auto;
    width: auto;
    height: 1px;
  }

  .timeline-step {
    position: relative;
    min-width: 0;
    padding: 0 0.75rem;
  }

  .timeline-dot {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .timeline-card {
    position: absolute;
    right: 0.75rem;
    left: 0.75rem;
  }

  .timeline-step--above .timeline-card {
    bottom: calc(50% + 2.5rem);
  }

  .timeline-step--below .timeline-card {
    top: calc(50% + 2.5rem);
  }

  .timeline-step--above .timeline-card::after,
  .timeline-step--below .timeline-card::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: 2.5rem;
    background: var(--color-border);
  }

  .timeline-step--above .timeline-card::after {
    top: 100%;
  }

  .timeline-step--below .timeline-card::before {
    bottom: 100%;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 6rem;
  }

  .faq-heading {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid .service-card:first-child {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .button,
  .service-card,
  .quote-card,
  .site-nav a,
  .service-card a span,
  .accordion-item button span::after {
    transition:
      transform 180ms ease,
      color 180ms ease,
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease;
  }

  .button:hover {
    border-color: var(--color-accent-dark);
    background: var(--color-accent-dark);
    transform: translateY(-2px);
  }

  .button--secondary:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: #ffffff;
  }

  .button--light:hover {
    border-color: #e2e8f0;
    background: #e2e8f0;
    color: var(--color-accent-dark);
  }

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

  .service-card:hover,
  .quote-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 65px rgba(17, 17, 17, 0.09);
  }

  .service-card:hover a span {
    display: inline-block;
    transform: translateX(4px);
  }

  .motion-ready .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: calc(var(--reveal-delay, 0) * 90ms);
  }

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

  .motion-ready .timeline-dot {
    background: #f3f2ef;
  }

  .motion-ready .timeline.is-visible .timeline-dot {
    animation: fill-dot 420ms ease-out forwards;
    animation-delay: var(--dot-delay);
  }

  @keyframes fill-dot {
    to {
      background: var(--color-accent);
      box-shadow:
        0 0 0 6px #f3f2ef,
        0 0 0 9px rgba(29, 78, 216, 0.12);
    }
  }
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #1d4ed8; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
