:root {
  --bg: #0f0b1a;
  --bg-soft: #171127;
  --surface: rgba(21, 16, 37, 0.84);
  --surface-strong: #1c1531;
  --surface-light: #f3f4fb;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(172, 168, 214, 0.18);
  --text: #f5f6fb;
  --text-dark: #171426;
  --muted: #b8b7cf;
  --muted-dark: #66637f;
  --primary: #2d7bff;
  --primary-dark: #2448df;
  --accent: #8a2be2;
  --accent-dark: #6b24ce;
  --warm: #e6eaf0;
  --shadow: 0 24px 60px rgba(1, 10, 18, 0.34);
  --shadow-soft: 0 18px 40px rgba(9, 24, 37, 0.14);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(45, 123, 255, 0.24), transparent 30%),
    radial-gradient(circle at 100% 0, rgba(138, 43, 226, 0.18), transparent 24%),
    linear-gradient(180deg, #0d0917 0%, #110d1e 38%, #151128 100%);
  background-size: 120% 120%, 120% 120%, 100% 100%;
  animation: backgroundShift 3.6s ease-in-out infinite alternate;
}

body.page-light {
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(45, 123, 255, 0.1), transparent 26%),
    radial-gradient(circle at 100% 0, rgba(138, 43, 226, 0.08), transparent 18%),
    linear-gradient(180deg, #faf9fd 0%, #f1eff9 100%);
  background-size: 120% 120%, 120% 120%, 100% 100%;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 52vw;
  height: 52vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(88px);
  opacity: 0.52;
  z-index: -1;
}

body::before {
  top: -6%;
  left: -24%;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.38) 0%, rgba(45, 123, 255, 0.2) 34%, transparent 72%);
  animation: auroraBlue 6s ease-in-out infinite alternate;
}

body::after {
  right: -26%;
  top: 24%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.36) 0%, rgba(138, 43, 226, 0.18) 34%, transparent 72%);
  animation: auroraPurple 7s ease-in-out infinite alternate;
}

body.page-light::before {
  opacity: 0.3;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.24) 0%, rgba(45, 123, 255, 0.12) 36%, transparent 72%);
}

body.page-light::after {
  opacity: 0.24;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 34%, transparent 72%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-spacing {
  padding: 104px 0;
}

.section-spacing-sm {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  width: var(--container);
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 21, 34, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

body.page-light .site-header {
  border-color: rgba(16, 33, 50, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(36, 72, 223, 0.14);
}

.brand-mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: translate(-50%, -75%);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.footer-brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.brand-copy small,
.footer-brand small,
.nav-links a,
.page-meta span,
.footer-links a,
.support-points li,
.eyebrow,
.section-kicker {
  color: var(--muted);
}

body.page-light .brand-copy small,
body.page-light .footer-brand small,
body.page-light .nav-links a,
body.page-light .page-meta span,
body.page-light .footer-links a,
body.page-light .support-points li,
body.page-light .eyebrow,
body.page-light .section-kicker {
  color: var(--muted-dark);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

body.page-light .nav-links a:hover,
body.page-light .nav-links a:focus-visible {
  color: var(--text-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

body.page-light .menu-toggle {
  background: #e7f1f8;
  color: var(--text-dark);
}

.header-actions,
.hero-actions,
.cta-actions,
.contact-actions,
.floating-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 18px 32px rgba(24, 184, 255, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button-service-link {
  justify-content: center;
  gap: 18px;
}

.button-service-link__arrow {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 34px;
  color: var(--primary);
  animation: service-arrow-drift 2.4s ease-in-out infinite;
}

.button-service-link__arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
  box-shadow:
    0 0 6px rgba(45, 123, 255, 0.45),
    0 0 14px rgba(45, 123, 255, 0.22);
  transform: translateY(-50%);
  transition:
    width 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    box-shadow 180ms ease;
  animation: service-arrow-glow 2.2s ease-in-out infinite;
}

.button-service-link__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 17px;
  height: 17px;
  border-top: 6px solid currentColor;
  border-right: 6px solid currentColor;
  opacity: 0.68;
  box-shadow:
    1px -1px 8px rgba(45, 123, 255, 0.28),
    1px -1px 16px rgba(45, 123, 255, 0.16);
  transform: translate(-2px, -50%) rotate(45deg);
  transition:
    transform 180ms ease 90ms,
    opacity 120ms ease 90ms,
    box-shadow 180ms ease;
  animation: service-arrow-glow 2.2s ease-in-out infinite;
}

.button-service-link:hover .button-service-link__arrow::before,
.button-service-link:focus-visible .button-service-link__arrow::before {
  width: 36px;
  opacity: 1;
  box-shadow:
    0 0 10px rgba(45, 123, 255, 0.68),
    0 0 22px rgba(45, 123, 255, 0.34);
}

.button-service-link:hover .button-service-link__arrow::after,
.button-service-link:focus-visible .button-service-link__arrow::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
  box-shadow:
    1px -1px 12px rgba(45, 123, 255, 0.5),
    1px -1px 22px rgba(45, 123, 255, 0.24);
}

.button-service-link:hover .button-service-link__arrow,
.button-service-link:focus-visible .button-service-link__arrow {
  animation-duration: 1.4s;
}

@keyframes service-arrow-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

@keyframes service-arrow-glow {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 0.96;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button-service-link__arrow,
  .button-service-link__arrow::before,
  .button-service-link__arrow::after {
    animation: none;
  }
}

a.button-secondary[href="#contact-form"] {
  border-color: rgba(230, 234, 240, 0.92);
  background: #e6eaf0;
  color: #102132;
  box-shadow: 0 14px 26px rgba(230, 234, 240, 0.18);
}

a.button-secondary[href="#contact-form"]:hover,
a.button-secondary[href="#contact-form"]:focus-visible {
  box-shadow: 0 18px 32px rgba(230, 234, 240, 0.26);
}

body.page-light .button-secondary {
  border-color: rgba(16, 33, 50, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-dark);
}

.button-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 18px 32px rgba(138, 43, 226, 0.24);
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 92px 0 76px;
  overflow: clip;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.hero-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-heading h1 {
  width: 100%;
  max-width: 20ch;
  text-wrap: balance;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -10% -14% auto auto;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.2), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}

.hero-grid,
.story-grid,
.contact-shell,
.cta-band,
.page-hero-grid,
.split-grid,
.service-article-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  justify-self: start;
  align-self: start;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(138, 43, 226, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-light .eyebrow,
body.page-light .section-kicker {
  background: rgba(45, 123, 255, 0.1);
}

h1,
h2,
h3,
.stat-number,
.hero-pill strong {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.22rem, 2.5vw, 1.5rem);
}

p {
  margin: 0;
}

.hero-copy,
.page-copy {
  display: grid;
  gap: 18px;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy p,
.section-intro p,
.story-copy p,
.article-section p,
.contact-copy p,
.footer-note,
.service-card p,
.support-card p {
  color: var(--muted);
  font-size: 1.02rem;
}

body.page-light .hero-copy p,
body.page-light .section-intro p,
body.page-light .story-copy p,
body.page-light .article-section p,
body.page-light .contact-copy p,
body.page-light .footer-note,
body.page-light .service-card p,
body.page-light .support-card p {
  color: var(--muted-dark);
}

.hero-pills,
.page-meta,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-pill,
.page-meta span,
.chip-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

body.page-light .hero-pill,
body.page-light .page-meta span,
body.page-light .chip-list span {
  background: rgba(255, 255, 255, 0.72);
}

.hero-visual,
.story-visual,
.page-visual {
  position: relative;
}

.story-visual .image-frame {
  width: 84%;
  margin-left: auto;
}

.hero .image-frame {
  min-height: 500px;
}

.image-frame,
.image-stack-card,
.support-card,
.contact-form,
.service-card,
.stat-card,
.article-nav,
.article-section,
.quote-card,
.contact-card,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

body.page-light .image-frame,
body.page-light .image-stack-card,
body.page-light .support-card,
body.page-light .contact-form,
body.page-light .service-card,
body.page-light .stat-card,
body.page-light .article-nav,
body.page-light .article-section,
body.page-light .quote-card,
body.page-light .contact-card,
body.page-light .faq-list details {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.image-frame {
  overflow: hidden;
  min-height: 560px;
}

.image-frame img,
.story-visual img,
.page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-stack {
  position: absolute;
  right: -20px;
  bottom: 24px;
  display: grid;
  gap: 14px;
  width: min(280px, 78%);
}

.image-stack-card {
  padding: 18px 20px;
}

.image-stack-card strong,
.stat-card strong,
.contact-card strong,
.service-card h3,
.support-card h3 {
  display: block;
  margin-bottom: 6px;
}

.section-intro {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 34px;
}

.cards-grid,
.stats-grid,
.support-grid,
.related-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

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

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

.service-card,
.support-card,
.stat-card,
.quote-card,
.contact-card {
  padding: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#services .service-card h3 {
  width: 100%;
  text-align: center;
}

.service-card ul,
.support-card ul,
.article-section ul,
.contact-list,
.footer-links,
.service-link-list,
.support-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card ul {
  margin-bottom: auto;
}

.service-card ul,
.support-card ul,
.support-points,
.article-section ul,
.contact-list {
  display: grid;
  gap: 10px;
}

.service-card li,
.support-card li,
.support-points li,
.article-section li,
.contact-list li {
  position: relative;
  padding-left: 20px;
}

.service-card li::before,
.support-card li::before,
.support-points li::before,
.article-section li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.story-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

body.page-light .story-panel {
  background: rgba(255, 255, 255, 0.66);
}

.stats-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.stat-number {
  margin-bottom: 10px;
  font-size: 2.1rem;
}

.stat-card p,
.stat-card strong {
  color: var(--text);
}

body.page-light .stat-card p,
body.page-light .stat-card strong {
  color: var(--text-dark);
}

.split-panel {
  display: grid;
  gap: 16px;
}

.quote-card {
  display: grid;
  gap: 18px;
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.page-hero {
  position: relative;
  padding: 84px 0 42px;
  overflow: clip;
}

.page-hero-grid {
  align-items: stretch;
}

.page-visual {
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.page-light .page-visual {
  box-shadow: var(--shadow-soft);
}

.service-article-grid {
  align-items: start;
}

.article-nav {
  position: sticky;
  top: 120px;
  padding: 24px;
}

.article-nav h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.article-nav a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 700;
}

body.page-light .article-nav a {
  color: var(--muted-dark);
}

.article-nav a:hover,
.article-nav a:focus-visible {
  color: var(--text);
}

body.page-light .article-nav a:hover,
body.page-light .article-nav a:focus-visible {
  color: var(--text-dark);
}

.article-flow {
  display: grid;
  gap: 22px;
}

.article-section {
  padding: 28px;
}

.article-section h2 {
  margin-bottom: 16px;
}

.article-section h3 {
  margin: 16px 0 10px;
}

.related-grid {
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.faq-list p {
  margin-top: 12px;
}

.cta-band {
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(24, 184, 255, 0.16), rgba(99, 240, 193, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

body.page-light .cta-band {
  background:
    linear-gradient(135deg, rgba(24, 184, 255, 0.12), rgba(99, 240, 193, 0.08)),
    rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.map-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.map-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.map-copy p {
  margin: 0;
}

.map-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.map-points li {
  position: relative;
  padding-left: 20px;
}

.map-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  box-shadow: 0 0 18px rgba(138, 43, 226, 0.4);
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.map-frame {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(45, 123, 255, 0.12), rgba(138, 43, 226, 0.12)),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-shell {
  align-items: start;
}

.contact-copy {
  display: grid;
  gap: 18px;
}

.contact-grid {
  margin: 8px 0 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

body.page-light .contact-form input,
body.page-light .contact-form textarea,
body.page-light .contact-form select {
  background: #f7fbfe;
}

#contact-form {
  scroll-margin-top: 130px;
}

.form-status {
  min-height: 24px;
  font-size: 0.94rem;
  color: var(--muted);
}

body.page-light .form-status {
  color: var(--muted-dark);
}

.footer {
  padding: 42px 0 86px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links strong,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

body.page-light .footer-links strong,
body.page-light .footer-links a:hover,
body.page-light .footer-links a:focus-visible {
  color: var(--text-dark);
}

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 45;
}

.floating-actions .button {
  min-height: 48px;
  padding-inline: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

@keyframes auroraBlue {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(28vw, 8vh, 0) scale(1.14);
  }
  100% {
    transform: translate3d(56vw, 18vh, 0) scale(0.98);
  }
}

@keyframes auroraPurple {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-24vw, 12vh, 0) scale(1.1);
  }
  100% {
    transform: translate3d(-52vw, 24vh, 0) scale(0.97);
  }
}

@keyframes backgroundShift {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
  100% {
    background-position: 14% 8%, 86% 12%, 0% 0%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body.page-light,
  body::before,
  body::after {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .cards-grid,
  .support-grid,
  .related-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    border-radius: 24px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 21, 34, 0.96);
    box-shadow: var(--shadow);
  }

  body.page-light .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

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

  .header-actions {
    display: none;
  }

  .hero-grid,
  .hero-body,
  .story-grid,
  .contact-shell,
  .cta-band,
  .page-hero-grid,
  .split-grid,
  .service-article-grid,
  .map-shell {
    grid-template-columns: 1fr;
  }

  .page-meta {
    grid-template-columns: 1fr;
  }

  .article-nav {
    position: static;
  }

  .page-visual,
  .image-frame {
    min-height: 340px;
  }

  .image-stack {
    position: static;
    margin-top: 18px;
    width: 100%;
  }

  .floating-actions {
    left: 16px;
    right: 16px;
    justify-content: stretch;
  }

  .floating-actions .button {
    flex: 1 1 0;
  }
}

@media (max-width: 640px) {
  .section-spacing,
  .section-spacing-sm {
    padding: 76px 0;
  }

  .site-header {
    top: 10px;
    width: min(100vw - 20px, var(--container));
    margin-top: 10px;
    padding: 14px;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 9vw, 2.3rem);
  }

  .cards-grid,
  .stats-grid,
  .support-grid,
  .related-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-section,
  .quote-card,
  .service-card,
  .support-card,
  .stat-card,
  .contact-card,
  .contact-form,
  .article-nav {
    padding: 22px;
  }

  .footer {
    padding-bottom: 110px;
  }
}
