:root {
  color-scheme: dark;
  --ink: #07100f;
  --ink-2: #0b1817;
  --panel: rgba(13, 30, 29, 0.82);
  --panel-strong: rgba(20, 42, 40, 0.95);
  --line: rgba(195, 243, 232, 0.18);
  --text: #f2f7f4;
  --muted: #9bb5ae;
  --teal: #21e0bd;
  --green: #8ee07f;
  --amber: #ffba5c;
  --coral: #ff7668;
  --paper: #f4efe6;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --canvas-opacity: 0.08;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(242, 247, 244, 0.08);
  background: rgba(7, 16, 15, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(242, 247, 244, 0.18);
  background: rgba(7, 16, 15, 0.68);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.brand-logo-mark img {
  display: block;
  width: 2.62rem;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(33, 224, 189, 0.42);
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.header-cta {
  padding: 0 1rem;
  background: rgba(33, 224, 189, 0.1);
  color: var(--teal);
  font-size: 0.86rem;
}

.button {
  padding: 0 1.1rem;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: transparent;
  background: var(--teal);
  color: #04201c;
  box-shadow: 0 16px 38px rgba(33, 224, 189, 0.18);
}

.button.ghost {
  background: rgba(242, 247, 244, 0.06);
  color: var(--text);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14.5ch;
  margin-bottom: 1.4rem;
  color: var(--paper);
  font-size: clamp(3rem, 6.7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 5.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.12rem;
}

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

.scroll-story {
  position: relative;
  min-height: 600svh;
  overflow: visible;
  background: transparent;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  border: 0;
  background: #061211;
  box-shadow: none;
  pointer-events: none;
}

.site-backdrop::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 12, 16, 0.44), rgba(5, 12, 16, 0.14) 34%, rgba(5, 12, 16, 0) 70%),
    linear-gradient(180deg, rgba(5, 12, 16, 0.16), transparent 45%, rgba(5, 12, 16, 0.24));
}

#timelapseCanvas,
#cityCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#timelapseCanvas {
  z-index: 0;
}

#cityCanvas {
  z-index: 2;
  mix-blend-mode: screen;
  opacity: var(--canvas-opacity);
}

.scene-media {
  position: absolute;
  inset: 0;
}

.scene-media {
  z-index: 0;
  background: #061211 url("assets/timelapse/frame_0001.webp") center / cover no-repeat;
}

.scene-media::before,
.scene-media::after,
.site-backdrop::before {
  display: none;
}

.story-copy {
  position: relative;
  z-index: 3;
  padding: 0 clamp(1rem, 5vw, 5rem);
  margin-top: 0;
}

.stage-hud {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
  transition: opacity 420ms ease;
}

body[data-zone="content"] .stage-hud {
  opacity: 0;
}

.hud-panel {
  position: absolute;
  border: 1px solid rgba(242, 247, 244, 0.12);
  background: rgba(7, 16, 15, 0.74);
  backdrop-filter: blur(14px);
}

.hud-panel-left {
  top: 6rem;
  right: clamp(1rem, 5vw, 5rem);
  width: min(18rem, calc(100% - 2rem));
  padding: 0.9rem 1rem;
}

.hud-panel span,
.agent-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hud-panel strong {
  display: block;
  color: var(--paper);
  font-size: 1rem;
}

.workflow-rail {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(242, 247, 244, 0.1);
  background: rgba(7, 16, 15, 0.68);
}

.rail-dot {
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(242, 247, 244, 0.28);
  transition: background 250ms ease;
}

body[data-step="0"] .rail-dot:nth-child(1),
body[data-step="1"] .rail-dot:nth-child(-n + 2),
body[data-step="2"] .rail-dot:nth-child(-n + 3),
body[data-step="3"] .rail-dot:nth-child(-n + 4),
body[data-step="4"] .rail-dot:nth-child(-n + 5),
body[data-step="5"] .rail-dot {
  background: var(--teal);
}

.agent-stack {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.65rem;
  width: min(16rem, calc(100% - 2rem));
}

.agent-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(33, 224, 189, 0.18);
  background: rgba(7, 16, 15, 0.72);
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 480ms ease,
    opacity 480ms ease;
}

body[data-step="1"] .agent-card,
body[data-step="2"] .agent-card,
body[data-step="3"] .agent-card,
body[data-step="4"] .agent-card,
body[data-step="5"] .agent-card {
  transform: translateX(0);
  opacity: 1;
}

.agent-card:nth-child(2) {
  transition-delay: 80ms;
}

.agent-card:nth-child(3) {
  transition-delay: 160ms;
}

.agent-card strong {
  color: var(--paper);
}

.chapter {
  display: flex;
  min-height: 100svh;
  max-width: 43rem;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 6rem;
  margin-right: auto;
  margin-left: 0;
  opacity: 0.38;
  transform: translateY(2rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.68);
  transition:
    opacity 380ms ease,
    transform 380ms ease;
}

.chapter-hero {
  max-width: 62rem;
  margin-right: auto;
  margin-left: 0;
}

.chapter.active {
  opacity: 1;
  transform: translateY(0);
}

.chapter h2 {
  max-width: 12ch;
}

.chapter p:not(.eyebrow) {
  max-width: 38rem;
  color: #b9cbc5;
  font-size: 1.08rem;
  line-height: 1.66;
}

.chapter-hero p:not(.eyebrow) {
  max-width: 46rem;
}

.demand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.demand-strip span {
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(242, 247, 244, 0.12);
  background: rgba(7, 16, 15, 0.54);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 820;
}

.check-list {
  display: grid;
  max-width: 36rem;
  gap: 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: #dce8e2;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
}

.mini-grid,
.security-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.mini-grid span,
.security-list span {
  padding: 0.9rem;
  border: 1px solid rgba(242, 247, 244, 0.1);
  background: rgba(242, 247, 244, 0.05);
  color: var(--paper);
  font-weight: 760;
}

.security-list span {
  border-color: rgba(255, 186, 92, 0.22);
}

.result-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 34rem;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-top: 1.6rem;
  padding: 1rem;
  border: 1px solid rgba(33, 224, 189, 0.18);
  background: rgba(33, 224, 189, 0.06);
}

.result-strip strong {
  color: var(--teal);
  font-size: 2rem;
}

.result-strip span {
  color: #c4d7d0;
}

.services-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem);
  background: transparent;
}

.services-band::before,
.dashboard-section::before,
.contact-band::before {
  display: none;
}

.services-band::after,
.dashboard-section::after,
.contact-band::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.services-band::before {
  background-image: url("assets/timelapse/frame_0001.webp");
  background-position: center 58%;
}

.services-band::after {
  background:
    linear-gradient(180deg, rgba(6, 18, 17, 0.38), rgba(6, 18, 17, 0.1) 48%, rgba(6, 18, 17, 0.42)),
    linear-gradient(90deg, rgba(6, 18, 17, 0.44), rgba(6, 18, 17, 0.04) 60%, rgba(6, 18, 17, 0.2));
}

.services-band > *,
.dashboard-section > *,
.contact-band > * {
  position: relative;
  z-index: 2;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(14rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-grid article {
  min-height: 18rem;
  padding: 1.25rem;
  border: 1px solid rgba(242, 247, 244, 0.16);
  background: rgba(7, 16, 15, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.service-grid article:nth-child(2) {
  border-color: rgba(33, 224, 189, 0.24);
}

.service-grid article:nth-child(3) {
  border-color: rgba(255, 186, 92, 0.28);
}

.icon-box {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 5rem;
  border: 1px solid rgba(242, 247, 244, 0.16);
  color: var(--teal);
}

.icon-box svg {
  width: 1.35rem;
  height: 1.35rem;
}

.icon-box path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-grid p {
  margin: 0;
  color: #b5c8c1;
  line-height: 1.58;
}

.dashboard-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(20rem, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5rem);
  background: transparent;
  color: var(--paper);
}

.dashboard-section::before {
  background-image: url("assets/timelapse/frame_0001.webp");
  background-position: center 58%;
}

.dashboard-section::after {
  background:
    linear-gradient(180deg, rgba(6, 18, 17, 0.34), rgba(6, 18, 17, 0.08) 48%, rgba(6, 18, 17, 0.42)),
    linear-gradient(90deg, rgba(6, 18, 17, 0.42), rgba(6, 18, 17, 0.04) 58%, rgba(6, 18, 17, 0.22));
}

.dashboard-section .eyebrow {
  color: var(--amber);
}

.dashboard-copy p:last-child {
  color: #d6ebe4;
  font-size: 1.08rem;
  line-height: 1.65;
}

.dashboard {
  padding: 1rem;
  border: 1px solid rgba(242, 247, 244, 0.14);
  background: rgba(7, 16, 15, 0.74);
  color: var(--paper);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(242, 247, 244, 0.09);
  color: var(--muted);
}

.dashboard-top strong {
  color: var(--green);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-row article {
  padding: 1rem;
  border: 1px solid rgba(242, 247, 244, 0.09);
  background: rgba(242, 247, 244, 0.04);
}

.metric-row span {
  display: block;
  min-height: 2.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-row strong {
  color: var(--teal);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.timeline {
  display: grid;
  height: 14rem;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
  align-items: end;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(242, 247, 244, 0.09);
  background:
    linear-gradient(rgba(242, 247, 244, 0.06) 1px, transparent 1px),
    rgba(242, 247, 244, 0.03);
  background-size: 100% 25%;
}

.timeline span {
  height: var(--height);
  background: linear-gradient(180deg, var(--teal), var(--green));
}

.contact-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  min-height: 92svh;
  place-items: center;
  padding: clamp(5rem, 10vw, 10rem) clamp(1rem, 5vw, 5rem);
  text-align: center;
  background: transparent;
}

.contact-band::before {
  background-image: url("assets/timelapse/frame_0001.webp");
  background-position: center 58%;
  filter: saturate(1.08) contrast(1.12) brightness(0.7);
}

.contact-band::after {
  background:
    linear-gradient(180deg, rgba(6, 18, 17, 0.38), rgba(6, 18, 17, 0.1) 48%, rgba(6, 18, 17, 0.48)),
    linear-gradient(90deg, rgba(6, 18, 17, 0.44), rgba(6, 18, 17, 0.04) 56%, rgba(6, 18, 17, 0.24));
}

.contact-content {
  z-index: 3;
  max-width: 55rem;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.72);
}

.contact-band h2 {
  max-width: 10ch;
  margin-right: auto;
  margin-left: auto;
}

.contact-band p:not(.eyebrow) {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
  color: #bdd0c9;
  font-size: 1.16rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .section-heading,
  .dashboard-section {
    grid-template-columns: 1fr;
  }

  .site-backdrop {
    position: fixed;
    top: 0;
    height: 100svh;
    min-height: 100svh;
  }

  .chapter {
    min-height: 100svh;
    padding: 7rem 0 5rem;
    margin-left: 0;
  }

  .chapter h2 {
    max-width: 12ch;
  }

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

  .contact-band {
    place-items: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.75rem;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 2.4rem;
    padding: 0 0.8rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15.5vw, 4.1rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .story-copy {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .mini-grid,
  .security-list,
  .service-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .site-backdrop {
    min-height: 100svh;
  }

  .agent-stack {
    display: none;
  }

  .workflow-rail {
    display: none;
  }

  .hud-panel-left {
    display: none;
  }

  .icon-box {
    margin-bottom: 2.5rem;
  }

  .service-grid article {
    min-height: 16rem;
  }

  .result-strip {
    grid-template-columns: 1fr;
  }

  .contact-band {
    min-height: 86svh;
  }

  .contact-band::after {
    background:
      linear-gradient(180deg, rgba(6, 18, 17, 0.46), rgba(6, 18, 17, 0.16) 42%, rgba(6, 18, 17, 0.56)),
      linear-gradient(90deg, rgba(6, 18, 17, 0.5), rgba(6, 18, 17, 0.08) 54%, rgba(6, 18, 17, 0.32));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
