/* FjordMetric — Precision Ledger */

:root {
  --paper: #f6f4f0;
  --ink: #1c1917;
  --copper-600: #b45309;
  --copper-700: #92400e;
  --copper-500: #d97706;
  --copper-100: #ffedd5;
  --border: #e7e5e4;
  --navy-950: var(--ink);
  --navy-900: #292524;
  --navy-800: #44403c;
  --navy-700: #57534e;
  --teal-500: var(--copper-600);
  --teal-400: var(--copper-500);
  --teal-300: #f59e0b;
  --teal-600: var(--copper-700);
  --amber-400: #fbbf24;
  --slate-50: var(--paper);
  --slate-100: #efebe6;
  --slate-200: var(--border);
  --slate-400: #a8a29e;
  --slate-600: #57534e;
  --slate-700: #44403c;
  --slate-800: var(--ink);
  --white: #ffffff;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgb(10 22 40 / 0.06);
  --shadow-md: 0 8px 30px rgb(10 22 40 / 0.08);
  --shadow-lg: 0 24px 60px rgb(10 22 40 / 0.14);
  --header-h: 92px;
  --marine-950: #060d18;
  --marine-overlay: rgb(6 12 22 / 0.72);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1200px, calc(100% - 3rem));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@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);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

body.nav-open {
  overflow: hidden;
}

/* Safari/iOS: backdrop-filter on header makes fixed nav panel transparent */
body.nav-open .site-header {
  z-index: 10000;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.nav-open .site-header::before {
  opacity: 0;
}

button,
input {
  font: inherit;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--teal-500);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    rgb(15 23 42 / 0.72) 0%,
    rgb(15 23 42 / 0.35) 55%,
    transparent 100%
  );
  transition: opacity 0.35s var(--ease-out);
}

.site-header:not(.is-scrolled):not(.site-header--solid)::before {
  opacity: 1;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
}

.site-header.is-scrolled .logo-text {
  color: var(--navy-950);
}

.site-header.is-scrolled .logo-accent {
  color: var(--teal-600);
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--slate-700);
}

.site-header.is-scrolled .nav-desktop a:hover,
.site-header.is-scrolled .nav-desktop a.is-active {
  color: var(--navy-950);
}

.site-header.is-scrolled .nav-desktop a.is-active {
  border-bottom-color: var(--teal-500);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--navy-950);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.site-header:not(.is-scrolled):not(.site-header--solid) .logo-text {
  color: var(--white);
  text-shadow: 0 1px 2px rgb(15 23 42 / 0.35);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .logo-accent {
  color: var(--teal-300);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a {
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 2px rgb(15 23 42 / 0.35);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a:hover,
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a.is-active {
  color: var(--white);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a.is-active {
  border-bottom-color: var(--teal-300);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-toggle span {
  background: var(--white);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  transition: opacity 0.2s var(--ease-out);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .logo-mark--swap {
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35));
}

.site-header.is-scrolled .logo-mark--swap,
.site-header--solid .logo-mark--swap {
  filter: none;
}

.logo-accent {
  color: var(--teal-500);
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-desktop a.is-active {
  font-weight: 500;
  color: var(--navy-950);
  border-bottom-color: var(--teal-500);
}

.nav-desktop a:hover {
  color: var(--navy-950);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-trust {
  display: none;
}

@media (min-width: 1024px) {
  .header-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgb(255 255 255 / 0.92);
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }

  .header-trust .footer-trust-google svg {
    width: 14px;
    height: 14px;
  }

  .header-trust .footer-trust-stars {
    display: flex;
    gap: 1px;
    color: var(--amber-400);
  }

  .header-trust .footer-trust-stars svg {
    width: 12px;
    height: 12px;
  }

  .header-trust strong {
    font-weight: 700;
    color: var(--white);
  }

  .site-header.is-scrolled .header-trust,
  .site-header--solid .header-trust {
    color: var(--slate-700);
    border-color: var(--slate-200);
    background: var(--slate-50);
  }

  .site-header.is-scrolled .header-trust strong,
  .site-header--solid .header-trust strong {
    color: var(--navy-950);
  }
}

.nav-toggle {
  position: relative;
  z-index: 102;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-950);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 10001;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.25rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  background-color: #ffffff;
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 24px 48px rgb(15 23 42 / 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -12px, 0);
  transition:
    visibility 0.3s,
    transform 0.3s var(--ease-out);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.nav-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #ffffff;
}

.nav-mobile.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.nav-mobile[hidden] {
  display: flex;
}

.nav-mobile a:not(.btn) {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy-950);
  border-bottom: 1px solid var(--slate-200);
}

.nav-mobile a:not(.btn).is-active {
  font-weight: 600;
  color: var(--teal-600);
}

.nav-mobile > a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 0.85rem 1.35rem;
  border-bottom: none;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--copper-600), var(--copper-700));
  color: var(--white);
  box-shadow: 0 4px 20px rgb(180 83 9 / 0.28);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgb(180 83 9 / 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--white);
  border-color: var(--slate-400);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--white);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.22);
}

.btn-white:hover {
  background: var(--slate-100);
  box-shadow: 0 10px 32px rgb(0 0 0 / 0.28);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* Home — cargo cover hero */
.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop {
  gap: clamp(1rem, 2vw, 1.5rem);
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
}

.site-header:not(.is-scrolled):not(.site-header--solid) .nav-desktop a.is-active {
  border-bottom-color: rgb(255 255 255 / 0.9);
}

.btn-header-quote {
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.site-header:not(.is-scrolled):not(.site-header--solid) .btn-header-quote {
  color: var(--white);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.88);
  box-shadow: none;
}

.site-header:not(.is-scrolled):not(.site-header--solid) .btn-header-quote:hover {
  background: rgb(255 255 255 / 0.1);
  transform: translateY(-1px);
}

.site-header.is-scrolled .btn-header-quote,
.site-header--solid .btn-header-quote {
  color: var(--white);
  background: linear-gradient(135deg, var(--copper-600), var(--copper-700));
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgb(180 83 9 / 0.28);
}

.page-home .nav-mobile a:not(.btn).is-active {
  color: var(--copper-600);
}

.hero.hero--cover {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(1200px, 100svh, 1500px);
  height: clamp(1200px, 100svh, 1500px);
  margin: 0;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3rem, 6vh, 4.5rem);
  color: var(--white);
  background: var(--marine-950);
  overflow: hidden;
}

.hero-cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cover__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(6 12 22 / 0.45) 0%, rgb(6 12 22 / 0.68) 55%, rgb(6 12 22 / 0.9) 100%),
    linear-gradient(90deg, rgb(6 12 22 / 0.55) 0%, rgb(6 12 22 / 0.25) 50%, rgb(6 12 22 / 0.6) 100%);
}

.hero-cover__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.hero-cover__main {
  max-width: 36rem;
}

.hero-cover__main h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.8vw, 3.65rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 14ch;
  text-wrap: balance;
}

.hero-cover__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-cover__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-cover__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.98rem, 1.75vw, 1.125rem);
  line-height: 1.6;
  color: rgb(255 255 255 / 0.88);
}

.hero-cover__more {
  margin-top: 0;
}

.btn-text-arrow {
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.btn-text-arrow:hover {
  color: rgb(255 255 255 / 0.75);
  transform: none;
}

@media (min-width: 900px) {
  .hero-cover__grid {
    grid-template-columns: minmax(0, max-content) minmax(18rem, 26rem);
    column-gap: clamp(2rem, 3.5vw, 3.25rem);
    align-items: center;
    justify-items: start;
    width: fit-content;
    max-width: 100%;
    row-gap: 0;
  }

  .hero-cover__main {
    max-width: min(36rem, 52vw);
  }

  .hero-cover__main h1 {
    max-width: 14ch;
  }

  .hero-cover__aside {
    max-width: 26rem;
    align-self: center;
  }

  .hero-cover__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
  }
}

@media (max-width: 899px) {
  .page-home .header-actions .btn-header-quote {
    display: none;
  }

  .hero.hero--cover {
    min-height: min(100svh, 920px);
    height: auto;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + 1.5rem);
  }

  .hero-cover__main h1 {
    max-width: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Unified photo treatment — cool corporate logistics look */
.media {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.72) contrast(1.06) brightness(0.88);
  transform: scale(1.02);
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgb(10 22 40 / 0.55) 0%,
    rgb(13 148 136 / 0.22) 50%,
    rgb(10 22 40 / 0.45) 100%
  );
  pointer-events: none;
}

.media--dark::after {
  background: linear-gradient(
    180deg,
    rgb(10 22 40 / 0.25) 0%,
    rgb(10 22 40 / 0.75) 100%
  );
}

.media--card {
  aspect-ratio: 16 / 10;
  margin: -2rem -2rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.solution-card {
  padding-top: 0;
  overflow: hidden;
}

.solution-card:hover .media img,
.insight-card:hover .media img,
.media--careers:hover img {
  transform: scale(1.06);
  filter: saturate(0.82) contrast(1.08) brightness(0.92);
}

.media--hero-panel {
  aspect-ratio: 16 / 9;
  margin: -1.5rem -1.5rem 1rem;
  border-radius: var(--radius-md);
}

.media--cta {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  min-height: 220px;
}

.media--step {
  aspect-ratio: 16 / 9;
  margin: -2rem -1.5rem 1.25rem;
  border-radius: var(--radius-md);
}

.media--global {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.media--insight {
  aspect-ratio: 16 / 9;
  margin: -2.25rem -2.25rem 1.25rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.insight-card {
  padding-top: 0;
  overflow: hidden;
}

.media--careers {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(10 22 40 / 0.92) 0%, rgb(10 22 40 / 0.72) 42%, rgb(10 22 40 / 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgb(13 148 136 / 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgb(37 71 112 / 0.45), transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black, transparent);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb--1 {
  width: 420px;
  height: 420px;
  top: -10%;
  right: -5%;
  background: var(--teal-500);
}

.hero-orb--2 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -5%;
  background: var(--navy-700);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-inner {
  max-width: 720px;
}

.hero-panel {
  display: none;
  padding: 1.5rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-300);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgb(255 255 255 / 0.78);
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-google-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 3.25rem;
  padding: 0.6rem 1.15rem 0.6rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.2;
  color: rgb(255 255 255 / 0.92);
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.12) inset,
    0 8px 32px rgb(10 22 40 / 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: none;
  pointer-events: none;
}

.hero-google-trust__icon {
  display: flex;
  flex-shrink: 0;
}

.hero-google-trust__icon svg {
  width: 20px;
  height: 20px;
}

.hero-google-trust__stars {
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--amber-400);
  text-shadow: 0 0 20px rgb(251 191 36 / 0.35);
}

.hero-google-trust__text strong {
  font-weight: 700;
  color: var(--white);
}

.hero-google-trust__label {
  color: rgb(255 255 255 / 0.78);
}

/* Home — Precision Ledger hero */
.hero.hero--ledger {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: auto;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  box-sizing: border-box;
}

.hero.hero--ledger .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

.hero.hero--ledger .hero-title em {
  font-style: normal;
  font-weight: 600;
  color: var(--copper-600);
}

.hero.hero--ledger .hero-lead {
  margin: 0 0 1.75rem;
  color: var(--slate-600);
  max-width: 34rem;
}

.hero.hero--ledger .hero-cta {
  margin-bottom: 0;
}

.hero.hero--ledger .hero-trust {
  width: 100%;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  border-top: 1px solid var(--border);
}

.hero.hero--ledger .hero-panel {
  display: none;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero.hero--ledger .media--hero-panel {
  margin: 0;
  border-radius: 0;
}

.hero.hero--ledger .media--hero-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.hero--ledger .hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.hero-ledger {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0 0 2.5rem;
  padding: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  list-style: none;
}

.hero-metrics__item {
  margin: 0;
  padding: 1.15rem 1.35rem;
  background: var(--white);
}

.hero-metrics__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.hero-metrics__value {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--copper-600);
}

.hero.hero--ledger .hero-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero.hero--ledger .hero-inner {
  max-width: 34rem;
}

.hero-visual {
  display: none;
}

.hero-schematic {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-schematic__svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-schematic__path {
  stroke: var(--copper-600);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero-schematic__node {
  fill: var(--white);
  stroke: var(--copper-600);
  stroke-width: 2.5;
}

.hero-schematic__label {
  fill: var(--slate-600);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero.hero--ledger {
    height: clamp(1200px, 100svh, 1500px);
    min-height: 1200px;
    max-height: 1500px;
    padding: var(--header-h) 0 2.5rem;
  }

  .hero.hero--ledger .hero-ledger {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    height: 100%;
    padding-block: clamp(2.5rem, 4.5vh, 3.75rem);
  }

  .hero.hero--ledger .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 3.5rem);
    align-items: stretch;
    flex: 1;
    min-height: 0;
  }

  .hero.hero--ledger .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    height: 100%;
  }

  .hero.hero--ledger .hero-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .hero.hero--ledger .media--hero-panel {
    flex: 1;
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .hero.hero--ledger .media--hero-panel img {
    min-height: 100%;
  }

  .hero-visual {
    display: block;
  }
}

.hero-ledger-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-ledger-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgb(28 25 23 / 0.07) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.hero-ledger-corner {
  position: absolute;
  width: 72px;
  height: 72px;
  border: 2px solid rgb(180 83 9 / 0.35);
}

.hero-ledger-corner--tl {
  top: calc(var(--header-h) + 1rem);
  left: max(1.5rem, calc((100% - 1200px) / 2));
  border-right: none;
  border-bottom: none;
}

.hero-ledger-corner--br {
  display: none;
}

.hero-metrics--rich {
  grid-template-columns: 1fr;
}

.hero-metrics--rich .hero-metrics__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1.35rem 1.5rem;
  transition: background 0.25s var(--ease-out);
}

.hero-metrics--rich .hero-metrics__item:hover {
  background: var(--copper-100);
}

.hero-metrics__icon {
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--copper-600);
  background: var(--copper-100);
  border-radius: var(--radius-sm);
}

.hero-metrics__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.hero-metrics__label {
  grid-column: 2;
}

.hero-metrics__value {
  grid-column: 2;
}

.hero-metrics__sub {
  grid-column: 2;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.hero-metrics__item--accent {
  background: linear-gradient(135deg, rgb(255 237 213 / 0.55), var(--white));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem 0.4rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgb(34 197 94 / 0.5);
  animation: hero-pulse 2s ease-out infinite;
}

@keyframes hero-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(34 197 94 / 0.45);
  }

  70% {
    box-shadow: 0 0 0 8px rgb(34 197 94 / 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(34 197 94 / 0);
  }
}

.hero-title__accent {
  color: var(--copper-600);
}

.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
}

.hero-step__n {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper-700);
  background: var(--copper-100);
  border: 1px solid rgb(180 83 9 / 0.25);
  border-radius: 50%;
}

.hero-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-rail__chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--slate-700);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hero-rail__chip--rating {
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}

.hero-rail__value {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.hero-rail__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.hero-rail__avatars {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.hero-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-band__tile {
  padding: 1.15rem 1.25rem;
  background: var(--white);
}

.hero-band__tile--accent {
  background: linear-gradient(135deg, rgb(255 237 213 / 0.45), var(--white));
}

.hero-band__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.hero-band__value {
  display: block;
  margin: 0.25rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-band__meta {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.hero-layout--visual-first {
  align-items: stretch;
}

.hero-schematic--compact {
  min-height: 14rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-trust__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}

.hero-trust__stars {
  color: var(--amber-400);
  letter-spacing: 0.05em;
}

.hero-trust__avatars {
  display: flex;
  align-items: center;
}

.hero-trust__avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: -0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  background: var(--copper-600);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

.hero-trust__avatar:first-child {
  margin-left: 0;
}

.hero-trust__avatar--more {
  background: var(--ink);
  font-size: 0.58rem;
}

.hero-trust__caption {
  flex: 1 1 12rem;
  font-size: 0.8125rem;
  color: var(--slate-600);
}

.hero-visual-stack {
  position: relative;
  display: grid;
  gap: 0;
}

.hero-schematic {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.35rem 1.25rem;
}

.hero-schematic__title {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.hero-schematic__path--ghost {
  stroke: var(--border);
  stroke-dasharray: 6 8;
}

.hero-schematic__node--active {
  fill: var(--copper-100);
  stroke-width: 3;
}

.hero-schematic__legend {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.hero-schematic__swatch {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  vertical-align: middle;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.hero-schematic__swatch--active {
  background: var(--copper-600);
  border-color: var(--copper-600);
}

.hero-float-card__up {
  font-weight: 700;
  color: #15803d;
}

/* Coverage bento */
.coverage-snapshot {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coverage-snapshot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 237 213 / 0.25), transparent);
  pointer-events: none;
}

.coverage-snapshot__head {
  position: relative;
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.coverage-snapshot__head .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-600);
}

.coverage-snapshot__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.coverage-snapshot__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.coverage-bento {
  position: relative;
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.coverage-bento__cell {
  margin: 0;
  padding: 1.5rem 1.35rem;
  background: var(--paper);
  transition: background 0.25s var(--ease-out);
}

.coverage-bento__cell:hover {
  background: var(--white);
}

.coverage-bento__index {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper-600);
}

.coverage-bento__cell h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
}

.coverage-bento__cell p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.coverage-bento__link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--copper-600);
}

.coverage-bento__link:hover {
  color: var(--copper-700);
}

.coverage-bento__cell--stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--copper-100), var(--white));
}

.coverage-bento__stat {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--copper-600);
}

.coverage-bento__stat-label {
  margin-top: 0.5rem !important;
}

.coverage-bento__cell--dark {
  color: var(--white);
  background: var(--ink);
}

.coverage-bento__cell--dark h3,
.coverage-bento__cell--dark p,
.coverage-bento__cell--dark .coverage-bento__index {
  color: inherit;
}

.coverage-bento__cell--dark p {
  color: rgb(255 255 255 / 0.72);
}

.coverage-bento__cell--dark .coverage-bento__link {
  color: var(--copper-100);
}

.coverage-bento__cell--chart {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 10rem;
}

.coverage-bento__chart-title {
  margin: 0 0 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coverage-bento__bars {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 5rem;
}

.coverage-bento__bars span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--copper-500), var(--copper-600));
  border-radius: 4px 4px 0 0;
}

.coverage-bento__chart-note {
  margin-top: 0.65rem !important;
  font-size: 0.7rem !important;
  color: var(--slate-400) !important;
}

.coverage-bento__steps {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.coverage-bento__steps li + li {
  margin-top: 0.35rem;
}

.coverage-bento__cell--timeline {
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.coverage-bento__quote {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.coverage-bento__cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--slate-600);
}

.coverage-bento__checks {
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.coverage-bento__checks li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.coverage-bento__checks li + li {
  margin-top: 0.4rem;
}

.coverage-bento__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--copper-600);
  border-radius: 2px;
}

.coverage-bento__cell--checklist h3 {
  margin-bottom: 0.25rem;
}

.coverage-bento__cell--tall {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-metrics--rich {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .hero-band {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero-metrics--rich {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-layout--visual-first {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .coverage-bento--mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, minmax(7rem, auto));
  }

  .coverage-bento--mosaic .coverage-bento__cell--tall {
    grid-column: 1 / span 2;
    grid-row: 1 / span 3;
  }

  .coverage-bento--mosaic .coverage-bento__cell--wide {
    grid-column: 3 / span 4;
    grid-row: 1 / span 2;
  }

  .coverage-bento--mosaic .coverage-bento__cell--timeline {
    grid-column: 3 / span 2;
    grid-row: 3;
  }

  .coverage-bento--mosaic .coverage-bento__cell--quote {
    grid-column: 5 / span 2;
    grid-row: 3;
  }

  .coverage-bento--mosaic .coverage-bento__cell--checklist {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  .coverage-bento--mosaic .coverage-bento__cell--chart {
    grid-column: 5 / span 2;
    grid-row: 2;
  }
}

@media (max-width: 899px) {
  .coverage-bento--mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .coverage-bento--mosaic .coverage-bento__cell--tall,
  .coverage-bento--mosaic .coverage-bento__cell--wide {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow__pulse {
    animation: none;
  }
}

/* Checkout / integration spotlight */
.integration-spotlight {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.integration-spotlight-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.integration-spotlight-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 75%);
}

.integration-spotlight-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.integration-spotlight-orb--1 {
  top: -10%;
  left: -5%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: rgb(13 148 136 / 0.35);
}

.integration-spotlight-orb--2 {
  right: -8%;
  bottom: -20%;
  width: min(360px, 45vw);
  height: min(360px, 45vw);
  background: rgb(45 212 191 / 0.2);
}

.integration-spotlight-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.integration-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-300);
  background: rgb(45 212 191 / 0.12);
  border: 1px solid rgb(45 212 191 / 0.25);
  border-radius: 999px;
}

.integration-eyebrow-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.integration-spotlight-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}

.integration-spotlight-copy h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-300);
}

.integration-lead {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.72);
}

.integration-points {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.integration-points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.78);
}

.integration-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
}

.integration-ui {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}

.integration-ui-glow {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at center, rgb(45 212 191 / 0.45), transparent 65%);
  filter: blur(24px);
}

.integration-card {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 60px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(255 255 255 / 0.08);
}

.integration-card-label {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.integration-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.integration-toggle-state {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-500);
}

.integration-toggle-track {
  display: block;
  width: 3.25rem;
  height: 1.75rem;
  padding: 3px;
  border-radius: 999px;
  background: var(--teal-500);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.12);
}

.integration-toggle-thumb {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: auto;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}

.integration-product {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.integration-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--teal-500);
  background: rgb(13 148 136 / 0.1);
  border-radius: var(--radius-md);
}

.integration-shield svg {
  width: 24px;
  height: 24px;
}

.integration-product strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy-950);
}

.integration-product span {
  font-size: 0.8125rem;
  color: var(--teal-600);
  font-weight: 500;
}

.integration-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-600);
}

/* Carriers marquee band — same surface as .global--showcase */
.carriers-band {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.global--showcase::before,
.carriers-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 85%, rgb(180 83 9 / 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 15%, rgb(217 119 6 / 0.12), transparent 55%);
}

.carriers-band-head,
.carriers-marquee-wrap,
.carriers-tags {
  position: relative;
  z-index: 1;
}

.carriers-band-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.carriers-band-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.carriers-band-head h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--copper-500), transparent);
}

.carriers-band-lead {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.72);
}

.carriers-marquee-wrap {
  position: relative;
  margin-bottom: 2.25rem;
}

.carriers-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(120px, 12vw);
  pointer-events: none;
}

.carriers-marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--navy-950), transparent);
}

.carriers-marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, var(--navy-950), transparent);
}

.carriers-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.carriers-marquee-track {
  display: flex;
  width: max-content;
  animation: carriers-scroll-ltr 48s linear infinite;
}

.carriers-marquee-wrap:hover .carriers-marquee-track {
  animation-play-state: paused;
}

@keyframes carriers-scroll-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.carriers-marquee-list {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin: 0;
  padding: 0.75rem 1.75rem;
  list-style: none;
}

.carriers-marquee-list li {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.carriers-marquee-list img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(1.05);
}

.carriers-tags {
  text-align: center;
}

.carriers-tag-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carriers-tag {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-950);
  border-radius: 999px;
  white-space: nowrap;
}

.carriers-tag--ground {
  background: #d8e8f0;
}

.carriers-tag--express {
  background: #f5d9ce;
}

.carriers-tag--intl {
  background: #f2e8c8;
}

.carriers-tag--freight {
  background: #d5eddf;
}

.carriers-tag--lastmile {
  background: #e6dcf5;
}

.carriers-tag--regional {
  background: #d4e8f8;
}

@media (prefers-reduced-motion: reduce) {
  .carriers-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    gap: 1rem;
  }

  .carriers-marquee-list[aria-hidden="true"] {
    display: none;
  }

  .carriers-marquee {
    overflow: visible;
    mask-image: none;
  }

  .carriers-marquee-fade {
    display: none;
  }
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.cta-band-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cta-band-media {
  order: -1;
}

.cta-band-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

.cta-band-copy p {
  margin: 0;
  color: var(--slate-600);
  max-width: 52ch;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--slate-100);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}

.cta-form input {
  flex: 1;
  padding: 0.95rem 1.15rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy-950);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.cta-form input:focus {
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.2);
}

.cta-form .btn {
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-500);
}

.eyebrow--light {
  color: var(--teal-300);
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy-950);
  max-width: 18ch;
}

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

.section-header--center h2 {
  max-width: none;
  margin-inline: auto;
}

/* Solutions */
.solutions {
  background: var(--slate-50);
}

.solutions-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.solution-card {
  position: relative;
  padding: 2rem;
  padding-top: 0;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgb(13 148 136 / 0.25);
}

.solution-card--featured:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.solution-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
}

.solution-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-500);
  transition: gap 0.2s;
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

.link-arrow:hover {
  gap: 0.55rem;
}

.link-arrow:hover::after {
  transform: translateX(2px);
}

/* Global stats */
.global {
  position: relative;
  padding: 6rem 0;
  color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}

.global-visual {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: min(420px, 48vw);
  opacity: 0.55;
  pointer-events: none;
}

.global-inner {
  position: relative;
  z-index: 1;
}

.global .section-header h2 {
  color: var(--white);
  max-width: none;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.stat-card {
  padding: 2rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s;
}

.stat-card:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(45 212 191 / 0.3);
}

.stat-value {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal-300);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgb(255 255 255 / 0.65);
}

.global-eyebrow {
  color: var(--teal-300);
  margin-bottom: 0.75rem;
}

.global-lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.72);
}

.global--showcase .global-inner,
.global--showcase .global-visual {
  z-index: 1;
}

.global--showcase .stats-grid--cards {
  margin-top: 2.5rem;
}

.global--showcase .stat-card:nth-child(2) {
  border-color: rgb(45 212 191 / 0.35);
}

.global--reach {
  padding: 5rem 0;
  background:
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-950) 100%);
}

.global--reach .global-visual {
  display: none;
}

.global-inner--reach {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.global-reach-copy .global-eyebrow {
  margin-bottom: 0.5rem;
}

.global-reach-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.stats-strip {
  display: grid;
  gap: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(255 255 255 / 0.04);
}

.stat-item {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-item .stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.stat-item .stat-label {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.global-reach-visual {
  justify-self: center;
  width: min(280px, 72vw);
}

.media--global-thumb {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgb(45 212 191 / 0.35);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

.media--global-thumb img {
  border-radius: 50%;
}

/* Insights */
.insights {
  background: var(--white);
}

.insights-hero {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.insights-lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.insight-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

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

.insight-card--accent {
  background: linear-gradient(145deg, rgb(13 148 136 / 0.08), rgb(15 33 64 / 0.04));
  border-color: rgb(13 148 136 / 0.2);
}

.insight-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
  line-height: 1.25;
}

.insight-card p {
  margin: 0 0 1.25rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* Testimonials */
.testimonials {
  background: var(--slate-100);
}

.testimonials-slider {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
}

.testimonials-track {
  position: relative;
  min-height: 300px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}

.testimonial-slide[hidden] {
  display: none !important;
}

.testimonial-slide.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.testimonial-quote {
  margin: 0 0 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--navy-950);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
  border-radius: 50%;
  flex-shrink: 0;
}

.avatar--photo {
  display: block;
  padding: 0;
  object-fit: cover;
  background: var(--slate-200);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgb(10 22 40 / 0.12);
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--navy-950);
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--slate-600);
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-950);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.slider-btn:hover {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
  transform: scale(1.05);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--slate-200);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}

.slider-dot.is-active {
  width: 24px;
  border-radius: 4px;
  background: var(--teal-500);
}

/* Careers */
.careers {
  background: var(--white);
}

.careers-inner {
  display: grid;
  gap: 2.5rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--slate-50), var(--white));
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
}

.careers-inner--teaser {
  align-items: center;
}

.careers-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

.careers-copy p {
  margin: 0 0 1.75rem;
  color: var(--slate-600);
  max-width: 52ch;
  line-height: 1.7;
}

.careers-page {
  max-width: none;
}

.careers-header--page {
  margin-bottom: 2rem;
}

.careers-header--page .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.careers-header {
  max-width: 52rem;
}

.careers-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

.careers-remote {
  font-weight: 500;
  color: var(--teal-600);
}

.careers-intro {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.careers-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.careers-details p {
  margin: 0 0 1.5rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.careers-details h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.careers-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.careers-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.careers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

.careers-visual {
  margin-top: 0.5rem;
  max-width: 420px;
}

.careers-apply {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.careers-apply h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-950);
}

.careers-apply > p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.careers-apply .form-success {
  margin-top: 0;
}

.careers-apply .form-success h4 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 0;
  background: var(--navy-950);
  color: rgb(255 255 255 / 0.65);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.footer-brand {
  max-width: 22rem;
}

.footer-brand .logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.logo--footer .logo-text {
  color: var(--white);
}

.footer-tagline {
  margin: 0 0 1.25rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.55);
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.9);
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  pointer-events: none;
  user-select: none;
}

.footer-trust-stars {
  display: flex;
  gap: 1px;
  color: var(--amber-400);
}

.footer-trust-stars svg {
  width: 13px;
  height: 13px;
}

.footer-trust-google svg {
  width: 16px;
  height: 16px;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgb(255 255 255 / 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal-300);
}

.footer-contact {
  margin: 0;
  line-height: 1.7;
}

.footer-contact a {
  color: rgb(255 255 255 / 0.75);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--teal-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 1.75rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.45);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--white);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

@media (prefers-reduced-motion: no-preference) {
  .solution-card,
  .industry-card,
  .why-card,
  .insight-card,
  .stat-card,
  .careers-inner--teaser,
  .contact-card,
  .product-block {
    transition:
      transform 0.4s var(--ease-out),
      box-shadow 0.4s var(--ease-out);
  }

  .solution-card:hover,
  .industry-card:hover,
  .why-card--accent:hover,
  .why-card--value:hover,
  .why-card:hover,
  .insight-card:hover {
    transform: translateY(-4px);
  }

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

  .media img {
    transition: transform 0.5s var(--ease-out);
  }

  .solution-card:hover .media img,
  .industry-card:hover .media img {
    transform: scale(1.03);
  }
}

/* Responsive */
@media (min-width: 640px) {
  .cta-form {
    flex-direction: row;
    align-items: center;
  }

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

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    border-bottom: none;
    border-right: 1px solid rgb(255 255 255 / 0.1);
  }

  .stat-item:last-child {
    border-right: none;
  }

  .why-grid--icons {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid--values {
    grid-template-columns: repeat(2, 1fr);
  }

  .global-inner--reach {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2rem 3rem;
  }

  .global-reach-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .stats-strip {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-reach-visual {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }

  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .integration-spotlight-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .integration-ui {
    margin-inline: 0 0 auto;
  }

  .cta-band-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "media copy"
      "media form";
  }

  .cta-band-media {
    order: 0;
    grid-area: media;
  }

  .cta-band-copy {
    grid-area: copy;
  }

  .cta-band-inner > .cta-form {
    grid-area: form;
    align-self: start;
  }

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

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

  .careers-inner--teaser {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .careers-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

}

@media (min-width: 1024px) {
  .hero-panel {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  .hero:not(.hero--ledger) .hero-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .global-visual {
    opacity: 0.5;
    right: 5%;
  }
}

@media (max-width: 767px) {
  .header-actions .btn-primary {
    display: none;
  }

  .logo {
    font-size: 1.15rem;
    gap: 0.65rem;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
}

@media (max-width: 479px) {
  :root {
    --container: min(1200px, calc(100% - 2rem));
  }
}

/* ——— Inner pages ——— */
.site-header--solid {
  background: rgb(255 255 255 / 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.06);
}

.site-header--solid::before {
  opacity: 0;
}

.site-header--solid .logo-text {
  color: var(--navy-950);
}

.site-header--solid .nav-desktop a {
  color: var(--slate-600);
}

.site-header--solid .nav-desktop a:hover,
.site-header--solid .nav-desktop a.is-active {
  color: var(--navy-950);
}

.site-header--solid .nav-desktop a.is-active {
  font-weight: 500;
  border-bottom-color: var(--teal-500);
}

.site-header--solid .nav-toggle span {
  background: var(--navy-950);
}

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgb(255 237 213 / 0.55), transparent 55%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero h1 em {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 600;
  color: var(--copper-600);
}

.page-hero-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.breadcrumb a:hover {
  color: var(--copper-600);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  opacity: 0.5;
}

.page-section {
  padding: 4.5rem 0;
}

.page-section--alt {
  background: var(--white);
}

.page-section--muted {
  background: var(--slate-100);
}

/* Inner pages: one horizontal grid with header/logo */
.page-hero .container,
.page-section > .container,
.page-cta > .container,
.global-inner:not(.global-inner--reach),
.global-inner--reach {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
}

.page-hero .breadcrumb,
.page-hero h1,
.page-hero-lead,
.content-narrow {
  max-width: 40rem;
}

.container.content-wide.prose > * {
  max-width: 52rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy-950);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose--accent-bar {
  padding-left: 1.75rem;
  border-left: 4px solid var(--teal-500);
}

.prose p {
  margin: 0 0 1rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--slate-600);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  color: var(--slate-600);
}

.prose ol li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--teal-500);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--navy-800);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--slate-400);
  margin: 0 0 1.5rem;
}

.legal-table {
  width: 100%;
  margin: 1.25rem 0 1.75rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--slate-200);
}

.legal-table th {
  font-weight: 600;
  color: var(--navy-950);
  background: var(--slate-100);
}

.legal-table code {
  font-size: 0.8125rem;
  word-break: break-word;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-950);
}

@media (max-width: 767px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.why-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.why-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
}

.why-grid--accent {
  gap: 1.5rem;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-950);
}

.why-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: rgb(13 148 136 / 0.1);
  color: var(--teal-500);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-grid--icons {
  margin-top: 2.5rem;
}

.why-card--accent,
.why-card--value {
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    border-color 0.35s;
}

.why-card--accent:hover,
.why-card--value:hover {
  border-color: rgb(13 148 136 / 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.why-card--value {
  position: relative;
  padding-top: 2.25rem;
}

.why-value-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-500);
  opacity: 0.65;
}

.product-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.product-block:last-child {
  border-bottom: none;
}

.product-block .media {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
}

.product-block h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-950);
}

.product-block p {
  margin: 0 0 1rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.product-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.product-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
}

.industry-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4.5rem;
}

.industry-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.35s, transform 0.35s var(--ease-out);
}

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

.industry-card .media {
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
}

.industry-card .media::after {
  opacity: 0.85;
}

.industry-card-body {
  padding: 1.75rem 1.75rem 2rem;
}

.industry-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-950);
}

.industry-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.quote-block {
  margin: 2.5rem 0 0;
  padding: 2rem;
  background: var(--slate-50);
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block p {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy-950);
}

.quote-block cite {
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

.contact-form-wrap {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-950);
}

.contact-form-wrap > p {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-950);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  color: var(--navy-950);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.15);
  background: var(--white);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate-400);
}

.form-success {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgb(13 148 136 / 0.08);
  border: 1px solid rgb(13 148 136 / 0.25);
  border-radius: var(--radius-md);
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.form-success p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.contact-aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-card {
  padding: 1.5rem;
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.contact-card p,
.contact-card a {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.75);
}

.contact-card a:hover {
  color: var(--teal-300);
}

.page-cta {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: var(--white);
}

.page-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.page-cta p {
  margin: 0 auto 1.5rem;
  max-width: 42ch;
  color: rgb(255 255 255 / 0.72);
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
    margin-top: 5rem;
  }

  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .product-block {
    grid-template-columns: 1fr 1fr;
  }

  .product-block--reverse .product-block-copy {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Savings calculator (homepage section) ── */

.calc-section {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.calc-section--home {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 5.5rem);
  background: var(--paper);
}

.calc-section--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgb(180 83 9 / 0.04) 1px, transparent 1px),
    linear-gradient(rgb(180 83 9 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  pointer-events: none;
}

.calc-section--home .calc-wrap {
  position: relative;
  max-width: 960px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.calc-wrap {
  max-width: 960px;
}

.calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-header h1,
.calc-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--navy-950);
}

.calc-lead {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--slate-600);
  font-size: 1.05rem;
}

.calc-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.calc-input-grid {
  display: grid;
  gap: 1.75rem;
}

.calc-input-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
}

.calc-input-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.calc-range {
  --fill: 27%;
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  background: linear-gradient(
    to right,
    var(--teal-500) 0%,
    var(--teal-500) var(--fill),
    var(--slate-200) var(--fill),
    var(--slate-200) 100%
  );
  border-radius: 999px;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgb(13 148 136 / 0.35);
}

.calc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 2px 8px rgb(13 148 136 / 0.35);
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.calc-carrier-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--slate-100);
  border-radius: 999px;
  gap: 2px;
}

.calc-carrier-btn {
  padding: 0.55rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.calc-carrier-btn.is-active {
  background: var(--teal-500);
  color: var(--white);
}

.calc-panel--results {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.calc-results-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.calc-bar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-800);
}

.calc-bar-title--accent {
  color: var(--teal-500);
}

.calc-bar-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-800);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .calc-bar-header {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .calc-bar-amount {
    font-size: 1.1rem;
    white-space: normal;
    text-align: right;
    margin-left: auto;
  }
}

.calc-bar-amount--accent {
  color: var(--teal-500);
}

.calc-bar-track {
  background: var(--slate-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 2.75rem;
}

.calc-bar-fill {
  --bar-w: 100%;
  width: var(--bar-w);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  border-radius: var(--radius-md);
}

.calc-bar-fill--carrier {
  background: var(--slate-400);
}

.calc-bar-fill--isens {
  background: var(--teal-500);
}

.calc-bar-fill-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
}

.calc-bar-fill.is-animated {
  transition: width 0.35s var(--ease-out);
}

.calc-savings-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--teal-500);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-height: 7rem;
}

.calc-savings-percent {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
}

.calc-savings-percent-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.95;
}

.calc-stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calc-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.calc-stat-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
}

.calc-stat-value {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--teal-500);
}

.calc-stat-value--annual {
  color: var(--amber-400);
  filter: saturate(1.2);
}

.calc-stat-value--compact {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.calc-cta {
  text-align: center;
}

.calc-cta-btn {
  min-width: min(100%, 22rem);
}

.calc-note {
  margin: 1.25rem auto 0;
  max-width: 52ch;
  font-size: 0.8rem;
  color: var(--slate-400);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .calc-input-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-input-group--toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .calc-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .calc-panel {
    padding: 2rem 2.25rem;
  }

  .calc-panel--results {
    grid-template-columns: 1fr min(11rem, 28%);
  }
}

/* ——— 404 error page ——— */
.error-body {
  background: var(--navy-950);
  color: var(--white);
}

.error-body .site-header {
  z-index: 110;
}

.error-body .site-header--solid {
  background: rgb(255 255 255 / 0.98);
  border-bottom: 1px solid var(--slate-200);
}

.error-body .site-header--solid .logo-text {
  color: var(--navy-950);
}

.error-body .site-header--solid .logo-accent {
  color: var(--teal-600);
}

.error-body .site-header--solid .nav-desktop a {
  color: var(--slate-700);
  text-shadow: none;
}

.error-body .site-header--solid .nav-desktop a:hover,
.error-body .site-header--solid .nav-desktop a.is-active {
  color: var(--navy-950);
}

.error-body .site-header--solid .nav-toggle span {
  background: var(--navy-950);
}

.error-main {
  min-height: calc(100svh - var(--header-h));
}

.error-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.error-scene__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.error-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 75%);
}

.error-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.error-orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  right: -6%;
  background: var(--teal-500);
  animation: error-orb-drift 14s ease-in-out infinite;
}

.error-orb--2 {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: -8%;
  background: var(--navy-700);
  animation: error-orb-drift 18s ease-in-out infinite reverse;
}

.error-orb--3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 45%;
  background: var(--amber-400);
  opacity: 0.18;
  animation: error-orb-drift 11s ease-in-out infinite 2s;
}

@keyframes error-orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(24px, -18px) scale(1.06);
  }
}

.error-scene__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.error-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 260px;
  max-width: 380px;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
}

.error-radar {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 1;
}

.error-radar__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(45 212 191 / 0.22);
  border-radius: 50%;
}

.error-radar__ring--2 {
  inset: 14%;
  border-color: rgb(45 212 191 / 0.16);
}

.error-radar__ring--3 {
  inset: 28%;
  border-color: rgb(45 212 191 / 0.1);
}

.error-radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgb(13 148 136 / 0.35) 42deg,
    transparent 84deg
  );
  animation: error-radar-spin 5s linear infinite;
  mask-image: radial-gradient(circle, black 30%, transparent 72%);
}

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

.error-radar__blip {
  position: absolute;
  top: 22%;
  right: 26%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 16px var(--amber-400);
  animation: error-blip-pulse 2s ease-in-out infinite;
}

@keyframes error-blip-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.error-radar__core {
  position: absolute;
  inset: 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
  background: rgb(10 22 40 / 0.85);
  border: 1px solid rgb(45 212 191 / 0.35);
  border-radius: 50%;
  box-shadow: 0 0 40px rgb(13 148 136 / 0.25);
}

.error-radar__core svg {
  width: 52%;
  height: 52%;
}

.error-float {
  position: absolute;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04));
  border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: var(--shadow-lg);
}

.error-float--1 {
  width: 48px;
  height: 36px;
  top: 6%;
  left: 2%;
  animation: error-float 7s ease-in-out infinite;
}

.error-float--2 {
  width: 40px;
  height: 40px;
  bottom: 10%;
  right: 4%;
  animation: error-float 8.5s ease-in-out infinite 1s;
}

.error-float--3 {
  width: 32px;
  height: 44px;
  top: 58%;
  right: 0;
  animation: error-float 6.5s ease-in-out infinite 0.5s;
}

@keyframes error-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}

.error-copy {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

.error-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
}

.error-code {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  margin: 0 0 0.5rem;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgb(255 255 255 / 0.08);
  user-select: none;
}

.error-code__digit--mid {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgb(45 212 191 / 0.35);
  transform: translateY(-0.06em);
}

.error-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.error-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--teal-300);
}

.error-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.72);
}

.error-tracking {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.error-tracking__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.875rem;
}

.error-tracking__row:last-of-type {
  margin-bottom: 1rem;
}

.error-tracking__label {
  color: rgb(255 255 255 / 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  font-weight: 600;
}

.error-tracking__value {
  font-weight: 600;
  color: rgb(255 255 255 / 0.88);
}

.error-tracking__value--alert {
  color: var(--amber-400);
}

.error-tracking__bar {
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}

.error-tracking__bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-400));
  animation: error-tracking-progress 2.8s ease-in-out infinite;
}

@keyframes error-tracking-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(280%);
  }
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.error-btn-outline {
  color: var(--white);
  border-color: rgb(255 255 255 / 0.35);
}

.error-btn-outline:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.55);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.error-links a {
  color: var(--teal-300);
  transition: color 0.2s;
}

.error-links a:hover {
  color: var(--white);
}

.error-links span {
  color: rgb(255 255 255 / 0.25);
}

.error-footer {
  padding: 1.5rem 0 2rem;
  background: transparent;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.error-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.4);
}

@media (min-width: 768px) {
  .error-scene {
    padding: 3rem 0 5rem;
  }

  .error-scene__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem 4rem;
  }

  .error-visual {
    order: 2;
    min-height: 340px;
    max-width: none;
    margin-inline: 0;
  }

  .error-copy {
    order: 1;
    max-width: none;
    margin-inline: 0;
  }

  .error-radar {
    width: min(360px, 100%);
  }
}

@media (min-width: 1100px) {
  .error-scene__inner {
    gap: 4rem 5rem;
    max-width: 1120px;
    margin-inline: auto;
  }

  .error-visual {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  .error-scene {
    padding-top: 1.5rem;
  }

  .error-scene__inner {
    text-align: center;
  }

  .error-code {
    justify-content: center;
    margin-bottom: 0.25rem;
  }

  .error-tracking {
    text-align: left;
  }

  .error-actions {
    justify-content: center;
  }

  .error-actions .btn-lg {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .error-links {
    justify-content: center;
  }
}

/* ——— Cookie consent banner ——— */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 0 0 max(0.75rem, env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.45s var(--ease-out),
    opacity 0.35s var(--ease-out);
}

.cookie-banner.is-visible {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.15rem 1.35rem;
  background: rgb(255 255 255 / 0.98);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow:
    0 -8px 40px rgb(10 22 40 / 0.12),
    0 24px 48px rgb(10 22 40 / 0.08);
  backdrop-filter: blur(16px);
}

.cookie-banner__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.cookie-banner__text {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--slate-600);
}

.cookie-banner__text a {
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--navy-950);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  white-space: nowrap;
}

.cookie-banner__btn--secondary {
  color: var(--navy-950);
  background: var(--white);
  border: 1px solid var(--slate-300);
}

.cookie-banner__btn--secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

body.cookie-banner-open {
  padding-bottom: 7.5rem;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .cookie-banner__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
