:root {
  color-scheme: dark;
  --bg: #020303;
  --bg-2: #070808;
  --ink: #fff8ef;
  --muted: rgba(255, 248, 239, 0.56);
  --quiet: rgba(255, 248, 239, 0.46);
  --line: rgba(255, 248, 239, 0.13);
  --line-strong: rgba(255, 109, 9, 0.55);
  --panel: rgba(2, 3, 3, 0.78);
  --panel-strong: rgba(8, 9, 9, 0.92);
  --heading-ink: rgba(255, 248, 239, 0.82);
  --orange: #ff6d09;
  --orange-soft: #ffd9c2;
  --glow: rgba(255, 109, 9, 0.34);
  --glow-strong: rgba(255, 109, 9, 0.58);
  --rail: 12vw;
  --chrome-pad: clamp(12px, 1.6vw, 28px);
  --section-pad: clamp(40px, 5.6vh, 64px);
  --section-pad-compact: clamp(32px, 4.8vh, 52px);
  --section-gap: clamp(18px, 2.4vh, 30px);
  --max: none;
  --ui-font: "Geist", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 10%, rgba(255, 109, 9, 0.16), transparent 24rem),
    radial-gradient(circle at 12% 38%, rgba(255, 255, 255, 0.055), transparent 22rem),
    linear-gradient(140deg, #020303 0%, #070808 50%, #010101 100%);
  font-family: var(--ui-font);
}

body::before {
  position: fixed;
  inset: 0 var(--rail);
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(255, 248, 239, 0.12) calc(100% - 1px)),
    repeating-linear-gradient(90deg, rgba(255, 248, 239, 0.085) 0 1px, transparent 1px calc((100vw - (var(--rail) * 2)) / 8)),
    repeating-linear-gradient(0deg, rgba(255, 248, 239, 0.045) 0 1px, transparent 1px 92px);
  opacity: 0.42;
  mask-image: linear-gradient(to bottom, transparent 0, #000 9rem, #000 calc(100% - 7rem), transparent 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(0deg, rgba(255, 109, 9, 0.032) 0 1px, transparent 1px 4px);
  opacity: 0.72;
}

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

p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.72;
}

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

main,
.site-footer {
  width: 100%;
  max-width: none;
  padding-inline: var(--rail);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 var(--rail);
  background: rgba(2, 3, 3, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-family: var(--ui-font);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 248, 239, 0.18);
}

.brand-mark {
  width: 32px;
  height: 32px;
  background-image: url("assets/ezease-mark.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 18px rgba(255, 109, 9, 0.5));
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui-font);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a,
.footer-links a,
.button,
.text-link,
.mini-link {
  position: relative;
  isolation: isolate;
}

.nav-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--quiet);
  overflow: hidden;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.footer-links a:hover {
  color: var(--ink);
  border-color: rgba(255, 109, 9, 0.45);
  background: rgba(255, 109, 9, 0.08);
  box-shadow: 0 0 22px rgba(255, 109, 9, 0.16), inset 0 0 18px rgba(255, 109, 9, 0.06);
  transform: translateY(-1px);
}

.hero,
.section {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(54px, 8vw, 110px) 0;
}

.home-hero {
  display: block;
  width: calc(100% + (var(--rail) * 2));
  min-height: 200vh;
  min-height: 200svh;
  margin-right: calc(var(--rail) * -1);
  margin-left: calc(var(--rail) * -1);
  padding: 0;
  text-align: center;
}

.hero-viewport {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
}

.home-hero .motion-panel {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: 0;
}

.home-hero .rive-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero-rive-stage {
  padding: 0;
  border: 0;
  border-color: transparent;
  background: #020303;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-rive-stage::before,
.hero-rive-stage::after {
  display: none;
}

.hero-rive-frame {
  isolation: isolate;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-rive-frame::before,
.hero-rive-frame::after {
  display: none;
}

.hero-rive-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.hero-rive-stage[data-rive-status="loaded"] .hero-rive-canvas {
  opacity: 1;
}

.section.lab-rive-section {
  display: block;
  width: calc(100% + (var(--rail) * 2));
  min-height: 100vh;
  min-height: 100svh;
  margin-right: calc(var(--rail) * -1);
  margin-left: calc(var(--rail) * -1);
  padding: 0;
  scroll-margin-block: 0;
}

.lab-rive-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background: #020303;
}

.lab-rive-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.lab-rive-stage[data-rive-status="loaded"] .lab-rive-canvas {
  opacity: 1;
}

body.has-scroll-motion .lab-rive-section > * {
  opacity: 1;
  transform: none;
  transition: none;
}

.page-hero {
  min-height: 560px;
}

.hero-copy {
  min-width: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--heading-ink);
  font-family: var(--ui-font);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255, 248, 239, 0.08);
}

h1 + p,
h2 + p,
h3 + p,
h4 + p {
  margin-top: clamp(16px, 2vw, 26px);
}

h1 {
  max-width: 1100px;
  font-size: clamp(1.65rem, 2.9vw, 3.15rem);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.7vw, 3rem);
}

h2 {
  max-width: 1050px;
  font-size: clamp(1.18rem, 2vw, 2.25rem);
}

h3 {
  font-size: clamp(0.92rem, 1.2vw, 1.16rem);
}

h4 {
  font-size: 1.02rem;
}

.lead {
  max-width: 760px;
  margin-top: clamp(20px, 2.6vh, 34px);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
}

.signal-label,
.panel-label,
.eyebrow,
.status-pill,
.audio-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 16px;
  color: var(--orange-soft);
  font-family: var(--ui-font);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 109, 9, 0.28);
}

.signal-label::before,
.panel-label::before,
.eyebrow::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--glow-strong);
  content: "";
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vh, 48px);
}

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

@keyframes hudButtonBlink {
  0%,
  100% {
    filter: brightness(1);
  }

  18% {
    filter: brightness(1.5);
  }

  34% {
    filter: brightness(0.9);
  }

  54% {
    filter: brightness(1.24);
  }

  72% {
    filter: brightness(0.98);
  }
}

@keyframes hudMicroPop {
  0% {
    opacity: 0;
    transform: translate3d(-5px, 5px, 0) scale(0.56);
  }

  58% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.12);
  }

  100% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.button,
.text-link,
.mini-link,
.index-toggle,
.about-toggle,
.nav-action,
.social-link,
.service-tab,
.index-list a {
  backface-visibility: hidden;
}

.button::after,
.text-link::after,
.mini-link::after,
.index-toggle::after,
.about-toggle::after,
.nav-action::after,
.social-link::after,
.service-tab::after,
.index-list a::after {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 13px;
  height: 13px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0;
  transform: translate3d(-5px, 5px, 0) scale(0.56);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 180ms ease;
  content: "";
  pointer-events: none;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.mini-link:hover,
.mini-link:focus-visible,
.index-toggle:hover,
.index-toggle:focus-visible,
.about-toggle:hover,
.about-toggle:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.social-link:hover,
.social-link:focus-visible,
.service-tab:hover,
.service-tab:focus-visible,
.index-list a:hover,
.index-list a:focus-visible {
  animation: hudButtonBlink 560ms steps(2, end) 1;
}

.button:hover::after,
.button:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.mini-link:hover::after,
.mini-link:focus-visible::after,
.index-toggle:hover::after,
.index-toggle:focus-visible::after,
.about-toggle:hover::after,
.about-toggle:focus-visible::after,
.nav-action:hover::after,
.nav-action:focus-visible::after,
.social-link:hover::after,
.social-link:focus-visible::after,
.service-tab:hover::after,
.service-tab:focus-visible::after,
.service-tab.is-active::after,
.index-list a:hover::after,
.index-list a:focus-visible::after,
.index-toggle[aria-expanded="true"]::after,
.about-toggle[aria-expanded="true"]::after {
  opacity: 0.92;
  transform: translate3d(0, 0, 0) scale(1);
  animation: hudMicroPop 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.button:focus-visible,
.text-link:focus-visible,
.mini-link:focus-visible,
.index-toggle:focus-visible,
.about-toggle:focus-visible,
.nav-action:focus-visible,
.social-link:focus-visible,
.service-tab:focus-visible,
.index-list a:focus-visible {
  outline: 1px solid rgba(255, 109, 9, 0.7);
  outline-offset: 3px;
}

.button {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 248, 239, 0.16);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button::before,
.text-link::before,
.mini-link::before {
  display: none;
}

.button:hover,
.text-link:hover,
.mini-link:hover {
  color: #160702;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 30px rgba(255, 109, 9, 0.25), inset 0 0 18px rgba(255, 248, 239, 0.18);
  transform: translateY(-1px);
}

.button:hover::before,
.text-link:hover::before,
.mini-link:hover::before {
  display: none;
}

.button.primary {
  color: var(--ink);
  border-color: rgba(255, 248, 239, 0.22);
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 0 24px rgba(255, 109, 9, 0.12);
}

.button.primary:hover {
  color: #160702;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 34px rgba(255, 109, 9, 0.32), inset 0 0 18px rgba(255, 248, 239, 0.18);
}

.text-link,
.mini-link {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 10px;
  border: 1px solid rgba(255, 248, 239, 0.11);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.76);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  min-height: 84vh;
  min-height: 84svh;
  padding: var(--section-pad) 0;
  scroll-margin-block: 80px;
}

body.has-scroll-motion .section > * {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 760ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

body.has-scroll-motion .section > *:nth-child(2) {
  transition-delay: 120ms;
}

body.has-scroll-motion .section > *:nth-child(3) {
  transition-delay: 210ms;
}

body.has-scroll-motion .section.is-section-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.split-section,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  align-content: center;
}

.section-heading {
  max-width: 900px;
  margin-bottom: var(--section-gap);
}

.wide-heading {
  max-width: 1080px;
}

.section-heading-spacious {
  margin-bottom: clamp(24px, 3.4vh, 42px);
}

.services-section {
  display: grid;
  align-content: center;
  padding-top: var(--section-pad-compact);
  padding-bottom: var(--section-pad-compact);
}

.services-section .section-heading-spacious {
  margin-bottom: clamp(20px, 2.8vh, 30px);
}

.section.service-rive-section {
  display: block;
  width: calc(100% + (var(--rail) * 2));
  min-height: 0;
  margin-right: calc(var(--rail) * -1);
  margin-left: calc(var(--rail) * -1);
  padding: 0;
  scroll-margin-block: 0;
}

.service-rive-stage {
  position: relative;
  overflow: visible;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #000;
}

.service-rive-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.service-rive-stage[data-rive-status="loaded"] .service-rive-canvas {
  opacity: 1;
}

body.has-scroll-motion .service-rive-section > * {
  opacity: 1;
  transform: none;
  transition: none;
}

.section.pricing-rive-section {
  display: block;
  width: calc(100% + (var(--rail) * 2));
  min-height: 0;
  margin-right: calc(var(--rail) * -1);
  margin-left: calc(var(--rail) * -1);
  padding: 0;
  scroll-margin-block: 0;
}

.pricing-rive-stage {
  position: relative;
  overflow: visible;
  width: 100%;
  height: auto;
  min-height: 0;
  background: #000;
}

.pricing-rive-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.pricing-rive-stage[data-rive-status="loaded"] .pricing-rive-canvas {
  opacity: 1;
}

body.has-scroll-motion .pricing-rive-section > * {
  opacity: 1;
  transform: none;
  transition: none;
}

.section.contact-rive-section {
  display: block;
  width: calc(100% + (var(--rail) * 2));
  min-height: 100vh;
  min-height: 100svh;
  margin-right: calc(var(--rail) * -1);
  margin-left: calc(var(--rail) * -1);
  padding: 0;
  scroll-margin-block: 0;
}

.contact-rive-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  background: #020303;
}

.contact-rive-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  touch-action: pan-y;
  transition: opacity 260ms ease;
}

.contact-rive-stage[data-rive-status="loaded"] .contact-rive-canvas {
  opacity: 1;
}

body.has-scroll-motion .contact-rive-section > * {
  opacity: 1;
  transform: none;
  transition: none;
}

.copy-stack {
  display: grid;
  gap: clamp(18px, 2.5vh, 30px);
}

.section-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.42fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
  margin-bottom: clamp(52px, 7vw, 96px);
}

.section-intro-grid .section-heading {
  margin-bottom: 0;
}

.section-placeholder {
  --scroll-glow: 0.05;
  --scroll-grid-opacity: 0.7;
  --scroll-lift: 0px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  translate: 0 var(--scroll-lift);
  min-height: clamp(240px, 26vw, 360px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 109, 9, 0.15), transparent 12rem),
    linear-gradient(145deg, rgba(255, 248, 239, 0.055), transparent 42%),
    rgba(2, 3, 3, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.05), 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 34px rgba(255, 109, 9, var(--scroll-glow));
  transition: translate 120ms linear, border-color 220ms ease, box-shadow 220ms ease;
}

.section-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 239, 0.055) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(255, 248, 239, 0.035) 0 1px, transparent 1px 38px);
  opacity: var(--scroll-grid-opacity);
}

.section-placeholder::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 109, 9, 0.18);
  border-radius: 4px;
  content: "";
}

.section-placeholder.compact {
  min-height: clamp(190px, 18vw, 260px);
}

.section-placeholder.mini {
  width: min(100%, 620px);
  min-height: clamp(180px, 18vw, 250px);
  margin: 0 auto clamp(28px, 3.5vw, 48px);
}

.section-placeholder + .signal-label {
  margin-top: clamp(34px, 4vw, 58px);
}

.placeholder-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(42%, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 109, 9, 0.22);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 4%, var(--orange) 8% 18%, transparent 34%);
  box-shadow: 0 0 52px rgba(255, 109, 9, 0.22), inset 0 0 52px rgba(255, 109, 9, 0.08);
}

.placeholder-core::before,
.placeholder-core::after {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(255, 248, 239, 0.13);
  border-radius: 50%;
  content: "";
}

.placeholder-core::after {
  inset: 36%;
  border-color: rgba(255, 109, 9, 0.34);
}

.placeholder-caption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--quiet);
  font-family: var(--ui-font);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-rive-placeholder {
  --scroll-glow: 0.035;
  --scroll-grid-opacity: 0.58;
  --scroll-lift: 0px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  translate: 0 var(--scroll-lift);
  min-height: 168px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 109, 9, 0.13), transparent 8rem),
    linear-gradient(145deg, rgba(255, 248, 239, 0.045), transparent 44%),
    rgba(0, 0, 0, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.04), 0 0 22px rgba(255, 109, 9, var(--scroll-glow));
  transition: translate 120ms linear, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.card-rive-placeholder::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 239, 0.045) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(255, 248, 239, 0.03) 0 1px, transparent 1px 28px);
  opacity: var(--scroll-grid-opacity);
}

.card-rive-placeholder::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 109, 9, 0.16);
  border-radius: 4px;
  content: "";
}

.card-rive-placeholder .placeholder-core {
  width: min(44%, 112px);
}

.card-rive-placeholder .placeholder-caption {
  right: 12px;
  bottom: 10px;
  left: 12px;
  font-size: 0.55rem;
}

.hud-panel,
.motion-panel,
.service-card,
.tier-card,
.product-tile,
.lab-tile,
.detail-panel,
.form-shell,
.cta-band,
.contact-band,
.process-card,
.stat-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.08), transparent 34%),
    rgba(2, 3, 3, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.06), 0 28px 90px rgba(0, 0, 0, 0.32), 0 0 34px rgba(255, 109, 9, 0.055);
  backdrop-filter: blur(12px);
}

.motion-panel,
.rive-frame,
.tile-media,
.product-preview {
  position: relative;
  overflow: hidden;
}

.section .rive-frame {
  --scroll-glow: 0.05;
  --scroll-grid-opacity: 0.58;
  --scroll-lift: 0px;
  translate: 0 var(--scroll-lift);
  transition: translate 120ms linear, box-shadow 220ms ease;
}

.motion-panel {
  min-height: clamp(420px, 54vh, 520px);
  padding: 18px;
}

.rive-frame,
.product-preview {
  display: grid;
  place-items: center;
  min-height: clamp(340px, 45vh, 420px);
  border: 1px solid rgba(255, 248, 239, 0.12);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 109, 9, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
}

.section .rive-frame {
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.04), 0 0 30px rgba(255, 109, 9, var(--scroll-glow));
}

.rive-frame::before,
.tile-media::before,
.product-preview::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 248, 239, 0.065) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255, 248, 239, 0.04) 0 1px, transparent 1px 44px);
  opacity: var(--scroll-grid-opacity, 0.58);
  content: "";
}

.rive-frame::after,
.tile-media::after,
.product-preview::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 109, 9, 0.2);
  border-radius: 4px;
  box-shadow: inset 0 0 34px rgba(255, 109, 9, 0.07);
  content: "";
}

.home-hero .hero-rive-stage {
  padding: 0;
  border: 0;
  background: #020303;
  box-shadow: none;
  backdrop-filter: none;
}

.home-hero .hero-rive-frame {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero .hero-rive-stage::before,
.home-hero .hero-rive-stage::after,
.home-hero .hero-rive-frame::before,
.home-hero .hero-rive-frame::after {
  display: none;
}

.window-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.18);
}

.window-bar span:first-child {
  background: var(--orange);
  box-shadow: 0 0 14px var(--glow-strong);
}

.system-core {
  position: relative;
  z-index: 2;
  width: min(62%, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 109, 9, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 5%, var(--orange) 8% 16%, transparent 34%),
    radial-gradient(circle, rgba(255, 109, 9, 0.18), transparent 68%);
  box-shadow: 0 0 70px rgba(255, 109, 9, 0.22), inset 0 0 80px rgba(255, 109, 9, 0.08);
}

.system-core::before,
.system-core::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 50%;
  content: "";
}

.system-core::after {
  inset: 32%;
  border-color: rgba(255, 109, 9, 0.36);
  box-shadow: 0 0 24px rgba(255, 109, 9, 0.18);
}

.frame-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(18px, 2.2vw, 34px);
}

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

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

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

.service-card,
.process-card,
.stat-panel,
.detail-panel,
.form-shell {
  padding: clamp(28px, 4vw, 48px);
}

.service-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.service-console {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: stretch;
  min-height: clamp(385px, 46vh, 430px);
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 248, 239, 0.07), transparent 36%),
    rgba(2, 3, 3, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.05), 0 28px 90px rgba(0, 0, 0, 0.32), 0 0 34px rgba(255, 109, 9, 0.055);
  backdrop-filter: blur(12px);
}

.service-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.service-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 12px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.72);
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 220ms ease, color 180ms ease, background 220ms ease, transform 220ms ease;
}

.service-tab span {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 800;
}

.service-tab strong {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.16;
}

.service-tab:hover,
.service-tab.is-active {
  color: #160702;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 109, 9, 0.24), inset 0 0 16px rgba(255, 248, 239, 0.12);
  transform: translateX(3px);
}

.service-tab:hover span,
.service-tab.is-active span {
  color: rgba(22, 7, 2, 0.7);
}

.service-panel-stack {
  min-width: 0;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.66fr) minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 46px);
  align-items: center;
  min-height: 100%;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 5px;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 109, 9, 0.12), transparent 16rem),
    rgba(0, 0, 0, 0.5);
}

.service-panel[hidden] {
  display: none;
}

.service-panel .card-rive-placeholder {
  min-height: clamp(220px, 28vh, 300px);
  margin-bottom: 0;
}

.service-panel .card-rive-placeholder .placeholder-core {
  width: min(40%, 128px);
}

.service-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
}

.service-panel-copy h3 {
  font-size: clamp(1rem, 1.35vw, 1.28rem);
}

.service-panel-copy > p:not(.panel-label) {
  max-width: 560px;
  margin-top: clamp(14px, 1.7vw, 22px);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.58;
}

.service-panel-copy .panel-label {
  margin-top: 0;
}

.service-panel-copy .text-link {
  margin-top: clamp(24px, 3vw, 38px);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  transition: border-color 220ms ease, box-shadow 260ms ease, background 220ms ease, transform 260ms ease;
}

.service-stack .service-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.62fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 26px);
  align-items: center;
  opacity: 1;
  min-height: clamp(210px, 24vh, 250px);
  padding: clamp(14px, 1.8vw, 22px);
}

.service-stack .service-card:nth-child(even) .card-rive-placeholder {
  order: 2;
}

.service-stack .service-card:nth-child(even) .service-card-copy {
  order: 1;
}

.service-stack .card-rive-placeholder {
  min-height: clamp(132px, 16vh, 160px);
  margin-bottom: 0;
}

.service-stack .card-rive-placeholder .placeholder-core {
  width: min(42%, 86px);
}

.service-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}

.service-card-copy h3 {
  font-size: clamp(0.86rem, 1vw, 1.02rem);
}

.service-card-copy > p:not(.panel-label) {
  max-width: 600px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.service-card-copy .panel-label {
  min-height: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.58rem;
}

.service-card .text-link {
  margin-top: auto;
}

.service-stack .service-card .text-link {
  min-height: 30px;
  margin-top: clamp(14px, 1.8vw, 20px);
  padding: 0 8px;
  font-size: 0.62rem;
}

.service-card:hover {
  border-color: rgba(255, 109, 9, 0.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 109, 9, 0.14), transparent 12rem),
    rgba(2, 3, 3, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.07), 0 28px 90px rgba(0, 0, 0, 0.34), 0 0 36px rgba(255, 109, 9, 0.12);
  transform: translateY(-5px);
}

.service-card:hover .card-rive-placeholder {
  border-color: rgba(255, 109, 9, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 248, 239, 0.06), 0 0 28px rgba(255, 109, 9, 0.13);
  transform: translateY(-2px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-index, 0) * 15ms);
}

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

.reveal-on-scroll.reveal-from-left {
  transform: translate3d(-86px, 28px, 0);
}

.reveal-on-scroll.reveal-from-right {
  transform: translate3d(86px, 28px, 0);
}

.reveal-on-scroll.reveal-from-left.is-visible,
.reveal-on-scroll.reveal-from-right.is-visible {
  transform: translate3d(0, 0, 0);
}

.services-section.is-section-visible .service-card {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.service-stack .service-card:nth-child(1) {
  --reveal-index: 0;
}

.service-stack .service-card:nth-child(2) {
  --reveal-index: 1;
}

.service-stack .service-card:nth-child(3) {
  --reveal-index: 2;
}

.service-stack .service-card:nth-child(4) {
  --reveal-index: 3;
}

.service-card-copy > p:not(.panel-label),
.process-card p,
.detail-panel p,
.tile-body p,
.tier-card p {
  margin-top: clamp(12px, 1.6vw, 20px);
}

.detail-panel .panel-label,
.detail-panel .signal-label,
.detail-panel .status-pill,
.detail-panel .audio-badge {
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.tag-row span,
.status-pill,
.audio-badge {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 248, 239, 0.11);
  border-radius: 4px;
  color: var(--quiet);
  background: rgba(255, 248, 239, 0.035);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill,
.audio-badge {
  color: var(--orange-soft);
  border-color: rgba(255, 109, 9, 0.34);
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.pricing-section {
  display: grid;
  align-content: center;
  margin-top: clamp(26px, 5vw, 76px);
}

.tier-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(390px, 47vh, 440px);
  padding: clamp(20px, 2.6vw, 30px);
}

.tier-rive-placeholder {
  min-height: clamp(120px, 15vh, 160px);
  margin-bottom: clamp(18px, 2vh, 24px);
}

.tier-card.highlighted {
  border-color: rgba(255, 109, 9, 0.4);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 109, 9, 0.18), transparent 16rem),
    rgba(8, 9, 9, 0.9);
}

.tier-card h3 {
  font-size: clamp(1.55rem, 2.5vw, 2.55rem);
}

.tier-card h3 span {
  color: var(--quiet);
  font-family: var(--ui-font);
  font-size: 0.82rem;
}

.check-list,
.spec-list,
.plain-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li,
.spec-list li,
.plain-list li {
  padding: 14px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 248, 239, 0.028);
}

.check-list strong,
.spec-list strong,
.plain-list strong {
  color: var(--ink);
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-card {
  min-height: 300px;
}

.cta-band,
.contact-band {
  display: grid;
  align-content: center;
  min-height: 78vh;
  min-height: 78svh;
  padding: clamp(42px, 5.6vh, 68px);
  text-align: center;
}

.cta-band h2,
.contact-band h2 {
  margin-inline: auto;
}

.cta-band p,
.contact-band p {
  max-width: 760px;
  margin: 22px auto 0;
}

.product-tile,
.lab-tile {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.tile-media {
  min-height: 260px;
}

.tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 3vw, 30px);
}

.tile-body p {
  flex: 1;
}

.detail-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.detail-panel + .detail-panel {
  margin-top: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.meta-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 4px;
  background: rgba(255, 248, 239, 0.028);
}

.meta-grid dt {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 9px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.form-grid label,
.form-shell label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 239, 0.13);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.34);
  font: inherit;
}

input:disabled,
textarea:disabled,
select:disabled {
  color: rgba(255, 248, 239, 0.5);
  cursor: not-allowed;
  opacity: 0.78;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

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

.static-form-note {
  color: var(--quiet);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-block: 54px;
}

.site-footer p {
  margin-top: 12px;
  color: var(--quiet);
}

main {
  padding-bottom: max(var(--rail), 78px);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 0 var(--chrome-pad);
  background: transparent;
  pointer-events: none;
}

.topbar::before {
  content: "";
  display: none;
}

.topbar .brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 109, 9, 0.3);
}

.index-toggle,
.about-toggle,
.nav-action,
.social-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 248, 239, 0.14);
  border-radius: 4px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.78);
  font-family: var(--ui-font);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 0 14px rgba(255, 248, 239, 0.14);
  transition: border-color 180ms ease, box-shadow 220ms ease, color 180ms ease, transform 220ms ease, background 220ms ease;
}

.index-toggle,
.about-toggle,
.nav-action {
  pointer-events: auto;
}

.index-toggle::before,
.about-toggle::before,
.nav-action::before,
.social-link::before {
  display: none;
}

.index-toggle:hover,
.about-toggle:hover,
.nav-action:hover,
.social-link:hover {
  border-color: var(--orange);
  color: #160702;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 109, 9, 0.28), inset 0 0 16px rgba(255, 248, 239, 0.16);
  text-shadow: none;
  transform: translateY(-1px);
}

.index-toggle:hover::before,
.about-toggle:hover::before,
.nav-action:hover::before,
.social-link:hover::before {
  display: none;
}

.index-toggle[aria-expanded="true"],
.about-toggle[aria-expanded="true"] {
  color: #160702;
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 30px rgba(255, 109, 9, 0.28);
  text-shadow: none;
}

.chapter-index {
  position: fixed;
  top: 72px;
  right: var(--chrome-pad);
  z-index: 65;
  width: min(320px, 80vw);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px) scale(0.96);
  transform-origin: top right;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  will-change: transform, opacity;
}

body.is-index-open .chapter-index {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.index-panel,
.about-panel {
  display: grid;
  align-content: start;
  width: 100%;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 248, 239, 0.1);
  border-radius: 4px;
  background: rgba(2, 3, 3, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 34px rgba(255, 109, 9, 0.1);
  backdrop-filter: blur(16px);
}

.index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.kicker {
  margin: 0;
  color: #ffffff;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 109, 9, 0.3);
}

.index-list {
  display: grid;
  gap: 5px;
}

.index-list a {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(255, 248, 239, 0.08);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.index-list a::before {
  display: none;
}

.index-list a:hover {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 24px rgba(255, 109, 9, 0.24), inset 0 0 16px rgba(255, 248, 239, 0.12);
  transform: translateX(4px);
}

.index-list a:hover::before {
  display: none;
}

.index-list a:hover span,
.index-list a:hover em,
.index-list a:hover strong {
  color: #160702;
  text-shadow: none;
}

.index-list span,
.index-list em {
  color: var(--quiet);
  font-family: var(--ui-font);
  font-size: 0.7rem;
  font-style: normal;
}

.index-list em {
  display: none;
}

.index-list strong {
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 0 18px rgba(255, 248, 239, 0.1);
}

.socialbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--chrome-pad);
  color: var(--quiet);
  background: transparent;
  font-family: var(--ui-font);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  pointer-events: none;
}

.socialbar::before {
  content: "";
  display: none;
}

.about-hub {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.about-drawer {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(320px, 80vw);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom left;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  will-change: transform, opacity;
}

body.is-about-open .about-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-list {
  display: grid;
  gap: 5px;
}

.social-list .social-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 31px;
  padding: 0 10px;
  border-color: rgba(255, 248, 239, 0.08);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.7rem;
  pointer-events: auto;
}

.nav-action {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.72rem;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .hero,
  .page-hero,
  .split-section,
  .section-intro-grid,
  .detail-layout,
  .grid-2,
  .grid-3,
  .grid-4,
  .service-console,
  .service-stack,
  .service-stack .service-card,
  .service-panel,
  .tier-row,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-tab {
    grid-template-columns: 1fr;
    align-content: center;
    min-height: 54px;
    gap: 4px;
  }

  .service-stack .service-card:nth-child(even) .card-rive-placeholder,
  .service-stack .service-card:nth-child(even) .service-card-copy {
    order: initial;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .motion-panel {
    min-height: 420px;
  }

}

@media (max-width: 760px) {
  :root {
    --rail: 10vw;
    --section-pad: clamp(34px, 5.6vh, 48px);
    --section-pad-compact: clamp(30px, 4.8vh, 40px);
    --section-gap: 18px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    min-height: auto;
    padding-block: 16px;
  }

  .nav-links,
  .footer-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: clamp(1.5rem, 7.2vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.12rem, 5.4vw, 1.72rem);
  }

  .section p {
    font-size: 0.88rem;
    line-height: 1.56;
  }

  .hero,
  .section {
    padding-block: var(--section-pad);
  }

  .home-hero {
    width: calc(100% + (var(--rail) * 2));
    min-height: 200vh;
    min-height: 200svh;
    margin-right: calc(var(--rail) * -1);
    margin-left: calc(var(--rail) * -1);
    padding: 0;
  }

  .hero-viewport {
    padding: 0;
  }

  .home-hero .motion-panel {
    height: 100vh;
    height: 100svh;
  }

  .service-stack {
    gap: 18px;
  }

  .service-console {
    min-height: auto;
    padding: 10px;
    gap: 10px;
  }

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

  .service-tab {
    min-height: 36px;
    padding: 0 8px;
  }

  .service-tab span {
    font-size: 0.58rem;
  }

  .service-tab strong {
    font-size: 0.58rem;
  }

  .service-panel {
    gap: 10px;
    padding: 10px;
  }

  .service-panel .card-rive-placeholder {
    min-height: 108px;
  }

  .service-panel-copy h3 {
    font-size: 0.82rem;
  }

  .service-panel-copy > p:not(.panel-label) {
    margin-top: 8px;
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .service-panel-copy .panel-label {
    min-height: 20px;
    margin-bottom: 6px;
    font-size: 0.54rem;
  }

  .service-panel-copy .text-link {
    min-height: 28px;
    margin-top: 10px;
    font-size: 0.56rem;
  }

  .services-section {
    padding-block: 34px;
  }

  .services-section h2 {
    font-size: clamp(1.04rem, 4.4vw, 1.38rem);
  }

  .services-section .section-heading-spacious {
    margin-bottom: 14px;
  }

  .services-section .section-heading p:last-child {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .service-stack .service-card {
    min-height: auto;
    padding: 18px;
  }

  .service-stack .card-rive-placeholder {
    min-height: 160px;
  }

  .pricing-section {
    padding-block: 34px;
  }

  .pricing-section .section-heading-spacious {
    margin-bottom: 14px;
  }

  .pricing-section h2 {
    font-size: clamp(1rem, 4.6vw, 1.32rem);
  }

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

  .tier-card {
    min-height: auto;
    padding: 12px;
  }

  .tier-rive-placeholder {
    min-height: 84px;
    margin-bottom: 12px;
  }

  .tier-card .panel-label {
    min-height: 20px;
    margin-bottom: 6px;
    font-size: 0.5rem;
  }

  .tier-card h3 {
    font-size: clamp(0.98rem, 4.6vw, 1.2rem);
    line-height: 1.04;
  }

  .tier-card h3 span {
    display: block;
    margin-top: 3px;
    font-size: 0.52rem;
  }

  .tier-card p:not(.panel-label) {
    margin-top: 8px;
    font-size: 0.62rem;
    line-height: 1.38;
  }

  .tier-card .text-link {
    min-height: 26px;
    margin-top: 10px;
    padding: 0 6px;
    font-size: 0.5rem;
  }

  .tier-rive-placeholder .placeholder-caption {
    right: 8px;
    bottom: 7px;
    left: 8px;
    font-size: 0.46rem;
  }

  .reveal-on-scroll.reveal-from-left {
    transform: translate3d(-34px, 24px, 0);
  }

  .reveal-on-scroll.reveal-from-right {
    transform: translate3d(34px, 24px, 0);
  }

  .motion-panel,
  .rive-frame,
  .product-preview {
    min-height: 340px;
  }

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

  .button {
    width: 100%;
  }

  .topbar {
    min-height: auto;
    padding: 16px var(--chrome-pad);
  }

  .chapter-index {
    top: 66px;
    right: var(--chrome-pad);
    width: 80vw;
  }

  .socialbar {
    min-height: auto;
    padding: 0 var(--chrome-pad) 12px;
  }

  .about-drawer {
    width: 80vw;
  }

  .index-list a {
    grid-template-columns: 32px 1fr;
    min-height: 34px;
  }

  .social-list .social-link {
    min-height: 30px;
    font-size: 0.62rem;
  }

  .nav-action {
    min-height: 32px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.has-scroll-motion .section > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-placeholder,
  .section .rive-frame,
  .card-rive-placeholder {
    translate: 0;
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .text-link:hover,
  .text-link:focus-visible,
  .mini-link:hover,
  .mini-link:focus-visible,
  .index-toggle:hover,
  .index-toggle:focus-visible,
  .about-toggle:hover,
  .about-toggle:focus-visible,
  .nav-action:hover,
  .nav-action:focus-visible,
  .social-link:hover,
  .social-link:focus-visible,
  .service-tab:hover,
  .service-tab:focus-visible,
  .index-list a:hover,
  .index-list a:focus-visible {
    animation: none;
  }

  .button::after,
  .text-link::after,
  .mini-link::after,
  .index-toggle::after,
  .about-toggle::after,
  .nav-action::after,
  .social-link::after,
  .service-tab::after,
  .index-list a::after {
    transition: none;
  }
}
