:root {
  color-scheme: light;
  --ink: #0f2230;
  --ink-soft: #30424f;
  --mist: #e8efee;
  --cloud: #f6f7f5;
  --sage: #a3b7b1;
  --sea: #6a9a9a;
  --sea-deep: #2c5a63;
  --line: #d5dcd9;
  --accent: #6c8f96;
  --shadow: 0 24px 60px rgba(15, 34, 48, 0.12);
  --glow: rgba(108, 143, 150, 0.28);
  --header-h: 82px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  margin: 0 0 0.8rem;
  letter-spacing: 0.3px;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

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

ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.45rem;
}

.page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: var(--header-h);
}

main {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(246, 247, 245, 0.75);
  border-bottom: 1px solid rgba(213, 220, 217, 0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.5rem;
  transition: padding 0.3s ease;
}

.brand {
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 143, 150, 0.35);
  background: rgba(246, 247, 245, 0.9);
  color: var(--sea-deep);
  font-size: 0.68rem;
  font-family: inherit;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.nav-toggle-icon {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.nav a {
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: var(--sea);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--sea-deep);
}

.nav a.is-active::after {
  transform: scaleX(1);
  height: 2px;
  background: var(--sea-deep);
}

.site-header.is-floating {
  background: rgba(246, 247, 245, 0.92);
  border-color: rgba(170, 183, 178, 0.6);
  box-shadow: 0 18px 40px rgba(15, 34, 48, 0.16);
}

.site-header.is-floating .header-inner {
  padding: 0.6rem 0;
}

.hero {
  position: relative;
  padding: 6.5rem 0 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(228, 236, 233, 0.7) 0%, transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(220, 233, 238, 0.65) 0%, transparent 55%),
    linear-gradient(
      180deg,
      rgba(246, 247, 245, 0.95) 0%,
      rgba(236, 243, 241, 0.85) 55%,
      rgba(246, 247, 245, 0) 100%
    );
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.86rem;
  color: var(--sea-deep);
  margin: 0;
}

.hero .eyebrow {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: 0.3em;
  font-weight: 600;
}

.accent {
  color: var(--sea-deep);
  font-style: italic;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 680px;
}

.hero-rotator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.rotator {
  min-width: 9ch;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-deep);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.section {
  padding: 4.8rem 0;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section-title {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 460px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.flow p:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --tiltX: 0deg;
  --tiltY: 0deg;
  --lift: 0px;
  transform: translateY(var(--lift)) perspective(900px) rotateX(var(--tiltX))
    rotateY(var(--tiltY));
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card h3 {
  margin-bottom: 0.6rem;
}

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 143, 150, 0.45);
  background: linear-gradient(
    120deg,
    rgba(108, 143, 150, 0.22),
    rgba(108, 143, 150, 0.08)
  );
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sea-deep);
  box-shadow: 0 10px 24px rgba(15, 34, 48, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-link::after {
  content: "→";
  font-size: 1rem;
}

.demo-link:hover,
.demo-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(44, 90, 99, 0.55);
  box-shadow: 0 14px 28px rgba(15, 34, 48, 0.16);
}

.demo-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.demo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 48, 0.55);
  backdrop-filter: blur(6px);
}

.demo-window {
  position: relative;
  width: min(960px, 92vw, calc(80vh * 4 / 3));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(15, 34, 48, 0.28);
  overflow: hidden;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.demo-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  z-index: 2;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.demo-header {
  padding: 1.2rem 2rem 0.35rem;
  text-align: center;
}

.demo-title {
  position: relative;
  font-family: "Inter", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.demo-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
}

.demo-title.play .word.point {
  animation: demoTitleFade 380ms cubic-bezier(0.25, 0.8, 0.25, 1) 40ms both;
}

.demo-title.play .word.tap {
  animation: demoTitleFade 380ms cubic-bezier(0.25, 0.8, 0.25, 1) 240ms both;
}

.demo-title.play .word.done {
  animation: demoTitleFade 380ms cubic-bezier(0.25, 0.8, 0.25, 1) 440ms both;
}

@keyframes demoTitleFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-title.play .word.done::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--sea-deep), #2f8f8f);
  transform-origin: left;
  transform: scaleX(0);
  margin-top: 6px;
  border-radius: 999px;
  animation: demoTitleLine 600ms cubic-bezier(0.25, 0.8, 0.25, 1) 600ms both;
}

@keyframes demoTitleLine {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.demo-footer {
  padding: 0.9rem 2rem 1.6rem;
  text-align: center;
}

.demo-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Inter", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--sea-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.demo-contact:hover,
.demo-contact:focus-visible {
  text-decoration: underline;
}

.demo-frame {
  position: relative;
  padding-top: 75%;
  width: 100%;
}

.demo-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mx) var(--my),
    var(--glow),
    transparent 60%
  );
  opacity: 0.35;
  transform: scale(1.05);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.card::after,
.expertise-block::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(108, 143, 150, 0.25) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  opacity: 0.18;
  transform: translateY(12%);
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: sheen 14s linear infinite;
  pointer-events: none;
}

.expertise {
  display: grid;
  gap: 2rem;
}

.expertise-block {
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
  --tiltX: 0deg;
  --tiltY: 0deg;
  --lift: 0px;
  transform: translateY(var(--lift)) perspective(900px) rotateX(var(--tiltX))
    rotateY(var(--tiltY));
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.calibration-media {
  margin-top: 1rem;
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  max-width: 490px;
}

.calibration-hero,
.calibration-thumb {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(204, 213, 210, 0.85);
  background: var(--mist);
  box-shadow: 0 12px 30px rgba(15, 34, 48, 0.12);
}

.calibration-hero img,
.calibration-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calibration-hero {
  aspect-ratio: 4 / 3;
  flex: 1 1 0%;
  min-width: 0;
}

.calibration-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 0 0 150px;
}

.calibration-thumb {
  flex: 1 1 0%;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.expertise-block ul {
  list-style: square;
}

.expertise-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx) var(--my),
    rgba(108, 143, 150, 0.22),
    transparent 62%
  );
  opacity: 0.3;
  transform: scale(1.05);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.lead {
  font-size: 1.05rem;
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--sea-deep);
  margin-bottom: 0.5rem;
}

.callout {
  border-left: 3px solid var(--sea);
  padding-left: 1rem;
  color: var(--ink);
}

.systems-gallery {
  margin-top: 3.2rem;
  padding: clamp(1.8rem, 3vw, 2.8rem);
  border-radius: 26px;
  border: 1px solid rgba(204, 213, 210, 0.85);
  background: linear-gradient(
    145deg,
    rgba(248, 250, 249, 0.98),
    rgba(233, 240, 238, 0.92)
  );
  box-shadow: 0 30px 70px rgba(15, 34, 48, 0.12);
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.systems-gallery .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.systems-gallery::before {
  content: "";
  position: absolute;
  inset: -35% 0;
  background:
    radial-gradient(
      640px circle at var(--mx) var(--my),
      rgba(108, 143, 150, 0.22),
      transparent 60%
    ),
    radial-gradient(
      440px circle at 82% 12%,
      rgba(150, 176, 180, 0.18),
      transparent 55%
    );
  opacity: 0.6;
  filter: blur(12px);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.systems-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0) 45%,
    rgba(255, 255, 255, 0.55)
  );
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: systemsGlow 18s ease-in-out infinite;
  pointer-events: none;
}

.systems-gallery:hover::before,
.systems-gallery:focus-within::before {
  opacity: 0.75;
}

.systems-showcase {
  display: grid;
  gap: 2rem;
}

.systems-panel {
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 210, 0.9);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(233, 240, 238, 0.88)
  );
  box-shadow: 0 20px 50px rgba(15, 34, 48, 0.1);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  display: grid;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.systems-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(108, 143, 150, 0.14),
    transparent 60%
  );
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.systems-panel-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.systems-panel-header h4 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

.systems-panel-body {
  display: grid;
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}

.systems-brand-card {
  margin: 0;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(206, 216, 213, 0.9);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.98),
    rgba(234, 241, 239, 0.9)
  );
  padding: clamp(1.1rem, 1.5vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 22px 48px rgba(15, 34, 48, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform: translate3d(0, 0, 0);
}

.systems-brand-media {
  width: 100%;
  height: clamp(216px, 21.6vw, 288px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  flex: 0 0 auto;
}

.systems-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(1.2rem, 2vw, 2.2rem);
  align-items: stretch;
}

.systems-brand-card img {
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: min(100%, 384px);
  max-height: clamp(216px, 21.6vw, 288px);
  filter: saturate(1.03);
}

.systems-brand-card figcaption {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

@media (hover: hover) {
  .systems-panel:hover::before {
    opacity: 0.75;
  }

  .systems-brand-card:hover {
    transform: translate3d(0, -8px, 0);
    border-color: rgba(108, 143, 150, 0.45);
    box-shadow: 0 30px 60px rgba(15, 34, 48, 0.16);
  }
}


.gallery-placeholder {
  color: var(--ink-soft);
  max-width: 620px;
}

.subsection {
  margin-top: 2.8rem;
  padding: 1.8rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #f4f6f4, #e7eeec);
}

.highlight {
  position: relative;
  background: transparent;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0 -5%;
  background:
    radial-gradient(
      circle at 25% 30%,
      rgba(108, 143, 150, 0.18),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 15%,
      rgba(150, 176, 180, 0.16),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      rgba(230, 238, 236, 0.75) 0%,
      rgba(230, 238, 236, 0.65) 55%,
      rgba(246, 247, 245, 0) 100%
    );
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.highlight > .container {
  position: relative;
  z-index: 1;
}

.highlight-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

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

.highlight-grid div {
  border-left: 2px solid var(--sea);
  padding-left: 1rem;
}

.deployment {
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.subtle {
  color: var(--sea-deep);
  font-weight: 500;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  background: #f4f6f5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  align-self: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

[data-reveal-item] {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  filter: blur(1px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal-item].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 900px) {
  #additional-services[data-reveal] {
    opacity: 1;
    transform: none;
  }

  #additional-services [data-reveal-item] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.flow-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.flow-orbs .orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(0px);
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s ease-out;
  will-change: transform;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -6%;
  background: radial-gradient(circle, rgba(108, 143, 150, 0.35), transparent 70%);
}

.orb-3 {
  width: 280px;
  height: 280px;
  top: 72%;
  left: 12%;
  background: radial-gradient(circle, rgba(144, 170, 170, 0.3), transparent 70%);
}

.flow-mist {
  position: fixed;
  inset: -10% 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(108, 143, 150, 0.18) 18%,
      rgba(108, 143, 150, 0.12) 30%,
      transparent 45%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(140, 164, 170, 0.16) 28%,
      rgba(140, 164, 170, 0.08) 46%,
      transparent 60%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(96, 122, 134, 0.12) 20%,
      rgba(96, 122, 134, 0.06) 38%,
      transparent 55%
    );
  background-size: 100% 380px, 100% 520px, 100% 640px;
  background-position:
    0 0,
    0 160px,
    0 320px;
  filter: blur(18px);
  mix-blend-mode: soft-light;
  transform: translateY(var(--mist-shift, 0px));
  animation: mistDrift 26s ease-in-out infinite;
}



.scroll-indicator {
  position: fixed;
  right: 2.5vw;
  top: 35%;
  width: 2px;
  height: 30%;
  background: rgba(48, 66, 79, 0.18);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--sea), transparent 85%);
  transform-origin: top;
  transform: scaleY(var(--scroll-progress, 0));
  transition: transform 0.2s ease-out;
}

.quick-jump {
  position: fixed;
  right: 1.6rem;
  bottom: 1.8rem;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.jump-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(108, 143, 150, 0.35);
  background: rgba(246, 247, 245, 0.88);
  color: var(--sea-deep);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(15, 34, 48, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.jump-btn:hover,
.jump-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 34, 48, 0.2);
}

.jump-btn.is-disabled,
.jump-btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  transform: none;
}


@media (hover: hover) {
  .card:hover {
    --lift: -2px;
    border-color: rgba(108, 143, 150, 0.4);
    box-shadow: 0 30px 70px rgba(15, 34, 48, 0.18);
  }

  .expertise-block:hover {
    --lift: -1px;
    border-color: rgba(108, 143, 150, 0.35);
    box-shadow: 0 24px 60px rgba(15, 34, 48, 0.16);
  }

  .card:hover::before,
  .expertise-block:hover::before {
    opacity: 0.65;
    transform: scale(1.12);
  }

  .card:hover::after,
  .expertise-block:hover::after {
    opacity: 0.65;
    transform: translateY(0%);
  }
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
  }

}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0;
  }

  .site-header.is-floating .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.45rem 0;
  }

  .site-header.is-floating .nav-toggle {
    display: inline-flex;
  }

  .brand {
    font-size: 0.76rem;
  }

  .nav-toggle {
    padding: 0.25rem 0.6rem;
    font-size: 0.62rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    font-size: 0.8rem;
  }

  .site-header.is-floating .nav {
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.2s ease, transform 0.3s ease;
  }

  .site-header.is-floating.nav-open .nav {
    max-height: 280px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 0.65rem;
  }

  .scroll-indicator {
    display: none;
  }

  .quick-jump {
    right: 1rem;
    bottom: 1rem;
    gap: 0.5rem;
  }

  .jump-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .systems-gallery .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .systems-panel {
    padding: 1.1rem;
  }

  .systems-panel-body {
    grid-template-columns: 1fr;
  }

  .systems-brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

}

@media (max-width: 580px) {
  .card,
  .expertise-block,
  .subsection {
    padding: 1.4rem;
  }

  .hero-rotator {
    font-size: 0.95rem;
  }

  .systems-brand-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rotator,
  [data-reveal],
  [data-reveal-item],
  .card,
  .expertise-block {
    transition: none;
  }

  .card,
  .expertise-block {
    transform: none;
  }

  .flow-orbs,
  .flow-mist,
  .scroll-indicator {
    display: none;
  }

  .card::after,
  .expertise-block::after {
    animation: none;
    opacity: 0;
  }

  .systems-gallery::after {
    animation: none;
  }

  .demo-modal {
    transition: none;
  }

  .systems-brand-card {
    transition: none;
  }

  .demo-title .word,
  .demo-title.play .word.done::after {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes systemsGlow {
  0% {
    transform: translate3d(-4%, 0%, 0);
  }
  50% {
    transform: translate3d(4%, -2%, 0);
  }
  100% {
    transform: translate3d(-4%, 0%, 0);
  }
}

@keyframes sheen {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes mistDrift {
  0% {
    background-position:
      0 0,
      0 140px,
      0 300px;
  }
  50% {
    background-position:
      0 40px,
      0 220px,
      0 380px;
  }
  100% {
    background-position:
      0 0,
      0 140px,
      0 300px;
  }
}
