/* Ilias Web Studio — Lovable-aligned static build */
:root {
  --night: #000000;
  --night-soft: #0a0a0a;
  --asphalt: #111111;
  --asphalt-soft: rgba(17, 17, 17, 0.6);
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-100: #f4f4f5;
  --velocity: #ff6600;
  --velocity-rgb: 255, 102, 0;
  --border-accent: rgb(var(--velocity-rgb) / 0.28);
  --border-accent-mid: rgb(var(--velocity-rgb) / 0.38);
  --border-accent-strong: rgb(var(--velocity-rgb) / 0.55);
  --glow-purple: rgba(139, 92, 246, 0.25);
  --header-h: 5rem;
  --site-max-xl: min(80rem, 96vw);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", var(--font-sans);
  /* Logo: assets/ilias_logo_transparent.png — custom letterforms; tune size here */
  --logo-img-h: clamp(2.05rem, 4.35vw, 2.78rem);
  --logo-img-max-w: min(292px, 58vw);
  --logo-img-h-footer: clamp(3rem, 6.15vw, 3.85rem);
  --logo-img-max-w-footer: min(348px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--night-soft);
  color: var(--zinc-100);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--velocity-rgb), 0.3);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.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;
}

.wrap {
  min-height: 100dvh;
}

/* Bootstrap `.container-xxl` width — aligns header + hero to same grid */
.container-xxl {
  max-width: var(--site-max-xl) !important;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 80rem !important;
  }
}

/* ---- Nav ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--header-h);
  padding-block: 0.48rem;
  padding-inline: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-accent-mid);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 1px 0 var(--border-accent);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.brand:focus-visible {
  outline: 2px solid var(--velocity);
  outline-offset: 4px;
  border-radius: 2px;
}

.brand-logo-img {
  display: block;
  height: var(--logo-img-h);
  width: auto;
  max-width: var(--logo-img-max-w);
  object-fit: contain;
  object-position: left center;
}

.brand-logo-img--footer {
  height: var(--logo-img-h-footer);
  max-width: var(--logo-img-max-w-footer);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--velocity);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 992px) {
  .nav-desktop {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    /* Let clicks reach language switcher when the centered nav overlaps it */
    pointer-events: none;
  }

  .nav-desktop > .smooth-link,
  .nav-desktop > .btn-quote {
    pointer-events: auto;
  }
}

.nav-caps {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgb(248 248 252 / 0.92);
  transition: color 0.2s ease;
}

.nav-caps:hover {
  color: var(--velocity);
}

.header-cta.btn-quote {
  display: inline-flex;
}

.nav-quote-mobile.btn-quote {
  display: none;
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: #ffffff;
  color: #000000;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px var(--border-accent-mid);
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease,
    box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-quote:hover {
  background: var(--velocity);
  color: #fff;
  border-color: var(--velocity);
  box-shadow: 0 0 0 1px var(--velocity), 0 0 36px -4px rgb(var(--velocity-rgb) / 0.65);
}

.header-cta {
  flex-shrink: 0;
}

.header-actions {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(var(--velocity-rgb) / 0.45);
  border-radius: 0.4rem;
  overflow: hidden;
  background: rgb(12 12 14 / 0.65);
}

.lang-switch-btn {
  margin: 0;
  padding: 0.38rem 0.55rem;
  border: 0;
  background: transparent;
  color: rgb(230 230 236 / 0.75);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.lang-switch-btn:hover {
  color: #fff;
}

.lang-switch-btn.is-active {
  background: rgb(var(--velocity-rgb) / 0.22);
  color: var(--velocity);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 5;
  background: transparent;
  border: 1px solid var(--border-accent-mid);
  color: var(--zinc-100);
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.35s ease;
}

.nav-toggle.is-active {
  border-color: rgb(var(--velocity-rgb) / 0.55);
  color: var(--velocity);
  box-shadow: 0 0 0 1px rgb(var(--velocity-rgb) / 0.2),
    0 0 28px -6px rgb(var(--velocity-rgb) / 0.45);
}

@media (max-width: 991.98px) {
  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta.btn-quote {
    display: none;
  }

  .nav-quote-mobile.btn-quote {
    display: inline-flex;
    justify-content: center;
    margin-top: auto;
    width: 100%;
    padding-block: 0.85rem;
  }

  .nav-desktop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 46;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    min-height: calc(100dvh - var(--header-h));
    min-height: calc(100vh - var(--header-h));
    padding: clamp(1.35rem, 4.5vh, 2.5rem)
      calc(var(--bs-gutter-x, 1.5rem) * 1.125) max(1.5rem, env(safe-area-inset-bottom, 0px));
    background: #000;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.42s ease,
      visibility 0s linear 0.58s;
  }

  .nav-desktop.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.4s ease 0.05s,
      visibility 0s linear 0s;
  }

  .nav-desktop > a {
    position: relative;
    padding-block: 0.72rem;
    padding-inline: 0.35rem;
    border-radius: 0.4rem;
    font-size: 0.76rem;
    letter-spacing: 0.19em;
    opacity: 0;
    transform: translateY(1.15rem);
    transition:
      opacity 0.36s ease,
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      background 0.22s ease,
      color 0.2s ease;
  }

  .nav-desktop:not(.is-open) > a {
    transition-delay: 0s !important;
  }

  .nav-desktop.is-open > a:nth-child(1) {
    transition-delay: 0.06s;
  }

  .nav-desktop.is-open > a:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav-desktop.is-open > a:nth-child(3) {
    transition-delay: 0.14s;
  }

  .nav-desktop.is-open > a:nth-child(4) {
    transition-delay: 0.18s;
  }

  .nav-desktop.is-open > a:nth-child(5) {
    transition-delay: 0.22s;
  }

  .nav-desktop.is-open > a:nth-child(6) {
    transition-delay: 0.28s;
  }

  .nav-desktop.is-open > a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-desktop > a::after {
    content: "";
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(var(--velocity-rgb) / 0.35),
      transparent
    );
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition:
      opacity 0.35s ease,
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-desktop.is-open > a::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .nav-desktop > a.nav-caps:hover,
  .nav-desktop > a.nav-caps:focus-visible {
    background: rgb(255 255 255 / 0.045);
  }

  .nav-desktop > a.nav-quote-mobile::after {
    display: none;
  }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
  .nav-desktop {
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-desktop:not(.is-open) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-desktop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-desktop > a {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-desktop > a::after {
    display: none;
  }

  .nav-toggle.is-active {
    transition: none;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--night);
}

.hero-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
}

.hero-grid-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1;
  padding-block: clamp(0.45rem, 2.2vh, 1.5rem);
}

.hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: blob-move 18s ease-in-out infinite;
}

.hero-blob-1 {
  top: 14%;
  left: -12%;
  width: clamp(340px, 42vw, 520px);
  height: clamp(340px, 42vw, 520px);
  opacity: 0.32;
  background: radial-gradient(
    circle at center,
    rgb(var(--velocity-rgb) / 0.55) 0%,
    rgb(var(--velocity-rgb) / 0.08) 70%
  );
}

.hero-blob-2 {
  bottom: 5%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: rgba(251, 146, 60, 0.16);
  animation-name: blob-move-2;
  animation-duration: 22s;
}

.hero-blob-3 {
  top: 40%;
  right: 30%;
  width: 380px;
  height: 380px;
  background: rgb(120 82 230 / 0.12);
  animation-delay: -6s;
}

@keyframes blob-move {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.05);
  }
}

@keyframes blob-move-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 25px) scale(1.08);
  }
}

.hero-cone {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  animation: spin-slow 80s linear infinite;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(249, 115, 22, 0.18) 60deg,
    transparent 120deg,
    transparent 240deg,
    rgba(251, 191, 36, 0.12) 300deg,
    transparent 360deg
  );
  mask-image: radial-gradient(circle at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(
    circle at center,
    black 20%,
    transparent 70%
  );
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 1;
  animation: grid-drift 36s linear infinite;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.065) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(
    ellipse 92% 78% at 50% 42%,
    black 48%,
    transparent 76%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 92% 78% at 50% 42%,
    black 48%,
    transparent 76%
  );
}

@keyframes grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 60px 60px, 60px 60px;
  }
}

/* Raster world silhouette + subtle RF pings (sequential hubs) */
.hero-map-radio {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 94% 80% at 50% 42%,
    black 36%,
    transparent 74%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 94% 80% at 50% 42%,
    black 36%,
    transparent 74%
  );
}

.hero-map-radio-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* SvgHeart PNG: typically black continents on transparency — tinted to brand orange */
.hero-map-radio-svg .hero-world-bitmap {
  opacity: 0.2;
  filter: brightness(0) saturate(100%) invert(48%) sepia(95%) saturate(1400%)
    hue-rotate(-2deg) brightness(1.02);
}

.hero-map-radio-svg .rf-wave {
  fill: none;
  stroke: var(--velocity);
  stroke-width: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: rf-wave-expand 6.2s ease-out infinite;
}

.hero-map-radio-svg .rf-wave--delay-1 {
  animation-delay: 2s;
}

.hero-map-radio-svg .rf-core {
  fill: var(--velocity);
  opacity: 0.45;
  filter: drop-shadow(0 0 2px rgb(var(--velocity-rgb) / 0.65));
}

@keyframes rf-wave-expand {
  0% {
    transform: scale(0.18);
    opacity: 0;
  }
  12% {
    opacity: 0.22;
  }
  100% {
    transform: scale(2.05);
    opacity: 0;
  }
}

/* Full cycle 42s (~7s per hub) — только один узел яркий; паузы между узлами */
@keyframes rf-seq-slot {
  0%, 5% {
    opacity: 0.78;
  }
  10%,
  100% {
    opacity: 0.025;
  }
}

.hero-map-radio-svg .rf-hub {
  opacity: 0.02;
  animation: rf-seq-slot 42s ease-in-out infinite;
}

.hero-map-radio-svg .rf-hub--2 {
  animation-delay: -7s;
}

.hero-map-radio-svg .rf-hub--3 {
  animation-delay: -14s;
}

.hero-map-radio-svg .rf-hub--4 {
  animation-delay: -21s;
}

.hero-map-radio-svg .rf-hub--5 {
  animation-delay: -28s;
}

.hero-map-radio-svg .rf-hub--6 {
  animation-delay: -35s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-radio-svg .rf-wave,
  .hero-map-radio-svg .rf-hub {
    animation: none !important;
  }

  .hero-map-radio-svg .rf-hub {
    opacity: 0.12;
  }

  .hero-map-radio-svg .rf-wave {
    display: none;
  }
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 35%,
    var(--night-soft) 100%
  );
}

.hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--velocity),
    transparent
  );
  animation: scan-y 8s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes scan-y {
  0%,
  100% {
    transform: translateY(15vh);
    opacity: 0.2;
  }
  50% {
    transform: translateY(85vh);
    opacity: 0.7;
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-particles span {
  position: absolute;
  bottom: -10%;
  border-radius: 50%;
  background: rgb(var(--velocity-rgb) / 0.55);
  animation: particle-rise linear infinite;
}

@keyframes particle-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

.hero-grid-main.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.hero-copy.col-lg-6 {
  position: relative;
  z-index: 1;
  max-width: none;
}

@media (min-width: 992px) {
  .hero-copy {
    max-width: 32rem;
    padding-right: clamp(0.75rem, 2vw, 1.75rem);
  }
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  left: -35%;
  width: 95%;
  height: 118%;
  background: radial-gradient(
    ellipse 70% 60% at 35% 35%,
    rgb(var(--velocity-rgb) / 0.13),
    transparent 62%
  );
  pointer-events: none;
}

.kicker-line {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(0.56rem, 0.95vw, 0.66rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  line-height: 1.45;
  color: rgb(250 250 252 / 0.94);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.85vw + 1.95rem, 4.85rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
}

.hero-title .hero-line + .hero-line {
  margin-top: 0.06em;
}

.hero-line--light {
  color: #ffffff;
}

.hero-line--accent {
  color: var(--velocity);
}

.hero-tags {
  margin: 0 0 1.05rem;
  font-family: var(--font-sans);
  font-size: clamp(0.71rem, 0.85vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgb(252 252 255 / 0.9);
}

.hero-tags-dot {
  display: inline;
  padding: 0 0.35em;
  color: rgb(255 255 255 / 0.45);
  font-weight: 500;
}

/* Entity summary — clear who/what/where for SEO + generative retrieval */
.hero-entity {
  margin: 0 0 1.2rem;
  max-width: 40rem;
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  font-weight: 400;
  line-height: 1.58;
  color: rgb(228 228 236 / 0.88);
}

.hero-entity strong {
  font-weight: 600;
  color: rgb(252 252 255 / 0.95);
}

.hero-entity a {
  color: var(--velocity);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.hero-entity a:hover {
  color: rgb(255 255 255 / 0.95);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.hero-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.hero-feature-ico {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--velocity);
  border-radius: 2px;
  background: rgb(14 14 16 / 0.92);
  color: var(--velocity);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.hero-feature-ico-code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  margin-bottom: 0.22rem;
  color: #fff;
}

.hero-feature-text {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.52;
  color: rgb(171 171 178 / 0.92);
  max-width: 44ch;
}

.btn-cta-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--velocity);
  color: var(--velocity);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    transform 0.2s ease;
}

.btn-cta-hero:hover {
  background: var(--velocity);
  color: #fff;
  box-shadow: 0 0 40px -5px rgb(var(--velocity-rgb) / 0.85);
  transform: translateY(-2px);
}

.hero-visual-col {
  position: relative;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: none;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .hero-visual {
    display: block;
    max-height: min(62vh, 540px);
  }

  .hero-picture {
    max-height: min(62vh, 540px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-portrait-img {
    max-height: min(62vh, 540px);
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 18%;
  }
}

.hero-portrait-glow {
  position: absolute;
  inset: -18%;
  background: radial-gradient(
    circle at 50% 55%,
    rgb(var(--velocity-rgb) / 0.35) 0%,
    rgb(var(--velocity-rgb) / 0.08) 45%,
    transparent 72%
  );
  filter: blur(72px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-picture {
  position: relative;
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow:
    0 4px 0 rgb(var(--velocity-rgb) / 0.12),
    0 28px 70px rgb(0 0 0 / 0.55);
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  display: block;
}

.float-card {
  position: absolute;
  z-index: 2;
  background: rgb(18 18 20 / 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--velocity);
  padding: 0.75rem 0.85rem;
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.06) inset,
    0 16px 40px rgb(0 0 0 / 0.42);
  animation-name: float-y;
  animation-duration: 4.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float-card.fc-traffic {
  animation-name: float-y-mid;
  animation-delay: 1.5s;
}

.float-card.fc-convert {
  animation-delay: 2.5s;
}

.float-card-label {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgb(228 228 231 / 0.55);
  margin-bottom: 0.42rem;
}

.fc-perf-eyebrow {
  margin-bottom: 0.35rem;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: rgb(228 228 231 / 0.48);
}

.fc-perf-split {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fc-gauge-shell {
  flex-shrink: 0;
  width: 3.125rem;
  height: 3.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-gauge-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--velocity) 0deg,
    var(--velocity) 352deg,
    rgb(255 255 255 / 0.1) 352deg,
    rgb(255 255 255 / 0.1) 360deg
  );
  mask-image: radial-gradient(
    closest-side,
    transparent 58%,
    black 62%,
    black 100%
  );
  -webkit-mask-image: radial-gradient(
    closest-side,
    transparent 58%,
    black 62%,
    black 100%
  );
}

.fc-perf-merge {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.fc-perf-score {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1;
  color: var(--velocity);
}

.fc-perf-pagespeed {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgb(235 236 243 / 0.78);
}

.fc-sparkline {
  margin-top: 0.45rem;
  height: 1.85rem;
  width: 100%;
  opacity: 0.95;
}

.fc-spark-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fc-spark-fill {
  fill: rgb(var(--velocity-rgb) / 0.18);
}

.fc-spark-line {
  stroke: var(--velocity);
}

.float-card-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.fc-perf-num {
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1;
  color: var(--velocity);
}

.fc-perf-num span {
  font: inherit;
  color: inherit;
}

.float-card-stat span:first-child {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--velocity);
}

.fc-perf-note {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.float-card-unit {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zinc-500);
}

.float-card-big {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--velocity);
  line-height: 1.1;
}

.float-card-sub {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  color: rgb(180 180 190 / 0.75);
  margin-top: 0.28rem;
  letter-spacing: 0.06em;
}

/* Anchored to `.hero-picture`: top-left perf, bottom-left conversions, mid-right traffic (lower) */
.fc-perf {
  top: clamp(0.55rem, 4.5%, 1.1rem);
  left: clamp(0.5rem, 4%, 1.15rem);
  right: auto;
  bottom: auto;
  width: auto;
  min-width: 11.85rem;
}

.fc-convert {
  bottom: clamp(0.85rem, 11%, 2.85rem);
  left: clamp(0.55rem, 5%, 1.2rem);
  top: auto;
  right: auto;
  width: 11.65rem;
}

.fc-traffic {
  top: 80%;
  right: clamp(0.45rem, 3.25%, 0.95rem);
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  width: 12.6rem;
}

.float-card-label.fc-label-dim {
  margin-bottom: 0.35rem;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgb(168 168 176 / 0.72);
}

.float-card-big.fc-stat-hero {
  font-size: 1.92rem;
  line-height: 1.05;
}

.float-card-sub.fc-sub-dim {
  margin-top: 0.32rem;
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgb(155 155 165 / 0.78);
}

@media (max-height: 780px) and (min-width: 992px) {
  .hero-title {
    font-size: clamp(2rem, 1.5vw + 1.25rem, 3.6rem);
  }

  .hero-features {
    gap: 0.5rem;
    margin-bottom: 0.95rem;
  }

  .hero-visual {
    max-height: min(52vh, 440px);
  }

  .hero-picture {
    max-height: min(52vh, 440px);
  }

  .hero-portrait-img {
    max-height: min(52vh, 440px);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Mid-right card stays vertically centered while floating */
@keyframes float-y-mid {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 10px));
  }
}

.animate-float-up {
  opacity: 0;
  animation: float-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Trust — value bar (icon square + two-line copy) */
.trust-bar {
  border-top: 1px solid var(--border-accent-mid);
  border-bottom: 1px solid var(--border-accent-mid);
  background: var(--night);
}

.trust-value-row {
  padding: 1.35rem 0;
}

@media (min-width: 1200px) {
  .trust-value-row {
    padding: 1.5rem 0;
  }
}

.trust-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  height: 100%;
}

.trust-pillar-ico {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--velocity);
  border-radius: 2px;
  background: rgb(12 12 14 / 0.95);
}

.trust-pillar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--velocity);
}

.trust-pillar-copy {
  min-width: 0;
  padding-top: 0.12rem;
}

.trust-pillar-title {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 0.2rem;
}

.trust-pillar-sub {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(165 165 173 / 0.88);
  margin: 0;
}

/* Sections */
.section {
  padding: 8rem 0;
  border-top: 1px solid var(--border-accent-mid);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--velocity);
  margin: 0 0 1rem;
}

.heading-section {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 22ch;
}

.heading-center {
  text-align: center;
  margin-inline: auto;
}

.lead-section {
  margin: 0;
  color: var(--zinc-500);
  font-size: 1rem;
  max-width: 42ch;
}

.lead-center {
  text-align: center;
  margin-inline: auto;
}

/* FAQ — visible Q&A aligned with FAQPage JSON-LD */
.section-faq .faq-head {
  margin-bottom: 3rem;
  max-width: 48rem;
}

.section-faq .faq-lead {
  margin-top: 1rem;
  max-width: 44ch;
}

.faq-list {
  display: grid;
  gap: 0;
  max-width: 52rem;
}

.faq-item {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.faq-a {
  margin: 0;
  color: var(--zinc-500);
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-a a {
  color: var(--velocity);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-a a:hover {
  color: rgb(255 255 255 / 0.92);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}
.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* Services matrix */
.section-services .services-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-services .services-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.services-matrix {
  display: grid;
  grid-template-columns: 1fr;
  /* Outer top + left; outer right + bottom come from cells’ borders */
  border-left: 1px solid rgb(255 255 255 / 0.14);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

@media (min-width: 768px) {
  .services-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-cell {
  padding: 2.5rem;
  border-right: 1px solid rgb(255 255 255 / 0.14);
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.service-cell:hover {
  position: relative;
  z-index: 1;
  background: rgb(24 24 27 / 0.65);
  box-shadow: inset 0 0 0 1px var(--border-accent-strong);
}

.service-ico {
  display: block;
  width: fit-content;
  font-size: 1.35rem;
  color: var(--velocity);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.service-idx {
  font-size: 0.75rem;
  font-weight: 700;
  color: #52525b;
  transition: color 0.2s ease;
}

.service-cell:hover .service-idx {
  color: var(--velocity);
}

.service-cell h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.service-cell p {
  margin: 0;
  color: var(--zinc-500);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Difference */
.section-diff {
  background: var(--asphalt);
}

.diff-intro {
  max-width: 42rem;
  margin-bottom: 4rem;
}

.diff-intro .heading-section {
  max-width: none;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .diff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.diff-box {
  padding: 2.5rem;
  border: 1px solid var(--border-accent-mid);
  background: var(--night);
}

.diff-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #71717a;
  margin-bottom: 1.5rem;
}

.diff-label.accent {
  color: var(--velocity);
}

.diff-bad ul,
ul.diff-plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-plain li,
.diff-bad li {
  padding: 0.35rem 0;
  color: var(--zinc-400);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-plain li:last-child,
.diff-bad li:last-child {
  border-bottom: none;
}

.diff-good {
  position: relative;
  border: 2px solid var(--velocity);
  box-shadow: 0 0 24px -8px rgb(var(--velocity-rgb) / 0.35);
}

.diff-ribbon {
  position: absolute;
  top: -0.75rem;
  left: 2.5rem;
  background: var(--velocity);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
}

.diff-good ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.diff-good li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--zinc-100);
  font-size: 0.95rem;
}

.diff-good .bull {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--velocity);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Clients */
.clients-head {
  text-align: center;
  margin-bottom: 5rem;
}

/* Clients showcase — Slick thumbnail rail + detail + notched screenshot */
.clients-showcase {
  margin-top: 0.5rem;
}

.clients-slick-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.clients-slider-wrap {
  flex: 1;
  min-width: 0;
  padding-block: 0.25rem;
}

.clients-slider .slick-list {
  margin: 0 -0.35rem;
}

.clients-slider .slick-slide {
  padding: 0 0.35rem;
  height: auto;
}

.clients-slide-inner {
  height: 100%;
  cursor: pointer;
}

.clients-arrow {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--velocity-rgb) / 0.55);
  border-radius: 0.55rem;
  background: rgb(14 14 16 / 0.75);
  color: rgb(255 255 255 / 0.92);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.clients-arrow:hover {
  border-color: var(--velocity);
  color: var(--velocity);
  box-shadow: 0 0 20px rgb(var(--velocity-rgb) / 0.22);
}

.clients-arrow:focus-visible {
  outline: 2px solid var(--velocity);
  outline-offset: 3px;
}

.client-thumb-slide {
  position: relative;
  z-index: 1;
  width: 8.625rem !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.45rem 0.42rem 0.55rem;
  margin: 0;
  border: 1px solid rgb(var(--velocity-rgb) / 0.22);
  border-radius: 0.45rem;
  background: rgb(14 14 16 / 0.78);
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    background 0.2s ease;
}

/* Active thumb — class set in JS (reliable with variableWidth + Slick) */
.clients-showcase .clients-slide-inner.is-active .client-thumb-slide {
  border: 2px solid var(--velocity);
  box-shadow:
    0 0 0 1px rgb(var(--velocity-rgb) / 0.55),
    0 0 28px rgb(var(--velocity-rgb) / 0.38);
}

.client-thumb-slide:focus-visible {
  outline: 2px solid var(--velocity);
  outline-offset: 2px;
}

.client-thumb-img-wrap {
  display: block;
  border-radius: 0.32rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgb(24 24 27 / 0.9);
}

.client-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-thumb-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(212 212 216 / 0.78);
  padding-inline: 0.12rem;
  max-height: 2.6em;
  overflow: hidden;
}

.clients-showcase .clients-slide-inner.is-active .client-thumb-label {
  color: #fff;
}

.clients-detail-row {
  margin-top: 0;
}

.clients-detail-copy {
  padding-top: 0.25rem;
}

.client-detail-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(161 161 170 / 0.92);
  margin: 0 0 1rem;
}

.client-detail-heading {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.35vw, 2.15rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #fff;
}

.client-detail-text {
  margin: 0 0 1.85rem;
  font-size: 1rem;
  line-height: 1.72;
  color: rgb(212 212 216 / 0.9);
}

.client-detail-link-wrap {
  margin: -0.35rem 0 1.35rem;
}

.client-detail-link-wrap[hidden] {
  display: none !important;
}

.client-detail-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--velocity);
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--velocity-rgb) / 0.35);
  padding-bottom: 0.12rem;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.client-detail-project-link:hover {
  color: #fff;
  border-color: rgb(var(--velocity-rgb) / 0.65);
  box-shadow: 0 8px 28px -12px rgb(var(--velocity-rgb) / 0.45);
}

.client-detail-project-link-ico {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.85;
  transform: translate(0.05em, -0.08em);
}

.client-detail-cta {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--velocity);
  transition:
    letter-spacing 0.2s ease,
    color 0.2s ease;
}

.client-detail-cta:hover {
  letter-spacing: 0.17em;
  color: #ff8533;
}

.client-shot-wrap {
  position: relative;
  max-width: 100%;
}

.client-shot-glow {
  position: absolute;
  z-index: 0;
  inset: -6%;
  background: radial-gradient(
    ellipse 72% 64% at 72% 88%,
    rgb(var(--velocity-rgb) / 0.22) 0%,
    transparent 62%
  );
  pointer-events: none;
  filter: blur(52px);
  opacity: 0.85;
}

.client-shot-frame {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 3.75rem),
    calc(100% - 3.75rem) 100%,
    0 100%
  );
  box-shadow:
    0 0 0 1px rgb(var(--velocity-rgb) / 0.48),
    0 28px 64px rgb(0 0 0 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.client-shot-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

@media (max-width: 991px) {
  .clients-slick-bar {
    margin-bottom: 2.25rem;
  }

  .client-thumb-slide {
    width: 7.5rem !important;
  }
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.heading-contact {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.text-accent {
  color: var(--velocity);
}

.contact-lead {
  font-size: 1.125rem;
  color: var(--zinc-300);
  max-width: 36ch;
  margin: 0 0 2.5rem;
}

.contact-block {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border-accent-strong);
}

.c-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zinc-500);
  margin-bottom: 0.25rem;
}

.c-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

a.c-value:hover {
  color: var(--velocity);
}

.c-value.plain {
  color: var(--zinc-100);
}

.contact-form {
  background: rgb(24 24 27 / 0.4);
  border: 1px solid var(--border-accent-strong);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--zinc-400);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-accent-mid);
  background: rgb(24 24 27 / 0.6);
  color: var(--zinc-100);
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #52525b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--velocity);
  box-shadow: 0 0 0 1px var(--velocity);
}

.fld-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .fld-row {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  border: 1px solid var(--velocity);
  background: var(--velocity);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  box-shadow: 0 0 40px -5px rgb(var(--velocity-rgb) / 0.65);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-micro {
  margin: 0;
  font-size: 0.625rem;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-msg {
  display: none;
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(248 113 113);
}

.form-msg.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-accent-mid);
  background: var(--night);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--zinc-400);
  max-width: 28ch;
}

.footer-meta {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zinc-500);
}

.fn-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--velocity);
  margin-bottom: 1.25rem;
}

.footer-nav ul,
.footer-contact ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--zinc-300);
}

.footer-nav a,
.footer-contact a {
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--velocity);
}

.footer-contact li.muted {
  color: var(--zinc-400);
}

.footer-bar {
  border-top: 1px solid var(--border-accent-mid);
  margin-top: 3rem;
}

.footer-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #52525b;
}

@media (min-width: 768px) {
  .footer-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bar-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bar-right {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.footer-social {
  display: flex;
  gap: 0.65rem;
}

.social-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border-accent-mid);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--zinc-400);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-ico:hover {
  border-color: var(--velocity);
  color: var(--velocity);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: var(--velocity);
}

.footer-legal-trigger {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-trigger:hover {
  color: var(--velocity);
}

body.legal-overlay-open {
  overflow: hidden;
  touch-action: none;
}

.legal-overlay[hidden] {
  display: none !important;
}

.legal-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 3.5vw, 1.75rem);
}

.legal-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-overlay-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 42rem;
  outline: none;
}

.legal-overlay-panel-inner {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 46rem);
  background: linear-gradient(165deg, rgb(16 16 20 / 0.98), rgb(8 8 12 / 1));
  border: 1px solid var(--border-accent-mid);
  border-radius: 0.65rem;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 28px 80px -24px rgb(0 0 0 / 0.85);
  overflow: hidden;
}

.legal-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 1rem 1.1rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border-accent-mid);
  background: rgb(0 0 0 / 0.35);
}

.legal-overlay-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(250 250 252 / 0.95);
}

.legal-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 0.35rem;
  background: rgb(12 12 16 / 0.9);
  color: rgb(228 228 234 / 0.9);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.legal-overlay-close:hover {
  color: var(--velocity);
  border-color: rgb(var(--velocity-rgb) / 0.45);
  box-shadow: 0 0 24px -6px rgb(var(--velocity-rgb) / 0.5);
}

.legal-overlay-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.35rem 1.35rem 1.5rem;
  color: rgb(212 212 220 / 0.92);
}

.legal-overlay-loading {
  margin: 0;
  font-size: 0.9rem;
  color: var(--zinc-400);
}

.legal-doc-meta {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--zinc-400);
}

.legal-doc-h {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(244 244 248 / 0.95);
}

.legal-doc-h:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.72;
  color: rgb(212 212 220 / 0.9);
}

.legal-doc-list {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(212 212 220 / 0.9);
}

.legal-doc-list li {
  margin-bottom: 0.4rem;
}

.legal-doc a {
  color: var(--velocity);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: #fff;
}
