:root {
  color-scheme: dark;
  --bg: #071016;
  --ink: #f7f3e9;
  --muted: #b7c4c8;
  --line: rgba(247, 243, 233, 0.16);
  --panel: rgba(9, 20, 27, 0.78);
  --cyan: #72f0ff;
  --green: #77e6a2;
  --amber: #f4c86a;
  --violet: #a88bff;
  --coral: #ff8c67;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { overflow: hidden; }
button,
a { font: inherit; }

.deck-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(114, 240, 255, 0.18), transparent 31%),
    radial-gradient(circle at 86% 18%, rgba(119, 230, 162, 0.14), transparent 32%),
    radial-gradient(circle at 70% 96%, rgba(168, 139, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #071016, #101a26 48%, #060b10);
}

.deck-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 243, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 243, 233, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 88%, transparent);
  animation: gridMove 22s linear infinite;
  pointer-events: none;
}

#flowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  pointer-events: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(170px, 250px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px clamp(18px, 4vw, 56px);
  pointer-events: none;
}

.brand,
.counter { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(178px, 35vw);
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

.progress {
  height: 2px;
  background: rgba(247, 243, 233, 0.14);
  overflow: hidden;
}

.progress span {
  display: block;
  width: calc((var(--slide-progress, 1) / var(--slide-total, 11)) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--violet));
  transition: width 360ms ease;
}

.counter {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.slides {
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 96px clamp(18px, 5vw, 72px) 98px;
  opacity: 0;
  transform: translateX(5%) scale(0.985);
  pointer-events: none;
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
}

.hero-slide {
  place-items: stretch;
  padding: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 22, 0.96), rgba(7, 16, 22, 0.74) 46%, rgba(7, 16, 22, 0.2)),
    linear-gradient(0deg, rgba(7, 16, 22, 0.94), transparent 52%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9) contrast(1.04);
  animation: imageFloat 16s ease-in-out infinite alternate;
}

.hero-content {
  align-self: end;
  max-width: 1120px;
  padding: 18vh clamp(22px, 6vw, 88px) 12vh;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2 {
  max-width: 1080px;
  margin-bottom: 22px;
  line-height: 0.94;
  font-weight: 950;
}

h1 { font-size: clamp(4rem, 12vw, 12rem); }
h2 { font-size: clamp(2.35rem, 3.5vw, 4.25rem); }
h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.12;
}

p,
li {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.6;
}

.hero-subtitle {
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 900;
}

.lead {
  max-width: 840px;
  color: #e6eceb;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.hero-stats,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-stats span,
.tags span,
.problem-stack span {
  border: 1px solid var(--line);
  background: rgba(247, 243, 233, 0.07);
  backdrop-filter: blur(14px);
}

.hero-stats span {
  min-width: 184px;
  padding: 15px 16px;
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.85rem;
  line-height: 1;
}

.split,
.media {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
}

.media { grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1fr); }
.media.reverse { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr); }

.problem-stack {
  display: grid;
  gap: 14px;
}

.problem-stack span {
  display: block;
  padding: 22px 24px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 850;
  transform: translateX(18px);
  opacity: 0;
}

.slide.is-active .problem-stack span { animation: tagIn 440ms ease forwards; }
.slide.is-active .problem-stack span:nth-child(2) { animation-delay: 80ms; }
.slide.is-active .problem-stack span:nth-child(3) { animation-delay: 160ms; }
.slide.is-active .problem-stack span:nth-child(4) { animation-delay: 240ms; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.pipeline article,
.client-cards article,
.impact-grid article,
.role-matrix div {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(247, 243, 233, 0.085), rgba(247, 243, 233, 0.025));
  box-shadow: var(--shadow);
}

.pipeline article {
  min-height: 280px;
  padding: 22px;
  opacity: 0;
  transform: translateY(18px);
}

.slide.is-active .pipeline article { animation: riseIn 520ms ease forwards; }
.slide.is-active .pipeline article:nth-child(2) { animation-delay: 70ms; }
.slide.is-active .pipeline article:nth-child(3) { animation-delay: 140ms; }
.slide.is-active .pipeline article:nth-child(4) { animation-delay: 210ms; }
.slide.is-active .pipeline article:nth-child(5) { animation-delay: 280ms; }

.pipeline span {
  display: inline-block;
  margin-bottom: 68px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 950;
}

.pipeline p,
.impact-grid p { font-size: 0.98rem; }

.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #101b26;
}

.image-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 16, 22, 0.66));
  pointer-events: none;
}

.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.motion-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.motion-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(114, 240, 255, 0.08), transparent);
}

.motion-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(114, 240, 255, 0.7);
}

.tags span {
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 850;
}

.client-cards {
  display: grid;
  gap: 14px;
}

.client-cards article {
  display: grid;
  gap: 8px;
  padding: 24px;
  opacity: 0;
  transform: translateY(18px);
}

.slide.is-active .client-cards article { animation: riseIn 520ms ease forwards; }
.slide.is-active .client-cards article:nth-child(2) { animation-delay: 90ms; }
.slide.is-active .client-cards article:nth-child(3) { animation-delay: 180ms; }

.client-cards strong,
.role-matrix strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.client-cards span,
.role-matrix span { color: var(--muted); }

.status-board {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

.status-board article {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: rgba(247, 243, 233, 0.055);
  box-shadow: var(--shadow);
}

.status-board span {
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
}

.status-board b {
  position: relative;
  display: block;
  height: 18px;
  overflow: hidden;
  background: rgba(247, 243, 233, 0.12);
}

.status-board b::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transform-origin: left;
  animation: growBar 900ms ease both;
}

.role-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.role-matrix div {
  display: grid;
  gap: 8px;
  min-height: 135px;
  padding: 26px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.impact-grid article {
  min-height: 300px;
  padding: 24px;
}

.impact-grid strong {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--coral);
}

.video-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(520px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(114, 240, 255, 0.28);
  background:
    radial-gradient(circle at 18% 18%, rgba(114, 240, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(247, 243, 233, 0.08), rgba(247, 243, 233, 0.025));
  box-shadow: var(--shadow);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 243, 233, 0.08);
  pointer-events: none;
  z-index: 1;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  display: none;
  width: fit-content;
  min-height: 48px;
  align-items: center;
  padding: 0 18px;
  color: #071016;
  background: linear-gradient(135deg, var(--amber), var(--green));
  text-decoration: none;
  font-weight: 950;
}

.closing {
  max-width: 980px;
  text-align: center;
}

.closing h2,
.closing p {
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 24px;
  color: #071016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  text-decoration: none;
  font-weight: 950;
}

.cta-button {
  margin-left: 10px;
  border: 0;
  cursor: pointer;
}

.cta:hover,
.cta-button:hover {
  filter: brightness(1.08);
}

.interest-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.interest-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 22, 0.76);
  backdrop-filter: blur(16px);
}

.interest-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(820px, calc(100svh - 44px));
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(114, 240, 255, 0.28);
  background:
    radial-gradient(circle at 88% 10%, rgba(119, 230, 162, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 28, 38, 0.96), rgba(7, 16, 22, 0.96));
  box-shadow: var(--shadow);
}

.interest-dialog h2 {
  font-size: clamp(2rem, 5vw, 4.3rem);
}

.interest-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(247, 243, 233, 0.08);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

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

.interest-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 850;
}

.interest-form input,
.interest-form textarea {
  width: 100%;
  border: 1px solid rgba(247, 243, 233, 0.18);
  border-radius: 0;
  padding: 15px 16px;
  color: var(--ink);
  background: rgba(7, 16, 22, 0.58);
  outline: none;
}

.interest-form input:focus,
.interest-form textarea:focus {
  border-color: rgba(114, 240, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(114, 240, 255, 0.12);
}

.interest-full,
.interest-status,
.interest-actions {
  grid-column: 1 / -1;
}

.interest-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.interest-status.is-error {
  color: var(--coral);
}

.interest-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-height: 50px;
  border: 1px solid var(--line);
  padding: 0 20px;
  color: var(--ink);
  background: rgba(247, 243, 233, 0.08);
  cursor: pointer;
  font-weight: 950;
}

.primary-action {
  border-color: transparent;
  color: #071016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.controls {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 22, 0.72);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--ink);
  background: rgba(247, 243, 233, 0.08);
  cursor: pointer;
  font-size: 1.35rem;
}

.dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0;
  border-radius: 50%;
  background: rgba(247, 243, 233, 0.28) !important;
}

.dot.is-active {
  width: 26px !important;
  border-radius: 999px;
  background: var(--green) !important;
}

@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 58px 58px; }
}

@keyframes imageFloat {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.4%, -1.2%, 0); }
}

@keyframes tagIn {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 980px) {
  body { overflow: auto; }

  .deck-shell {
    min-height: 100svh;
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(7, 16, 22, 0.86);
    backdrop-filter: blur(18px);
  }

  .brand img {
    width: min(150px, 34vw);
    max-height: 38px;
  }
  .counter { font-size: 0.92rem; }

  .slides {
    min-height: 100svh;
    padding-top: 68px;
  }

  .slide {
    display: none;
    position: relative;
    inset: auto;
    min-height: calc(100svh - 68px);
    height: calc(100svh - 68px);
    padding: 26px 16px 104px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .slide.is-active {
    display: grid;
  }

  .hero-slide {
    min-height: calc(100svh - 68px);
    height: calc(100svh - 68px);
    padding: 0;
  }

  .hero-content {
    align-self: end;
    padding: 23vh 18px 112px;
  }

  h1 { font-size: clamp(3.3rem, 17vw, 5.8rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.1rem); }
  p,
  li { font-size: 1rem; }

  .split,
  .media,
  .media.reverse,
  .video-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pipeline,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .pipeline article,
  .impact-grid article {
    min-height: 0;
  }

  .pipeline span,
  .impact-grid strong {
    margin-bottom: 22px;
  }

  .image-panel {
    min-height: 340px;
  }

  .video-frame {
    width: 100%;
  }

  .video-fallback {
    display: inline-flex;
  }

  .cta-button {
    margin-left: 0;
    margin-right: 0;
  }

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

  .interest-actions {
    justify-content: stretch;
  }

  .interest-actions button {
    flex: 1;
  }

  .status-board article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .controls {
    width: calc(100vw - 28px);
    justify-content: center;
    bottom: 14px;
    padding: 8px;
  }

  .controls button {
    width: 40px;
    height: 40px;
  }

  .dots {
    max-width: 42vw;
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand img {
    width: min(128px, 32vw);
  }

  .hero-stats span {
    min-width: calc(50% - 5px);
    flex: 1 1 calc(50% - 5px);
  }

  .image-panel {
    min-height: 280px;
  }
}
