:root {
  --brand-cyan: #00c3d0;
  --brand-teal: #00c8b3;
  --brand-green: #34c759;
  --brand-ink: #0f172a;
  --mm-paper: #faf6ec;
  --mm-unit: 3px;
  --mm-line-minor: rgba(218, 145, 52, 0.05);
  --mm-line-mid: rgba(206, 126, 29, 0.05);
  --mm-line-major: rgba(186, 104, 17, 0.05);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  background-color: var(--mm-paper);
  background-image:
    radial-gradient(1450px 980px at 10% -14%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(1100px 820px at 102% 22%, rgba(168, 118, 54, 0.06) 0%, rgba(168, 118, 54, 0) 70%),
    repeating-linear-gradient(45deg, rgba(126, 83, 33, 0.02) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(126, 83, 33, 0.014) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, var(--mm-line-major) 0 1.2px, transparent 1.2px calc(var(--mm-unit) * 10)),
    repeating-linear-gradient(90deg, var(--mm-line-major) 0 1.2px, transparent 1.2px calc(var(--mm-unit) * 10)),
    repeating-linear-gradient(0deg, var(--mm-line-mid) 0 1px, transparent 1px calc(var(--mm-unit) * 5)),
    repeating-linear-gradient(90deg, var(--mm-line-mid) 0 1px, transparent 1px calc(var(--mm-unit) * 5)),
    repeating-linear-gradient(0deg, var(--mm-line-minor) 0 1px, transparent 1px var(--mm-unit)),
    repeating-linear-gradient(90deg, var(--mm-line-minor) 0 1px, transparent 1px var(--mm-unit));
  background-attachment: fixed;
  background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal;
}

.header-tagline {
  display: inline-block;
  margin-top: 2.3rem;
}

.header-cursor {
  display: inline-block;
  margin-left: 0.08em;
  vertical-align: baseline;
  color: currentColor;
  animation: header-cursor-blink 1s steps(1, end) infinite;
}

.bg-orb {
  pointer-events: none;
  position: fixed;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(68px);
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.bg-orb-cyan {
  top: -160px;
  left: -100px;
  height: 420px;
  width: 420px;
  background: radial-gradient(circle at center, rgba(178, 144, 97, 0.72) 0%, rgba(178, 144, 97, 0) 65%);
}

.bg-orb-green {
  right: -120px;
  top: 180px;
  height: 400px;
  width: 400px;
  background: radial-gradient(circle at center, rgba(129, 99, 63, 0.62) 0%, rgba(129, 99, 63, 0) 70%);
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1rem;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.35);
}

.site-header {
  box-shadow:
    0 12px 30px -22px rgba(15, 23, 42, 0.56),
    0 3px 10px -8px rgba(15, 23, 42, 0.36);
}

.services-carousel {
  position: relative;
}

.services-carousel-viewport {
  overflow: hidden;
  margin: 0 -0.5rem;
}

.services-carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.services-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 0.5rem;
  display: flex;
}

.services-carousel-slide > .panel {
  width: 100%;
  height: 100%;
}

.services-carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.24);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.services-carousel-dot[aria-pressed="true"] {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  transform: scale(1.15);
}

.services-carousel-dot:hover {
  border-color: rgba(15, 23, 42, 0.48);
}

.hero-graph-shell {
  position: relative;
  height: clamp(300px, 46vw, 440px);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  overflow: hidden;
  background: radial-gradient(circle at 24% 18%, rgba(0, 200, 179, 0.24), rgba(2, 2, 8, 0.92) 45%);
}

.hero-graph-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 0;
}

.hero-hud {
  position: absolute;
  top: 1.14rem;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.hero-hud > div {
  white-space: nowrap;
}

.hero-hud-plate {
  position: absolute;
  top: 0.78rem;
  left: 0.72rem;
  right: 0.72rem;
  height: 4rem;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  background: linear-gradient(180deg, rgba(2, 8, 20, 0.62), rgba(2, 8, 20, 0.4));
  backdrop-filter: blur(4px);
}

.hero-hud-left {
  left: 1.2rem;
  text-align: left;
}

.hero-hud-right {
  right: 1.2rem;
  text-align: right;
}

.hero-hud-label {
  color: rgba(255, 255, 255, 0.64);
}

.hero-hud-val {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.3s;
}

.hero-hud-ok {
  color: rgba(120, 247, 165, 0.96);
}

.hero-hud-warn {
  color: rgba(255, 200, 80, 0.96);
}

.hero-hud-bad {
  color: rgba(255, 96, 96, 0.98);
}

.hero-graph-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(2, 2, 8, 0.6) 100%),
    linear-gradient(to top, rgba(2, 2, 8, 0.58), transparent 38%);
}

.hero-graph-meta {
  pointer-events: none;
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 3;
}

.mesh {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.fade-rise {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-rise 0.65s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

@keyframes fade-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .fade-rise {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .header-cursor {
    animation: none;
    opacity: 1;
  }

  .services-carousel-track {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .hero-graph-shell {
    height: clamp(380px, 34vw, 460px);
  }
}

@media (min-width: 768px) {
  .services-carousel-slide {
    flex-basis: 50%;
    min-width: 50%;
  }
}

@media (max-width: 767px) {
  .hero-hud-right {
    display: none;
  }

  .hero-hud-plate {
    right: auto;
    max-width: calc(100% - 1.44rem);
    width: clamp(240px, 78vw, 420px);
    height: 3.75rem;
  }

  .hero-hud {
    font-size: 10px;
    line-height: 1.55;
    top: 1.08rem;
  }
}
