.fs-how {
  --fs-how-coral: #f4566b;
  --fs-how-cream: #f8f1e7;
  --fs-how-muted: #b5ada3;
  --fs-how-quiet: #938c84;
  --fs-how-line: rgba(248, 241, 231, 0.14);
  --fs-how-progress: 0;
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 126px) 0 clamp(92px, 10vw, 148px);
  border-top: 1px solid rgba(248, 241, 231, 0.07);
  background:
    radial-gradient(circle at 76% 25%, rgba(244, 86, 107, 0.075), transparent 28%),
    #090d0c;
  scroll-margin-top: 88px;
}

.fs-how-wrap {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 88px)));
  margin: 0 auto;
}

.fs-how-intro {
  display: block;
  max-width: 1080px;
  margin-bottom: clamp(62px, 8vw, 104px);
}

.fs-how-intro-copy {
  max-width: 820px;
}

.fs-how-eyebrow {
  display: block;
  color: var(--fs-how-coral);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 650;
}

.fs-how-intro h2 {
  max-width: 14ch;
  margin: 13px 0 0;
  color: var(--fs-how-cream);
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.6vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.038em;
  line-height: 0.96;
  text-wrap: balance;
}

.fs-how-intro p {
  max-width: 65ch;
  margin: 21px 0 0;
  color: var(--fs-how-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.fs-how-flow {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.fs-how-flow::before,
.fs-how-flow::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 19px;
  bottom: 19px;
  left: 19px;
  width: 1px;
  transform-origin: top;
}

.fs-how-flow::before { background: rgba(248, 241, 231, 0.13); }
.fs-how-flow::after {
  background: linear-gradient(180deg, #f4566b, #c42a43 78%, #f4566b);
  box-shadow: 0 0 12px rgba(244, 86, 107, 0.25);
  transform: scaleY(var(--fs-how-progress));
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.fs-how-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  padding-bottom: clamp(84px, 10vw, 138px);
}

.fs-how-step:last-child { padding-bottom: 0; }

.fs-how-step-number {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(248, 241, 231, 0.2);
  border-radius: 50%;
  background: #0a0f0e;
  color: #8c857c;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  transition: border-color 360ms cubic-bezier(0.22, 1, 0.36, 1), background-color 360ms cubic-bezier(0.22, 1, 0.36, 1), color 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fs-how-step-copy {
  max-width: 35ch;
  padding-top: 2px;
}

.fs-how-step h3 {
  margin: 0;
  color: var(--fs-how-cream);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.fs-how-step-copy p {
  margin: 15px 0 0;
  color: #aaa39a;
  font-size: 0.96rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.fs-how-step-visual {
  min-width: 0;
  opacity: 0.72;
  transition: opacity 460ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fs-how.is-enhanced .fs-how-step:not(.is-active):not(.is-complete) .fs-how-step-visual {
  opacity: 0.66;
  transform: translateY(4px);
}

/* Keep a partially played stage where the visitor left it. Entering the section
   again resumes the finite sequence instead of letting it finish off-screen. */
.fs-how.is-enhanced:not(.is-in-view) * {
  animation-play-state: paused !important;
}

.fs-how-step.is-active .fs-how-step-number {
  border-color: rgba(244, 86, 107, 0.78);
  background: #ed4059;
  box-shadow: 0 0 0 6px rgba(244, 86, 107, 0.09);
  color: #fff;
}

.fs-how-step.is-complete .fs-how-step-number {
  border-color: rgba(244, 86, 107, 0.42);
  color: #f8c2ca;
}

.fs-how-step.is-active .fs-how-step-visual,
.fs-how-step.is-complete .fs-how-step-visual {
  opacity: 1;
  transform: none;
}

/* Step 1: a single real video, not a generic upload illustration. */
.fs-how-video {
  overflow: hidden;
  border: 1px solid rgba(248, 241, 231, 0.15);
  border-radius: 16px;
  background: #0b100f;
  box-shadow: 0 30px 70px -46px rgba(0, 0, 0, 0.9);
}

.fs-how-video-bar,
.fs-how-code-bar,
.fs-how-answer-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(248, 241, 231, 0.1);
  color: #9b948b;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.fs-how-video-bar i,
.fs-how-code-bar i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--fs-how-coral);
  box-shadow: 0 0 12px rgba(244, 86, 107, 0.5);
}

.fs-how-video-bar span,
.fs-how-code-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-how-video-bar b { margin-left: auto; color: #d5cec4; font-weight: 600; }

.fs-how-video-frame {
  position: relative;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #161c1a;
}

.fs-how-video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03);
  transform: scale(1.13);
  transform-origin: 57% 50%;
}

.fs-how-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 8, 7, 0.7));
  pointer-events: none;
}

.fs-how-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(248, 241, 231, 0.94);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%);
  transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fs-how-video-play::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 22px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid #0a0f0e;
}

.fs-how-video-caption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #eee7dd;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

/* Step 2: video facts and company context meet in a clear lane above Frame. */
.fs-how-match {
  display: grid;
  gap: 18px;
}

.fs-how-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.fs-how-input-group {
  padding-top: 13px;
  border-top: 1px solid var(--fs-how-line);
}

.fs-how-input-group h4 {
  margin: 0 0 11px;
  color: #d9d2c8;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
}

.fs-how-input-group h4 span {
  display: block;
  margin-top: 3px;
  color: #a39c93;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
}

.fs-how-input-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.fs-how-input-list span {
  border: 1px solid rgba(248, 241, 231, 0.13);
  border-radius: 999px;
  background: rgba(248, 241, 231, 0.03);
  color: #c9c2b8;
  font-size: 0.74rem;
  line-height: 1;
  padding: 8px 10px;
}

.fs-how.is-enhanced .fs-how-step[data-how-step="2"]:not(.is-active):not(.is-complete) .fs-how-input-list span {
  opacity: 0.42;
  transform: translateY(7px) scale(0.97);
}

.fs-how-merge {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #716b64;
}

.fs-how-merge::before,
.fs-how-merge::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 86, 107, 0.44));
}

.fs-how-merge::after { transform: scaleX(-1); }

.fs-how-merge span {
  color: var(--fs-how-coral);
  font-size: 1rem;
  transform: rotate(90deg);
}

.fs-how-frame-core {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(244, 86, 107, 0.36);
  border-radius: 16px;
  background: #0b100f;
  padding: 14px 18px 14px 14px;
}

.fs-how-frame-canvas-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(244, 86, 107, 0.24), rgba(196, 42, 67, 0.06));
}

.fs-how-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.52;
  filter: grayscale(1) contrast(1.35) brightness(1.12);
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.fs-how-frame-fallback {
  position: absolute;
  z-index: 2;
  inset: 14px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #f4566b, #c42a43);
  box-shadow: 0 12px 22px -14px rgba(244, 86, 107, 0.75);
}

.fs-how-frame-fallback img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.fs-how-frame-core strong {
  display: block;
  color: var(--fs-how-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 660;
}

.fs-how-frame-core p {
  margin: 5px 0 0;
  color: #9e978e;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Step 3: the VideoObject code is the visual peak. */
.fs-how-code {
  overflow: hidden;
  border: 1px solid rgba(244, 86, 107, 0.42);
  border-radius: 17px;
  background: #070b0a;
  box-shadow: 0 34px 86px -52px rgba(244, 86, 107, 0.48);
}

.fs-how-code-bar { justify-content: space-between; }
.fs-how-code-bar span { display: flex; align-items: center; gap: 8px; }
.fs-how-code-bar b { color: #d8d1c7; font-weight: 600; }

.fs-how-code pre {
  margin: 0;
  overflow: hidden;
  padding: clamp(17px, 3vw, 25px);
  color: #aaa39a;
  font-family: var(--font-mono);
  font-size: clamp(0.63rem, 1vw, 0.76rem);
  line-height: 1.52;
  white-space: pre-wrap;
}

.fs-how-code code { display: block; min-width: 0; }
.fs-how-code-line { display: block; overflow-wrap: anywhere; }
.fs-how-code .key,
.fs-how-code .value,
.fs-how-code .type,
.fs-how-code .number { color: inherit; }

/* Step 4: routes stay flat and scannable, with the destination shown once. */
.fs-how-delivery-title {
  margin: 0 0 13px;
  color: #d9d2c8;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 650;
}

.fs-how-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--fs-how-line);
  border-bottom: 1px solid var(--fs-how-line);
}

.fs-how-route {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 116px;
  padding: 17px 16px;
  border-bottom: 1px solid var(--fs-how-line);
}

.fs-how-route:nth-child(odd) { border-right: 1px solid var(--fs-how-line); }
.fs-how-route:nth-last-child(-n + 2) { border-bottom: 0; }

.fs-how-route-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(248, 241, 231, 0.13);
  border-radius: 10px;
  background: rgba(248, 241, 231, 0.04);
  color: #e9e2d8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.fs-how-route-icon img { display: block; width: 21px; height: 21px; object-fit: contain; }
.fs-how-route strong { display: block; color: var(--fs-how-cream); font-size: 0.84rem; font-weight: 650; }
.fs-how-route p { margin: 5px 0 0; color: #938c84; font-size: 0.73rem; line-height: 1.45; }

.fs-how-connector-logos {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.fs-how-connector-logos img {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 5px;
  background: #fff;
  object-fit: contain;
}

.fs-how-destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid rgba(244, 86, 107, 0.3);
  border-radius: 13px;
  background: rgba(244, 86, 107, 0.055);
}

.fs-how-destination-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ca765;
  box-shadow: 0 0 12px rgba(76, 167, 101, 0.52);
}

.fs-how-destination span { min-width: 0; }
.fs-how-destination strong { display: block; color: #f0e9df; font-size: 0.78rem; font-weight: 650; }
.fs-how-destination code { display: block; overflow: hidden; margin-top: 3px; color: #938c84; font-family: var(--font-mono); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.fs-how-page-note {
  margin: 13px 0 0;
  color: #8e877f;
  font-size: 0.72rem;
  line-height: 1.5;
}

.fs-how-page-note strong { color: #cbc4ba; font-weight: 640; }

/* Step 5: one sourced answer, then the honest caveat and demo. */
.fs-how-answer {
  overflow: hidden;
  border: 1px solid rgba(248, 241, 231, 0.15);
  border-radius: 16px;
  background: #0b100f;
  box-shadow: 0 30px 72px -50px rgba(0, 0, 0, 0.88);
}

.fs-how-answer-head img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.fs-how-answer-head strong { color: #e6dfd5; font-family: var(--font-display); font-size: 0.78rem; font-weight: 650; }
.fs-how-answer-head small {
  margin-left: auto;
  color: #d1c9bf;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 620;
}

.fs-how-answer-body { padding: clamp(18px, 3vw, 26px); }
.fs-how-answer-question { margin: 0; color: #a39c93; font-size: 0.78rem; line-height: 1.45; }
.fs-how-answer-copy { margin: 15px 0 0; color: var(--fs-how-cream); font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.24rem); line-height: 1.45; }

.fs-how-answer-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid rgba(248, 241, 231, 0.1);
  color: #b8e1bf;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.45;
}

.fs-how-answer-source i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #4ca765;
}

.fs-how-caveat {
  margin: 14px 0 0;
  color: #a39c93;
  font-size: 0.7rem;
  line-height: 1.5;
}

.fs-how-try {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 670;
  text-decoration: none;
}

.fs-how-try span {
  color: var(--fs-how-coral);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fs-how-try:hover span { transform: translateX(3px); }
.fs-how-try:focus-visible { outline: 2px solid var(--fs-how-coral); outline-offset: 4px; border-radius: 3px; }

/* Staged motion: clear cause and effect, never needed to read the explanation. */
.fs-how.is-enhanced[data-phase="2"] .fs-how-step[data-how-step="2"] .fs-how-input-list span {
  animation: fs-how-chip 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--fs-how-delay, 0ms);
}

.fs-how.is-enhanced[data-phase="2"] .fs-how-step[data-how-step="2"] .fs-how-frame-core {
  animation: fs-how-core 820ms 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fs-how.is-enhanced[data-phase="1"] .fs-how-step[data-how-step="1"] .fs-how-video-play {
  animation: fs-how-play-press 620ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fs-how-step[data-how-step="1"].is-complete .fs-how-video-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.fs-how.is-enhanced[data-phase="3"] .fs-how-step[data-how-step="3"] .fs-how-code-line {
  animation: fs-how-code-line 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--fs-how-line-index, 0) * 34ms);
}

.fs-how.is-enhanced[data-phase="4"] .fs-how-step[data-how-step="4"] .fs-how-route {
  animation: fs-how-route 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--fs-how-delay, 0ms);
}

.fs-how.is-enhanced[data-phase="5"] .fs-how-answer {
  animation: fs-how-answer 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fs-how-chip { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fs-how-core { from { opacity: 0.55; transform: translateY(8px); filter: saturate(0.7); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fs-how-code-line { from { opacity: 0.22; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes fs-how-route { from { opacity: 0.38; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes fs-how-answer { from { opacity: 0.45; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes fs-how-play-press { 0% { transform: translate(-50%, -50%) scale(1); } 45% { transform: translate(-50%, -50%) scale(0.88); } 100% { transform: translate(-50%, -50%) scale(0.96); } }

@media (max-width: 900px) {
  .fs-how-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 82px; }
  .fs-how-step-copy,
  .fs-how-step-visual { grid-column: 2; max-width: none; }
  .fs-how-step-copy { padding-top: 0; }
  .fs-how-step-visual { margin-top: 4px; }
}

@media (max-width: 620px) {
  .fs-how { padding: 70px 0 92px; }
  .fs-how-wrap { width: min(100% - 32px, 1180px); }
  .fs-how-intro { margin-bottom: 58px; }
  .fs-how-intro h2 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .fs-how-flow::before,
  .fs-how-flow::after { left: 16px; }
  .fs-how-step { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-bottom: 70px; }
  .fs-how-step-number { width: 33px; height: 33px; font-size: 0.57rem; }
  .fs-how-inputs { grid-template-columns: 1fr; gap: 18px; }
  .fs-how-frame-core { grid-template-columns: 62px minmax(0, 1fr); padding: 12px; }
  .fs-how-frame-canvas-wrap { width: 62px; height: 62px; }
  .fs-how-code pre { padding: 15px; font-size: 0.62rem; }
  .fs-how-routes { grid-template-columns: 1fr; }
  .fs-how-route,
  .fs-how-route:nth-child(odd),
  .fs-how-route:nth-last-child(-n + 2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--fs-how-line); }
  .fs-how-route:last-child { border-bottom: 0; }
  .fs-how-destination { grid-template-columns: auto minmax(0, 1fr); }
  .fs-how-answer-source { align-items: flex-start; }
}

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

  .fs-how-frame-canvas { display: none; }
}
