:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent-start: #2563eb;
  --color-accent-end: #6366f1;
  --color-success: #059669;
  --color-error: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --container: 72rem;
  --header-height: 4.5rem;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 7rem;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-bg__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-bg__grid {
  animation: bg-grid-drift 48s linear infinite;
}

.site-bg__orb {
  transform-box: fill-box;
  transform-origin: center;
}

.site-bg__orb--1 {
  animation: bg-orb-drift-1 22s ease-in-out infinite;
}

.site-bg__orb--2 {
  animation: bg-orb-drift-2 28s ease-in-out infinite;
}

.site-bg__orb--3 {
  animation: bg-orb-drift-3 24s ease-in-out infinite;
}

@keyframes bg-grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(48px, 48px); }
}

@keyframes bg-orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(48px, 32px) scale(1.06); }
}

@keyframes bg-orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-56px, 40px) scale(1.08); }
}

@keyframes bg-orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, -28px) scale(0.94); }
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

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

.section {
  position: relative;
  padding: 6rem 0;
}

.scroll-card {
  z-index: 1;
  margin-top: -2rem;
  border-radius: 2.25rem 2.25rem 0 0;
  background: var(--color-bg);
  box-shadow: 0 -2rem 5rem rgba(15, 23, 42, 0.1);
  overflow: hidden;
  opacity: 0.88;
  transform: translateY(3rem) scale(0.985);
  transform-origin: center top;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-card + .scroll-card {
  margin-top: -4rem;
  padding-top: 8rem;
}

.scroll-card > .container {
  position: relative;
  z-index: 1;
}

.scroll-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 -2.5rem 5.5rem rgba(15, 23, 42, 0.13);
}

.scroll-card:nth-of-type(2) {
  z-index: 2;
}

.scroll-card:nth-of-type(3) {
  z-index: 3;
}

.scroll-card:nth-of-type(4) {
  z-index: 4;
}

.scroll-card:nth-of-type(5) {
  z-index: 5;
}

.section--muted {
  background: #f1f5f9;
}

.section--accent {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
}

#contact {
  background: #fff;
}

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

.section__header--light,
.section__header--light p {
  color: rgba(255, 255, 255, 0.92);
}

.section__label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section--accent .section__label {
  color: rgba(255, 255, 255, 0.75);
}

.section__header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__header p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.0625rem;
}

.section-path {
  position: fixed;
  right: max(1rem, calc((100vw - var(--container)) / 2));
  bottom: 1.25rem;
  left: max(1rem, calc((100vw - var(--container)) / 2));
  z-index: 90;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.section-path--visible {
  opacity: 1;
  transform: translateY(0);
}

.section-path__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.55rem 0.75rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1.25rem 3.75rem rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section-path__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  max-width: 4.5rem;
  color: var(--color-muted);
  pointer-events: auto;
  transition: color 0.2s ease, transform 0.2s ease;
}

.section-path__item:hover {
  color: var(--color-primary);
}

.section-path__item--active {
  color: var(--color-primary);
  transform: translateY(-0.125rem);
}

.section-path__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  color: inherit;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.section-path__item:hover .section-path__icon-wrap {
  background: rgba(37, 99, 235, 0.08);
}

.section-path__item--active .section-path__icon-wrap {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  box-shadow: 0 0.5rem 1.25rem rgba(37, 99, 235, 0.32);
}

.section-path__item--active:hover .section-path__icon-wrap {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
}

.section-path__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.section-path__label {
  max-width: 100%;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.section-path__item--active .section-path__label {
  font-weight: 700;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 17rem;
  transition:
    height 0.35s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    backdrop-filter 0.25s ease,
    border-color 0.25s ease;
}

.site-header--compact {
  height: var(--header-height);
}

.site-header--compact:not(.site-header--solid) {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1.25rem 3.75rem rgba(15, 23, 42, 0.16);
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
}

.nav__logo {
  display: block;
  width: min(52vw, 560px);
  height: auto;
  transition: width 0.35s ease;
}

.nav__logo--dark {
  display: none;
}

.site-header--compact .nav__logo {
  width: 150px;
}

.site-header--solid .nav__logo--light {
  display: none;
}

.site-header--solid .nav__logo--dark {
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header--solid .nav__link {
  color: var(--color-text);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-header--solid .nav__link:hover {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav__link--cta {
  margin-left: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.site-header--solid .nav__link--cta {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border-color: transparent;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.2s ease;
}

.site-header--solid .nav__toggle {
  background: rgba(15, 23, 42, 0.06);
}

.site-header--solid .nav__toggle span {
  background: var(--color-text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1e40af 0%, #4338ca 55%, #6366f1 100%);
}

.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__bubble {
  position: absolute;
  bottom: -12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 42%, rgba(255, 255, 255, 0.02) 72%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 0 1rem rgba(255, 255, 255, 0.18),
    0 0 1.5rem rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: hero-bubble-float linear infinite;
  will-change: transform, opacity;
}

.hero__bubble--1 {
  left: 6%;
  width: 3.25rem;
  height: 3.25rem;
  --bubble-drift-x: 28px;
  animation-duration: 26s;
  animation-delay: 0s;
}

.hero__bubble--2 {
  left: 18%;
  width: 2rem;
  height: 2rem;
  --bubble-drift-x: -18px;
  animation-duration: 22s;
  animation-delay: 4s;
}

.hero__bubble--3 {
  left: 32%;
  width: 4.5rem;
  height: 4.5rem;
  --bubble-drift-x: 36px;
  animation-duration: 34s;
  animation-delay: 8s;
}

.hero__bubble--4 {
  left: 48%;
  width: 2.75rem;
  height: 2.75rem;
  --bubble-drift-x: -24px;
  animation-duration: 28s;
  animation-delay: 2s;
}

.hero__bubble--5 {
  left: 62%;
  width: 3.75rem;
  height: 3.75rem;
  --bubble-drift-x: 20px;
  animation-duration: 31s;
  animation-delay: 11s;
}

.hero__bubble--6 {
  left: 74%;
  width: 2.25rem;
  height: 2.25rem;
  --bubble-drift-x: -32px;
  animation-duration: 24s;
  animation-delay: 6s;
}

.hero__bubble--7 {
  left: 84%;
  width: 3rem;
  height: 3rem;
  --bubble-drift-x: 16px;
  animation-duration: 29s;
  animation-delay: 14s;
}

.hero__bubble--8 {
  left: 92%;
  width: 2.5rem;
  height: 2.5rem;
  --bubble-drift-x: -14px;
  animation-duration: 27s;
  animation-delay: 9s;
}

@keyframes hero-bubble-float {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
    opacity: 0;
  }

  12% {
    opacity: 0.62;
  }

  55% {
    opacity: 0.48;
  }

  100% {
    transform: translate3d(var(--bubble-drift-x), -118vh, 0) scale(1.06);
    opacity: 0;
  }
}

.hero__bg-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg-grid {
  animation: bg-grid-drift 40s linear infinite;
}

.hero__orb {
  transform-box: fill-box;
  transform-origin: center;
}

.hero__orb--1 {
  animation: hero-orb-drift-1 16s ease-in-out infinite;
}

.hero__orb--2 {
  animation: hero-orb-drift-2 20s ease-in-out infinite;
}

.hero__orb--3 {
  animation: hero-orb-drift-3 18s ease-in-out infinite;
}

.hero__orb--4 {
  animation: hero-orb-drift-4 24s ease-in-out infinite;
}

@keyframes hero-orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -24px) scale(1.08); }
  66% { transform: translate(-20px, 16px) scale(0.96); }
}

@keyframes hero-orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-48px, 28px) scale(1.1); }
  66% { transform: translate(24px, -20px) scale(0.92); }
}

@keyframes hero-orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(32px, -36px) scale(1.05); }
}

@keyframes hero-orb-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28px, 24px) scale(1.07); }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 5rem 6rem;
  max-width: 44rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__cursor {
  display: inline-block;
  width: 0.075em;
  height: 0.92em;
  margin-left: 0.04em;
  vertical-align: -0.06em;
  background: currentColor;
  opacity: 0;
}

.hero__cursor--active {
  opacity: 1;
  animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.btn__spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn--loading .btn__label {
  opacity: 0.85;
}

.btn--loading .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

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

.feature-card,
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  padding: 2rem;
  text-align: center;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.08);
}

.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3,
.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.feature-card p,
.service-card p {
  margin: 0;
  color: var(--color-muted);
}

.service-card {
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 32s linear infinite;
}

.clients-track__group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 11rem;
  height: 5.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.client-logo {
  text-decoration: none;
}

a.client-logo:hover,
a.client-logo:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 3.25rem;
  object-fit: contain;
}

@keyframes clients-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    gap: 1.5rem;
  }

  .clients-track__group[aria-hidden='true'] {
    display: none;
  }

  .clients-marquee {
    mask-image: none;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-form,
.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  padding: 2rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.field--honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.form-status--success {
  color: var(--color-success);
}

.form-status--error {
  color: var(--color-error);
}

.contact-info {
  padding: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border: 0;
}

.contact-info__item + .contact-info__item {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.contact-info p {
  margin: 0;
  font-size: 1rem;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .site-header {
    height: 6rem;
  }

  .site-header:not(.site-header--compact) .nav {
    align-items: flex-start;
    padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  }

  .site-header--compact .nav {
    align-items: center;
    padding-top: 0;
  }

  .nav__logo {
    width: min(62vw, 240px);
  }

  .site-header--compact .nav__logo {
    width: 128px;
  }

  .card-grid--3,
  .card-grid--2,
  .contact-layout,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    top: calc(var(--header-height) - 0.25rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav__menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link,
  .site-header--solid .nav__link {
    color: var(--color-text);
  }

  .nav__link--cta {
    margin-left: 0;
  }

  .section {
    padding: 4.5rem 0;
  }

  .scroll-card,
  .scroll-card + .scroll-card {
    margin-top: -2.5rem;
    padding-top: 5.5rem;
    border-radius: 1.75rem 1.75rem 0 0;
  }

  .section-path {
    right: 1rem;
    bottom: 0.75rem;
    left: 1rem;
  }

  .section-path__inner {
    padding: 0.5rem 0.45rem 0.45rem;
  }

  .section-path__icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
  }

  .section-path__icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .section-path__label {
    font-size: 0.625rem;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-block: 4rem 5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section-path {
    right: 0.75rem;
    bottom: 0.5rem;
    left: 0.75rem;
  }

  .section-path__inner {
    padding: 0.45rem 0.35rem 0.4rem;
  }

  .section-path__icon-wrap {
    width: 2.375rem;
    height: 2.375rem;
  }

  .section-path__icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  .section-path__label {
    font-size: clamp(0.5rem, 2.2vw, 0.625rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg__grid,
  .site-bg__orb,
  .hero__bg-grid,
  .hero__orb,
  .hero__bubble,
  .hero__cursor--active {
    animation: none;
  }

  .hero__bubble {
    opacity: 0.35;
  }

  .hero__cursor--active {
    opacity: 1;
  }

  .scroll-card,
  .section-path,
  .section-path__item {
    transition: none;
  }

  .scroll-card {
    opacity: 1;
    transform: none;
  }
}
