:root {
  --navy: #00607d;
  --navy2: #004f6b;
  --aqua: #08c6d5;
  --ink: #13212a;
  --muted: #687780;
  --soft: #f4f8f9;
  --line: #dfe8ea;
  --white: #fff;
  --violet: #6e6a8a;
  --rail: 168px;
  --top: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

.md-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.md-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
}
.md-top-inner {
  height: var(--top);
  padding: 0 36px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.md-brand img {
  height: 34px;
  display: block;
}
.md-back-short { display: none; }
.md-back {
  font-size: 11px;
  letter-spacing: 0.12em;
  word-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.55;
}
.md-back:hover,
.md-back:focus-visible {
  opacity: 1;
  color: var(--navy);
}
.md-progress { height: 2px; }
.md-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--aqua);
  transition: width 500ms var(--ease);
}

.md-rail {
  position: fixed;
  top: calc(var(--top) + 28px);
  left: 28px;
  width: calc(var(--rail) - 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 30;
}
.md-rail button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.55;
}
.md-rail button.is-on {
  color: var(--navy);
  opacity: 1;
}
.md-rail button:hover,
.md-rail button:focus-visible {
  color: var(--navy);
  opacity: 1;
}

.md-stage {
  position: fixed;
  top: var(--top);
  left: var(--rail);
  right: 0;
  bottom: 64px;
}
.md-slide {
  position: absolute;
  inset: 0;
  padding: 36px 56px 24px 28px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}
.md-slide.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  animation: md-in 640ms var(--ease) both;
}
@keyframes md-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

#intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 48px;
}
.md-lockup {
  width: min(360px, 58vw);
  height: 78px;
  object-fit: contain;
  margin-bottom: 8px;
}
.md-product {
  margin: 0 0 48px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
}
.md-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
#intro h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 400;
}
.md-lede {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
}

.md-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.md-proposed {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--violet);
  background: #f7f6fb;
}
.md-slide h2 {
  margin: 0 0 12px;
  max-width: 24ch;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--navy);
}
.md-copy {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 16px;
  color: var(--muted);
}
.md-copy-tight { margin-bottom: 0; }

.md-stats {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  gap: 36px 48px;
  align-items: start;
  margin: 20px 0 16px;
  max-width: 1040px;
}
.md-stat {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
.md-stat.is-in,
.md-note-inline.is-in { opacity: 1; transform: none; }
.md-stat-b {
  background: var(--soft);
  padding: 22px 28px 18px;
}
.md-stat-b .md-stat { padding-bottom: 16px; }
.md-stat-b .md-stat:last-child { padding-bottom: 0; }
.md-figure {
  margin: 0 0 8px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--navy);
}
.md-figure-soft {
  font-size: clamp(24px, 2.4vw, 32px);
}
.md-stat-copy {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
}
.md-source,
.md-note-inline {
  margin: 12px 0 0;
  max-width: 72ch;
  font-size: 13px;
  color: var(--muted);
}
.md-note-inline {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}

.md-journey-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(240px, 1fr);
  gap: 48px 72px;
  align-items: center;
  max-width: 920px;
  min-height: 52%;
  margin-top: 20px;
}
.md-path {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.md-path::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1.6px;
  background: var(--navy);
}
.md-path.is-connected::before {
  background: linear-gradient(var(--navy) 0 58%, var(--aqua) 58% 78%, var(--navy) 78% 100%);
}
.md-path li {
  position: relative;
  padding: 0 0 28px 28px;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.md-path.is-drawn li { opacity: 1; transform: none; }
.md-path li:nth-child(2) { transition-delay: 120ms; }
.md-path li:nth-child(3) { transition-delay: 220ms; }
.md-path li:nth-child(4) { transition-delay: 320ms; }
.md-path li:nth-child(5) { transition-delay: 420ms; }
.md-path li:last-child { padding-bottom: 0; }
.md-path li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1.6px solid var(--navy);
  z-index: 1;
}
.md-path .is-gap {
  color: #8a99a0;
  font-weight: 400;
  padding-top: 8px;
  padding-bottom: 36px;
}
.md-path .is-gap::before {
  border-style: dotted;
  border-color: #b7c4c8;
}
.md-path.is-connected .is-gap {
  color: var(--navy);
}
.md-path.is-connected .is-gap::before {
  border-style: solid;
  border-color: var(--aqua);
  background: var(--aqua);
}
.md-journey-words { max-width: 28ch; }
.md-soft-line {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.md-soft-line.is-in { opacity: 1; transform: none; }
.md-soft-ask {
  margin-top: 28px;
  color: var(--navy);
}

.md-flow {
  position: relative;
  margin: 22px 0 8px;
  max-width: 1080px;
}
.md-return-cue {
  display: none;
}
.md-flow-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  padding-top: 6px;
}
.md-flow-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 0;
  height: 1.6px;
  background: var(--aqua);
  transition: width 800ms var(--ease);
}
.md-flow.is-drawn .md-flow-steps::before {
  width: calc(100% - 28px);
}
.md-dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 14px;
  border: 1.6px solid var(--navy);
  border-radius: 50%;
  background: #fff;
  position: relative;
  z-index: 1;
}
.md-step.is-key .md-dot {
  border-color: var(--aqua);
  background: var(--aqua);
}
.md-step {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.md-step.is-in { opacity: 1; transform: none; }
.md-step.is-on .md-step-t { color: var(--navy); }
.md-ico {
  display: flex;
  width: 36px;
  height: 36px;
  color: var(--navy);
  margin-bottom: 10px;
}
.md-ico svg { width: 36px; height: 36px; }
.md-ico.is-pulse { animation: md-pulse 2.8s ease-in-out infinite; }
@keyframes md-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}
.md-step-n,
.md-step-t { display: block; }
.md-step-n {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
}
.md-step-t {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.md-detail {
  display: grid;
  grid-template-columns: 200px minmax(240px, 360px);
  gap: 20px;
  align-items: start;
  min-height: 92px;
  margin: 18px 0 12px;
}
.md-status {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.md-status[hidden] { display: none; }
.md-status span,
.md-status time {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.md-status strong {
  display: block;
  margin: 3px 0 2px;
  font-size: 14px;
  font-weight: 550;
  color: var(--navy);
}
.md-pop {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 81, 103, 0.06);
}
.md-pop-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 550;
}
.md-pop-body {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.md-phrase {
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--navy);
}
.md-cont-grid {
  display: grid;
  grid-template-columns: 220px minmax(280px, 480px);
  gap: 40px 64px;
  align-items: start;
  margin-bottom: 24px;
}
.md-loop {
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
  border-left: 1.6px solid var(--aqua);
}
.md-loop li {
  position: relative;
  padding: 0 0 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
}
.md-loop li:last-child { padding-bottom: 0; }
.md-loop li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1.6px solid var(--aqua);
}
.md-proof {
  padding: 22px 24px;
  background: var(--soft);
}
.md-proof-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
}

.md-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 28px 0 20px;
  max-width: 920px;
}
.md-outcomes article {
  padding-top: 12px;
  border-top: 2px solid var(--aqua);
}
.md-out-k {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.md-outcomes p:last-child {
  margin: 0;
  font-size: 16px;
}

.md-sources {
  margin-top: 28px;
  color: #8b989e;
  font-size: 12px;
}
.md-sources p { margin: 16px 0 4px; }
.md-sources ul { margin: 0; padding: 0 0 0 16px; }
.md-foot {
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.md-move {
  position: fixed;
  left: var(--rail);
  right: 40px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  z-index: 30;
}
.md-voice,
.md-turn {
  display: flex;
  align-items: center;
  gap: 22px;
}
.md-listen.is-on,
.md-stop:not([disabled]) {
  color: var(--navy);
}
.md-go {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 520;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.md-go.is-lead,
.md-go:hover,
.md-go:focus-visible { color: var(--navy); }
.md-go[disabled] { opacity: 0.28; cursor: default; }

@media (max-width: 1100px) {
  .md-rail {
    top: calc(var(--top) + 8px);
    left: 0;
    right: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 20px;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
  }
  .md-stage {
    left: 0;
    top: calc(var(--top) + 42px);
    bottom: 72px;
  }
  .md-slide {
    padding: 20px 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .md-stats,
  .md-journey-layout,
  .md-cont-grid,
  .md-outcomes,
  .md-flow-steps,
  .md-detail { grid-template-columns: 1fr; }
  .md-flow-steps::before,
  .md-return-cue { display: none; }
  .md-journey-layout { gap: 24px; }
  .md-move {
    left: 12px;
    right: 12px;
    bottom: 0;
    padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    gap: 10px;
  }
  .md-voice {
    flex: 1 1 auto;
    gap: 18px;
    min-width: 0;
  }
  .md-turn {
    flex: 0 0 auto;
    gap: 16px;
  }
  .md-go {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 6px;
  }
}

@media (max-width: 720px) {
  :root { --top: 64px; }
  .md-top-inner { padding: 0 16px; }
  .md-back-full { display: none; }
  .md-back-short { display: inline; }
  #intro h1 { max-width: 14ch; }
  .md-lockup { width: min(280px, 78vw); height: 60px; }
  .md-eyebrow { letter-spacing: 0.1em; }
  .md-move {
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .md-go {
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 12px 4px;
  }
  .md-listen.is-on,
  .md-stop:not([disabled]) {
    font-weight: 650;
  }
}

@media (max-width: 420px) {
  .md-move {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    align-items: center;
    gap: 4px 8px;
  }
  .md-voice,
  .md-turn {
    display: contents;
  }
  .md-go {
    width: 100%;
    text-align: center;
  }
}
