:root {
  --ink: #303740;
  --paper: #f7f7f3;
  --lime: #d9ff24;
  --brand-blue: #303740;
  --brand-slate: #59616b;
}

body {
  background: var(--paper);
}

.nav {
  background: rgba(247, 247, 243, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: sticky;
  top: 0;
}

.logo-crop {
  position: relative;
  display: block;
  width: 45px;
  height: 54px;
  overflow: hidden;
  flex: 0 0 auto;
}

.logo-crop img {
  position: absolute;
  width: 145px;
  height: 145px;
  max-width: none;
  left: -51px;
  top: -21px;
  mix-blend-mode: multiply;
}

.brand-name {
  letter-spacing: -0.03em;
}

.brand-name > span {
  color: var(--brand-slate);
}

.hero h1,
.section-heading h2,
.diagnostic h2,
.about h2,
.final-cta h2 {
  text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 12px 28px rgba(48,55,64,.08);
  transform-style: preserve-3d;
}

.hero h1 em,
.section-heading em,
.final-cta em {
  color: #7b838b;
}

.hero-visual,
.services,
.final-cta {
  background: var(--brand-blue);
}

.hero-visual {
  perspective: 1000px;
  isolation: isolate;
}

.liquid {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 38% 42% 58% 62%;
  filter: blur(1px);
  opacity: .2;
  z-index: -1;
  animation: liquidMorph 12s ease-in-out infinite alternate;
}

.liquid-one {
  width: 440px;
  height: 440px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle at 35% 30%, var(--lime), transparent 62%);
}

.liquid-two {
  width: 360px;
  height: 360px;
  left: -100px;
  bottom: -80px;
  background: radial-gradient(circle at 65% 40%, #7993a8, transparent 68%);
  animation-delay: -4s;
}

.signal-card,
.symptom,
.service,
.direct-options > div,
.about-art {
  transform-style: preserve-3d;
  will-change: transform;
}

.signal-card {
  box-shadow: 0 24px 55px rgba(5, 8, 12, .34), 0 2px 0 rgba(255,255,255,.25) inset;
}

.card-a { transform: rotate(-5deg) translateZ(38px); }
.card-b { transform: rotate(5deg) translateZ(22px); }
.card-c { transform: rotate(3deg) translateZ(48px); }

.core {
  box-shadow: 0 0 0 12px rgba(217,255,36,.08), 0 28px 80px rgba(0,0,0,.35);
  animation: coreFloat 5s ease-in-out infinite;
}

.button,
.service > a {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.button:hover {
  transform: translateY(-3px) translateZ(12px);
  box-shadow: 0 14px 30px rgba(48,55,64,.18);
}

.symptom,
.method-steps article,
.service,
.direct-options > div {
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}

.symptom:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,.58);
}

.service:hover {
  transform: translateX(10px);
}

.diagnostic {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.diagnostic::before,
.final-cta::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 55% 45% 38% 62% / 44% 58% 42% 56%;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
  animation: liquidMorph 15s ease-in-out infinite alternate;
  pointer-events: none;
}

.diagnostic::before {
  right: -170px;
  bottom: -220px;
  z-index: -1;
}

.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final-cta::before {
  left: -210px;
  top: -210px;
  background: radial-gradient(circle at 60% 60%, rgba(217,255,36,.25), transparent 65%);
  z-index: -1;
}

.reveal {
  opacity: 0;
  transform: translateY(38px) rotateX(4deg) scale(.985);
  transform-origin: center bottom;
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}

.scroll-meter i {
  display: block;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 100%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(217,255,36,.7);
}

@keyframes liquidMorph {
  0% { border-radius: 42% 58% 63% 37% / 38% 42% 58% 62%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 63% 37% 42% 58% / 60% 36% 64% 40%; transform: rotate(12deg) scale(1.08); }
  100% { border-radius: 35% 65% 55% 45% / 46% 62% 38% 54%; transform: rotate(-8deg) scale(.96); }
}

@keyframes coreFloat {
  0%,100% { transform: translate(-50%,-50%) translateY(0); }
  50% { transform: translate(-50%,-50%) translateY(-12px); }
}

@media (max-width: 900px) {
  .brand-name { display: block; }
  .nav { height: 76px; }
  .liquid { opacity: .14; }
}

@media (max-width: 560px) {
  .logo-crop { width: 40px; height: 48px; }
  .logo-crop img { width: 129px; height: 129px; left: -45.5px; top: -19px; }
  .brand-name { font-size: .83rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
